Skip to content

Commit

Permalink
Deprecated speed, unit value and unit value range schemas, updated sy…
Browse files Browse the repository at this point in the history
…stolic blood pressure schema to reference IEEE schemas
  • Loading branch information
scarini committed Jan 31, 2024
1 parent bea1dcc commit 273a75c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
6 changes: 5 additions & 1 deletion schema/omh/speed-unit-value-1.0.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
31 changes: 31 additions & 0 deletions schema/omh/systolic-blood-pressure-1.1.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
}
]
}
2 changes: 1 addition & 1 deletion schema/omh/systolic-blood-pressure-1.x.json
6 changes: 5 additions & 1 deletion schema/omh/unit-value-1.0.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 5 additions & 1 deletion schema/omh/unit-value-range-1.0.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion schema/omh/volume-unit-value-1.x.json

0 comments on commit 273a75c

Please sign in to comment.