Skip to main content

useObservations

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: React hook
Package: @ovok/core

Import​

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

TypeScript signatures​

<T extends readonly SupportedType[]>({ types, period, patientId, id, groupBy, timeToleranceMs, count, sort, elements, }: UseObservationsOptions<T>): { measurements: Array<Extract<SupportedMeasurement, { measurementTypeKey: T[number]; }>>; loading: boolean; error?: Error; observations: readonly Observation[]; refetch: () => void; }
ParameterTypeDetails
__0UseObservationsOptions<T>—

Returns: { measurements: Array<Extract<SupportedMeasurement, { measurementTypeKey: T[number]; }>>; loading: boolean; error?: Error; observations: readonly Observation[]; refetch: () => void; }.

Learn the workflow​

Continue with React for the workflow context and examples.

Source​

View the declaration in the SDK source.