@openmrs/esm-ward-app 9.2.1-pre.7455 → 9.2.1-pre.7466
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/1011.js +1 -1
- package/dist/1011.js.map +1 -1
- package/dist/1369.js +1 -1
- package/dist/1369.js.map +1 -1
- package/dist/1554.js +1 -0
- package/dist/1554.js.map +1 -0
- package/dist/1895.js +1 -1
- package/dist/1895.js.map +1 -1
- package/dist/2117.js +1 -1
- package/dist/2117.js.map +1 -1
- package/dist/2640.js +1 -1
- package/dist/2640.js.map +1 -1
- package/dist/3624.js +1 -1
- package/dist/3948.js +11 -0
- package/dist/3948.js.map +1 -0
- package/dist/4285.js +1 -1
- package/dist/4285.js.map +1 -1
- package/dist/4373.js +1 -1
- package/dist/6026.js +1 -1
- package/dist/6026.js.map +1 -1
- package/dist/6199.js +1 -1
- package/dist/6285.js +1 -0
- package/dist/6285.js.map +1 -0
- package/dist/6515.js +1 -1
- package/dist/7073.js +1 -0
- package/dist/7073.js.map +1 -0
- package/dist/7607.js +1 -1
- package/dist/7715.js +1 -1
- package/dist/7715.js.map +1 -1
- package/dist/{3954.js → 8622.js} +17 -17
- package/dist/8622.js.map +1 -0
- package/dist/9727.js +1 -1
- package/dist/9727.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-ward-app.js +3 -3
- package/dist/openmrs-esm-ward-app.js.buildmanifest.json +126 -102
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/index.ts +5 -0
- package/src/routes.json +6 -0
- package/src/types/index.ts +1 -0
- package/src/ward-workspace/ward-patient-notes/history/delete-note.modal.tsx +63 -0
- package/src/ward-workspace/ward-patient-notes/history/note.component.tsx +138 -13
- package/src/ward-workspace/ward-patient-notes/history/notes-container.component.tsx +14 -8
- package/src/ward-workspace/ward-patient-notes/history/notes-container.test.tsx +20 -13
- package/src/ward-workspace/ward-patient-notes/history/styles.scss +16 -3
- package/src/ward-workspace/ward-patient-notes/notes.resource.ts +17 -4
- package/src/ward-workspace/ward-patient-notes/notes.scss +5 -1
- package/src/ward-workspace/ward-patient-notes/notes.test.tsx +7 -7
- package/src/ward-workspace/ward-patient-notes/notes.workspace.tsx +26 -17
- package/src/ward-workspace/ward-patient-notes/types.ts +5 -1
- package/src/ward.resource.ts +6 -0
- package/translations/en.json +6 -0
- package/dist/3954.js.map +0 -1
- package/dist/5420.js +0 -6
- package/dist/5420.js.map +0 -1
- package/dist/6203.js +0 -1
- package/dist/6203.js.map +0 -1
- package/dist/7965.js +0 -1
- package/dist/7965.js.map +0 -1
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"rendered": true,
|
|
6
6
|
"initial": false,
|
|
7
7
|
"entry": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 79909,
|
|
9
9
|
"sizes": {
|
|
10
|
-
"javascript":
|
|
10
|
+
"javascript": 79909
|
|
11
11
|
},
|
|
12
12
|
"names": [],
|
|
13
13
|
"idHints": [],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"auxiliaryFiles": [
|
|
22
22
|
"1011.js.map"
|
|
23
23
|
],
|
|
24
|
-
"hash": "
|
|
24
|
+
"hash": "4a242508750ff0fe",
|
|
25
25
|
"childrenByOrder": {}
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"rendered": true,
|
|
76
76
|
"initial": false,
|
|
77
77
|
"entry": false,
|
|
78
|
-
"size":
|
|
78
|
+
"size": 67068,
|
|
79
79
|
"sizes": {
|
|
80
|
-
"javascript":
|
|
80
|
+
"javascript": 67068
|
|
81
81
|
},
|
|
82
82
|
"names": [],
|
|
83
83
|
"idHints": [],
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"auxiliaryFiles": [
|
|
92
92
|
"1369.js.map"
|
|
93
93
|
],
|
|
94
|
-
"hash": "
|
|
94
|
+
"hash": "fa23c5716cacd915",
|
|
95
95
|
"childrenByOrder": {}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -116,6 +116,30 @@
|
|
|
116
116
|
"hash": "7094c1fc1a42da33",
|
|
117
117
|
"childrenByOrder": {}
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
"type": "chunk",
|
|
121
|
+
"rendered": true,
|
|
122
|
+
"initial": false,
|
|
123
|
+
"entry": false,
|
|
124
|
+
"size": 19105,
|
|
125
|
+
"sizes": {
|
|
126
|
+
"javascript": 19105
|
|
127
|
+
},
|
|
128
|
+
"names": [],
|
|
129
|
+
"idHints": [],
|
|
130
|
+
"runtime": [
|
|
131
|
+
"@openmrs/esm-ward-app",
|
|
132
|
+
"main"
|
|
133
|
+
],
|
|
134
|
+
"files": [
|
|
135
|
+
"1554.js"
|
|
136
|
+
],
|
|
137
|
+
"auxiliaryFiles": [
|
|
138
|
+
"1554.js.map"
|
|
139
|
+
],
|
|
140
|
+
"hash": "567441ff9183ea4c",
|
|
141
|
+
"childrenByOrder": {}
|
|
142
|
+
},
|
|
119
143
|
{
|
|
120
144
|
"type": "chunk",
|
|
121
145
|
"rendered": true,
|
|
@@ -185,7 +209,7 @@
|
|
|
185
209
|
"auxiliaryFiles": [
|
|
186
210
|
"openmrs-esm-ward-app.js.map"
|
|
187
211
|
],
|
|
188
|
-
"hash": "
|
|
212
|
+
"hash": "01454b5e549f6d04",
|
|
189
213
|
"childrenByOrder": {}
|
|
190
214
|
},
|
|
191
215
|
{
|
|
@@ -242,9 +266,9 @@
|
|
|
242
266
|
"rendered": true,
|
|
243
267
|
"initial": false,
|
|
244
268
|
"entry": false,
|
|
245
|
-
"size":
|
|
269
|
+
"size": 106825,
|
|
246
270
|
"sizes": {
|
|
247
|
-
"javascript":
|
|
271
|
+
"javascript": 106825
|
|
248
272
|
},
|
|
249
273
|
"names": [],
|
|
250
274
|
"idHints": [],
|
|
@@ -258,7 +282,7 @@
|
|
|
258
282
|
"auxiliaryFiles": [
|
|
259
283
|
"1895.js.map"
|
|
260
284
|
],
|
|
261
|
-
"hash": "
|
|
285
|
+
"hash": "dc8135a571678ab9",
|
|
262
286
|
"childrenByOrder": {}
|
|
263
287
|
},
|
|
264
288
|
{
|
|
@@ -315,9 +339,9 @@
|
|
|
315
339
|
"rendered": true,
|
|
316
340
|
"initial": false,
|
|
317
341
|
"entry": false,
|
|
318
|
-
"size":
|
|
342
|
+
"size": 58438,
|
|
319
343
|
"sizes": {
|
|
320
|
-
"javascript":
|
|
344
|
+
"javascript": 58438
|
|
321
345
|
},
|
|
322
346
|
"names": [],
|
|
323
347
|
"idHints": [],
|
|
@@ -331,7 +355,7 @@
|
|
|
331
355
|
"auxiliaryFiles": [
|
|
332
356
|
"2117.js.map"
|
|
333
357
|
],
|
|
334
|
-
"hash": "
|
|
358
|
+
"hash": "bb4d357d5725fb4c",
|
|
335
359
|
"childrenByOrder": {}
|
|
336
360
|
},
|
|
337
361
|
{
|
|
@@ -502,9 +526,9 @@
|
|
|
502
526
|
"initial": false,
|
|
503
527
|
"entry": false,
|
|
504
528
|
"reason": "split chunk (cache group: default)",
|
|
505
|
-
"size":
|
|
529
|
+
"size": 61401,
|
|
506
530
|
"sizes": {
|
|
507
|
-
"javascript":
|
|
531
|
+
"javascript": 61401
|
|
508
532
|
},
|
|
509
533
|
"names": [],
|
|
510
534
|
"idHints": [
|
|
@@ -520,7 +544,7 @@
|
|
|
520
544
|
"auxiliaryFiles": [
|
|
521
545
|
"2640.js.map"
|
|
522
546
|
],
|
|
523
|
-
"hash": "
|
|
547
|
+
"hash": "c7eb2a98a5e1c698",
|
|
524
548
|
"childrenByOrder": {}
|
|
525
549
|
},
|
|
526
550
|
{
|
|
@@ -710,7 +734,7 @@
|
|
|
710
734
|
"auxiliaryFiles": [
|
|
711
735
|
"3624.js.map"
|
|
712
736
|
],
|
|
713
|
-
"hash": "
|
|
737
|
+
"hash": "684410fe495566a2",
|
|
714
738
|
"childrenByOrder": {}
|
|
715
739
|
},
|
|
716
740
|
{
|
|
@@ -785,9 +809,9 @@
|
|
|
785
809
|
"initial": false,
|
|
786
810
|
"entry": false,
|
|
787
811
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
788
|
-
"size":
|
|
812
|
+
"size": 2194209,
|
|
789
813
|
"sizes": {
|
|
790
|
-
"javascript":
|
|
814
|
+
"javascript": 2194209
|
|
791
815
|
},
|
|
792
816
|
"names": [],
|
|
793
817
|
"idHints": [
|
|
@@ -798,12 +822,12 @@
|
|
|
798
822
|
"main"
|
|
799
823
|
],
|
|
800
824
|
"files": [
|
|
801
|
-
"
|
|
825
|
+
"3948.js"
|
|
802
826
|
],
|
|
803
827
|
"auxiliaryFiles": [
|
|
804
|
-
"
|
|
828
|
+
"3948.js.map"
|
|
805
829
|
],
|
|
806
|
-
"hash": "
|
|
830
|
+
"hash": "7f015e0b1f8e24d7",
|
|
807
831
|
"childrenByOrder": {}
|
|
808
832
|
},
|
|
809
833
|
{
|
|
@@ -835,9 +859,9 @@
|
|
|
835
859
|
"rendered": true,
|
|
836
860
|
"initial": false,
|
|
837
861
|
"entry": false,
|
|
838
|
-
"size":
|
|
862
|
+
"size": 17781,
|
|
839
863
|
"sizes": {
|
|
840
|
-
"javascript":
|
|
864
|
+
"javascript": 17781
|
|
841
865
|
},
|
|
842
866
|
"names": [],
|
|
843
867
|
"idHints": [],
|
|
@@ -850,7 +874,7 @@
|
|
|
850
874
|
"auxiliaryFiles": [
|
|
851
875
|
"4285.js.map"
|
|
852
876
|
],
|
|
853
|
-
"hash": "
|
|
877
|
+
"hash": "bedc8111771fa574",
|
|
854
878
|
"childrenByOrder": {}
|
|
855
879
|
},
|
|
856
880
|
{
|
|
@@ -877,7 +901,7 @@
|
|
|
877
901
|
"auxiliaryFiles": [
|
|
878
902
|
"4373.js.map"
|
|
879
903
|
],
|
|
880
|
-
"hash": "
|
|
904
|
+
"hash": "1edefec2dafc9b89",
|
|
881
905
|
"childrenByOrder": {}
|
|
882
906
|
},
|
|
883
907
|
{
|
|
@@ -1067,33 +1091,6 @@
|
|
|
1067
1091
|
"hash": "af7f393a271e19c5",
|
|
1068
1092
|
"childrenByOrder": {}
|
|
1069
1093
|
},
|
|
1070
|
-
{
|
|
1071
|
-
"type": "chunk",
|
|
1072
|
-
"rendered": true,
|
|
1073
|
-
"initial": false,
|
|
1074
|
-
"entry": false,
|
|
1075
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
1076
|
-
"size": 2015817,
|
|
1077
|
-
"sizes": {
|
|
1078
|
-
"javascript": 2015817
|
|
1079
|
-
},
|
|
1080
|
-
"names": [],
|
|
1081
|
-
"idHints": [
|
|
1082
|
-
"vendors"
|
|
1083
|
-
],
|
|
1084
|
-
"runtime": [
|
|
1085
|
-
"@openmrs/esm-ward-app",
|
|
1086
|
-
"main"
|
|
1087
|
-
],
|
|
1088
|
-
"files": [
|
|
1089
|
-
"5420.js"
|
|
1090
|
-
],
|
|
1091
|
-
"auxiliaryFiles": [
|
|
1092
|
-
"5420.js.map"
|
|
1093
|
-
],
|
|
1094
|
-
"hash": "9a1d0dac1244da40",
|
|
1095
|
-
"childrenByOrder": {}
|
|
1096
|
-
},
|
|
1097
1094
|
{
|
|
1098
1095
|
"type": "chunk",
|
|
1099
1096
|
"rendered": true,
|
|
@@ -1264,9 +1261,9 @@
|
|
|
1264
1261
|
"initial": false,
|
|
1265
1262
|
"entry": false,
|
|
1266
1263
|
"reason": "split chunk (cache group: default)",
|
|
1267
|
-
"size":
|
|
1264
|
+
"size": 82294,
|
|
1268
1265
|
"sizes": {
|
|
1269
|
-
"javascript":
|
|
1266
|
+
"javascript": 82294
|
|
1270
1267
|
},
|
|
1271
1268
|
"names": [],
|
|
1272
1269
|
"idHints": [
|
|
@@ -1282,7 +1279,7 @@
|
|
|
1282
1279
|
"auxiliaryFiles": [
|
|
1283
1280
|
"6026.js.map"
|
|
1284
1281
|
],
|
|
1285
|
-
"hash": "
|
|
1282
|
+
"hash": "d2516ac2de33eb36",
|
|
1286
1283
|
"childrenByOrder": {}
|
|
1287
1284
|
},
|
|
1288
1285
|
{
|
|
@@ -1351,7 +1348,7 @@
|
|
|
1351
1348
|
"auxiliaryFiles": [
|
|
1352
1349
|
"6199.js.map"
|
|
1353
1350
|
],
|
|
1354
|
-
"hash": "
|
|
1351
|
+
"hash": "b2678ba0264b8901",
|
|
1355
1352
|
"childrenByOrder": {}
|
|
1356
1353
|
},
|
|
1357
1354
|
{
|
|
@@ -1360,9 +1357,9 @@
|
|
|
1360
1357
|
"initial": false,
|
|
1361
1358
|
"entry": false,
|
|
1362
1359
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
1363
|
-
"size":
|
|
1360
|
+
"size": 303634,
|
|
1364
1361
|
"sizes": {
|
|
1365
|
-
"javascript":
|
|
1362
|
+
"javascript": 303634
|
|
1366
1363
|
},
|
|
1367
1364
|
"names": [],
|
|
1368
1365
|
"idHints": [
|
|
@@ -1373,12 +1370,12 @@
|
|
|
1373
1370
|
"main"
|
|
1374
1371
|
],
|
|
1375
1372
|
"files": [
|
|
1376
|
-
"
|
|
1373
|
+
"6285.js"
|
|
1377
1374
|
],
|
|
1378
1375
|
"auxiliaryFiles": [
|
|
1379
|
-
"
|
|
1376
|
+
"6285.js.map"
|
|
1380
1377
|
],
|
|
1381
|
-
"hash": "
|
|
1378
|
+
"hash": "179ead4dc2f5e231",
|
|
1382
1379
|
"childrenByOrder": {}
|
|
1383
1380
|
},
|
|
1384
1381
|
{
|
|
@@ -1518,7 +1515,7 @@
|
|
|
1518
1515
|
"auxiliaryFiles": [
|
|
1519
1516
|
"6515.js.map"
|
|
1520
1517
|
],
|
|
1521
|
-
"hash": "
|
|
1518
|
+
"hash": "c8de76238b0dc9f1",
|
|
1522
1519
|
"childrenByOrder": {}
|
|
1523
1520
|
},
|
|
1524
1521
|
{
|
|
@@ -1570,10 +1567,10 @@
|
|
|
1570
1567
|
"rendered": true,
|
|
1571
1568
|
"initial": true,
|
|
1572
1569
|
"entry": true,
|
|
1573
|
-
"size":
|
|
1570
|
+
"size": 221241,
|
|
1574
1571
|
"sizes": {
|
|
1575
1572
|
"consume-shared": 126,
|
|
1576
|
-
"javascript":
|
|
1573
|
+
"javascript": 220821,
|
|
1577
1574
|
"runtime": 14274,
|
|
1578
1575
|
"share-init": 294
|
|
1579
1576
|
},
|
|
@@ -1590,7 +1587,7 @@
|
|
|
1590
1587
|
"auxiliaryFiles": [
|
|
1591
1588
|
"main.js.map"
|
|
1592
1589
|
],
|
|
1593
|
-
"hash": "
|
|
1590
|
+
"hash": "4cc7e9c21f21a860",
|
|
1594
1591
|
"childrenByOrder": {}
|
|
1595
1592
|
},
|
|
1596
1593
|
{
|
|
@@ -1620,6 +1617,33 @@
|
|
|
1620
1617
|
"hash": "237170de77a9358f",
|
|
1621
1618
|
"childrenByOrder": {}
|
|
1622
1619
|
},
|
|
1620
|
+
{
|
|
1621
|
+
"type": "chunk",
|
|
1622
|
+
"rendered": true,
|
|
1623
|
+
"initial": false,
|
|
1624
|
+
"entry": false,
|
|
1625
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
1626
|
+
"size": 264075,
|
|
1627
|
+
"sizes": {
|
|
1628
|
+
"javascript": 264075
|
|
1629
|
+
},
|
|
1630
|
+
"names": [],
|
|
1631
|
+
"idHints": [
|
|
1632
|
+
"vendors"
|
|
1633
|
+
],
|
|
1634
|
+
"runtime": [
|
|
1635
|
+
"@openmrs/esm-ward-app",
|
|
1636
|
+
"main"
|
|
1637
|
+
],
|
|
1638
|
+
"files": [
|
|
1639
|
+
"7073.js"
|
|
1640
|
+
],
|
|
1641
|
+
"auxiliaryFiles": [
|
|
1642
|
+
"7073.js.map"
|
|
1643
|
+
],
|
|
1644
|
+
"hash": "6dfaf3c4d71902c5",
|
|
1645
|
+
"childrenByOrder": {}
|
|
1646
|
+
},
|
|
1623
1647
|
{
|
|
1624
1648
|
"type": "chunk",
|
|
1625
1649
|
"rendered": true,
|
|
@@ -1693,9 +1717,9 @@
|
|
|
1693
1717
|
"rendered": true,
|
|
1694
1718
|
"initial": false,
|
|
1695
1719
|
"entry": false,
|
|
1696
|
-
"size":
|
|
1720
|
+
"size": 7071,
|
|
1697
1721
|
"sizes": {
|
|
1698
|
-
"javascript":
|
|
1722
|
+
"javascript": 7071
|
|
1699
1723
|
},
|
|
1700
1724
|
"names": [],
|
|
1701
1725
|
"idHints": [],
|
|
@@ -1707,7 +1731,7 @@
|
|
|
1707
1731
|
"7607.js"
|
|
1708
1732
|
],
|
|
1709
1733
|
"auxiliaryFiles": [],
|
|
1710
|
-
"hash": "
|
|
1734
|
+
"hash": "f83cfc8536874ba8",
|
|
1711
1735
|
"childrenByOrder": {}
|
|
1712
1736
|
},
|
|
1713
1737
|
{
|
|
@@ -1715,9 +1739,9 @@
|
|
|
1715
1739
|
"rendered": true,
|
|
1716
1740
|
"initial": false,
|
|
1717
1741
|
"entry": false,
|
|
1718
|
-
"size":
|
|
1742
|
+
"size": 63683,
|
|
1719
1743
|
"sizes": {
|
|
1720
|
-
"javascript":
|
|
1744
|
+
"javascript": 63683
|
|
1721
1745
|
},
|
|
1722
1746
|
"names": [],
|
|
1723
1747
|
"idHints": [],
|
|
@@ -1731,7 +1755,7 @@
|
|
|
1731
1755
|
"auxiliaryFiles": [
|
|
1732
1756
|
"7715.js.map"
|
|
1733
1757
|
],
|
|
1734
|
-
"hash": "
|
|
1758
|
+
"hash": "db901f77053abb91",
|
|
1735
1759
|
"childrenByOrder": {}
|
|
1736
1760
|
},
|
|
1737
1761
|
{
|
|
@@ -1756,33 +1780,6 @@
|
|
|
1756
1780
|
"hash": "471b57d73f817b42",
|
|
1757
1781
|
"childrenByOrder": {}
|
|
1758
1782
|
},
|
|
1759
|
-
{
|
|
1760
|
-
"type": "chunk",
|
|
1761
|
-
"rendered": true,
|
|
1762
|
-
"initial": false,
|
|
1763
|
-
"entry": false,
|
|
1764
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
1765
|
-
"size": 293725,
|
|
1766
|
-
"sizes": {
|
|
1767
|
-
"javascript": 293725
|
|
1768
|
-
},
|
|
1769
|
-
"names": [],
|
|
1770
|
-
"idHints": [
|
|
1771
|
-
"vendors"
|
|
1772
|
-
],
|
|
1773
|
-
"runtime": [
|
|
1774
|
-
"@openmrs/esm-ward-app",
|
|
1775
|
-
"main"
|
|
1776
|
-
],
|
|
1777
|
-
"files": [
|
|
1778
|
-
"7965.js"
|
|
1779
|
-
],
|
|
1780
|
-
"auxiliaryFiles": [
|
|
1781
|
-
"7965.js.map"
|
|
1782
|
-
],
|
|
1783
|
-
"hash": "163e3359170628b6",
|
|
1784
|
-
"childrenByOrder": {}
|
|
1785
|
-
},
|
|
1786
1783
|
{
|
|
1787
1784
|
"type": "chunk",
|
|
1788
1785
|
"rendered": false,
|
|
@@ -1828,6 +1825,33 @@
|
|
|
1828
1825
|
"hash": "049efb2ab484bf26",
|
|
1829
1826
|
"childrenByOrder": {}
|
|
1830
1827
|
},
|
|
1828
|
+
{
|
|
1829
|
+
"type": "chunk",
|
|
1830
|
+
"rendered": true,
|
|
1831
|
+
"initial": false,
|
|
1832
|
+
"entry": false,
|
|
1833
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
1834
|
+
"size": 4459141,
|
|
1835
|
+
"sizes": {
|
|
1836
|
+
"javascript": 4459141
|
|
1837
|
+
},
|
|
1838
|
+
"names": [],
|
|
1839
|
+
"idHints": [
|
|
1840
|
+
"vendors"
|
|
1841
|
+
],
|
|
1842
|
+
"runtime": [
|
|
1843
|
+
"@openmrs/esm-ward-app",
|
|
1844
|
+
"main"
|
|
1845
|
+
],
|
|
1846
|
+
"files": [
|
|
1847
|
+
"8622.js"
|
|
1848
|
+
],
|
|
1849
|
+
"auxiliaryFiles": [
|
|
1850
|
+
"8622.js.map"
|
|
1851
|
+
],
|
|
1852
|
+
"hash": "6de50bf0cbaa0195",
|
|
1853
|
+
"childrenByOrder": {}
|
|
1854
|
+
},
|
|
1831
1855
|
{
|
|
1832
1856
|
"type": "chunk",
|
|
1833
1857
|
"rendered": true,
|
|
@@ -2104,9 +2128,9 @@
|
|
|
2104
2128
|
"rendered": true,
|
|
2105
2129
|
"initial": false,
|
|
2106
2130
|
"entry": false,
|
|
2107
|
-
"size":
|
|
2131
|
+
"size": 35479,
|
|
2108
2132
|
"sizes": {
|
|
2109
|
-
"javascript":
|
|
2133
|
+
"javascript": 35479
|
|
2110
2134
|
},
|
|
2111
2135
|
"names": [],
|
|
2112
2136
|
"idHints": [
|
|
@@ -2122,7 +2146,7 @@
|
|
|
2122
2146
|
"auxiliaryFiles": [
|
|
2123
2147
|
"9727.js.map"
|
|
2124
2148
|
],
|
|
2125
|
-
"hash": "
|
|
2149
|
+
"hash": "f8a8bf29320feee4",
|
|
2126
2150
|
"childrenByOrder": {}
|
|
2127
2151
|
},
|
|
2128
2152
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":">=6.0.0 <8.0.0","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":">=6.0.0 <8.0.0","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"modals":[{"name":"delete-note-modal","component":"deleteNoteModal"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.7466"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-ward-app",
|
|
3
|
-
"version": "9.2.1-pre.
|
|
3
|
+
"version": "9.2.1-pre.7466",
|
|
4
4
|
"description": "Ward and bed management module for O3",
|
|
5
5
|
"browser": "dist/openmrs-esm-ward-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
|
|
19
19
|
"coverage": "yarn test --coverage",
|
|
20
20
|
"typescript": "tsc",
|
|
21
|
-
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.extension.tsx' 'src/**/*.workspace.tsx' 'src/**/*.resource.ts' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
|
|
21
|
+
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.extension.tsx' 'src/**/*modal.tsx' 'src/**/*.workspace.tsx' 'src/**/*.resource.ts' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
|
|
22
22
|
},
|
|
23
23
|
"browserslist": [
|
|
24
24
|
"extends browserslist-config-openmrs"
|
package/src/index.ts
CHANGED
|
@@ -139,6 +139,11 @@ export const wardPatientWorkspaceBanner = getAsyncLifecycle(
|
|
|
139
139
|
options,
|
|
140
140
|
);
|
|
141
141
|
|
|
142
|
+
export const deleteNoteModal = getAsyncLifecycle(
|
|
143
|
+
() => import('./ward-workspace/ward-patient-notes/history/delete-note.modal'),
|
|
144
|
+
options,
|
|
145
|
+
);
|
|
146
|
+
|
|
142
147
|
export function startupApp() {
|
|
143
148
|
registerBreadcrumbs([]);
|
|
144
149
|
defineConfigSchema(moduleName, configSchema);
|
package/src/routes.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { Button, ModalHeader, ModalBody, ModalFooter } from '@carbon/react';
|
|
4
|
+
import { deleteEncounter } from '../../../ward.resource';
|
|
5
|
+
import { getCoreTranslation, showSnackbar } from '@openmrs/esm-framework';
|
|
6
|
+
|
|
7
|
+
interface DeleteEncounterConfirmationProps {
|
|
8
|
+
encounterUuid: string;
|
|
9
|
+
close: () => void;
|
|
10
|
+
onDelete?: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const DeleteEncounterConfirmation: React.FC<DeleteEncounterConfirmationProps> = ({
|
|
14
|
+
close,
|
|
15
|
+
encounterUuid,
|
|
16
|
+
onDelete,
|
|
17
|
+
}) => {
|
|
18
|
+
const { t } = useTranslation();
|
|
19
|
+
const [isDeleting, setIsDeleting] = useState(false);
|
|
20
|
+
const handleCancel = () => close();
|
|
21
|
+
|
|
22
|
+
const handleDelete = async () => {
|
|
23
|
+
try {
|
|
24
|
+
setIsDeleting(true);
|
|
25
|
+
await deleteEncounter(encounterUuid);
|
|
26
|
+
showSnackbar({
|
|
27
|
+
kind: 'success',
|
|
28
|
+
title: t('noteDeletedSuccessfully', 'Note deleted successfully'),
|
|
29
|
+
});
|
|
30
|
+
close();
|
|
31
|
+
onDelete?.();
|
|
32
|
+
} catch (e) {
|
|
33
|
+
showSnackbar({
|
|
34
|
+
kind: 'error',
|
|
35
|
+
title: t('errorDeletingNote', 'Error deleting note'),
|
|
36
|
+
subtitle: e?.responseBody?.error?.translatedMessage ?? e?.responseBody?.error?.message,
|
|
37
|
+
});
|
|
38
|
+
} finally {
|
|
39
|
+
setIsDeleting(false);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<>
|
|
45
|
+
<ModalHeader closeModal={close}>{t('deleteNote', 'Delete note')}?</ModalHeader>
|
|
46
|
+
<ModalBody>
|
|
47
|
+
<p>
|
|
48
|
+
{t('deleteNoteConfirmationText', `Are you sure you want to delete this note? This action can't be undone.`)}
|
|
49
|
+
</p>
|
|
50
|
+
</ModalBody>
|
|
51
|
+
<ModalFooter>
|
|
52
|
+
<Button size="lg" kind="secondary" onClick={handleCancel}>
|
|
53
|
+
{getCoreTranslation('cancel')}
|
|
54
|
+
</Button>
|
|
55
|
+
<Button autoFocus kind="danger" disabled={isDeleting} onClick={handleDelete} size="lg">
|
|
56
|
+
{getCoreTranslation('delete')}
|
|
57
|
+
</Button>
|
|
58
|
+
</ModalFooter>
|
|
59
|
+
</>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default DeleteEncounterConfirmation;
|