core.servicetypeoffersservice
Home > @medplum/core > serviceTypeOffersService
serviceTypeOffersService() function
Returns whether a Schedule with these serviceType concepts can be booked for the given HealthcareService: because it refers to the service, or because it carries the marker for offering every one.
Signature:
export declare function serviceTypeOffersService(serviceType: CodeableConcept[] | undefined, service: WithId<HealthcareService> | (Reference<HealthcareService> & {
reference: string;
})): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
serviceType | CodeableConcept[] | undefined | CodeableConcept values to inspect |
service | WithId<HealthcareService> | (Reference<HealthcareService> & { reference: string; }) | HealthcareService or reference to match |
Returns:
boolean
True if the concepts offer the service