API referenceovok_sdk.resources

ovok_sdk.resources.measurement_context

What a person noted about a reading: body site, position, feeling and note.

  • Stable unknown
  • Release candidate not available
  • Development since 0.2.0-dev.36+f12b151

What a person noted about a reading: body site, position, feeling and note.

with_measurement_context()

with_measurement_context(observation: Resource, context: Resource) -> Resource

Return the Observation with the context's fields added.

Parameters

NameTypeDefaultDescription
observationResourceThe reading's main Observation.
contextResourceOptional body_site (CodeableConcept), body_position (sitting, standing or lying), feeling (great, good, okay, bad or awful) and note. camelCase keys are accepted too.

Returns

  • Resource: A new Observation; a field the context leaves out stays as it was.

Raises

  • OvokValidationError: The position or feeling is not one of the listed values.

read_measurement_context()

read_measurement_context(observation: Resource) -> Resource

Return the context saved on a reading's main Observation.

Parameters

NameTypeDefaultDescription
observationResourceThe Observation.

Returns

  • Resource: The body_site, body_position, feeling and note it carries; missing ones
  • Resource: are left out.

Last updated on

On this page