core.toservicetypecodeableconcepts
Home > @medplum/core > toServiceTypeCodeableConcepts
toServiceTypeCodeableConcepts() function
Converts a HealthcareService into the CodeableConcept values used by Schedule.serviceType and Appointment.serviceType, which encode an R4 approximation of CodeableReference<HealthcareService>.
Signature:
export declare function toServiceTypeCodeableConcepts(service: WithId<HealthcareService>): CodeableConcept[];
Parameters
Parameter | Type | Description |
|---|---|---|
service | WithId<HealthcareService> | HealthcareService to represent |
Returns:
CodeableConcept[]
CodeableConcept values containing a reference to the service