-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added $id and reference to IEEE unit-value schema in non-IEEE-referen…
…ced unit value schemas
- Loading branch information
Showing
9 changed files
with
309 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |