@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,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { Button, ModalBody, ModalFooter, ModalHeader, Select, Form, TextInput, SelectItem } from '@carbon/react';
|
|
4
|
+
|
|
5
|
+
interface ClientRegistryVerificationPropsModal {
|
|
6
|
+
close(): void;
|
|
7
|
+
Component: React.FC;
|
|
8
|
+
props: object;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const ClientRegistryVerificationModal: React.FC<ClientRegistryVerificationPropsModal> = ({
|
|
12
|
+
close,
|
|
13
|
+
Component,
|
|
14
|
+
props,
|
|
15
|
+
}) => {
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<ModalHeader closeModal={close} title={t('hieClientVerificationTitle', 'HIE Client Verification')} />
|
|
20
|
+
<ModalBody>
|
|
21
|
+
<Component {...props} />
|
|
22
|
+
</ModalBody>
|
|
23
|
+
</>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default ClientRegistryVerificationModal;
|
package/translations/en.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"addRelationshipButtonText": "Add Relationship",
|
|
4
4
|
"addressHeader": "Address",
|
|
5
5
|
"allFieldsRequiredText": "All fields are required unless marked optional",
|
|
6
|
+
"amrsDependants": "AMRS dependants",
|
|
6
7
|
"autoGeneratedPlaceholderText": "Auto-generated",
|
|
7
8
|
"birthdayNotInTheFuture": "Birthday cannot be in future",
|
|
8
9
|
"birthdayNotOver140YearsAgo": "Birthday cannot be more than 140 years ago",
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"confirmDiscardChangesTitle": "Are you sure you want to discard these changes?",
|
|
21
22
|
"confirmIdentifierDeletionText": "Are you sure you want to remove this identifier?",
|
|
22
23
|
"contactSection": "Contact Details",
|
|
24
|
+
"createDependant": "Create dependant in AMRS",
|
|
23
25
|
"createNewPatient": "Create new patient",
|
|
24
26
|
"dateOfBirthLabelText": "Date of birth",
|
|
25
27
|
"deathCauseRequired": "Cause of death is required",
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"genderUnspecified": "Gender unspecified",
|
|
61
63
|
"givenNameLabelText": "First Name",
|
|
62
64
|
"givenNameRequired": "Given name is required",
|
|
65
|
+
"hieClientVerificationTitle": "HIE Client Verification",
|
|
63
66
|
"identifierValueRequired": "Identifier value is required",
|
|
64
67
|
"idFieldLabelText": "Identifiers",
|
|
65
68
|
"IDInstructions": "Select the identifiers you'd like to add for this patient:",
|
|
@@ -101,6 +104,7 @@
|
|
|
101
104
|
"searchAddress": "Search address",
|
|
102
105
|
"searchIdentifierPlaceholder": "Search identifier",
|
|
103
106
|
"searchLocationPersonAttribute": "Search location",
|
|
107
|
+
"selectAmrsRelation": "Select AMRS relation",
|
|
104
108
|
"selectAnOption": "Select an option",
|
|
105
109
|
"sexFieldLabelText": "Sex",
|
|
106
110
|
"source": "Source",
|