@openmrs/esm-form-entry-app 11.3.1-pre.9452 → 11.3.1-pre.9458
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 +5 -5
- package/dist/{89284.c0acd2b835eddca3.js → 89284.d15c283f899702d9.js} +1 -1
- package/dist/{89284.c0acd2b835eddca3.js.map → 89284.d15c283f899702d9.js.map} +1 -1
- package/dist/{main.1ca4a8aa21a572c4.js → main.9596a352a1ad2dbd.js} +1 -1
- package/dist/{main.1ca4a8aa21a572c4.js.map → main.9596a352a1ad2dbd.js.map} +1 -1
- package/dist/openmrs-esm-form-entry-app.js +1 -1
- package/dist/openmrs-esm-form-entry-app.js.buildmanifest.json +9 -9
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/app/form-submission/form-submission.service.ts +5 -2
- package/src/app/offline/sync.ts +2 -1
|
@@ -11644,12 +11644,12 @@
|
|
|
11644
11644
|
],
|
|
11645
11645
|
"files": [
|
|
11646
11646
|
"main.c9fedbf76d90aec0.css",
|
|
11647
|
-
"main.
|
|
11647
|
+
"main.9596a352a1ad2dbd.js"
|
|
11648
11648
|
],
|
|
11649
11649
|
"auxiliaryFiles": [
|
|
11650
|
-
"main.
|
|
11650
|
+
"main.9596a352a1ad2dbd.js.map"
|
|
11651
11651
|
],
|
|
11652
|
-
"hash": "
|
|
11652
|
+
"hash": "9a04fd1d22c1ebd8",
|
|
11653
11653
|
"childrenByOrder": {}
|
|
11654
11654
|
},
|
|
11655
11655
|
{
|
|
@@ -15024,7 +15024,7 @@
|
|
|
15024
15024
|
"auxiliaryFiles": [
|
|
15025
15025
|
"openmrs-esm-form-entry-app.js.map"
|
|
15026
15026
|
],
|
|
15027
|
-
"hash": "
|
|
15027
|
+
"hash": "a955c0e89b288622",
|
|
15028
15028
|
"childrenByOrder": {}
|
|
15029
15029
|
},
|
|
15030
15030
|
{
|
|
@@ -27367,9 +27367,9 @@
|
|
|
27367
27367
|
"initial": false,
|
|
27368
27368
|
"entry": false,
|
|
27369
27369
|
"recorded": false,
|
|
27370
|
-
"size":
|
|
27370
|
+
"size": 6078284,
|
|
27371
27371
|
"sizes": {
|
|
27372
|
-
"javascript":
|
|
27372
|
+
"javascript": 6078284
|
|
27373
27373
|
},
|
|
27374
27374
|
"names": [
|
|
27375
27375
|
"bootstrap"
|
|
@@ -27380,12 +27380,12 @@
|
|
|
27380
27380
|
"main"
|
|
27381
27381
|
],
|
|
27382
27382
|
"files": [
|
|
27383
|
-
"89284.
|
|
27383
|
+
"89284.d15c283f899702d9.js"
|
|
27384
27384
|
],
|
|
27385
27385
|
"auxiliaryFiles": [
|
|
27386
|
-
"89284.
|
|
27386
|
+
"89284.d15c283f899702d9.js.map"
|
|
27387
27387
|
],
|
|
27388
|
-
"hash": "
|
|
27388
|
+
"hash": "f5687c0b08d45774",
|
|
27389
27389
|
"childrenByOrder": {}
|
|
27390
27390
|
},
|
|
27391
27391
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","o3forms":"*"},"extensions":[{"name":"form-widget","component":"formWidget","slot":"form-widget-slot","online":true,"offline":true}],"version":"11.3.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","o3forms":"*"},"extensions":[{"name":"form-widget","component":"formWidget","slot":"form-widget-slot","online":true,"offline":true}],"version":"11.3.1-pre.9458"}
|
package/package.json
CHANGED
|
@@ -2,8 +2,9 @@ import { Injectable } from '@angular/core';
|
|
|
2
2
|
|
|
3
3
|
import { forkJoin, Observable, of, from } from 'rxjs';
|
|
4
4
|
import { catchError, map, mergeMap, switchMap } from 'rxjs/operators';
|
|
5
|
-
import { EncounterAdapter,
|
|
5
|
+
import { EncounterAdapter, Form, PersonAttribuAdapter } from '@openmrs/ngx-formentry';
|
|
6
6
|
import { NodeBase } from '@openmrs/ngx-formentry/form-entry/form-factory/form-node';
|
|
7
|
+
import { Form as ReactForm } from '@openmrs/esm-patient-common-lib';
|
|
7
8
|
import { EncounterResourceService } from '../openmrs-api/encounter-resource.service';
|
|
8
9
|
import { PersonResourceService } from '../openmrs-api/person-resource.service';
|
|
9
10
|
import { FormDataSourceService } from '../form-data-source/form-data-source.service';
|
|
@@ -103,7 +104,9 @@ export class FormSubmissionService {
|
|
|
103
104
|
const result: FormSubmissionResult = { encounter: encounter as any };
|
|
104
105
|
const syncItem: PatientFormSyncItemContent = {
|
|
105
106
|
_id: syncItemIdToEdit ?? v4(),
|
|
106
|
-
|
|
107
|
+
form: {
|
|
108
|
+
uuid: form.schema.uuid,
|
|
109
|
+
} as ReactForm,
|
|
107
110
|
encounter,
|
|
108
111
|
_payloads: {
|
|
109
112
|
encounterCreate,
|
package/src/app/offline/sync.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getFullSynchronizationItems, queueSynchronizationItem, SyncItem } from '@openmrs/esm-framework';
|
|
2
2
|
import { Encounter, EncounterCreate, PersonUpdate } from '../types';
|
|
3
|
+
import { type Form } from '@openmrs/esm-patient-common-lib';
|
|
3
4
|
|
|
4
5
|
// General note:
|
|
5
6
|
// The synchronization handler which actually synchronizes the queued items has been moved to `esm-patient-forms-app`.
|
|
@@ -10,7 +11,7 @@ export const patientFormSyncItem = 'patient-form';
|
|
|
10
11
|
|
|
11
12
|
export interface PatientFormSyncItemContent {
|
|
12
13
|
_id: string;
|
|
13
|
-
|
|
14
|
+
form: Form;
|
|
14
15
|
encounter: Partial<Encounter>;
|
|
15
16
|
_payloads: {
|
|
16
17
|
encounterCreate?: EncounterCreate;
|