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) -> ResourceReturn the Observation with the context's fields added.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
observation | Resource | The reading's main Observation. | |
context | Resource | Optional 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) -> ResourceReturn the context saved on a reading's main Observation.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
observation | Resource | The Observation. |
Returns
Resource: Thebody_site,body_position,feelingandnoteit carries; missing onesResource: are left out.
Last updated on