From 273a75c1aac046cbe63c4f27743babd0dac479f2 Mon Sep 17 00:00:00 2001 From: Simona Carini Date: Tue, 30 Jan 2024 17:17:58 -0800 Subject: [PATCH] Deprecated speed, unit value and unit value range schemas, updated systolic blood pressure schema to reference IEEE schemas --- schema/omh/speed-unit-value-1.0.json | 6 +++- schema/omh/systolic-blood-pressure-1.1.json | 31 +++++++++++++++++++++ schema/omh/systolic-blood-pressure-1.x.json | 2 +- schema/omh/unit-value-1.0.json | 6 +++- schema/omh/unit-value-range-1.0.json | 6 +++- schema/omh/volume-unit-value-1.x.json | 2 +- 6 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 schema/omh/systolic-blood-pressure-1.1.json diff --git a/schema/omh/speed-unit-value-1.0.json b/schema/omh/speed-unit-value-1.0.json index 9dcf722a..d51ed71c 100644 --- a/schema/omh/speed-unit-value-1.0.json +++ b/schema/omh/speed-unit-value-1.0.json @@ -1,6 +1,10 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - + "deprecation": { + "reason": "This schema is now deprecated, in favor of the IEEE 1752.1 schema of the same name.", + "supersededBy": "https://w3id.org/ieee/ieee-1752-schema/speed-unit-value.json", + "date": "2024-01-30" + }, "description": "This schema represents a speed (distance over time).", "type": "object", "references": [ diff --git a/schema/omh/systolic-blood-pressure-1.1.json b/schema/omh/systolic-blood-pressure-1.1.json new file mode 100644 index 00000000..ec9ec7d8 --- /dev/null +++ b/schema/omh/systolic-blood-pressure-1.1.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://w3id.org/openmhealth/schemas/omh/systolic-blood-pressure-1.1.json", + "description": "This schema represents a person's systolic blood pressure.", + "type": "object", + "references": [ + { + "description": "The SNOMED code represents systolic blood pressure (observable entity)", + "url": "http://purl.bioontology.org/ontology/SNOMEDCT/271649006" + } + ], + + "definitions": { + "unit_value": { + "$ref": "https://w3id.org/ieee/ieee-1752-schema/unit-value-1.0.json" + } + }, + + "allOf": [ + { + "$ref": "#/definitions/unit_value" + }, + { + "properties": { + "unit": { + "enum": ["mmHg"] + } + } + } + ] +} \ No newline at end of file diff --git a/schema/omh/systolic-blood-pressure-1.x.json b/schema/omh/systolic-blood-pressure-1.x.json index 33e1df16..cf3a7e13 120000 --- a/schema/omh/systolic-blood-pressure-1.x.json +++ b/schema/omh/systolic-blood-pressure-1.x.json @@ -1 +1 @@ -systolic-blood-pressure-1.0.json \ No newline at end of file +systolic-blood-pressure-1.1.json \ No newline at end of file diff --git a/schema/omh/unit-value-1.0.json b/schema/omh/unit-value-1.0.json index 40cae65f..6a99154f 100644 --- a/schema/omh/unit-value-1.0.json +++ b/schema/omh/unit-value-1.0.json @@ -1,6 +1,10 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - + "deprecation": { + "reason": "This schema is now deprecated, in favor of the IEEE 1752.1 schema of the same name.", + "supersededBy": "https://w3id.org/ieee/ieee-1752-schema/unit-value.json", + "date": "2024-01-30" + }, "description": "This schema represents a numerical value with a unit of measure.", "type": "object", diff --git a/schema/omh/unit-value-range-1.0.json b/schema/omh/unit-value-range-1.0.json index ee607757..ada42936 100644 --- a/schema/omh/unit-value-range-1.0.json +++ b/schema/omh/unit-value-range-1.0.json @@ -1,6 +1,10 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - + "deprecation": { + "reason": "This schema is now deprecated, in favor of the IEEE 1752.1 schema of the same name.", + "supersededBy": "https://w3id.org/ieee/ieee-1752-schema/unit-value-range.json", + "date": "2024-01-30" + }, "description": "This schema represents a range of numerical values with a unit of measure. The lower and upper boundaries are included in the interval.", "type": "object", diff --git a/schema/omh/volume-unit-value-1.x.json b/schema/omh/volume-unit-value-1.x.json index 695c84d2..73083177 120000 --- a/schema/omh/volume-unit-value-1.x.json +++ b/schema/omh/volume-unit-value-1.x.json @@ -1 +1 @@ -volume-unit-value-1.0.json \ No newline at end of file +volume-unit-value-1.1.json \ No newline at end of file