Medplum React Component Library
npm install @medplum/uiThe Medplum React Component Library provides many helpful components to quickly build your healthcare web app.
The Medplum SDK can be used with any compliant FHIR server. However, some advanced features are only available when paired with a Medplum server.
Check out a live demo: https://docs.medplum.com/storybook/index.html
- SmartText - Detect clinical concepts, tag with SNOMED and ICD codes
- Chat - FHIR-based chat with real time push events
- Data Table - For a FHIR search, show the results as a live table
- SSE for server side push
- Evaluation of FhirPath
- No external dependencies
Add as a dependency:
```
npm install @medplum/ui
Note the following peer dependencies:
- @medplum/core
- @medplum/fhirpath
- react
- react-dom
- react-router-dom
`tsx
import { MedplumClient } from '@medplum/core';
import { MedplumProvider } from '@medplum/ui';
const medplum = new MedplumClient();
export function App() {
return (
);
}
`
For more details on how to setup MedplumClient, refer to the docs for medplum.
`tsx`
export function SignInPage() {
const auth = useMedplumContext();
return (
{auth.user ? (
User: {JSON.stringify(auth.user)}
) : (
)}
);
}
`tsx``
export function ChatPage() {
return (
);
}
Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer app.
Apache 2.0. Copyright © Medplum 2022