-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease-schema.json
144 lines (144 loc) · 4.98 KB
/
release-schema.json
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
{
"definitions": {
"Item": {
"properties": {
"activeIngredients": {
"title": "Active ingredients",
"description": "The active ingredients, typically chemical compounds or biological substances.",
"type": "array",
"items": {
"$ref": "#/definitions/ActiveIngredient"
},
"wholeListMerge": true,
"uniqueItems": true,
"minItems": 1
},
"dosageForm": {
"title": "Dosage form",
"description": "The dosage form in which the medicine is available, from the dosageForm codelist.",
"type": [
"string",
"null"
],
"codelist": "dosageForm.csv",
"openCodelist": true,
"minLength": 1
},
"administrationRoute": {
"title": "Administration route",
"description": "The route by which the medicine can be administered, from the administrationRoute codelist.",
"type": [
"string",
"null"
],
"codelist": "administrationRoute.csv",
"openCodelist": true,
"minLength": 1
},
"immediateContainer": {
"title": "Immediate container",
"description": "The immediate container for the medicine. Also known as: presentation, presentation form, package.",
"$ref": "#/definitions/ImmediateContainer"
}
}
},
"ActiveIngredient": {
"title": "Active ingredient",
"description": "An active ingredient, typically a chemical compound or biological substance.",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of the active ingredient. It is recommended to use the lowercase Latin name from the International Nonproprietary Names (INN). Also known as: generic name, drug, substance name, active substance.",
"type": [
"string",
"null"
],
"minLength": 1
},
"strength": {
"title": "Strength",
"description": "The strength of the active ingredient. Also known as: concentration, potency.",
"$ref": "#/definitions/Quantity"
}
},
"minProperties": 1
},
"ImmediateContainer": {
"title": "Immediate container",
"description": "The immediate container for the medicine. Also known as: presentation, presentation form, package.",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The common name of the container, from the immediate container codelist.",
"type": [
"string",
"null"
],
"codelist": "immediateContainer.csv",
"openCodelist": true,
"minLength": 1
},
"capacity": {
"title": "Capacity",
"description": "The storage capacity of the container.",
"$ref": "#/definitions/Quantity"
}
},
"minProperties": 1
},
"Quantity": {
"title": "Quantity",
"description": "The quantity of a thing.",
"type": "object",
"properties": {
"unit": {
"title": "Unit",
"description": "The unit of measurement for the quantity.",
"$ref": "#/definitions/SimpleUnit"
},
"value": {
"title": "Value",
"description": "The quantity, as a multiple of the unit of measurement. The quantity is expressed in interval notation, for example: \"[10,10]\" for 10 units, \"[1,10]\" for 1 to 10 units, or \"[10,INF[\" for 10 or more units.",
"type": [
"string",
"number",
"null"
],
"pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$"
}
},
"minProperties": 1
},
"SimpleUnit": {
"title": "Simple unit",
"description": "A unit of measurement.",
"type": "object",
"properties": {
"scheme": {
"title": "Scheme",
"description": "The scheme or codelist from which the identifier for the unit of measurement is taken, using the open [unitClassificationScheme](https://standard.open-contracting.org/latest/en/schema/codelists/#unit-classification-scheme) codelist. 'UNCEFACT' is recommended.",
"type": [
"string",
"null"
],
"codelist": "unitClassificationScheme.csv",
"openCodelist": true,
"minLength": 1
},
"id": {
"title": "ID",
"description": "The identifier for the unit of measurement, taken from the scheme. Refer to the [unitClassificationScheme](https://standard.open-contracting.org/latest/en/schema/codelists/#unit-classification-scheme) codelist for details of how to find identifiers within schemes.",
"type": [
"string",
"null"
],
"versionId": true,
"minLength": 1
}
},
"minProperties": 1
}
}
}