From a132f2f59e86fc79e37efbea2e6686c0c36e7315 Mon Sep 17 00:00:00 2001 From: Simona Carini Date: Thu, 11 Jan 2024 15:46:00 -0800 Subject: [PATCH] Added $id and reference to IEEE unit-value schema in non-IEEE-referenced unit value schemas --- schema/omh/acceleration-unit-value-1.1.json | 33 +++++++++++++ .../omh/angular-velocity-unit-value-1.1.json | 27 ++++++++++ .../magnetic-flux-density-unit-value-1.1.json | 38 ++++++++++++++ schema/omh/mass-unit-value-1.1.json | 46 +++++++++++++++++ .../omh/medication-dose-unit-value-1.1.json | 30 ++++++++++++ .../medication-dose-unit-value-range-1.1.json | 30 ++++++++++++ schema/omh/pace-unit-value-1.1.json | 22 +++++++++ schema/omh/plane-angle-unit-value-1.1.json | 34 +++++++++++++ schema/omh/volume-unit-value-1.1.json | 49 +++++++++++++++++++ 9 files changed, 309 insertions(+) create mode 100644 schema/omh/acceleration-unit-value-1.1.json create mode 100644 schema/omh/angular-velocity-unit-value-1.1.json create mode 100644 schema/omh/magnetic-flux-density-unit-value-1.1.json create mode 100644 schema/omh/mass-unit-value-1.1.json create mode 100644 schema/omh/medication-dose-unit-value-1.1.json create mode 100644 schema/omh/medication-dose-unit-value-range-1.1.json create mode 100644 schema/omh/pace-unit-value-1.1.json create mode 100644 schema/omh/plane-angle-unit-value-1.1.json create mode 100644 schema/omh/volume-unit-value-1.1.json diff --git a/schema/omh/acceleration-unit-value-1.1.json b/schema/omh/acceleration-unit-value-1.1.json new file mode 100644 index 00000000..6f7d3499 --- /dev/null +++ b/schema/omh/acceleration-unit-value-1.1.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/acceleration-unit-value-1.1.json", + "description": "This schema represents acceleration.", + "type": "object", + + "references": [ + { + "description": "The SNOMED code represents Acceleration (physical force)", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/285659007" + } + ], + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element." + } + ], + "enum": [ + "m/s^2" + ] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/angular-velocity-unit-value-1.1.json b/schema/omh/angular-velocity-unit-value-1.1.json new file mode 100644 index 00000000..be6d486d --- /dev/null +++ b/schema/omh/angular-velocity-unit-value-1.1.json @@ -0,0 +1,27 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/angular-velocity-unit-value-1.1.json", + "description": "This schema represents angular velocity.", + "type": "object", + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element. SI unit is radians per second.", + "url": "http://unitsofmeasure.org/ucum.html#datyp2apdxatblxmp" + } + ], + "enum": [ + "rad/s" + ] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/magnetic-flux-density-unit-value-1.1.json b/schema/omh/magnetic-flux-density-unit-value-1.1.json new file mode 100644 index 00000000..2b1421b0 --- /dev/null +++ b/schema/omh/magnetic-flux-density-unit-value-1.1.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/magnetic-flux-density-unit-value-1.1.json", + "description": "This schema represents a magnetic flux density.", + "type": "object", + + "references": [ + { + "description": "The SNOMED code represents Magnetic field (physical force)", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/285651005" + } + ], + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element. Basic unit is Tesla (T)", + "url": "http://unitsofmeasure.org/ucum.html#datyp2apdxatblxmp" + } + ], + "enum": [ + "pT", + "nT", + "uT", + "mT", + "T" + ] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/mass-unit-value-1.1.json b/schema/omh/mass-unit-value-1.1.json new file mode 100644 index 00000000..01a38420 --- /dev/null +++ b/schema/omh/mass-unit-value-1.1.json @@ -0,0 +1,46 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/mass-unit-value-1.1.json", + "description": "This schema represents a mass.", + + "type": "object", + + "references": [ + { + "description": "The SNOMED code represents Mass", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/118538004" + } + ], + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element. Basic unit is gram (g) [ http://unitsofmeasure.org/ucum.html#para-28 ]. Allowed values are drawn from the SI Mass Units and English Mass Units Common Synonyms (non-UCUM) columns of the 'Mass Units' section. The valid UCUM code is different for metric ton (t), grain ([gr]), ounce ([oz_av]), pound ([lb_av]) and Ton ([ston_av]).", + "url": "http://download.hl7.de/documents/ucum/ucumdata.html" + } + ], + "enum": [ + "fg", + "pg", + "ng", + "ug", + "mg", + "g", + "kg", + "Metric Ton", + "gr", + "oz", + "lb", + "Ton" + ] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/medication-dose-unit-value-1.1.json b/schema/omh/medication-dose-unit-value-1.1.json new file mode 100644 index 00000000..469a4abd --- /dev/null +++ b/schema/omh/medication-dose-unit-value-1.1.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/medication-dose-unit-value-1.1.json", + "type": "object", + "description": "This schema represents the dose of a therapeutic agent.", + "references": [ + { + "description": "The NCIT code represents Dose", + "url": "https://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?dictionary=NCI%20MetaThesaurus&code=C0178602" + } + ], + "definitions": { + "medication_dose_unit": { + "$ref": "medication-dose-unit-1.x.json" + } + }, + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "$ref": "#/definitions/medication_dose_unit" + } + } + } + ] +} diff --git a/schema/omh/medication-dose-unit-value-range-1.1.json b/schema/omh/medication-dose-unit-value-range-1.1.json new file mode 100644 index 00000000..8aa20160 --- /dev/null +++ b/schema/omh/medication-dose-unit-value-range-1.1.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/medication-dose-unit-value-range-1.1.json", + "type": "object", + "description": "This schema represents the dose of a therapeutic agent as a range.", + "references": [ + { + "description": "The NCIT code represents Dose", + "url": "https://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?dictionary=NCI%20MetaThesaurus&code=C0178602" + } + ], + "definitions": { + "medication_dose_unit": { + "$ref": "medication-dose-unit-1.x.json" + } + }, + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-range-1.0.json" + }, + { + "properties": { + "unit": { + "$ref": "#/definitions/medication_dose_unit" + } + } + } + ] +} diff --git a/schema/omh/pace-unit-value-1.1.json b/schema/omh/pace-unit-value-1.1.json new file mode 100644 index 00000000..9d7a9968 --- /dev/null +++ b/schema/omh/pace-unit-value-1.1.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/pace-unit-value-1.1.json", + "description": "This schema represents a pace (time over distance).", + "type": "object", + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "enum": [ + "min/mi", + "min/km" + ] + } + } + } + ] +} diff --git a/schema/omh/plane-angle-unit-value-1.1.json b/schema/omh/plane-angle-unit-value-1.1.json new file mode 100644 index 00000000..c44f4907 --- /dev/null +++ b/schema/omh/plane-angle-unit-value-1.1.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/plane-angle-unit-value-1.1.json", + "type": "object", + "description": "This schema represents an angle on a plane.", + + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element. Basic unit is Degrees of arc. (The SI unit for angles is radian.)", + "url": "http://download.hl7.de/documents/ucum/ucumdata.html" + }, + { + "description": "The SNOMED code represents Degrees of arc.", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/259046004" + }, + { + "description": "Decimal degrees (DD) express latitude and longitude geographic coordinates as decimal fractions and are used in many geographic information systems (GIS), web mapping applications and GPS devices. Decimal degrees are an alternative to using degrees, minutes, and seconds (DMS). In most systems the degree symbol ° is omitted." + } + ], + "enum": [ + "deg" + ] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/volume-unit-value-1.1.json b/schema/omh/volume-unit-value-1.1.json new file mode 100644 index 00000000..d52df493 --- /dev/null +++ b/schema/omh/volume-unit-value-1.1.json @@ -0,0 +1,49 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/volume-unit-value-1.1.json", + "description": "This schema represents a volume.", + "type": "object", + + "references": [ + { + "description": "The SNOMED code represents Volume", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/118565006" + } + ], + "allOf": [ + { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + }, + { + "properties": { + "unit": { + "references": [ + { + "description": "The unit of measure of the element. Basic unit is liter (L). Allowed values are drawn from the Volume Units and English Volume Units Common Synonyms (non-UCUM). The valid UCUM code is different for fluid ounce ([foz_us]), cubic inch ([cin_i]), cup ([cup_us]), pint ([pt_us]), quart ([qt_us]), gallon ([gal_us]). 1 teaspoon = 5 ml; 1 tablespoon = 3 teaspoons = 15 ml.", + "url": "http://download.hl7.de/documents/ucum/ucumdata.html" + } + ], + "enum": [ + "fL", + "pL", + "nL", + "uL", + "mL", + "cL", + "dL", + "L", + "kL", + "fl oz", + "Cup", + "in^3", + "pt", + "qt", + "gal", + "tsp", + "tbsp" + ] + } + } + } + ] +} \ No newline at end of file