-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
158 lines (158 loc) · 4.55 KB
/
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"validator": {
"$jsonSchema": {
"bsonType": "object",
"required": [
"id",
"fullName",
"nationalID",
"birthDate",
"phoneNumber",
"emailAddress"
],
"properties": {
"id": {
"bsonType": "int",
"description": "Patient's ID"
},
"fullName": {
"bsonType": "string",
"description": "Patient's name."
},
"nationalID": {
"bsonType": "string",
"description": "Patient's national ID"
},
"birthDate": {
"bsonType": "date",
"description": "Patient's birthdate."
},
"phoneNumber": {
"bsonType": "string",
"description": "Patient's phone number."
},
"emailAddress": {
"bsonType": "string",
"description": "Patient's email address."
},
"dateAdded": {
"bsonType": "date",
"description": "Date of patient registration in the database."
},
"lastUpdated": {
"bsonType": "date",
"description": "Date of last update for the patient's information."
},
"homeAddress": {
"bsonType": "string",
"description": "Patient's home address."
},
"zipCode": {
"bsonType": "int",
"description": "Patient's zip code."
},
"guardianInfo": {
"bsonType": "array",
"items": {
"bsonType": "object",
"properties": {
"subID": {
"bsonType": "int",
"description": "Guardian's ID (relative to the patient)."
},
"fullName": {
"bsonType": "string",
"description": "Guardian's full name."
},
"phoneNumber": {
"bsonType": "string",
"description": "Guardian's phone number."
},
"emailAddress": {
"bsonType": "string",
"description": "Guardian's email address."
},
"homeAddress": {
"bsonType": "string",
"description": "Guardian's home address."
}
}
},
"description": "Patient's guardian information."
},
"additionalInfo": {
"bsonType": "string",
"description": "Additional information about the patient."
},
"extraInfo": {
"bsonType": "array",
"items": {
"bsonType": "object",
"properties": {
"healthRecords": {
"bsonType": ["array"],
"description": "Patient's health records."
},
"diseaseHistory": {
"bsonType": ["array"],
"description": "Patient's disease history."
},
"bloodType": {
"bsonType": "string",
"description": "Patient's blood type."
},
"height": {
"bsonType": "decimal",
"description": "Patient's height (in meters)."
},
"weight": {
"bsonType": "decimal",
"description": "Patient's weight (in kilograms)."
},
"additionalInfo": {
"bsonType": "string",
"description": "Extra information about the patient."
}
}
}
},
"heartData": {
"bsonType": "array",
"items": {
"bsonType": "object",
"properties": {
"id": {
"bsonType": "int"
},
"bpm": {
"bsonType": "int"
},
"dt": {
"bsonType": "date"
}
}
},
"description": "Patient's heart rate data."
},
"oxygenData": {
"bsonType": "array",
"items": {
"bsonType": "object",
"properties": {
"id": {
"bsonType": "int"
},
"spo2": {
"bsonType": "string"
},
"dt": {
"bsonType": "date"
}
}
},
"description": "Patient's SpO2 data."
}
}
}
}
}