Skip to main content

observationsToMeasurements

Converts FHIR observations back into SDK measurements without patient/app assumptions.

Kind: Function
Package: @ovok/core

Import​

import { observationsToMeasurements } from '@ovok/core';

TypeScript signatures​

<T extends readonly SupportedType[]>(observations: readonly Observation[], types: T, options?: ObservationsToMeasurementsOptions): Array<Extract<SupportedMeasurement, { measurementTypeKey: T[number]; }>>
ParameterTypeDetails
observationsreadonly Observation[]—
typesT—
optionsObservationsToMeasurementsOptions—

Returns: Array<Extract<SupportedMeasurement, { measurementTypeKey: T[number]; }>>.

Learn the workflow​

Continue with Fhir And Observations for the workflow context and examples.

Source​

View the declaration in the SDK source.