@ampath/esm-patient-registration-app 6.0.1-pre.235 → 6.0.1-pre.239

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.235"}
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.239"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampath/esm-patient-registration-app",
3
- "version": "6.0.1-pre.235",
3
+ "version": "6.0.1-pre.239",
4
4
  "description": "Patient registration microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/ampath-esm-patient-registration-app.js",
6
6
  "main": "src/index.ts",
@@ -158,7 +158,7 @@ function CodedObsField({ concept, answerConceptSetUuid, label, required, customC
158
158
  const fieldName = `obs.${concept.uuid}`;
159
159
 
160
160
  const { data: conceptAnswers, isLoading: isLoadingConceptAnswers } = useConceptAnswers(
161
- customConceptAnswers.length ? '' : answerConceptSetUuid ?? concept.uuid,
161
+ customConceptAnswers.length ? '' : (answerConceptSetUuid ?? concept.uuid),
162
162
  );
163
163
 
164
164
  const answers = useMemo(
@@ -115,9 +115,9 @@ export function handleClientRegistryResponse(
115
115
  'a8a0a00e-1350-11df-a1f1-0026b9348838':
116
116
  clientResponse.client.occupation === undefined || clientResponse.client.occupation === null
117
117
  ? 'a899e0ac-1350-11df-a1f1-0026b9348838'
118
- : props.values.concepts.find(
118
+ : (props.values.concepts.find(
119
119
  (concept) => concept.display?.toLowerCase() === clientResponse.client.occupation?.toLowerCase(),
120
- )?.uuid ?? 'a8aaf3e2-1350-11df-a1f1-0026b9348838',
120
+ )?.uuid ?? 'a8aaf3e2-1350-11df-a1f1-0026b9348838'),
121
121
  },
122
122
  });
123
123
  dispose();
@@ -115,9 +115,9 @@ export function handleClientRegistryResponse(
115
115
  'a8a0a00e-1350-11df-a1f1-0026b9348838':
116
116
  clientResponse.client.occupation === undefined || clientResponse.client.occupation === null
117
117
  ? 'a899e0ac-1350-11df-a1f1-0026b9348838'
118
- : props.values.concepts.find(
118
+ : (props.values.concepts.find(
119
119
  (concept) => concept.display?.toLowerCase() === clientResponse.client.occupation?.toLowerCase(),
120
- )?.uuid ?? 'a8aaf3e2-1350-11df-a1f1-0026b9348838',
120
+ )?.uuid ?? 'a8aaf3e2-1350-11df-a1f1-0026b9348838'),
121
121
  },
122
122
  });
123
123
  dispose();