Skip to content

Commit 8f63cb3

Browse files
authored
Merge branch 'main' into add-openfn-to-platform
2 parents 9819edb + dffb00a commit 8f63cb3

File tree

20 files changed

+726
-111
lines changed

20 files changed

+726
-111
lines changed
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
{
2+
"fields": [
3+
{
4+
"fieldName": "aux_id",
5+
"fieldType": "String",
6+
"fieldLabel": "AUX ID",
7+
"groups": ["identifiers", "record_details"],
8+
"scope": [
9+
"/patient-record/:uid",
10+
"/golden-record/:uid",
11+
"/record-details/:uid",
12+
"/search/custom"
13+
],
14+
"readOnly": true,
15+
"accessLevel": []
16+
},
17+
{
18+
"fieldName": "givenName",
19+
"fieldType": "String",
20+
"fieldLabel": "First Name",
21+
"groups": [
22+
"name",
23+
"demographics",
24+
"filter",
25+
"linked_records",
26+
"record_details"
27+
],
28+
"scope": [
29+
"/notifications/match-details",
30+
"/record-details/:uid/relink",
31+
"/search/simple",
32+
"/search/custom",
33+
"/search-results/golden",
34+
"/search-results/patient",
35+
"/record-details/:uid",
36+
"/browse-records"
37+
],
38+
"validation": {
39+
"required": true,
40+
"onErrorMessage": "The family name cannot be empty"
41+
},
42+
"accessLevel": []
43+
},
44+
{
45+
"fieldName": "familyName",
46+
"fieldType": "String",
47+
"fieldLabel": "Last Name",
48+
"groups": [
49+
"name",
50+
"demographics",
51+
"filter",
52+
"linked_records",
53+
"record_details"
54+
],
55+
"scope": [
56+
"/record-details/:uid",
57+
"/notifications/match-details",
58+
"/record-details/:uid/relink",
59+
"/search/simple",
60+
"/search/custom",
61+
"/search-results/golden",
62+
"/search-results/patient",
63+
"/browse-records"
64+
],
65+
"validation": {
66+
"required": true,
67+
"onErrorMessage": "The family name cannot be empty"
68+
},
69+
"accessLevel": []
70+
},
71+
{
72+
"fieldName": "gender",
73+
"fieldType": "String",
74+
"fieldLabel": "Gender",
75+
"groups": [
76+
"demographics",
77+
"filter",
78+
"sub_heading",
79+
"linked_records",
80+
"record_details"
81+
],
82+
"scope": [
83+
"/record-details/:uid",
84+
"/notifications/match-details",
85+
"/record-details/:uid/relink",
86+
"/search/custom",
87+
"/browse-records"
88+
],
89+
"validation": {
90+
"required": true,
91+
"regex": "^(male|female)$",
92+
"onErrorMessage": "The Gender cannot be empty and should either be male, female or neutral"
93+
},
94+
"accessLevel": []
95+
},
96+
{
97+
"fieldName": "dob",
98+
"fieldType": "Date",
99+
"fieldLabel": "Date of Birth",
100+
"groups": [
101+
"demographics",
102+
"filter",
103+
"sub_heading",
104+
"linked_records",
105+
"record_details"
106+
],
107+
"scope": [
108+
"/record-details/:uid",
109+
"/notifications/match-details",
110+
"/record-details/:uid/relink",
111+
"/search/simple",
112+
"/search/custom",
113+
"/search-results/golden",
114+
"/search-results/patient",
115+
"/browse-records"
116+
],
117+
"accessLevel": [],
118+
"validation": {
119+
"required": true,
120+
"onErrorMessage": "Date of birth cannot be empty"
121+
}
122+
},
123+
{
124+
"fieldName": "city",
125+
"fieldType": "String",
126+
"fieldLabel": "City",
127+
"groups": ["demographics", "filter", "linked_records", "record_details"],
128+
"scope": [
129+
"/record-details/:uid",
130+
"/notifications/match-details",
131+
"/record-details/:uid/relink",
132+
"/search/custom",
133+
"/browse-records"
134+
],
135+
"accessLevel": [],
136+
"validation": {
137+
"required": true,
138+
"onErrorMessage": "Date of birth cannot be empty"
139+
}
140+
},
141+
{
142+
"fieldName": "phoneNumber",
143+
"fieldType": "String",
144+
"fieldLabel": "Phone No",
145+
"groups": ["demographics", "filter", "linked_records", "record_details"],
146+
"scope": [
147+
"/record-details/:uid",
148+
"/notifications/match-details",
149+
"/record-details/:uid/relink",
150+
"/search/custom",
151+
"/browse-records"
152+
],
153+
"accessLevel": []
154+
},
155+
{
156+
"fieldName": "nationalId",
157+
"fieldType": "String",
158+
"fieldLabel": "National ID",
159+
"groups": ["identifiers", "linked_records", "record_details"],
160+
"scope": [
161+
"/record-details/:uid",
162+
"/notifications/match-details",
163+
"/record-details/:uid/relink",
164+
"/search/simple",
165+
"/search/custom",
166+
"/search-results/golden",
167+
"/search-results/patient",
168+
"/browse-records"
169+
],
170+
"accessLevel": [],
171+
"validation": {
172+
"required": true,
173+
"regex": "",
174+
"onErrorMessage": "The national Id cannot be empty"
175+
}
176+
}
177+
],
178+
"systemFields": [
179+
{
180+
"fieldName": "recordType",
181+
"fieldType": "String",
182+
"fieldLabel": "Record Type",
183+
"groups": ["none"],
184+
"scope": ["/notifications/match-details", "/record-details/:uid/relink"],
185+
"accessLevel": []
186+
},
187+
{
188+
"fieldName": "uid",
189+
"fieldType": "String",
190+
"fieldLabel": "UID",
191+
"groups": [
192+
"identifiers",
193+
"sub_heading",
194+
"linked_records",
195+
"record_details",
196+
"filter"
197+
],
198+
"scope": [
199+
"/notifications/match-details",
200+
"/record-details/:uid/relink",
201+
"/search-results/golden",
202+
"/search-results/patient",
203+
"/record-details/:uid",
204+
"/browse-records"
205+
],
206+
"accessLevel": []
207+
},
208+
{
209+
"fieldName": "createdAt",
210+
"fieldType": "String",
211+
"fieldLabel": "Created At",
212+
"groups": ["linked_records", "record_details", "audit_trail"],
213+
"scope": ["/record-details/:uid", "/browse-records"],
214+
"accessLevel": []
215+
},
216+
{
217+
"fieldName": "sourceId",
218+
"fieldType": "SourceId",
219+
"fieldLabel": "Source Id",
220+
"groups": ["registering_facility", "linked_records", "record_details"],
221+
"scope": ["/record-details/:uid", "/browse-records"],
222+
"accessLevel": []
223+
},
224+
{
225+
"fieldName": "score",
226+
"fieldType": "Number",
227+
"fieldLabel": "Score",
228+
"groups": ["none", "record_details"],
229+
"scope": [
230+
"/patient-record/:uid",
231+
"/golden-record/:uid",
232+
"/record-details/:uid",
233+
"/notifications/match-details",
234+
"/record-details/:uid/relink"
235+
],
236+
"accessLevel": []
237+
}
238+
]
239+
}

0 commit comments

Comments
 (0)