@ampath/esm-patient-registration-app 9.2.0-next.16 → 9.2.0-next.17

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.
@@ -1021,9 +1021,9 @@
1021
1021
  "initial": false,
1022
1022
  "entry": false,
1023
1023
  "recorded": false,
1024
- "size": 596574,
1024
+ "size": 596578,
1025
1025
  "sizes": {
1026
- "javascript": 596574
1026
+ "javascript": 596578
1027
1027
  },
1028
1028
  "names": [],
1029
1029
  "idHints": [],
@@ -1037,7 +1037,7 @@
1037
1037
  "auxiliaryFiles": [
1038
1038
  "6996.js.map"
1039
1039
  ],
1040
- "hash": "7cf12a4b3644ef4d",
1040
+ "hash": "3901055b6e87f795",
1041
1041
  "childrenByOrder": {}
1042
1042
  },
1043
1043
  {
@@ -1183,9 +1183,9 @@
1183
1183
  "initial": false,
1184
1184
  "entry": false,
1185
1185
  "recorded": false,
1186
- "size": 145350,
1186
+ "size": 145342,
1187
1187
  "sizes": {
1188
- "javascript": 145350
1188
+ "javascript": 145342
1189
1189
  },
1190
1190
  "names": [],
1191
1191
  "idHints": [],
@@ -1198,7 +1198,7 @@
1198
1198
  "auxiliaryFiles": [
1199
1199
  "7821.js.map"
1200
1200
  ],
1201
- "hash": "455a5506a666d723",
1201
+ "hash": "6c2346a19666b11e",
1202
1202
  "childrenByOrder": {}
1203
1203
  },
1204
1204
  {
@@ -1341,10 +1341,10 @@
1341
1341
  "initial": true,
1342
1342
  "entry": true,
1343
1343
  "recorded": false,
1344
- "size": 2659242,
1344
+ "size": 2659234,
1345
1345
  "sizes": {
1346
1346
  "consume-shared": 168,
1347
- "javascript": 2636706,
1347
+ "javascript": 2636698,
1348
1348
  "share-init": 336,
1349
1349
  "runtime": 22032
1350
1350
  },
@@ -1361,7 +1361,7 @@
1361
1361
  "auxiliaryFiles": [
1362
1362
  "main.js.map"
1363
1363
  ],
1364
- "hash": "385fef1627221e3b",
1364
+ "hash": "a69072abf048c79a",
1365
1365
  "childrenByOrder": {}
1366
1366
  },
1367
1367
  {
@@ -1370,9 +1370,9 @@
1370
1370
  "entry": false,
1371
1371
  "recorded": false,
1372
1372
  "reason": "split chunk (cache group: default)",
1373
- "size": 116181,
1373
+ "size": 116185,
1374
1374
  "sizes": {
1375
- "javascript": 116181
1375
+ "javascript": 116185
1376
1376
  },
1377
1377
  "names": [],
1378
1378
  "idHints": [],
@@ -1386,7 +1386,7 @@
1386
1386
  "auxiliaryFiles": [
1387
1387
  "8882.js.map"
1388
1388
  ],
1389
- "hash": "cb5f5ace8708c9e3",
1389
+ "hash": "4563b20f964c79e4",
1390
1390
  "childrenByOrder": {}
1391
1391
  },
1392
1392
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.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,"order":30},{"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":"clientRegistryVerificationTag","name":"client-registry-verification-tag","slot":"patient-banner-tags-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"name":"client-registry-verification-modal","component":"clientRegistryVerificationModal"}],"version":"9.2.0-next.16"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.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,"order":30},{"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":"clientRegistryVerificationTag","name":"client-registry-verification-tag","slot":"patient-banner-tags-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"name":"client-registry-verification-modal","component":"clientRegistryVerificationModal"}],"version":"9.2.0-next.17"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampath/esm-patient-registration-app",
3
- "version": "9.2.0-next.16",
3
+ "version": "9.2.0-next.17",
4
4
  "description": "Patient registration microfrontend for O3",
5
5
  "browser": "dist/openmrs-esm-patient-registration-app.js",
6
6
  "main": "src/index.ts",
@@ -1,4 +1,4 @@
1
- const HIE_BASE_URL = 'https://ngx.ampath.or.ke/hie';
1
+ const HIE_BASE_URL = 'https://staging.ampath.or.ke/hie';
2
2
 
3
3
  export type RequestCustomOtpDto = {
4
4
  identificationNumber: string | number;
@@ -10,7 +10,7 @@ import {
10
10
  } from './client-registry.types';
11
11
  import { mapAmrsPatientRelationship } from './map-client-registry-to-form-utils';
12
12
 
13
- const HIE_BASE_URL = 'https://ngx.ampath.or.ke/hie';
13
+ const HIE_BASE_URL = 'https://staging.ampath.or.ke/hie';
14
14
 
15
15
  async function postJson<T>(url: string, payload: unknown): Promise<T> {
16
16
  const response = await fetch(url, {
@@ -47,21 +47,20 @@ export function saveEncounter(encounter: Encounter) {
47
47
 
48
48
  export function generateIdentifier(source: string) {
49
49
  const abortController = new AbortController();
50
- return openmrsFetch(`https://ngx.ampath.or.ke/amrs-id-generator/generateidentifier`, {
50
+
51
+ return openmrsFetch(`${restBaseUrl}/idgen/identifiersource/${source}/identifier`, {
51
52
  headers: {
52
53
  'Content-Type': 'application/json',
53
54
  },
54
55
  method: 'POST',
55
- body: {
56
- user: 1,
57
- },
56
+ body: {},
58
57
  signal: abortController.signal,
59
58
  });
60
59
  }
61
60
 
62
61
  export async function generateAmrsUniversalIdentifier() {
63
62
  const abortController = new AbortController();
64
- const resp = await openmrsFetch(`https://ngx.ampath.or.ke/amrs-id-generator/generateidentifier`, {
63
+ const resp = await openmrsFetch(`https://staging.ampath.or.ke/amrs-id-generator/generateidentifier`, {
65
64
  headers: {
66
65
  'Content-Type': 'application/json',
67
66
  },