@kenyaemr/esm-patient-registration-app 8.0.1-pre.105 → 8.0.1-pre.107

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":"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.105"}
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.107"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-patient-registration-app",
3
- "version": "8.0.1-pre.105",
3
+ "version": "8.0.1-pre.107",
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",
@@ -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.id} />
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.maritalStatus.coding.map((m) => m.code).join('')}
54
+ value={patient?.maritalStatus?.coding?.map((m) => m.code).join('')}
55
55
  />
56
56
  <PatientInfo label={t('dependents', 'Dependents')} value="--" />
57
57
  </div>
@@ -33,7 +33,7 @@
33
33
  "deleteIdentifierTooltip": "Delete",
34
34
  "deleteRelationshipTooltipText": "Delete",
35
35
  "demographicsSection": "Basic Info",
36
- "dependants": "Dependants",
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",