@openmrs/esm-patient-chart-app 11.3.1-pre.9593 → 11.3.1-pre.9597
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 +2 -2
- package/dist/2540.js.map +1 -1
- package/dist/3697.js.map +1 -1
- package/dist/517.js +1 -1
- package/dist/517.js.map +1 -1
- package/dist/5670.js +1 -1
- package/dist/5670.js.map +1 -1
- package/dist/6568.js.map +1 -1
- package/dist/7822.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-chart-app.js +1 -1
- package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +21 -21
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/clinical-views/encounter-list/encounter-list.component.tsx +16 -14
- package/src/clinical-views/hooks/useEncounterRows.ts +3 -1
- package/src/visit/visits-widget/past-visits-components/delete-encounter.modal.tsx +1 -1
- package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts +3 -1
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"entry": false,
|
|
80
80
|
"recorded": false,
|
|
81
81
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
82
|
-
"size":
|
|
82
|
+
"size": 4257077,
|
|
83
83
|
"sizes": {
|
|
84
|
-
"javascript":
|
|
84
|
+
"javascript": 4257077
|
|
85
85
|
},
|
|
86
86
|
"names": [],
|
|
87
87
|
"idHints": [
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"auxiliaryFiles": [
|
|
98
98
|
"517.js.map"
|
|
99
99
|
],
|
|
100
|
-
"hash": "
|
|
100
|
+
"hash": "75d2a6d85c6f7185",
|
|
101
101
|
"childrenByOrder": {}
|
|
102
102
|
},
|
|
103
103
|
{
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"auxiliaryFiles": [
|
|
194
194
|
"868.js.map"
|
|
195
195
|
],
|
|
196
|
-
"hash": "
|
|
196
|
+
"hash": "d9426c7b247a4b14",
|
|
197
197
|
"childrenByOrder": {}
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -484,9 +484,9 @@
|
|
|
484
484
|
"initial": false,
|
|
485
485
|
"entry": false,
|
|
486
486
|
"recorded": false,
|
|
487
|
-
"size":
|
|
487
|
+
"size": 465413,
|
|
488
488
|
"sizes": {
|
|
489
|
-
"javascript":
|
|
489
|
+
"javascript": 465329,
|
|
490
490
|
"consume-shared": 84
|
|
491
491
|
},
|
|
492
492
|
"names": [],
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"auxiliaryFiles": [
|
|
501
501
|
"2540.js.map"
|
|
502
502
|
],
|
|
503
|
-
"hash": "
|
|
503
|
+
"hash": "4bf54190fa8b5208",
|
|
504
504
|
"childrenByOrder": {}
|
|
505
505
|
},
|
|
506
506
|
{
|
|
@@ -741,7 +741,7 @@
|
|
|
741
741
|
"auxiliaryFiles": [
|
|
742
742
|
"3697.js.map"
|
|
743
743
|
],
|
|
744
|
-
"hash": "
|
|
744
|
+
"hash": "0e18bab7eea29723",
|
|
745
745
|
"childrenByOrder": {}
|
|
746
746
|
},
|
|
747
747
|
{
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
"auxiliaryFiles": [
|
|
994
994
|
"4754.js.map"
|
|
995
995
|
],
|
|
996
|
-
"hash": "
|
|
996
|
+
"hash": "edde9e5e9ebbe54b",
|
|
997
997
|
"childrenByOrder": {}
|
|
998
998
|
},
|
|
999
999
|
{
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
"auxiliaryFiles": [
|
|
1176
1176
|
"5670.js.map"
|
|
1177
1177
|
],
|
|
1178
|
-
"hash": "
|
|
1178
|
+
"hash": "516715690127e70a",
|
|
1179
1179
|
"childrenByOrder": {}
|
|
1180
1180
|
},
|
|
1181
1181
|
{
|
|
@@ -1353,9 +1353,9 @@
|
|
|
1353
1353
|
"initial": false,
|
|
1354
1354
|
"entry": false,
|
|
1355
1355
|
"recorded": false,
|
|
1356
|
-
"size":
|
|
1356
|
+
"size": 111784,
|
|
1357
1357
|
"sizes": {
|
|
1358
|
-
"javascript":
|
|
1358
|
+
"javascript": 111784
|
|
1359
1359
|
},
|
|
1360
1360
|
"names": [],
|
|
1361
1361
|
"idHints": [],
|
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
"auxiliaryFiles": [
|
|
1370
1370
|
"6568.js.map"
|
|
1371
1371
|
],
|
|
1372
|
-
"hash": "
|
|
1372
|
+
"hash": "74196ad711fc8171",
|
|
1373
1373
|
"childrenByOrder": {}
|
|
1374
1374
|
},
|
|
1375
1375
|
{
|
|
@@ -1657,9 +1657,9 @@
|
|
|
1657
1657
|
"initial": false,
|
|
1658
1658
|
"entry": false,
|
|
1659
1659
|
"recorded": false,
|
|
1660
|
-
"size":
|
|
1660
|
+
"size": 67004,
|
|
1661
1661
|
"sizes": {
|
|
1662
|
-
"javascript":
|
|
1662
|
+
"javascript": 67004
|
|
1663
1663
|
},
|
|
1664
1664
|
"names": [],
|
|
1665
1665
|
"idHints": [],
|
|
@@ -1673,7 +1673,7 @@
|
|
|
1673
1673
|
"auxiliaryFiles": [
|
|
1674
1674
|
"7822.js.map"
|
|
1675
1675
|
],
|
|
1676
|
-
"hash": "
|
|
1676
|
+
"hash": "79a4fc1b5cb31246",
|
|
1677
1677
|
"childrenByOrder": {}
|
|
1678
1678
|
},
|
|
1679
1679
|
{
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
"auxiliaryFiles": [
|
|
1883
1883
|
"8487.js.map"
|
|
1884
1884
|
],
|
|
1885
|
-
"hash": "
|
|
1885
|
+
"hash": "f24e5d4eb4bee2ff",
|
|
1886
1886
|
"childrenByOrder": {}
|
|
1887
1887
|
},
|
|
1888
1888
|
{
|
|
@@ -1936,10 +1936,10 @@
|
|
|
1936
1936
|
"initial": true,
|
|
1937
1937
|
"entry": true,
|
|
1938
1938
|
"recorded": false,
|
|
1939
|
-
"size":
|
|
1939
|
+
"size": 528632,
|
|
1940
1940
|
"sizes": {
|
|
1941
1941
|
"consume-shared": 378,
|
|
1942
|
-
"javascript":
|
|
1942
|
+
"javascript": 503035,
|
|
1943
1943
|
"share-init": 588,
|
|
1944
1944
|
"runtime": 24631
|
|
1945
1945
|
},
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
"auxiliaryFiles": [
|
|
1957
1957
|
"main.js.map"
|
|
1958
1958
|
],
|
|
1959
|
-
"hash": "
|
|
1959
|
+
"hash": "48c52996853c6f8a",
|
|
1960
1960
|
"childrenByOrder": {}
|
|
1961
1961
|
},
|
|
1962
1962
|
{
|
|
@@ -2057,7 +2057,7 @@
|
|
|
2057
2057
|
"auxiliaryFiles": [
|
|
2058
2058
|
"openmrs-esm-patient-chart-app.js.map"
|
|
2059
2059
|
],
|
|
2060
|
-
"hash": "
|
|
2060
|
+
"hash": "3683be8b47d7e97b",
|
|
2061
2061
|
"childrenByOrder": {}
|
|
2062
2062
|
},
|
|
2063
2063
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","optionalBackendDependencies":{"emrapi":{"version":">=2.0.0 <4.0.0","feature":{"flagName":"emrapi-module","label":"EMR API Module","description":"This module, if installed, provides core EMR business logic."}}},"extensions":[{"name":"charts-summary-dashboard","component":"patientSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":0,"meta":{"slot":"patient-chart-summary-dashboard-slot","path":"Patient Summary"},"online":true,"offline":true},{"name":"encounter-list","component":"encounterListTableTabs","online":true,"offline":true},{"name":"start-visit-button","component":"startVisitActionButton","slot":"patient-actions-slot","online":true,"offline":true},{"name":"clinical-views-summary","component":"clinicalViewsSummary","online":true,"offline":true},{"name":"stop-visit-button","component":"stopVisitActionButton","slot":"patient-actions-slot","online":true,"offline":true},{"name":"mark-alive-button","slot":"patient-actions-slot","component":"markPatientAliveActionButton","online":true,"offline":true},{"name":"stop-visit-button-patient-search","slot":"patient-search-actions-slot","component":"stopVisitPatientSearchActionButton","online":true,"offline":true},{"name":"delete-visit-button","slot":"patient-actions-slot","component":"deleteVisitActionMenuButton","online":true,"offline":true},{"name":"delete-visit-button","slot":"patient-search-actions-slot","component":"deleteVisitActionMenuButton","online":true,"offline":true},{"name":"mark-patient-deceased-button","slot":"patient-actions-slot","component":"markPatientDeceasedActionButton","online":true,"offline":true},{"name":"encounters-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"encountersSummaryDashboardLink","meta":{"slot":"patient-chart-encounters-dashboard-slot","path":"Visits","layoutMode":"anchored"},"order":5,"online":true,"offline":true},{"name":"past-visits-detail-overview","slot":"patient-chart-encounters-dashboard-slot","component":"pastVisitsDetailOverview","order":1,"meta":{"title":"Visits","view":"visits"},"online":true,"offline":true},{"name":"patient-details-tile","slot":"visit-form-header-slot","component":"patientDetailsTile","order":1,"online":true,"offline":true},{"name":"start-visit-button-patient-search","slot":"start-visit-button-slot","component":"startVisitPatientSearchActionButton","online":true,"offline":true},{"name":"visit-attribute-tags","slot":"patient-banner-tags-slot","component":"visitAttributeTags","online":true,"offline":true},{"name":"current-visit-summary","component":"currentVisitSummary","online":true,"offline":true,"meta":{"fullWidth":true}},{"name":"edit-visit-action-button","slot":"visit-detail-overview-actions","component":"editVisitDetailsActionButton","online":true,"offline":true,"order":0},{"name":"delete-visit-action-button","slot":"visit-detail-overview-actions","component":"deleteVisitActionButton","online":true,"offline":true,"order":1},{"name":"active-visit-action-button","slot":"active-visit-actions","component":"activeVisitActionsComponent","online":true,"offline":true,"order":1},{"name":"visit-context-header","slot":"visit-context-header-slot","component":"visitContextHeader"},{"name":"retrospective-date-time-picker","slot":"restrospective-date-time-picker-slot","component":"retrospectiveDateTimePicker"}],"featureFlags":[{"description":"Features to enter data for past visits. Includes the 'Edit Past Visit' button in the start visit dialog, and the 'Add Past Visit' button in the patient header","flagName":"rde","label":"Retrospective Data Entry"},{"description":"When enabled, encounter summaries will display the full form layout instead of a simple observation list.","flagName":"enable-embedded-form-view","label":"Enable Embedded Form View"}],"modals":[{"name":"delete-encounter-modal","component":"deleteEncounterModal"},{"name":"delete-visit-dialog","component":"deleteVisitModal"},{"name":"end-visit-dialog","component":"endVisitModal"},{"name":"mark-patient-alive-modal","component":"markPatientAliveModal"},{"name":"modify-visit-date-dialog","component":"modifyVisitDateModal"},{"name":"start-visit-dialog","component":"startVisitModal"},{"name":"visit-context-switcher","component":"visitContextSwitcherModal"}],"pages":[{"component":"root","routeRegex":"^patient/.+/chart","online":true,"offline":true}],"workspaces2":[{"name":"mark-patient-deceased-workspace-form","component":"markPatientDeceasedForm","window":"mark-patient-deceased"},{"name":"start-visit-workspace-form","component":"startVisitWorkspace","window":"start-visit"},{"name":"patient-chart-appointments-form-workspace","component":"@openmrs/esm-appointments-app#exportedAppointmentsFormWorkspace","window":"patient-chart-appointment-form"}],"workspaceWindows2":[{"name":"start-visit","group":"patient-chart"},{"name":"mark-patient-deceased","group":"patient-chart"},{"name":"patient-chart-appointment-form","group":"patient-chart"}],"workspaceGroups2":[{"name":"patient-chart"}],"version":"11.3.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","optionalBackendDependencies":{"emrapi":{"version":">=2.0.0 <4.0.0","feature":{"flagName":"emrapi-module","label":"EMR API Module","description":"This module, if installed, provides core EMR business logic."}}},"extensions":[{"name":"charts-summary-dashboard","component":"patientSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":0,"meta":{"slot":"patient-chart-summary-dashboard-slot","path":"Patient Summary"},"online":true,"offline":true},{"name":"encounter-list","component":"encounterListTableTabs","online":true,"offline":true},{"name":"start-visit-button","component":"startVisitActionButton","slot":"patient-actions-slot","online":true,"offline":true},{"name":"clinical-views-summary","component":"clinicalViewsSummary","online":true,"offline":true},{"name":"stop-visit-button","component":"stopVisitActionButton","slot":"patient-actions-slot","online":true,"offline":true},{"name":"mark-alive-button","slot":"patient-actions-slot","component":"markPatientAliveActionButton","online":true,"offline":true},{"name":"stop-visit-button-patient-search","slot":"patient-search-actions-slot","component":"stopVisitPatientSearchActionButton","online":true,"offline":true},{"name":"delete-visit-button","slot":"patient-actions-slot","component":"deleteVisitActionMenuButton","online":true,"offline":true},{"name":"delete-visit-button","slot":"patient-search-actions-slot","component":"deleteVisitActionMenuButton","online":true,"offline":true},{"name":"mark-patient-deceased-button","slot":"patient-actions-slot","component":"markPatientDeceasedActionButton","online":true,"offline":true},{"name":"encounters-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"encountersSummaryDashboardLink","meta":{"slot":"patient-chart-encounters-dashboard-slot","path":"Visits","layoutMode":"anchored"},"order":5,"online":true,"offline":true},{"name":"past-visits-detail-overview","slot":"patient-chart-encounters-dashboard-slot","component":"pastVisitsDetailOverview","order":1,"meta":{"title":"Visits","view":"visits"},"online":true,"offline":true},{"name":"patient-details-tile","slot":"visit-form-header-slot","component":"patientDetailsTile","order":1,"online":true,"offline":true},{"name":"start-visit-button-patient-search","slot":"start-visit-button-slot","component":"startVisitPatientSearchActionButton","online":true,"offline":true},{"name":"visit-attribute-tags","slot":"patient-banner-tags-slot","component":"visitAttributeTags","online":true,"offline":true},{"name":"current-visit-summary","component":"currentVisitSummary","online":true,"offline":true,"meta":{"fullWidth":true}},{"name":"edit-visit-action-button","slot":"visit-detail-overview-actions","component":"editVisitDetailsActionButton","online":true,"offline":true,"order":0},{"name":"delete-visit-action-button","slot":"visit-detail-overview-actions","component":"deleteVisitActionButton","online":true,"offline":true,"order":1},{"name":"active-visit-action-button","slot":"active-visit-actions","component":"activeVisitActionsComponent","online":true,"offline":true,"order":1},{"name":"visit-context-header","slot":"visit-context-header-slot","component":"visitContextHeader"},{"name":"retrospective-date-time-picker","slot":"restrospective-date-time-picker-slot","component":"retrospectiveDateTimePicker"}],"featureFlags":[{"description":"Features to enter data for past visits. Includes the 'Edit Past Visit' button in the start visit dialog, and the 'Add Past Visit' button in the patient header","flagName":"rde","label":"Retrospective Data Entry"},{"description":"When enabled, encounter summaries will display the full form layout instead of a simple observation list.","flagName":"enable-embedded-form-view","label":"Enable Embedded Form View"}],"modals":[{"name":"delete-encounter-modal","component":"deleteEncounterModal"},{"name":"delete-visit-dialog","component":"deleteVisitModal"},{"name":"end-visit-dialog","component":"endVisitModal"},{"name":"mark-patient-alive-modal","component":"markPatientAliveModal"},{"name":"modify-visit-date-dialog","component":"modifyVisitDateModal"},{"name":"start-visit-dialog","component":"startVisitModal"},{"name":"visit-context-switcher","component":"visitContextSwitcherModal"}],"pages":[{"component":"root","routeRegex":"^patient/.+/chart","online":true,"offline":true}],"workspaces2":[{"name":"mark-patient-deceased-workspace-form","component":"markPatientDeceasedForm","window":"mark-patient-deceased"},{"name":"start-visit-workspace-form","component":"startVisitWorkspace","window":"start-visit"},{"name":"patient-chart-appointments-form-workspace","component":"@openmrs/esm-appointments-app#exportedAppointmentsFormWorkspace","window":"patient-chart-appointment-form"}],"workspaceWindows2":[{"name":"start-visit","group":"patient-chart"},{"name":"mark-patient-deceased","group":"patient-chart"},{"name":"patient-chart-appointment-form","group":"patient-chart"}],"workspaceGroups2":[{"name":"patient-chart"}],"version":"11.3.1-pre.9597"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-chart-app",
|
|
3
|
-
"version": "11.3.1-pre.
|
|
3
|
+
"version": "11.3.1-pre.9597",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient dashboard microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-chart-app.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"swr": "2.x"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@openmrs/esm-patient-common-lib": "11.3.1-pre.
|
|
58
|
+
"@openmrs/esm-patient-common-lib": "11.3.1-pre.9597",
|
|
59
59
|
"@types/uuid": "^9.0.4",
|
|
60
60
|
"webpack": "^5.99.9"
|
|
61
61
|
},
|
|
@@ -170,8 +170,8 @@ export const EncounterList: React.FC<EncounterListProps> = ({
|
|
|
170
170
|
e.preventDefault();
|
|
171
171
|
if (column.link.handleNavigate) {
|
|
172
172
|
column.link.handleNavigate(encounter);
|
|
173
|
-
} else {
|
|
174
|
-
|
|
173
|
+
} else if (column.link?.getUrl) {
|
|
174
|
+
navigate({ to: column.link.getUrl(encounter) });
|
|
175
175
|
}
|
|
176
176
|
}}
|
|
177
177
|
>
|
|
@@ -198,18 +198,20 @@ export const EncounterList: React.FC<EncounterListProps> = ({
|
|
|
198
198
|
itemText={t(actionItem.label)}
|
|
199
199
|
onClick={(e) => {
|
|
200
200
|
e.preventDefault();
|
|
201
|
-
actionItem.mode === 'delete'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
201
|
+
if (actionItem.mode === 'delete') {
|
|
202
|
+
handleDeleteEncounter(encounter.uuid, encounter.encounterType.name);
|
|
203
|
+
} else {
|
|
204
|
+
launchEncounterForm(
|
|
205
|
+
formsJson,
|
|
206
|
+
visit,
|
|
207
|
+
actionItem.mode,
|
|
208
|
+
onFormSave,
|
|
209
|
+
encounter.uuid,
|
|
210
|
+
actionItem.intent,
|
|
211
|
+
patientUuid,
|
|
212
|
+
requireActiveVisitForEncounterTile,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
213
215
|
}}
|
|
214
216
|
/>
|
|
215
217
|
)
|
|
@@ -6,7 +6,7 @@ import styles from './delete-encounter.scss';
|
|
|
6
6
|
interface DeleteEncounterConfirmationProps {
|
|
7
7
|
encounterTypeName?: string;
|
|
8
8
|
close: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
9
|
-
onConfirmation:
|
|
9
|
+
onConfirmation: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const DeleteEncounterConfirmation: React.FC<DeleteEncounterConfirmationProps> = ({
|
package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts
CHANGED
|
@@ -58,7 +58,9 @@ export function usePaginatedEncounters(patientUuid: string, encounterType: strin
|
|
|
58
58
|
url.searchParams.set('patient', patientUuid);
|
|
59
59
|
url.searchParams.set('v', customRep);
|
|
60
60
|
url.searchParams.set('order', 'desc');
|
|
61
|
-
|
|
61
|
+
if (encounterType) {
|
|
62
|
+
url.searchParams.set('encounterType', encounterType);
|
|
63
|
+
}
|
|
62
64
|
return useOpenmrsPagination<Encounter>(patientUuid ? url : null, pageSize);
|
|
63
65
|
}
|
|
64
66
|
|