Skip to main content

Sample

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

Kind: Interface
Package: @ovok/core

Import​

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

TypeScript shape​

interface Sample {
device?: HKDevice | undefined;
quantity: number;
endDate: string;
startDate: string;
unit: string;
sourceRevision: {
operatingSystemVersion: string;
version: string;
productType: string;
source: {
bundleIdentifier: string;
name: string;
};
};
uuid: string;
quantityType: string;
metadata: {
[key: string]: number | string;
};
}

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
deviceHKDevice | undefinedOptional. —
quantitynumber—
endDatestring—
startDatestring—
unitstring—
sourceRevision{ operatingSystemVersion: string; version: string; productType: string; source: { bundleIdentifier: string; name: string; }; }—
uuidstring—
quantityTypestring—
metadata{ [key: string]: number | string; }—

Learn the workflow​

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

Source​

View the declaration in the SDK source.