Measurement types
Generated reference for ovok_sdk: measurement types.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.23+d339d81
BuildObservationsParams
class BuildObservationsParamsOne measurement to turn into FHIR Observations.
Constructors
BuildObservationsParams.new
BuildObservationsParams({
required JsonMap measurement,
String? patientId,
String? sourceId,
DateTime? effectiveDateTime,
JsonMap? device,
})Describes measurement; the patient defaults to the signed-in one.
| Parameter | Type | Kind | Default |
|---|---|---|---|
measurement | JsonMap | required named | |
patientId | String? | named | |
sourceId | String? | named | |
effectiveDateTime | DateTime? | named | |
device | JsonMap? | named |
Properties
BuildObservationsParams.measurement
final JsonMap measurementThe measurement; measurementTypeKey names its type.
BuildObservationsParams.patientId
final String? patientIdThe patient the observations are about; null for the signed-in patient.
BuildObservationsParams.sourceId
final String? sourceIdThe id of the measurement's source.
BuildObservationsParams.effectiveDateTime
final DateTime? effectiveDateTimeWhen the measurement was taken; null for now.
BuildObservationsParams.device
final JsonMap? deviceMetadata for the device that took the measurement.
SaveObservationsOptions
class SaveObservationsOptionsHow observations are saved.
Constructors
SaveObservationsOptions.new
SaveObservationsOptions({List<String> identifierSystems = const [], bool replace = false})Options; the defaults create each reading once.
| Parameter | Type | Kind | Default |
|---|---|---|---|
identifierSystems | List<String> | named | const [] |
replace | bool | named | false |
Properties
SaveObservationsOptions.identifierSystems
final List<String> identifierSystemsIdentifier systems that name a reading for good; the SDK's device-reading id always counts.
SaveObservationsOptions.replace
final bool replaceWrite over the observation saved under the same reading identifiers, for a value that changes.
SaveObservationsResult
class SaveObservationsResultWhat a save did: saved now, or queued to retry offline.
Constructors
SaveObservationsResult.saved
SaveObservationsResult.saved(JsonMap? response)The observations were saved; response is the server's bundle.
| Parameter | Type | Kind | Default |
|---|---|---|---|
response | JsonMap? | positional |
SaveObservationsResult.queued
SaveObservationsResult.queued(String? queueId)The save failed in a way worth retrying and waits in the offline queue.
| Parameter | Type | Kind | Default |
|---|---|---|---|
queueId | String? | positional |
Properties
SaveObservationsResult.status
final String statussaved or queued.
SaveObservationsResult.response
final JsonMap? responseThe server's response bundle; null when queued.
SaveObservationsResult.queueId
final String? queueIdThe offline queue entry's id; null when saved.
Last updated on