Measurement Package

Overview

The Measurement package defines a minimum of semantics relating to quantitative measurement, units, and conversion, enabling the Quantity package of the openEHR Data Types Information Model to be correctly expressed. As for the Terminology package, a simple service interface is assumed, which provides useful functions to other parts of the reference model. The definitions underlying measurement and units come from a variety of sources, including:

These of course rest in turn upon a vast amount of literature and standards, mainly from ISO on the subject of scientific measurement.

Service Interface

A simple measurement data service interface is defined according to the figure below, enabling quantitative semantics to be used formally from within the Reference Model. Note that this service as currently defined in no way seeks to properly model the semantics of units, conversions etc - it provides only the minimum functions required by the openEHR Reference Model.

RM support.measurement
Figure 1. rm.support.measurement Package

Class Definitions

MEASUREMENT_SERVICE Class

  • Definition

  • Effective

  • BMM

  • UML

Class

MEASUREMENT_SERVICE

Description

Defines an object providing proxy access to a measurement information service.

Functions

Signature

Meaning

1..1

is_valid_units_string (
units: String[1]
): Boolean

True if the units string units' is a valid string according to the HL7 UCUM specification.

1..1

units_equivalent (
units1: String[1],
units2: String[1]
): Boolean

True if two units strings correspond to the same measured property.

MEASUREMENT_SERVICE

Defines an object providing proxy access to a measurement information service.

Functions

is_valid_units_string (
units: String[1]
): Boolean [1..1]

True if the units string units' is a valid string according to the HL7 UCUM specification.

units_equivalent (
units1: String[1],
units2: String[1]
): Boolean [1..1]

True if two units strings correspond to the same measured property.

{
    "name": "MEASUREMENT_SERVICE",
    "documentation": "Defines an object providing proxy access to a measurement information service.",
    "functions": {
        "is_valid_units_string": {
            "name": "is_valid_units_string",
            "documentation": "True if the units string  units' is a valid string according to the HL7 UCUM specification.",
            "parameters": {
                "units": {
                    "_type": "P_BMM_SINGLE_FUNCTION_PARAMETER",
                    "name": "units",
                    "type": "String"
                }
            },
            "result": {
                "_type": "P_BMM_SIMPLE_TYPE",
                "type": "Boolean"
            }
        },
        "units_equivalent": {
            "name": "units_equivalent",
            "documentation": "True if two units strings correspond to the same measured property.",
            "parameters": {
                "units1": {
                    "_type": "P_BMM_SINGLE_FUNCTION_PARAMETER",
                    "name": "units1",
                    "type": "String"
                },
                "units2": {
                    "_type": "P_BMM_SINGLE_FUNCTION_PARAMETER",
                    "name": "units2",
                    "type": "String"
                }
            },
            "result": {
                "_type": "P_BMM_SIMPLE_TYPE",
                "type": "Boolean"
            }
        }
    }
}
MEASUREMENT_SERVICE