@medplum/react-scheduling
v5.1.28
Published
Medplum Scheduling React Components
Readme
Medplum Scheduling React Component Library
The Medplum Scheduling React Component Library provides UI intended for working with Medplum's Scheduling API.
Check out a live demo: https://storybook.medplum.com/
Alpha
This package is under active development and subject to breaking changes. Learn more at https://www.medplum.com/docs/compliance/alpha-beta.
Installation
Add as a dependency:
npm install @medplum/react-schedulingNote the following peer dependencies:
Basic Usage
This is intended to be used inside an application built using @medplum/react.
import { getReferenceString } from '@medplum/core';
import type { Practitioner } from '@medplum/fhirtypes';
import { useSearchResources } from '@medplum/react';
import { Calendar } from '@medplum/react-scheduling'
export function ScheduleView(props: { practitioner: Practitioner }) {
const [appointments, loading] = useSearchResources(
'Appointment',
{
actor: getReferenceString(props.practitioner)
}
);
if (loading) {
return <>Loading...</>;
}
return <Calendar appointments={appointments} slots={[]} />
}About Medplum
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.
