@kenyaemr/esm-patient-registration-app 8.0.3-pre.146 → 8.0.3-pre.151

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/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":"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}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal"},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal"},{"component":"hieConfirmationModal","name":"hie-confirmation-modal"}],"version":"8.0.3-pre.146"}
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":"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}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal"},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal"},{"component":"hieConfirmationModal","name":"hie-confirmation-modal"}],"version":"8.0.3-pre.151"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-patient-registration-app",
3
- "version": "8.0.3-pre.146",
3
+ "version": "8.0.3-pre.151",
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",
@@ -58,10 +58,10 @@ const HIEClientRegistry: React.FC<HIEClientRegistryProps> = ({ setInitialFormVal
58
58
  const dispose = showModal('empty-client-registry-modal', {
59
59
  onConfirm: () => dispose(),
60
60
  close: () => dispose(),
61
- title: t('clientRegistryEmpty', 'Create & Post Patient'),
61
+ title: t('clientRegistryEmptys', 'Create Patient'),
62
62
  message: t(
63
- 'patientNotFound',
64
- `No patient found with the provided ${data?.identifierType}. Proceed to register.`,
63
+ 'patientNotFounds',
64
+ `The patient records could not be found in the client registry, proceed to create patient or try again.`,
65
65
  ),
66
66
  });
67
67
  return;
@@ -42,11 +42,11 @@ class PatientMapper extends Mapper<HIEPatientResponse, FormValues> {
42
42
  const telecomAttributes = this.mapTelecomToAttributes(telecom);
43
43
  const updatedIdentifiers = this.mapIdentifiers(hiePatient, currentFormValues);
44
44
  const extensionAddressEntries = this.mapExtensionsToAddress(hiePatient?.entry[0]?.resource.extension);
45
-
45
+ // TODO: In the event isDead is true, additional information such as caused of death, date e.tc is required
46
46
  return {
47
- isDead: hiePatient?.entry[0]?.resource?.active || false,
48
- gender: hiePatient?.entry[0]?.resource.gender || '',
49
- birthdate: hiePatient?.entry[0]?.resource?.birthDate || '',
47
+ isDead: hiePatient?.entry[0]?.resource?.active ? false : true,
48
+ gender: hiePatient?.entry[0]?.resource.gender ?? '',
49
+ birthdate: hiePatient?.entry[0]?.resource?.birthDate ?? '',
50
50
  givenName,
51
51
  familyName,
52
52
  telephoneNumber: telecom.find((t) => t.system === 'phone')?.value || '',
@@ -12,6 +12,7 @@
12
12
  "cancel": "Cancel",
13
13
  "causeOfDeathInputLabel": "Cause of death",
14
14
  "clientRegistryEmpty": "Create & Post Patient",
15
+ "clientRegistryEmptys": "Create Patient",
15
16
  "clientRegistryError": "Error occurred while reaching the client registry",
16
17
  "clientRegistryErrorSubtitle": "Please proceed with registration contact system admin and try again later",
17
18
  "clientVerificationWithClientRegistry": "Client verification with client registry",
@@ -109,6 +110,7 @@
109
110
  "patientName": "Patient name",
110
111
  "patientNameKnown": "Patient's Name is Known?",
111
112
  "patientNotFound": "The patient records could not be found in Client registry, do you want to continue to create and post patient to registry",
113
+ "patientNotFounds": "The patient records could not be found in the client registry, proceed to create patient or try again.",
112
114
  "patientPhoneNUmber": "Patient Phone number",
113
115
  "patientRegistrationBreadcrumb": "Patient Registration",
114
116
  "patientVerificationFromHIE": "Patient verification from HIE",