-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathadapt-dtd-schema.json
More file actions
308 lines (308 loc) · 9.6 KB
/
adapt-dtd-schema.json
File metadata and controls
308 lines (308 loc) · 9.6 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://adaptstandard.org/standard-data-type-definitions/2.0.0",
"type": "object",
"description": "Top level entity for the artifact controlling the ADAPT Standard list of Data Type Definitions.",
"properties": {
"version": {
"$ref": "#/$defs/version"
},
"dataTypeDefinitions": {
"description": "The list of standard Data Type Definitions",
"type": "array",
"items": {
"$ref": "#/$defs/dataTypeDefinition"
},
"minItems": 1
}
},
"$defs": {
"code": {
"type": "string",
"description": "A code is a character string of letters, numbers, special characters (except escape sequences); and symbols. It represents a definitive value,\na method, or a property description in an abbreviated or language-independent form that is part of a finite list of allowed values."
},
"dataDefinitionBaseTypeCode": {
"type": "string",
"description": "The code that identifies the enumeration item value from the Data Definition Base Type data type definition"
},
"dataDefinitionStatusCode": {
"type": "string",
"description": "The code that identifies the enumeration item value from the Data Definition Status data type definition"
},
"default": {
"type": "number",
"description": "A numeric default."
},
"definitionCode": {
"type": "string",
"description": "Code identifying a Data Type Definition, either in the standard Adapt list or within the Custom Data Type \nDefinitions in this Adapt instance."
},
"description": {
"type": "string",
"description": "A string that describes an object, likely containing more contextual information than a Name."
},
"enumerationItemStatusCode": {
"type": "string",
"description": "The code that identifies the enumeration item value from the Data Definition Status data type definition"
},
"geoNamesId": {
"type": "string",
"description": "Geopolitical Ontology Id from GeoNames.org"
},
"iSO3166-2Code": {
"type": "string",
"description": "Code for a geographic region, as defined by ISO 3166-2. I.e., a two-digit code for the country, followed by a code for the subdivision. E.g., US-CA for California."
},
"keywords": {
"type": "string",
"description": "Textual strings used for identification in searches"
},
"languageCode": {
"type": "string",
"description": "A language as defined by the code in ISO 639-1, with an optional identifier for the ISO 3166-1 Alpha 2 Code for the geography. E.g. \"pt\", \"pt-BR\""
},
"maximum": {
"type": "number",
"description": "A numeric maximum"
},
"minimum": {
"type": "number",
"description": "A numeric minimum"
},
"name": {
"type": "string",
"description": "A short textual string by which an item is known."
},
"numericDataTypeCode": {
"type": "string",
"description": "The code that identifies the enumeration item value from the Numeric Data Type data type definition"
},
"scope": {
"type": "string",
"description": "Name of an ADAPT Standard component to which a Data Type Definition may be applied."
},
"supersededByCode": {
"type": "string",
"description": "Code identifying a different Data Type Definition or Enumeration Item that supersedes this item. Required and relevant only when the status of the current item is SUPERSEDED."
},
"unitOfMeasureCode": {
"type": "string",
"description": "A code defining a Unit of Measure in the Adapt Unit Of Measure system"
},
"validationRegularExpression": {
"type": "string",
"description": "Regular Expression to be used for validation."
},
"version": {
"type": "string",
"description": "A version number"
},
"dataTypeDefinition": {
"description": "The definition of a type of data, as may exist either in the published list of standard types or to types defined within an individual data instance.",
"type": "object",
"properties": {
"definitionCode": {
"$ref": "#/$defs/definitionCode"
},
"name": {
"$ref": "#/$defs/name"
},
"description": {
"$ref": "#/$defs/description"
},
"dataDefinitionBaseTypeCode": {
"$ref": "#/$defs/dataDefinitionBaseTypeCode"
},
"dataDefinitionStatusCode": {
"$ref": "#/$defs/dataDefinitionStatusCode"
},
"supersededByCode": {
"$ref": "#/$defs/supersededByCode"
},
"scopes": {
"description": "The names of ADAPT Standard components to which this Data Type Definition may be applied, either as a Context Item or to a defined property such as a Variable.",
"type": "array",
"items": {
"$ref": "#/$defs/scope"
},
"minItems": 0
},
"labels": {
"description": "Names for this Data Type Definition in other languages.",
"type": "array",
"items": {
"$ref": "#/$defs/label"
},
"minItems": 0
},
"geoPoliticalContexts": {
"description": "Any specific Geo Political Contexts to which the Data Type Definition applies",
"type": "array",
"items": {
"$ref": "#/$defs/geoPoliticalContext"
},
"minItems": 0
},
"keywords": {
"$ref": "#/$defs/keywords"
},
"numericDataTypeDefinitionAttributes": {
"$ref": "#/$defs/numericDataTypeDefinitionAttributes"
},
"enumeratedDataTypeDefinitionAttributes": {
"$ref": "#/$defs/enumeratedDataTypeDefinitionAttributes"
},
"textDataTypeDefinitionAttributes": {
"$ref": "#/$defs/textDataTypeDefinitionAttributes"
}
},
"required": [
"definitionCode",
"name",
"dataDefinitionBaseTypeCode",
"dataDefinitionStatusCode"
]
},
"enumeratedDataTypeDefinitionAttributes": {
"description": "Data Type Definition attributes specific to enumerated types",
"type": "object",
"properties": {
"items": {
"$ref": "#/$defs/items"
},
"default": {
"$ref": "#/$defs/default"
}
},
"required": [
"items"
]
},
"enumerationItem": {
"description": "An enumeration item within an enumeration",
"type": "object",
"properties": {
"code": {
"$ref": "#/$defs/code"
},
"name": {
"$ref": "#/$defs/name"
},
"description": {
"$ref": "#/$defs/description"
},
"enumerationItemStatusCode": {
"$ref": "#/$defs/enumerationItemStatusCode"
},
"supersededByCode": {
"$ref": "#/$defs/supersededByCode"
}
},
"required": [
"code",
"name",
"enumerationItemStatusCode"
]
},
"geoPoliticalContext": {
"description": "The Country/Region to which a concept applies",
"type": "object",
"properties": {
"iSO3166-2Code": {
"$ref": "#/$defs/iSO3166-2Code"
},
"geoNamesId": {
"$ref": "#/$defs/geoNamesId"
},
"description": {
"$ref": "#/$defs/description"
}
},
"required": [
"iSO3166-2Code"
]
},
"items": {
"description": "List of enumerated items within an enumeration.",
"type": "array",
"items": {
"$ref": "#/$defs/enumerationItem"
},
"minItems": 2
},
"label": {
"description": "A version of text represented in a specific language.",
"type": "object",
"properties": {
"languageCode": {
"$ref": "#/$defs/languageCode"
},
"name": {
"$ref": "#/$defs/name"
},
"description": {
"$ref": "#/$defs/description"
}
},
"required": [
"languageCode",
"name"
]
},
"numericDataTypeDefinitionAttributes": {
"description": "Attributes for Numeric Data Types",
"type": "object",
"properties": {
"numericDataTypeCode": {
"$ref": "#/$defs/numericDataTypeCode"
},
"unitOfMeasureCode": {
"$ref": "#/$defs/unitOfMeasureCode"
},
"default": {
"$ref": "#/$defs/default"
},
"minimum": {
"$ref": "#/$defs/minimum"
},
"maximum": {
"$ref": "#/$defs/maximum"
}
},
"required": [
"numericDataTypeCode",
"unitOfMeasureCode"
]
},
"standardDataTypeDefinitions": {
"description": "Top level entity for the artifact controlling the ADAPT Standard list of Data Type Definitions.",
"type": "object",
"properties": {
"version": {
"$ref": "#/$defs/version"
},
"dataTypeDefinitions": {
"description": "The list of standard Data Type Definitions",
"type": "array",
"items": {
"$ref": "#/$defs/dataTypeDefinition"
},
"minItems": 1
}
},
"required": [
"version",
"dataTypeDefinitions"
]
},
"textDataTypeDefinitionAttributes": {
"description": "Data Type Definition attributes specific to the text type",
"type": "object",
"properties": {
"validationRegularExpression": {
"$ref": "#/$defs/validationRegularExpression"
}
}
}
}
}