Skip to main content

core.findobservationinterval

Home > @medplum/core > findObservationInterval

findObservationInterval() function

Tries to find an observation interval for the given patient and value.

Signature:

export declare function findObservationInterval(definition: ObservationDefinition, patient: Patient, value: number, category?: 'reference' | 'critical' | 'absolute'): ObservationDefinitionQualifiedInterval | undefined;

Parameters

ParameterTypeDescription
definitionObservationDefinitionThe observation definition.
patientPatientThe patient.
valuenumberThe observation value.
category'reference' | 'critical' | 'absolute'(Optional) Optional interval category restriction.

Returns:

ObservationDefinitionQualifiedInterval | undefined

The observation interval if found; otherwise undefined.