@ampath/esm-patient-registration-app 6.0.1-pre.66 → 6.0.1-pre.68
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 +1 -1
- package/dist/621.js +1 -1
- package/dist/ampath-esm-patient-registration-app.js.buildmanifest.json +2 -2
- package/dist/main.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/patient-registration/patient-registration.resource.ts +1 -1
- package/src/patient-verification/patient-verification-hook.tsx +1 -1
- package/src/patient-verification/patient-verification-utils.ts +2 -2
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
|
+
{"$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.68"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampath/esm-patient-registration-app",
|
|
3
|
-
"version": "6.0.1-pre.
|
|
3
|
+
"version": "6.0.1-pre.68",
|
|
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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
|
|
2
2
|
import { type Patient, type Relationship, type PatientIdentifier, type Encounter } from './patient-registration.types';
|
|
3
3
|
|
|
4
|
-
export const uuidIdentifier = '
|
|
4
|
+
export const uuidIdentifier = '58a4732e-1359-11df-a1f1-0026b9348838';
|
|
5
5
|
export const uuidTelephoneNumber = '72a759a8-1359-11df-a1f1-0026b9348838';
|
|
6
6
|
|
|
7
7
|
function dataURItoFile(dataURI: string) {
|
|
@@ -123,7 +123,7 @@ async function postToRegistry(
|
|
|
123
123
|
const savedValues = await clientRegistryResponse.json();
|
|
124
124
|
const nupiIdentifier = {
|
|
125
125
|
['nationalUniquePatientIdentifier']: {
|
|
126
|
-
identifierTypeUuid: '
|
|
126
|
+
identifierTypeUuid: 'cba702b9-4664-4b43-83f1-9ab473cbd64d',
|
|
127
127
|
identifierName: 'National Unique patient identifier',
|
|
128
128
|
identifierValue: savedValues['clientNumber'],
|
|
129
129
|
initialValue: savedValues['clientNumber'],
|
|
@@ -60,13 +60,13 @@ export function handleClientRegistryResponse(
|
|
|
60
60
|
selectedSource: { uuid: '', name: '' },
|
|
61
61
|
preferred: false,
|
|
62
62
|
required: false,
|
|
63
|
-
identifierTypeUuid: '
|
|
63
|
+
identifierTypeUuid: '58a47054-1359-11df-a1f1-0026b9348838',
|
|
64
64
|
identifierName: 'National ID',
|
|
65
65
|
identifierValue: identifications !== undefined && identifications[0]?.identificationNumber,
|
|
66
66
|
},
|
|
67
67
|
|
|
68
68
|
['nationalUniquePatientIdentifier']: {
|
|
69
|
-
identifierTypeUuid: '
|
|
69
|
+
identifierTypeUuid: 'cba702b9-4664-4b43-83f1-9ab473cbd64d',
|
|
70
70
|
identifierName: 'National Unique patient identifier',
|
|
71
71
|
identifierValue: clientNumber,
|
|
72
72
|
initialValue: clientNumber,
|