Skip to content

Commit 560a289

Browse files
committed
some more work on json schema
1 parent db8f3e6 commit 560a289

File tree

5 files changed

+78
-11
lines changed

5 files changed

+78
-11
lines changed

src/ndhapi/schema-design/schemas/HumanName.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
},
2020
"text": {
2121
"description": "Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.",
22-
"$ref": "#/definitions/string"
22+
"type": "string"
2323
},
2424
"family": {
2525
"description": "The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.",
26-
"$ref": "#/definitions/string"
26+
"type": "string"
2727
},
2828
"given": {
2929
"description": "Given (first) name.",
3030
"items": {
31-
"$ref": "#/definitions/string"
31+
"type": "string"
3232
},
3333
"type": "array"
3434
},
@@ -61,7 +61,7 @@
6161
},
6262
"period": {
6363
"description": "Indicates the period of time when this name was valid for the named person.",
64-
"$ref": "#/definitions/Period"
64+
"$ref": "Period.schema.json"
6565
}
6666
},
6767
"additionalProperties": false
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"title": "Identifier",
3+
"description": "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.",
4+
"properties": {
5+
"id": {
6+
"description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
7+
"$ref": "#/definitions/string"
8+
},
9+
"extension": {
10+
"description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
11+
"items": {
12+
"$ref": "#/definitions/Extension"
13+
},
14+
"type": "array"
15+
},
16+
"use": {
17+
"description": "The purpose of this identifier.",
18+
"enum": [
19+
"usual",
20+
"official",
21+
"temp",
22+
"secondary",
23+
"old"
24+
]
25+
},
26+
"type": {
27+
"description": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
28+
"$ref": "#/definitions/CodeableConcept"
29+
},
30+
"system": {
31+
"description": "Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique.",
32+
"$ref": "#/definitions/uri"
33+
},
34+
"value": {
35+
"description": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
36+
"$ref": "#/definitions/string"
37+
},
38+
"period": {
39+
"description": "Time period during which identifier is/was valid for use.",
40+
"$ref": "#/definitions/Period"
41+
},
42+
"assigner": {
43+
"description": "Organization that issued/manages the identifier.",
44+
"$ref": "#/definitions/Reference"
45+
}
46+
},
47+
"type": "object"
48+
}

src/ndhapi/schema-design/schemas/InsurancePlan.schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "string"
1919
},
2020
"type": {
21-
"description": "Type of plan. For example, \"Platinum\" or \"High Deductable\".",
21+
"description": "Kind of product",
2222
"$ref": "enums/InsurancePlanType.schema.json"
2323
},
2424
"product": {
@@ -68,7 +68,8 @@
6868
},
6969
"groupSize": {
7070
"description": "Number of participants enrolled in the plan.",
71-
"$ref": "#/definitions/positiveInt"
71+
"type": "integer",
72+
"minimum": 1
7273
},
7374
"cost": {
7475
"description": "Value of the cost.",

src/ndhapi/schema-design/schemas/Practitioner.schema.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@
1111
"minimum": 1000000000,
1212
"maximum": 9999999999
1313
},
14+
"identifier": {
15+
"description": "An identifier for the person as this agent"
16+
},
1417
"name": {
1518
"description": "The name(s) associated with the practitioner.",
1619
"type": "object",
1720
"$ref": "HumanName.schema.json"
1821
},
19-
"sex": {
20-
"description": "Practitioner's sex (e.g. male or female)",
22+
"gender": {
23+
"description": "The gender of the practitioner used for administrative purposes.",
2124
"enum": [
22-
"F",
23-
"M"
25+
"Female",
26+
"Male",
27+
"Other",
28+
"Unknwon"
2429
]
2530
},
2631
"birthDate": {
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
{
2-
"TODO": "Fill in with insurance plan types"
2+
"title": "InsurancePlanType",
3+
"description": "Insurance plan types",
4+
"enum": [
5+
"Medical",
6+
"Dental",
7+
"Mental Health",
8+
"Substance Abuse",
9+
"Vision",
10+
"Drug",
11+
"Short Term",
12+
"Long Term Care",
13+
"Hospice",
14+
"Home Health"
15+
]
316
}

0 commit comments

Comments
 (0)