-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmedical_history.json
More file actions
153 lines (153 loc) · 5.99 KB
/
medical_history.json
File metadata and controls
153 lines (153 loc) · 5.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Information about the medical history of a donor.",
"additionalProperties": false,
"title": "Medical history",
"name": "medical_history",
"type": "object",
"properties": {
"describedBy": {
"description": "The URL reference to the schema.",
"type": "string",
"pattern" : "^(http|https)://schema.(.*?)humancellatlas.org/module/biomaterial/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/medical_history"
},
"schema_version": {
"description": "The version number of the schema in major.minor.patch format.",
"type": "string",
"pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
"example": "4.6.1"
},
"alcohol_status": {
"description": "Whether the individual is actively consuming, was formerly consuming or never consumed alcohol beverages",
"type": "string",
"enum": [
"active",
"former",
"never"
],
"user_friendly": "Alcohol status",
"example": "Should be one of: active, former, never.",
"bionetworks": ["gut", "oral and craniofacial", "musculoskeletal", "liver"]
},
"alcohol_type": {
"description": "Types of alcoholic beverages the donor consumed.",
"type": "array",
"items": {
"type": "string"
},
"user_friendly": "Alcohol type",
"example": "beer; liquor; wine",
"bionetworks": ["gut", "oral and craniofacial", "musculoskeletal", "liver"]
},
"alcohol_units": {
"description": "Alcohol consumption of donor in alcohol units per week (strength (ABV) x volume (ml) ÷ 1,000).",
"type": "number",
"user_friendly": "Alcohol units",
"minimum": 0,
"example": "2.5; 15.2; 23",
"bionetworks": ["gut", "oral and craniofacial", "musculoskeletal", "liver", "heart"]
},
"alcohol_usage_duration": {
"description": "Number of years in which the donor consumed alcohol.",
"type": "integer",
"user_friendly": "Alcohol usage duration",
"minimum": 0,
"example": 5,
"bionetworks": ["gut", "oral and craniofacial", "musculoskeletal", "liver"]
},
"medication": {
"description": "Medication(s) the individual was taking at time of biomaterial collection.",
"type": "array",
"items": {
"$ref": "module/ontology/medication_ontology.json"
},
"user_friendly": "Medication"
},
"smoking_status": {
"description": "Whether the individual is actively, was formerly or never consumed smoking tobacco products like cigarettes, cigars, pipe etc.",
"type": "string",
"enum": [
"active",
"former",
"never"
],
"user_friendly": "Smoking status",
"example": "Should be one of: active, former, never."
},
"smoking_pack_years": {
"description": "Estimated number of packs (20 cigarettes) smoked per day multiplied by the number of years the individual was smoking.",
"type": "number",
"user_friendly": "Smoking pack years",
"minimum": 0,
"example": 4.55
},
"years_since_smoking_cessation": {
"description": "If smoking status is 'former', specify the number of years since smoking cessation.",
"type": "integer",
"user_friendly": "Years since smoking cessation",
"minimum": 0,
"example": 12
},
"nutritional_state": {
"description": "Nutritional state of individual at time of biomaterial collection.",
"type": "string",
"enum": [
"normal",
"fasting",
"feeding tube removed"
],
"user_friendly": "Nutritional state",
"example": "Should be one of: normal, fasting, or feeding tube removed."
},
"test_results": {
"description": "Results from medical tests performed on the individual.",
"type": "string",
"user_friendly": "Test results",
"example": "lipid panel shows normal level of LDL (124 mg/dL); HIV, HBV, HCV: Negative"
},
"treatment": {
"description": "Treatments the individual has undergone prior to biomaterial collection.",
"type": "string",
"user_friendly": "Treatments",
"example": "Patient treated with antibiotics for a urinary tract infection; Patient treated with chemotherapy (Epirubicin, cisplatin, capecitabine) to treat stomach cancer"
}
},
"allOf":
[
{
"if": {
"properties": {
"smoking_status": {
"const": "active"
}
}
},
"then": {
"properties": {
"years_since_smoking_cessation": {
"maximum": 0
}
}
}
},
{
"if": {
"properties": {
"smoking_status": {
"const": "never"
}
}
},
"then": {
"properties": {
"years_since_smoking_cessation": {
"type": "null"
},
"smoking_pack_years": {
"maximum": 0
}
}
}
}
]
}