openmhealth_schemas library

A Flutter implementation of the Open mHealth schemas. The original Java schemas are available on the Open mHealth GitHub.

Disclaimer: Note that not all OMH schemas are implemented yet. This is work in progress.

Classes

AbstractSurveyAnswer
An abstract base class for all answer types.
Acceleration
This schema represents accelerometer measurements.
AccelerationUnit
A unit of acceleration.
AccelerationUnitValue
OMH version 1.0 See acceleration-unit-value
BloodPressure
This schema represents a person’s blood pressure as a combination of a systolic blood pressure and diastolic blood pressure, and whether the patient was lying down, sitting, or standing when the blood pressure was obtained. This schema can be used for either a single blood pressure measurement, or for basic descriptive statistics (see the DescriptiveStatistic schema).
BloodPressureUnit
A unit of blood pressure.
BodyLocation
A location on the body. Values from the Anatomical or acquired body structure hierarchy of SNOMED can be added as needed.
CaloriesBurned
This schema represents the amount of calories burned in kilocalories (kcal).
DataPoint
An OMH data point
DataPointAcquisitionProvenance
The acquisition provenance of a data point, representing how and when the data point was acquired.
DataPointHeader
The header of a data point
DataPointModality
The modality of a data point. The modality represents whether the data point was sensed by a device or application, or whether it was reported by a person.
DayOfWeek
Week days.
DescriptiveStatistic
A descriptive statistic of a set of measurements.
DescriptiveStatisticDenominator
A denominator used by by a descriptive statistic when applied to a measure with an implicit duration.
DiastolicBloodPressure
OMH version 1.0 See diastolic-blood-pressure
DurationUnit
A unit of duration.
DurationUnitValue
OMH version 1.0 See duration-unit-value
Geoposition
A geographic position measurement.
HeartRate
This schema represents a person’s heart rate and its relationship to physical activity (resting, or after exercise, etc). The schema can be used either for a single heart rate measurement, or for basic descriptive statistics (see the DescriptiveStatistic schema).
HeartRateUnit
A unit of heart rate.
HeartRateUnitValue
OMH version 1.0 See kcal-unit-value
KcalUnit
A unit of kilo-calories.
KcalUnitValue
OMH version 1.0 See kcal-unit-value
LengthUnit
A unit of length.
LengthUnitValue
OMH version 1.0 See length-unit-value
Measure
A base class for OMH measures that provides an extensible builder for common properties.
MinutesModerateActivity
A measurement of minutes of moderate-intensity activity performed.
PartOfDay
The period of time in which a day is commonly divided.
PhysicalActivity
This schema represents a single episode of physical activity, including the name of the activity, duration, distance, intensity and calories burned.
PlaneAngleUnit
A unit of an angle on a plane. OMH version 1.0 See plane-angle-unit-value
PlaneAngleUnitValue
A base class for unit value tuples.
PositionDuringMeasurement
The position of a subject during a clinical measurement.
PositioningSystem
A system used to acquire positions.
RrInterUnitValue
OMH version 1.0 See kcal-unit-value
RrInterval
This schema represents the the time between the R wave of a person’s successive heartbeats and the relationship of this measure with physical activity. The schema can be used either for a single heart rate measurement, or for basic descriptive statistics (see the DescriptiveStatistic schema).
SchemaEnumValue
An abstract class represent schema enumerations.
SchemaId
A schema identifier. It consists of a namespace, a name, and a version. A schema identifier unambiguously identifies a single, immutable schema. The namespace is used to avoid naming collisions in schemas written by different groups or organisations.
SchemaSupport
An abstract class represent any OMH schema.
SchemaVersion
A semantic schema version, consisting of a major number, minor number, and an optional qualifier.
SelfReportedIntensity
Self-reported intensity of a PhysicalActivity.
SignalToNoiseRatioUnit
A unit of a signal-to-noise ratio.
StepCount
This schema represents number of steps.
Survey
This schema represents a survey as an array of at least one survey item (the combination of a question and the list of its possible answers).
SurveyAnswer
This schema represents a survey answer as a simple string (which may contain JSON). If the answer is chosen out of a set of categories, use the schema survey-categorical-answer. If the answer is a value with its unit of measure, use the schema survey-unit-value-answer.
SurveyCategoricalAnswer
This schema represents categorical answers to a survey question.
SurveyDateAnswer
This schema represents a (full or partial) date value answer to a survey question.
SurveyDeliveryDetails
The operational details of how a survey was delivered and completed.
SurveyEndStatus
End status of a SurveyDeliveryDetails.
SurveyItem
This schema represents a survey item, i.e., the combination of a question and the list of its answers.
SurveyQuestion
This schema represents a survey question.
SurveyScore
The score calculated for the survey. This can be a number or a combination of numbers and/or string.
SurveyTimeAnswer
This schema represents a time value answer to a survey question.
SurveyUnitValueAnswer
This schema represents a unit value answer to a survey question.
SystolicBloodPressure
OMH version 1.0 See systolic-blood-pressure
TemporalRelationshipToMeal
This schema represents the temporal relationship of a clinical measure or assessment to meals (e.g., fasting, after lunch).
TemporalRelationshipToPhysicalActivity
This schema represents the temporal relationship of a clinical measure or assessment to physical activity (e.g., at rest, during exercise).
TemporalRelationshipToSleep
This schema represents the temporal relationship of a clinical measure or assessment to sleep (e.g., before sleeping, on waking).
TimeFrame
A time frame, which is either a point in time or a time interval.
TimeInterval
A time interval.
Unit
A marker interface for units of measure.
UnitValue
A base class for unit value tuples.

Mixins

AdditionalPropertySupport
An mixin class for schema classes that support additional properties.