@kenyaemr/esm-patient-registration-app 8.0.1-pre.105 → 8.0.1-pre.109
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/.turbo/turbo-build.log +2 -2
- package/dist/574.js +1 -1
- package/dist/830.js +1 -1
- package/dist/830.js.map +1 -1
- package/dist/kenyaemr-esm-patient-registration-app.js.buildmanifest.json +7 -7
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/client-registry/hie-client-registry/hie-resource.ts +4 -3
- package/src/client-registry/hie-client-registry/modal/confirm-hie.modal.tsx +2 -2
- package/translations/en.json +1 -1
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"modals":[{"component":"hieConfirmationModal","name":"hie-confirmation-modal"}],"version":"8.0.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"modals":[{"component":"hieConfirmationModal","name":"hie-confirmation-modal"}],"version":"8.0.1-pre.109"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenyaemr/esm-patient-registration-app",
|
|
3
|
-
"version": "8.0.1-pre.
|
|
3
|
+
"version": "8.0.1-pre.109",
|
|
4
4
|
"description": "Patient registration microfrontend for the OpenMRS SPA",
|
|
5
5
|
"browser": "dist/kenyaemr-esm-patient-registration-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -83,9 +83,10 @@ class PatientMapper extends Mapper<HIEPatient, FormValues> {
|
|
|
83
83
|
): Record<string, PatientIdentifierValue> {
|
|
84
84
|
const updatedIdentifiers: Record<string, PatientIdentifierValue> = { ...currentFormValues.identifiers };
|
|
85
85
|
|
|
86
|
-
// Map
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
// Map Social Health Authority Unique Identification Number to HIE Patient ID
|
|
87
|
+
// See https://github.com/palladiumkenya/openmrs-module-kenyaemr/blob/1e1d281eaba8041c45318e60ca0730449b8e4197/api/src/main/distro/metadata/identifierTypes.xml#L33
|
|
88
|
+
updatedIdentifiers.socialHealthAuthorityIdentificationNumber = {
|
|
89
|
+
...currentFormValues.identifiers['socialHealthAuthorityIdentificationNumber'],
|
|
89
90
|
identifierValue: hiePatient.id,
|
|
90
91
|
};
|
|
91
92
|
|
|
@@ -44,14 +44,14 @@ const HIEConfirmationModal: React.FC<HIEConfirmationModalProps> = ({ closeModal,
|
|
|
44
44
|
state={{ patientName: `${firstName} ${lastName}` }}
|
|
45
45
|
/>
|
|
46
46
|
<div style={{ width: '100%', marginLeft: '0.625rem' }}>
|
|
47
|
-
<PatientInfo label={t('healthID', 'HealthID')} value={patient
|
|
47
|
+
<PatientInfo label={t('healthID', 'HealthID')} value={patient?.id} />
|
|
48
48
|
<PatientInfo label={t('patientName', 'Patient name')} value={`${firstName} ${lastName}`} />
|
|
49
49
|
<PatientInfo label={t('age', 'Age')} value={age(patient?.birthDate)} />
|
|
50
50
|
<PatientInfo label={t('dateOfBirth', 'Date of birth')} value={formatDate(new Date(patient?.birthDate))} />
|
|
51
51
|
<PatientInfo label={t('gender', 'Gender')} value={capitalize(patient?.gender)} />
|
|
52
52
|
<PatientInfo
|
|
53
53
|
label={t('maritalStatus', 'Marital status')}
|
|
54
|
-
value={patient
|
|
54
|
+
value={patient?.maritalStatus?.coding?.map((m) => m.code).join('')}
|
|
55
55
|
/>
|
|
56
56
|
<PatientInfo label={t('dependents', 'Dependents')} value="--" />
|
|
57
57
|
</div>
|
package/translations/en.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"deleteIdentifierTooltip": "Delete",
|
|
34
34
|
"deleteRelationshipTooltipText": "Delete",
|
|
35
35
|
"demographicsSection": "Basic Info",
|
|
36
|
-
"
|
|
36
|
+
"dependents": "Dependents",
|
|
37
37
|
"discard": "Discard",
|
|
38
38
|
"discardModalBody": "The changes you made to this patient's details have not been saved. Discard changes?",
|
|
39
39
|
"discardModalHeader": "Confirm Discard Changes",
|