-
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.
Schemas body temperature and body weight updated to add $id and refer…
…ence IEEE schemas where relevant, sample data added
- Loading branch information
Showing
21 changed files
with
246 additions
and
1 deletion.
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 |
---|---|---|
@@ -1 +1 @@ | ||
body-location-1.0.json | ||
body-location-1.1.json |
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,64 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://w3id.org/openmhealth/schemas/omh/body-temperature-4.0.json", | ||
"description": "This schema represents a person's body temperature.", | ||
"type": "object", | ||
"references": [ | ||
{ | ||
"description": "The SNOMED code represents body temperature (observable entity)", | ||
"url": "http://purl.bioontology.org/ontology/SNOMEDCT/386725007" | ||
} | ||
], | ||
|
||
"definitions": { | ||
"temperature_unit_value": { | ||
"$ref": "https://w3id.org/ieee/ieee-1752-schema/temperature-unit-value-1.0.json" | ||
}, | ||
"time_frame": { | ||
"$ref": "https://w3id.org/ieee/ieee-1752-schema/time-frame-1.0.json" | ||
}, | ||
"temporal_relationship_to_sleep": { | ||
"$ref": "temporal-relationship-to-sleep-1.x.json" | ||
}, | ||
"descriptive_statistic": { | ||
"$ref": "https://w3id.org/ieee/ieee-1752-schema/descriptive-statistic-1.0.json" | ||
} | ||
}, | ||
|
||
"properties": { | ||
"body_temperature": { | ||
"$ref": "#/definitions/temperature_unit_value" | ||
}, | ||
"effective_time_frame": { | ||
"$ref": "#/definitions/time_frame" | ||
}, | ||
"descriptive_statistic": { | ||
"$ref": "#/definitions/descriptive_statistic" | ||
}, | ||
"measurement_location": { | ||
"description": "The value set is taken from SNOMED CT and LOINC. For common temperature locations, the adjective is used rather than the actual location name (e.g., axillary rather than armpit). Forehead indicates the use of a disposable strip.", | ||
"type": "string", | ||
"enum": [ | ||
"axillary", | ||
"finger", | ||
"forehead", | ||
"oral", | ||
"rectal", | ||
"temporal artery", | ||
"toe", | ||
"tympanic", | ||
"wrist", | ||
"vagina" | ||
] | ||
}, | ||
|
||
"temporal_relationship_to_sleep": { | ||
"description": "The temporal relationship to sleep of the temperature measurement(s). The lowest body temperature attained during rest, usually estimated by a temperature measurement immediately on waking up and before any physical activity has been undertaken is called basal temperature.", | ||
"$ref": "#/definitions/temporal_relationship_to_sleep" | ||
} | ||
}, | ||
"required": [ | ||
"body_temperature", | ||
"effective_time_frame" | ||
] | ||
} |
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 @@ | ||
body-temperature-4.0.json |
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,41 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://w3id.org/openmhealth/schemas/omh/body-weight-2.0.json", | ||
"description": "This schema represents a person's body weight.", | ||
|
||
"type": "object", | ||
"references": [ | ||
{ | ||
"description": "The SNOMED code represents Body weight measure (observable entity)", | ||
"url": "http://purl.bioontology.org/ontology/SNOMEDCT/363808001" | ||
} | ||
], | ||
"definitions": { | ||
"mass_unit_value": { | ||
"$ref": "mass-unit-value-1.x.json" | ||
}, | ||
"time_frame": { | ||
"$ref": "https://w3id.org/ieee/ieee-1752-schema/time-frame-1.0.json" | ||
}, | ||
"descriptive_statistic": { | ||
"$ref": "https://w3id.org/ieee/ieee-1752-schema/descriptive-statistic-1.0.json" | ||
} | ||
}, | ||
|
||
"properties": { | ||
"body_weight": { | ||
"$ref": "#/definitions/mass_unit_value" | ||
}, | ||
"effective_time_frame": { | ||
"$ref": "#/definitions/time_frame" | ||
}, | ||
"descriptive_statistic": { | ||
"$ref": "#/definitions/descriptive_statistic" | ||
} | ||
}, | ||
|
||
"required": [ | ||
"body_weight", | ||
"effective_time_frame" | ||
] | ||
} |
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 @@ | ||
body-weight-3.0.json |
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
1 change: 1 addition & 0 deletions
1
test-data/omh/body-temperature/4.0/shouldFail/empty-document.json
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 @@ | ||
{} |
9 changes: 9 additions & 0 deletions
9
test-data/omh/body-temperature/4.0/shouldFail/invalid-unit.json
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,9 @@ | ||
{ | ||
"body_temperature": { | ||
"value": 36, | ||
"unit": "G" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2013-02-05T07:25:00Z" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-data/omh/body-temperature/4.0/shouldFail/missing-effective-time-frame.json
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,6 @@ | ||
{ | ||
"body_temperature": { | ||
"value": 36, | ||
"unit": "C" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-data/omh/body-temperature/4.0/shouldPass/basal-temperature.json
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,10 @@ | ||
{ | ||
"body_temperature": { | ||
"value": 96.5, | ||
"unit": "F" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2023-02-05T06:25:00Z" | ||
}, | ||
"temporal_relationship_to_sleep": "on waking" | ||
} |
14 changes: 14 additions & 0 deletions
14
test-data/omh/body-temperature/4.0/shouldPass/valid-temperature-with-statistic.json
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,14 @@ | ||
{ | ||
"body_temperature": { | ||
"value": 96.5, | ||
"unit": "F" | ||
}, | ||
"effective_time_frame": { | ||
"time_interval": { | ||
"start_date_time": "2023-02-05T06:00:00-08:00", | ||
"end_date_time": "2020-03-06T06:00:00-08:00" | ||
} | ||
}, | ||
"measurement_location": "oral", | ||
"descriptive_statistic": "maximum" | ||
} |
10 changes: 10 additions & 0 deletions
10
test-data/omh/body-temperature/4.0/shouldPass/valid-temperature.json
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,10 @@ | ||
{ | ||
"body_temperature": { | ||
"value": 97, | ||
"unit": "F" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2023-02-05T07:25:00+01:00" | ||
}, | ||
"measurement_location": "forehead" | ||
} |
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 @@ | ||
{} |
13 changes: 13 additions & 0 deletions
13
test-data/omh/body-weight/3.0/shouldFail/invalid-descriptive-statistic.json
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,13 @@ | ||
{ | ||
"body_weight": { | ||
"value": 115.5, | ||
"unit": "lb" | ||
}, | ||
"effective_time_frame": { | ||
"time_interval": { | ||
"start_date_time": "2013-02-05T07:25:00Z", | ||
"end_date_time": "2013-06-05T07:25:00Z" | ||
} | ||
}, | ||
"descriptive_statistic": "minmum" | ||
} |
10 changes: 10 additions & 0 deletions
10
test-data/omh/body-weight/3.0/shouldFail/invalid-time-frame.json
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,10 @@ | ||
{ | ||
"body_weight": { | ||
"value": 50, | ||
"unit": "kg" | ||
}, | ||
"effective_time_frame": { | ||
"start_date_time": "2013-02-05T07:25:00Z" | ||
}, | ||
"descriptive_statistic": "minimum" | ||
} |
12 changes: 12 additions & 0 deletions
12
test-data/omh/body-weight/3.0/shouldFail/invalid-time-interval.json
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,12 @@ | ||
{ | ||
"body_weight": { | ||
"value": 50, | ||
"unit": "kg" | ||
}, | ||
"effective_time_frame": { | ||
"time_interval": { | ||
"start_date_time": "2013-02-05T07:25:00Z" | ||
} | ||
}, | ||
"descriptive_statistic": "minimum" | ||
} |
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,9 @@ | ||
{ | ||
"body_weight": { | ||
"value": 50, | ||
"unit": "km" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2020-02-05T09:25:00-08:00" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test-data/omh/body-weight/3.0/shouldFail/missing-body-weight-unit.json
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,8 @@ | ||
{ | ||
"body_weight": { | ||
"value": 50 | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2020-02-05T09:25:00-08:00" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test-data/omh/body-weight/3.0/shouldFail/missing-body-weight-value.json
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,8 @@ | ||
{ | ||
"body_weight": { | ||
"unit": "kg" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2020-02-05T09:25:00-08:00" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test-data/omh/body-weight/3.0/shouldPass/body-weight-only.json
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,9 @@ | ||
{ | ||
"body_weight": { | ||
"value": 50, | ||
"unit": "kg" | ||
}, | ||
"effective_time_frame": { | ||
"date_time": "2020-02-05T09:45:00-08:00" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
test-data/omh/body-weight/3.0/shouldPass/with-descriptive-statistic.json
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,13 @@ | ||
{ | ||
"body_weight": { | ||
"value": 49.5, | ||
"unit": "kg" | ||
}, | ||
"effective_time_frame": { | ||
"time_interval": { | ||
"start_date_time": "2020-02-05T09:45:00-08:00", | ||
"end_date_time": "2020-03-05T10:40:00-08:00" | ||
} | ||
}, | ||
"descriptive_statistic": "minimum" | ||
} |