core.createpreferredpharmacyextension | Medplum
createPreferredPharmacyExtension() function
Creates a preferredPharmacy extension object.
Signature:
export declare function createPreferredPharmacyExtension(orgRef: Reference<Organization>, isPrimary: boolean, preferenceTypeSystem?: string): Extension;
Parameters
| Parameter | Type | Description |
|---|---|---|
| orgRef | Reference |
Reference to the Organization resource. |
| isPrimary | boolean | Whether this is the primary pharmacy. |
| preferenceTypeSystem | string | (Optional) Optional coding system URL for pharmacy preference type. Defaults to PHARMACY_PREFERENCE_TYPE_SYSTEM. |
Returns:
Extension
The extension object to add to a Patient.