Skip to content

Commit

Permalink
Merge pull request #30 from openmhealth/feature/reference-ieee-schemas-2
Browse files Browse the repository at this point in the history
Feature/reference ieee schemas 2
  • Loading branch information
scarini committed Jan 29, 2024
2 parents 9b83340 + 61a7105 commit 63dc54a
Show file tree
Hide file tree
Showing 9 changed files with 309 additions and 0 deletions.
33 changes: 33 additions & 0 deletions schema/omh/acceleration-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
27 changes: 27 additions & 0 deletions schema/omh/angular-velocity-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
38 changes: 38 additions & 0 deletions schema/omh/magnetic-flux-density-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
46 changes: 46 additions & 0 deletions schema/omh/mass-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
30 changes: 30 additions & 0 deletions schema/omh/medication-dose-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
]
}
30 changes: 30 additions & 0 deletions schema/omh/medication-dose-unit-value-range-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
]
}
22 changes: 22 additions & 0 deletions schema/omh/pace-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
34 changes: 34 additions & 0 deletions schema/omh/plane-angle-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}
49 changes: 49 additions & 0 deletions schema/omh/volume-unit-value-1.1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
]
}

0 comments on commit 63dc54a

Please sign in to comment.