core.findobservationinterval | Medplum
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' \ |
Returns:
ObservationDefinitionQualifiedInterval \| undefined
The observation interval if found; otherwise undefined.