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
Parameter | Type | Description |
---|---|---|
definition | ObservationDefinition | The observation definition. |
patient | Patient | The patient. |
value | number | The observation value. |
category | 'reference' | 'critical' | 'absolute' | (Optional) Optional interval category restriction. |
Returns:
ObservationDefinitionQualifiedInterval | undefined
The observation interval if found; otherwise undefined.