@kenyaemr/esm-patient-registration-app 6.0.1-pre.1.0.3 → 6.0.1-pre.1.0.4

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}],"version":"6.0.1-pre.1.0.2"}
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}],"version":"6.0.1-pre.1.0.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-patient-registration-app",
3
- "version": "6.0.1-pre.1.0.3",
3
+ "version": "6.0.1-pre.1.0.4",
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",
@@ -48,7 +48,7 @@ const PatientVerification: React.FC<PatientVerificationProps> = ({ props }) => {
48
48
  }
49
49
  };
50
50
 
51
- if (error) {
51
+ if (!error) {
52
52
  return (
53
53
  <Tile className={styles.errorWrapper}>
54
54
  <InlineNotification
@@ -54,8 +54,8 @@ const ConfirmPrompt: React.FC<ConfirmPromptProps> = ({ close, onConfirm, patient
54
54
  <PatientInfo label={t('age', 'Age')} value={age(patient?.dateOfBirth)} />
55
55
  <PatientInfo label={t('dateOfBirth', 'Date of birth')} value={formatDate(new Date(patient?.dateOfBirth))} />
56
56
  <PatientInfo label={t('gender', 'Gender')} value={capitalize(patient?.gender)} />
57
- <PatientInfo label={t('NUPI')} value={patient?.clientNumber} />
58
- <PatientInfo label={t('SHA Number')} value={'--'} />
57
+ <PatientInfo label={t('nupi', 'NUPI')} value={patient?.clientNumber} />
58
+ <PatientInfo label={t('shaNumber', 'SHA Number')} value={'--'} />
59
59
  </div>
60
60
  </div>
61
61
  </div>
@@ -65,7 +65,7 @@
65
65
  "negativeYears": "Negative years",
66
66
  "no": "No",
67
67
  "numberInNameDubious": "Number in name is dubious",
68
- "NUPI": "",
68
+ "nupi": "NUPI",
69
69
  "obsFieldUnknownDatatype": "Concept for obs field '{{fieldDefinitionId}}' has unknown datatype '{{datatypeName}}'",
70
70
  "optional": "optional",
71
71
  "other": "Other",
@@ -97,7 +97,7 @@
97
97
  "selectCountry": "Select country",
98
98
  "selectIdentifierType": "Select identifier type",
99
99
  "sexFieldLabelText": "Sex",
100
- "SHA Number": "",
100
+ "shaNumber": "SHA Number",
101
101
  "source": "Source",
102
102
  "stroke": "Stroke",
103
103
  "submitting": "Submitting",