Skip to main content

core.findobservationreferencerange

Home > @medplum/core > findObservationReferenceRange

findObservationReferenceRange() function

Tries to find an observation reference range for the given patient and condition names.

Signature:

export declare function findObservationReferenceRange(definition: ObservationDefinition, patient: Patient, names: string[]): ObservationDefinitionQualifiedInterval | undefined;

Parameters

ParameterTypeDescription
definitionObservationDefinitionThe observation definition.
patientPatientThe patient.
namesstring[]The condition names.

Returns:

ObservationDefinitionQualifiedInterval | undefined

The observation interval if found; otherwise undefined.