Skip to main content

core.getprimaryprovider

Home > @medplum/core > getPrimaryProvider

getPrimaryProvider() function​

Reads the appointment's primary provider, as setPrimaryProvider() marked it.

Signature:

export declare function getPrimaryProvider(appointment: Appointment): Reference | undefined;

Parameters​

Parameter

Type

Description

appointment

Appointment

The appointment to read.

Returns:

Reference | undefined

The primary provider, or undefined for an appointment marking none.