core.toappointmentsitereference
Home > @medplum/core > toAppointmentSiteReference
toAppointmentSiteReference() function
Builds the supportingInformation entry recording the site an appointment is held at.
A site and a room are both Location, so the site is recorded here rather than as a participant: Appointment.location answers the room, and getAppointmentSite() the site. Anything writing an appointment outside the booking form should record the site through this, so that it is identifiable among the other supportingInformation entries.
Signature:
export declare function toAppointmentSiteReference(site: WithId<Location>): Reference<Location>;
Parameters
Parameter | Type | Description |
|---|---|---|
site | WithId<Location> | The site the appointment is held at. |
Returns:
Reference<Location>
The reference, stamped with SchedulingSiteURI.