@ampath/esm-patient-registration-app 9.2.0-next.15 → 9.2.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/4300.js +1 -1
- package/dist/4395.js +1 -0
- package/dist/4395.js.map +1 -0
- package/dist/5239.js +1 -1
- package/dist/5239.js.LICENSE.txt +10 -0
- package/dist/5239.js.map +1 -1
- package/dist/6276.js +1 -1
- package/dist/6687.js +1 -0
- package/dist/6687.js.map +1 -0
- package/dist/6996.js +1 -0
- package/dist/6996.js.map +1 -0
- package/dist/7125.js +2 -0
- package/dist/7125.js.map +1 -0
- package/dist/7821.js +1 -0
- package/dist/7821.js.map +1 -0
- package/dist/8414.js +1 -0
- package/dist/8414.js.map +1 -0
- package/dist/8434.js +1 -1
- package/dist/8882.js +1 -0
- package/dist/8882.js.map +1 -0
- package/dist/9898.js +1 -0
- package/dist/9898.js.map +1 -0
- package/dist/9933.js +2 -0
- package/dist/{2615.js.LICENSE.txt → 9933.js.LICENSE.txt} +9 -0
- package/dist/9933.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-registration-app.js +1 -1
- package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +226 -150
- package/dist/openmrs-esm-patient-registration-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/patient-registration/client-registry/client-registry.resource.ts +1 -1
- package/src/patient-registration/client-registry-search/client-registry-dependant-details.component.tsx +237 -0
- package/src/patient-registration/client-registry-search/client-registry-details.component.tsx +111 -0
- package/src/patient-registration/client-registry-search/client-registry-patient-details.component.tsx +234 -0
- package/src/patient-registration/client-registry-search/client-registry-search.component.tsx +234 -0
- package/src/patient-registration/client-registry-search/client-registry-verification-tag.component.tsx +78 -0
- package/src/patient-registration/client-registry-search/client-registry.resource.ts +135 -0
- package/src/patient-registration/client-registry-search/client-registry.types.ts +243 -0
- package/src/patient-registration/client-registry-search/map-client-registry-to-form-utils.ts +590 -0
- package/src/patient-registration/field/field.component.tsx +3 -0
- package/src/patient-registration/field/id/id-field.component.tsx +1 -1
- package/src/patient-registration/field/id/id-field.test.tsx +1 -1
- package/src/patient-registration/form-manager.test.ts +1 -0
- package/src/patient-registration/patient-registration.component.tsx +0 -1
- package/src/patient-registration/patient-registration.resource.ts +1 -1
- package/src/patient-registration/patient-registration.scss +4 -0
- package/src/routes.json +12 -1
- package/src/widgets/client-registry-verification.modal.tsx +27 -0
- package/translations/en.json +4 -0
- package/dist/2450.js +0 -1
- package/dist/2450.js.map +0 -1
- package/dist/2615.js +0 -2
- package/dist/2615.js.map +0 -1
- package/dist/320.js +0 -2
- package/dist/320.js.LICENSE.txt +0 -8
- package/dist/320.js.map +0 -1
- package/dist/3474.js +0 -2
- package/dist/3474.js.LICENSE.txt +0 -8
- package/dist/3474.js.map +0 -1
- package/dist/7071.js +0 -1
- package/dist/7071.js.map +0 -1
- package/dist/729.js +0 -2
- package/dist/729.js.map +0 -1
- /package/dist/{729.js.LICENSE.txt → 7125.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export type RequestCustomOtpDto = {
|
|
2
|
+
identificationNumber: string | number;
|
|
3
|
+
identificationType: string;
|
|
4
|
+
locationUuid: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export interface RequestCustomOtpResponse {
|
|
8
|
+
message: string;
|
|
9
|
+
sessionId: string;
|
|
10
|
+
maskedPhone: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ValidateHieCustomOtpDto {
|
|
14
|
+
sessionId: string;
|
|
15
|
+
otp: number | string;
|
|
16
|
+
locationUuid: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ValidateCustomOtpResponse {
|
|
20
|
+
message: string;
|
|
21
|
+
isValid?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ClientRegistrySearchRequest = {
|
|
25
|
+
identificationNumber: string | number;
|
|
26
|
+
identificationType: string;
|
|
27
|
+
locationUuid: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ClientRegistryBody = {
|
|
31
|
+
id: string;
|
|
32
|
+
first_name: string;
|
|
33
|
+
middle_name: string;
|
|
34
|
+
last_name: string;
|
|
35
|
+
gender: string;
|
|
36
|
+
date_of_birth: string;
|
|
37
|
+
other_identifications: Array<{
|
|
38
|
+
identification_number: string;
|
|
39
|
+
identification_type: string;
|
|
40
|
+
}>;
|
|
41
|
+
dependants: Array<ClientRegistryDependantBody>;
|
|
42
|
+
citizenship: string;
|
|
43
|
+
kra_pin: string;
|
|
44
|
+
civil_status: string;
|
|
45
|
+
email: string;
|
|
46
|
+
phone: string;
|
|
47
|
+
place_of_birth: string;
|
|
48
|
+
country: string;
|
|
49
|
+
county: string;
|
|
50
|
+
sub_county: string;
|
|
51
|
+
ward: string;
|
|
52
|
+
village_estate: string;
|
|
53
|
+
building_house_no: string;
|
|
54
|
+
latitude: string;
|
|
55
|
+
longitude: string;
|
|
56
|
+
identification_number: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type ClientRegistryDependantBody = {
|
|
60
|
+
relationship: string;
|
|
61
|
+
total: number;
|
|
62
|
+
result: Array<ClientRegistryBody>;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export interface CustomRelationship {
|
|
66
|
+
uuid: string;
|
|
67
|
+
display: string;
|
|
68
|
+
relative: string;
|
|
69
|
+
relatedPersonUuid: string;
|
|
70
|
+
relationshipType: string;
|
|
71
|
+
relationshipTypeUuId: string;
|
|
72
|
+
relationshipTypeName: string;
|
|
73
|
+
relatedPerson: any;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface AmrsPerson {
|
|
77
|
+
uuid: string;
|
|
78
|
+
identifiers: Identifier[];
|
|
79
|
+
display: string;
|
|
80
|
+
person: {
|
|
81
|
+
uuid: string;
|
|
82
|
+
display: string;
|
|
83
|
+
gender: string;
|
|
84
|
+
age: number;
|
|
85
|
+
birthdate: string;
|
|
86
|
+
birthdateEstimated: boolean;
|
|
87
|
+
dead: boolean;
|
|
88
|
+
deathDate?: any;
|
|
89
|
+
causeOfDeath?: any;
|
|
90
|
+
preferredAddress: {
|
|
91
|
+
address1: string;
|
|
92
|
+
address2: string;
|
|
93
|
+
address3: string;
|
|
94
|
+
address4: string;
|
|
95
|
+
address5: string;
|
|
96
|
+
address6: string;
|
|
97
|
+
address7: string;
|
|
98
|
+
cityVillage: string;
|
|
99
|
+
country: string;
|
|
100
|
+
postalCode: string;
|
|
101
|
+
stateProvince: string;
|
|
102
|
+
countyDistrict: string;
|
|
103
|
+
latitude: string;
|
|
104
|
+
longitude: string;
|
|
105
|
+
};
|
|
106
|
+
preferredName: {
|
|
107
|
+
display: string;
|
|
108
|
+
uuid: string;
|
|
109
|
+
givenName: string;
|
|
110
|
+
middleName: string;
|
|
111
|
+
familyName: string;
|
|
112
|
+
};
|
|
113
|
+
attributes: Array<Attributes>;
|
|
114
|
+
identifiers: Identifier[];
|
|
115
|
+
voided: boolean;
|
|
116
|
+
birthtime?: any;
|
|
117
|
+
deathdateEstimated: boolean;
|
|
118
|
+
resourceVersion: string;
|
|
119
|
+
};
|
|
120
|
+
attributes: { value: string; attributeType: { uuid: string; display: string } }[];
|
|
121
|
+
voided: boolean;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface Address {
|
|
125
|
+
preferred: boolean;
|
|
126
|
+
address1: string;
|
|
127
|
+
cityVillage: string;
|
|
128
|
+
country: string;
|
|
129
|
+
postalCode: string;
|
|
130
|
+
stateProvince: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface Identifier {
|
|
134
|
+
uuid: string;
|
|
135
|
+
display: string;
|
|
136
|
+
identifier: string;
|
|
137
|
+
identifierType: {
|
|
138
|
+
uuid: string;
|
|
139
|
+
display: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface Attributes {
|
|
144
|
+
uuid: string;
|
|
145
|
+
display: string;
|
|
146
|
+
value: {
|
|
147
|
+
uuid: string;
|
|
148
|
+
display: string;
|
|
149
|
+
};
|
|
150
|
+
attributeType: {
|
|
151
|
+
uuid: string;
|
|
152
|
+
display: string;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type ClientRegistrySearchResponse = Array<ClientRegistryBody>;
|
|
157
|
+
|
|
158
|
+
export enum HieIdentificationType {
|
|
159
|
+
NationalID = 'National ID',
|
|
160
|
+
SHANumber = 'SHA Number',
|
|
161
|
+
HouseholdNumber = 'Household Number',
|
|
162
|
+
RefugeeID = 'Refugee ID',
|
|
163
|
+
AlienID = 'Alien ID',
|
|
164
|
+
MandateNumber = 'Mandate Number',
|
|
165
|
+
Cr = 'id',
|
|
166
|
+
TemporaryDependantID = 'Temporary Dependant ID',
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const HOUSE_HOLD_NUMBER_UUID = 'bb74b20e-dcee-4f59-bdf1-2dffc3abf106';
|
|
170
|
+
const SHA_UUID = 'cf5362b2-8049-4442-b3c6-36f870e320cb';
|
|
171
|
+
const CLIENT_REGISTRY_NO_UUID = 'e88dc246-3614-4ee3-8141-1f2a83054e72';
|
|
172
|
+
const NATIONAL_ID_UUID = '58a47054-1359-11df-a1f1-0026b9348838';
|
|
173
|
+
const PROVIDER_NATIONAL_ID_UUID = '4550df92-c684-4597-8ab8-d6b10eabdcfb';
|
|
174
|
+
const REFUGEE_ID_UUID = '465e81af-8d69-47e9-9127-53a94adc75fb';
|
|
175
|
+
const MANDATE_NUMBER_UUID = 'aae2d097-20ba-43ca-9b71-fd8296068f39';
|
|
176
|
+
const ALIEN_ID_UUID = '12f5b147-3403-4a73-913d-7ded9ffec094';
|
|
177
|
+
const TEMPORARY_DEPENDANT_ID_UUID = 'a3d34214-93e8-4faf-bf4d-0272eee079eb';
|
|
178
|
+
const AMRS_UNIVERSAL_ID_UUID = '58a4732e-1359-11df-a1f1-0026b9348838';
|
|
179
|
+
const UPI_NUMBER_UUID = 'cba702b9-4664-4b43-83f1-9ab473cbd64d';
|
|
180
|
+
|
|
181
|
+
export const IdentifierTypesUuids = {
|
|
182
|
+
HOUSE_HOLD_NUMBER_UUID,
|
|
183
|
+
SHA_UUID,
|
|
184
|
+
CLIENT_REGISTRY_NO_UUID,
|
|
185
|
+
NATIONAL_ID_UUID,
|
|
186
|
+
PROVIDER_NATIONAL_ID_UUID,
|
|
187
|
+
REFUGEE_ID_UUID,
|
|
188
|
+
MANDATE_NUMBER_UUID,
|
|
189
|
+
ALIEN_ID_UUID,
|
|
190
|
+
TEMPORARY_DEPENDANT_ID_UUID,
|
|
191
|
+
AMRS_UNIVERSAL_ID_UUID,
|
|
192
|
+
UPI_NUMBER_UUID,
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export enum HieAttributeType {
|
|
196
|
+
KRAPin = 'kra_pin',
|
|
197
|
+
CivilStatus = 'civil_status',
|
|
198
|
+
Email = 'email',
|
|
199
|
+
Phone = 'phone',
|
|
200
|
+
PlaceOfBirth = 'place_of_birth',
|
|
201
|
+
Citizenship = 'citizenship',
|
|
202
|
+
Cr = 'id',
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
const CONTACT_PHONE_NUMBER_UUID = '72a759a8-1359-11df-a1f1-0026b9348838';
|
|
206
|
+
const CITIZENSHIP_UUID = '72a759a8-1359-11df-a1f1-0026b9348838';
|
|
207
|
+
const CONTACT_EMAIL_ADDRESS_UUID = '2f65dbcb-3e58-45a3-8be7-fd1dc9aa0faa';
|
|
208
|
+
const ALTERNATIVE_CONTACT_PHONE_NUMBER_UUID = 'c725f524-c14a-4468-ac19-4a0e6661c930';
|
|
209
|
+
const KRA_PIN_UUID = 'ae683747-b3fc-4e5c-bad3-c3be743b248f';
|
|
210
|
+
const CIVIL_STATUS_UUID = '8d871f2a-c2cc-11de-8d13-0010c6dffd0f';
|
|
211
|
+
const CLIENT_REGISTRY_ID_UUID = 'e068e02b-faac-4baf-bd58-fe6e0c29a81f';
|
|
212
|
+
const PLACE_OF_BIRTH_UUID = '8d8718c2-c2cc-11de-8d13-0010c6dffd0f';
|
|
213
|
+
const EMAIL_UUID = '2f65dbcb-3e58-45a3-8be7-fd1dc9aa0faa';
|
|
214
|
+
|
|
215
|
+
export const PersonAttributeTypeUuids = {
|
|
216
|
+
CONTACT_PHONE_NUMBER_UUID,
|
|
217
|
+
CITIZENSHIP_UUID,
|
|
218
|
+
CONTACT_EMAIL_ADDRESS_UUID,
|
|
219
|
+
ALTERNATIVE_CONTACT_PHONE_NUMBER_UUID,
|
|
220
|
+
KRA_PIN_UUID,
|
|
221
|
+
CIVIL_STATUS_UUID,
|
|
222
|
+
CLIENT_REGISTRY_ID_UUID,
|
|
223
|
+
PLACE_OF_BIRTH_UUID,
|
|
224
|
+
EMAIL_UUID,
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const PARENT_CHILD_UUID = '7878d348-1359-11df-a1f1-0026b9348838';
|
|
228
|
+
const AUNT_UNCLE_NIECE_NEPHEW_UUID = '7878dd3e-1359-11df-a1f1-0026b9348838';
|
|
229
|
+
const SPOUSE_UUID = '7878df3c-1359-11df-a1f1-0026b9348838';
|
|
230
|
+
const GRANDCHILD_GRANDPARENT_UUID = '7878e144-1359-11df-a1f1-0026b9348838';
|
|
231
|
+
const GUARDIAN_CHILD_UUD = '01bc0cf5-d428-427f-be13-305eb9cad7ba';
|
|
232
|
+
const FOSTER_CHILD_FOSTER_PARENT_UUID = '7878e52c-1359-11df-a1f1-0026b9348838';
|
|
233
|
+
const OTHER_NON_CODED_UUID = 'af78531e-98ab-41da-be3a-6a871ecbf8c0';
|
|
234
|
+
|
|
235
|
+
export const RelationshipTypeUuids = {
|
|
236
|
+
PARENT_CHILD_UUID,
|
|
237
|
+
AUNT_UNCLE_NIECE_NEPHEW_UUID,
|
|
238
|
+
SPOUSE_UUID,
|
|
239
|
+
GRANDCHILD_GRANDPARENT_UUID,
|
|
240
|
+
GUARDIAN_CHILD_UUD,
|
|
241
|
+
FOSTER_CHILD_FOSTER_PARENT_UUID,
|
|
242
|
+
OTHER_NON_CODED_UUID,
|
|
243
|
+
};
|