@kenyaemr/esm-morgue-app 5.4.2-pre.2330 → 5.4.2-pre.2344

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.
Files changed (62) hide show
  1. package/.turbo/turbo-build.log +20 -20
  2. package/dist/197.js +1 -1
  3. package/dist/221.js +1 -0
  4. package/dist/221.js.map +1 -0
  5. package/dist/294.js +1 -1
  6. package/dist/300.js +1 -1
  7. package/dist/347.js +1 -1
  8. package/dist/347.js.map +1 -1
  9. package/dist/429.js +2 -0
  10. package/dist/429.js.map +1 -0
  11. package/dist/529.js +1 -0
  12. package/dist/529.js.map +1 -0
  13. package/dist/619.js +1 -0
  14. package/dist/619.js.map +1 -0
  15. package/dist/633.js +1 -1
  16. package/dist/633.js.map +1 -1
  17. package/dist/653.js +1 -0
  18. package/dist/653.js.map +1 -0
  19. package/dist/712.js +1 -0
  20. package/dist/712.js.map +1 -0
  21. package/dist/723.js +1 -0
  22. package/dist/723.js.map +1 -0
  23. package/dist/805.js +1 -0
  24. package/dist/805.js.map +1 -0
  25. package/dist/989.js +1 -1
  26. package/dist/989.js.map +1 -1
  27. package/dist/kenyaemr-esm-morgue-app.js +1 -1
  28. package/dist/kenyaemr-esm-morgue-app.js.buildmanifest.json +182 -80
  29. package/dist/kenyaemr-esm-morgue-app.js.map +1 -1
  30. package/dist/main.js +1 -1
  31. package/dist/main.js.map +1 -1
  32. package/dist/routes.json +1 -1
  33. package/package.json +1 -1
  34. package/src/bed/bed.component.tsx +10 -11
  35. package/src/bed-layout/discharged/discharged-bed-layout.component.tsx +24 -7
  36. package/src/bed-linelist-view/discharged/discharged-bed-line-view.component.tsx +35 -20
  37. package/src/config-schema.ts +1 -1
  38. package/src/extension/overflow-menu-item-postmortem/print-postmorterm-report.component.tsx +39 -0
  39. package/src/index.ts +11 -0
  40. package/src/modals/autopsy-report/autopsy-print-preview-confirmation.modal.tsx +569 -0
  41. package/src/modals/autopsy-report/autopsy-print-preview-confirmation.scss +715 -0
  42. package/src/modals/mortuary-gate-pass/print-preview-confirmation.modal.tsx +257 -0
  43. package/src/modals/mortuary-gate-pass/print-preview-confirmation.resource.ts +0 -0
  44. package/src/modals/mortuary-gate-pass/print-preview-confirmation.scss +333 -0
  45. package/src/routes.json +15 -0
  46. package/src/utils/utils.ts +6 -0
  47. package/src/view-details/panels/attachement.component.tsx +17 -3
  48. package/src/view-details/panels/autopsy.component.tsx +89 -75
  49. package/src/view-details/panels/billing-history.component.tsx +8 -1
  50. package/src/view-details/view-details.component.tsx +6 -2
  51. package/translations/am.json +8 -3
  52. package/translations/en.json +8 -3
  53. package/translations/sw.json +8 -3
  54. package/dist/201.js +0 -1
  55. package/dist/201.js.map +0 -1
  56. package/dist/389.js +0 -1
  57. package/dist/389.js.map +0 -1
  58. package/dist/420.js +0 -2
  59. package/dist/420.js.map +0 -1
  60. package/dist/798.js +0 -1
  61. package/dist/798.js.map +0 -1
  62. /package/dist/{420.js.LICENSE.txt → 429.js.LICENSE.txt} +0 -0
@@ -0,0 +1,715 @@
1
+ @use '@carbon/colors';
2
+ @use '@carbon/layout';
3
+ @use '@carbon/type';
4
+
5
+ .container {
6
+ padding: layout.$spacing-06;
7
+ margin-bottom: layout.$spacing-05;
8
+ background-color: colors.$white;
9
+
10
+ @media print {
11
+ padding: 0;
12
+ margin: 0;
13
+ background-color: colors.$white;
14
+ }
15
+ }
16
+
17
+ .encounterSelection {
18
+ margin-bottom: layout.$spacing-05;
19
+
20
+ @media print {
21
+ display: none;
22
+ }
23
+ }
24
+
25
+ .noPrint {
26
+ @media print {
27
+ display: none !important;
28
+ }
29
+ }
30
+
31
+ .printableContent {
32
+ background-color: colors.$white;
33
+ width: 210mm;
34
+ min-height: 297mm;
35
+ margin: 0 auto;
36
+ padding: 20mm;
37
+ box-sizing: border-box;
38
+ font-family: 'Times New Roman', serif;
39
+ font-size: 11px;
40
+ line-height: 1.4;
41
+ color: colors.$black;
42
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
43
+
44
+ @media print {
45
+ width: 100%;
46
+ height: 100%;
47
+ padding: 15mm;
48
+ margin: 0;
49
+ box-shadow: none;
50
+ border: none;
51
+ page-break-after: avoid;
52
+ page-break-before: avoid;
53
+ }
54
+ }
55
+
56
+ .printableHeader {
57
+ text-align: center;
58
+ margin-bottom: layout.$spacing-06;
59
+ padding-bottom: layout.$spacing-04;
60
+ border-bottom: 3px double colors.$black;
61
+
62
+ @media print {
63
+ border-bottom: 3px double colors.$black;
64
+ }
65
+ }
66
+
67
+ .facilityDetails {
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: center;
71
+ gap: layout.$spacing-02;
72
+ }
73
+
74
+ .facilityName {
75
+ font-weight: 700;
76
+ color: colors.$black;
77
+ text-transform: uppercase;
78
+ letter-spacing: 1.5px;
79
+ margin-bottom: layout.$spacing-02;
80
+ font-size: 16px;
81
+ font-family: 'Times New Roman', serif;
82
+
83
+ @media print {
84
+ color: colors.$black;
85
+ }
86
+ }
87
+
88
+ .heading {
89
+ font-weight: 700;
90
+ color: colors.$black;
91
+ text-transform: uppercase;
92
+ letter-spacing: 1px;
93
+ font-size: 14px;
94
+ margin-bottom: layout.$spacing-02;
95
+ text-decoration: underline;
96
+
97
+ @media print {
98
+ color: colors.$black;
99
+ }
100
+ }
101
+
102
+ .subheading {
103
+ font-weight: 500;
104
+ color: colors.$black;
105
+ font-size: 12px;
106
+ font-style: italic;
107
+ }
108
+
109
+ .printableBody {
110
+ display: flex;
111
+ flex-direction: column;
112
+ gap: layout.$spacing-05;
113
+ }
114
+
115
+ .formSection {
116
+ margin-bottom: layout.$spacing-05;
117
+ page-break-inside: avoid;
118
+ }
119
+
120
+ .sectionTitle {
121
+ font-weight: 700;
122
+ color: colors.$black;
123
+ font-size: 12px;
124
+ margin-bottom: layout.$spacing-04;
125
+ padding: layout.$spacing-02 0;
126
+ border-bottom: 2px solid colors.$black;
127
+ text-transform: uppercase;
128
+ letter-spacing: 0.5px;
129
+
130
+ @media print {
131
+ color: colors.$black;
132
+ border-bottom: 2px solid colors.$black;
133
+ }
134
+ }
135
+
136
+ .sectionSubtitle {
137
+ font-size: 10px;
138
+ color: colors.$black;
139
+ margin-bottom: layout.$spacing-03;
140
+ font-style: italic;
141
+ line-height: 1.3;
142
+ }
143
+
144
+ .fieldGroup {
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: layout.$spacing-04;
148
+ }
149
+
150
+ .fieldRow {
151
+ display: flex;
152
+ gap: layout.$spacing-05;
153
+ align-items: flex-start;
154
+ margin-bottom: layout.$spacing-03;
155
+ }
156
+
157
+ .field {
158
+ flex: 1;
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: layout.$spacing-02;
162
+ }
163
+
164
+ .fieldWide {
165
+ width: 100%;
166
+ display: flex;
167
+ flex-direction: column;
168
+ gap: layout.$spacing-02;
169
+ margin-bottom: layout.$spacing-03;
170
+ }
171
+
172
+ .systemRow {
173
+ margin-bottom: layout.$spacing-04;
174
+ page-break-inside: avoid;
175
+ }
176
+
177
+ .systemField {
178
+ display: flex;
179
+ flex-direction: column;
180
+ gap: layout.$spacing-02;
181
+ }
182
+
183
+ .label {
184
+ font-weight: 600;
185
+ color: colors.$black;
186
+ font-size: 11px;
187
+ line-height: 1.2;
188
+ margin-bottom: layout.$spacing-01;
189
+ }
190
+
191
+ .required {
192
+ color: colors.$red-60;
193
+ margin-left: 2px;
194
+ }
195
+
196
+ .value {
197
+ color: colors.$black;
198
+ font-size: 11px;
199
+ padding: layout.$spacing-02;
200
+ border-bottom: 1px solid colors.$black;
201
+ min-height: layout.$spacing-05;
202
+ display: flex;
203
+ align-items: center;
204
+ background-color: colors.$white;
205
+ }
206
+
207
+ .textArea {
208
+ color: colors.$black;
209
+ font-size: 11px;
210
+ padding: layout.$spacing-03;
211
+ border: 1px solid colors.$black;
212
+ min-height: layout.$spacing-07;
213
+ background-color: colors.$white;
214
+ line-height: 1.4;
215
+ }
216
+
217
+ .largeTextArea {
218
+ color: colors.$black;
219
+ font-size: 11px;
220
+ padding: layout.$spacing-03;
221
+ border: 1px solid colors.$black;
222
+ min-height: 60px;
223
+ background-color: colors.$white;
224
+ line-height: 1.4;
225
+ }
226
+
227
+ .systemTextArea {
228
+ color: colors.$black;
229
+ font-size: 11px;
230
+ padding: layout.$spacing-03;
231
+ border: 1px solid colors.$black;
232
+ min-height: 40px;
233
+ background-color: colors.$white;
234
+ line-height: 1.4;
235
+ }
236
+
237
+ .underlineField {
238
+ border-bottom: 1px solid colors.$black;
239
+ min-height: layout.$spacing-05;
240
+ width: 100%;
241
+ }
242
+
243
+ .checkboxGroup {
244
+ display: flex;
245
+ gap: layout.$spacing-04;
246
+ flex-wrap: wrap;
247
+ margin-top: layout.$spacing-02;
248
+ }
249
+
250
+ .checkboxOption {
251
+ display: flex;
252
+ align-items: center;
253
+ gap: layout.$spacing-02;
254
+ margin-right: layout.$spacing-04;
255
+ }
256
+
257
+ .checkbox {
258
+ width: 16px;
259
+ height: 16px;
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+
264
+ svg {
265
+ width: 16px;
266
+ height: 16px;
267
+ fill: colors.$black;
268
+ }
269
+ }
270
+
271
+ .optionLabel {
272
+ color: colors.$black;
273
+ font-size: 11px;
274
+ font-weight: 500;
275
+ }
276
+
277
+ .specimenGrid {
278
+ display: grid;
279
+ grid-template-columns: repeat(2, 1fr);
280
+ gap: layout.$spacing-04;
281
+ margin-top: layout.$spacing-03;
282
+ }
283
+
284
+ .specimenOption {
285
+ display: flex;
286
+ align-items: flex-start;
287
+ gap: layout.$spacing-02;
288
+ padding: layout.$spacing-02 0;
289
+
290
+ .field {
291
+ margin-top: layout.$spacing-02;
292
+ }
293
+ }
294
+
295
+ .signaturesSection {
296
+ margin-top: layout.$spacing-07;
297
+ padding-top: layout.$spacing-05;
298
+ border-top: 2px solid colors.$black;
299
+ page-break-inside: avoid;
300
+ }
301
+
302
+ .signatureBlock {
303
+ margin-bottom: layout.$spacing-06;
304
+ page-break-inside: avoid;
305
+ }
306
+
307
+ .signatureRow {
308
+ display: grid;
309
+ grid-template-columns: 2fr 1.5fr 1fr;
310
+ gap: layout.$spacing-05;
311
+ align-items: end;
312
+ padding: layout.$spacing-03 0;
313
+ }
314
+
315
+ .nameField,
316
+ .signField,
317
+ .dateField {
318
+ display: flex;
319
+ flex-direction: column;
320
+ gap: layout.$spacing-02;
321
+ }
322
+
323
+ .signatureLine {
324
+ border-bottom: 1px solid colors.$black;
325
+ height: layout.$spacing-05;
326
+ width: 100%;
327
+ margin-top: layout.$spacing-02;
328
+ }
329
+
330
+ .qualificationRow {
331
+ display: flex;
332
+ align-items: center;
333
+ gap: layout.$spacing-03;
334
+ margin-top: layout.$spacing-03;
335
+ }
336
+
337
+ .qualificationLine {
338
+ border-bottom: 1px solid colors.$black;
339
+ height: layout.$spacing-05;
340
+ flex: 1;
341
+ }
342
+
343
+ .nameValue {
344
+ color: colors.$black;
345
+ border-bottom: 1px solid colors.$black;
346
+ padding: layout.$spacing-02;
347
+ min-height: layout.$spacing-05;
348
+ display: flex;
349
+ align-items: center;
350
+ font-size: 11px;
351
+ font-weight: 500;
352
+ }
353
+
354
+ .btnSet {
355
+ width: 100%;
356
+ margin-top: layout.$spacing-05;
357
+ }
358
+
359
+ .footer {
360
+ margin-top: layout.$spacing-07;
361
+ padding-top: layout.$spacing-05;
362
+ border-top: 1px solid colors.$black;
363
+ text-align: center;
364
+ page-break-inside: avoid;
365
+ }
366
+
367
+ .footerText {
368
+ font-size: 10px;
369
+ color: colors.$black;
370
+ font-style: italic;
371
+ line-height: 1.4;
372
+ margin-bottom: layout.$spacing-04;
373
+ }
374
+
375
+ .footerDetails {
376
+ margin-top: layout.$spacing-04;
377
+ padding-top: layout.$spacing-03;
378
+ border-top: 1px solid colors.$gray-30;
379
+ font-size: 9px;
380
+ color: colors.$gray-70;
381
+ text-align: center;
382
+ line-height: 1.3;
383
+
384
+ div {
385
+ margin-bottom: layout.$spacing-02;
386
+
387
+ &:last-child {
388
+ margin-bottom: 0;
389
+ }
390
+ }
391
+ }
392
+
393
+ .printableContent {
394
+ h1,
395
+ h2,
396
+ h3,
397
+ h4,
398
+ h5,
399
+ h6 {
400
+ font-family: 'Times New Roman', serif;
401
+ font-weight: 700;
402
+ }
403
+
404
+ p,
405
+ span,
406
+ div {
407
+ font-family: 'Times New Roman', serif;
408
+ }
409
+
410
+ .referenceNumber {
411
+ font-weight: 700;
412
+ text-transform: uppercase;
413
+ }
414
+
415
+ .sealPlaceholder {
416
+ width: 60px;
417
+ height: 60px;
418
+ border: 2px solid colors.$black;
419
+ border-radius: 50%;
420
+ margin: 0 auto layout.$spacing-03;
421
+ display: flex;
422
+ align-items: center;
423
+ justify-content: center;
424
+ font-size: 8px;
425
+ text-align: center;
426
+ }
427
+ }
428
+
429
+ @media print {
430
+ @page {
431
+ size: A4;
432
+ margin: 15mm 20mm 20mm 20mm;
433
+
434
+ @top-center {
435
+ content: '';
436
+ }
437
+
438
+ @bottom-center {
439
+ content: '';
440
+ }
441
+ }
442
+
443
+ * {
444
+ -webkit-print-color-adjust: exact !important;
445
+ print-color-adjust: exact !important;
446
+ }
447
+
448
+ body {
449
+ margin: 0;
450
+ padding: 0;
451
+ background: white !important;
452
+ }
453
+
454
+ body * {
455
+ visibility: hidden;
456
+ }
457
+
458
+ .printableContent,
459
+ .printableContent * {
460
+ visibility: visible;
461
+ }
462
+
463
+ .printableContent {
464
+ position: absolute;
465
+ left: 0;
466
+ top: 0;
467
+ width: 100% !important;
468
+ height: auto !important;
469
+ margin: 0 !important;
470
+ padding: 0 !important;
471
+ box-shadow: none !important;
472
+ border: none !important;
473
+ background: white !important;
474
+ font-size: 11pt !important;
475
+ line-height: 1.3 !important;
476
+ }
477
+
478
+ .printableHeader {
479
+ margin-bottom: 8mm !important;
480
+ padding-bottom: 3mm !important;
481
+ page-break-after: avoid;
482
+ }
483
+
484
+ .facilityName {
485
+ font-size: 14pt !important;
486
+ margin-bottom: 2mm !important;
487
+ }
488
+
489
+ .heading {
490
+ font-size: 12pt !important;
491
+ margin-bottom: 2mm !important;
492
+ }
493
+
494
+ .subheading {
495
+ font-size: 10pt !important;
496
+ }
497
+
498
+ .formSection {
499
+ page-break-inside: avoid;
500
+ margin-bottom: 6mm !important;
501
+
502
+ &:last-of-type {
503
+ margin-bottom: 0 !important;
504
+ }
505
+ }
506
+
507
+ .sectionTitle {
508
+ page-break-after: avoid;
509
+ font-size: 11pt !important;
510
+ margin-bottom: 3mm !important;
511
+ padding: 1mm 0 !important;
512
+ }
513
+
514
+ .sectionSubtitle {
515
+ font-size: 9pt !important;
516
+ margin-bottom: 2mm !important;
517
+ }
518
+
519
+ .fieldRow {
520
+ page-break-inside: avoid;
521
+ margin-bottom: 2mm !important;
522
+ }
523
+
524
+ .field,
525
+ .fieldWide {
526
+ margin-bottom: 1mm !important;
527
+ }
528
+
529
+ .label {
530
+ font-size: 10pt !important;
531
+ font-weight: 600 !important;
532
+ margin-bottom: 0.5mm !important;
533
+ }
534
+
535
+ .value {
536
+ font-size: 10pt !important;
537
+ padding: 1mm 2mm !important;
538
+ min-height: 4mm !important;
539
+ border-bottom: 1pt solid black !important;
540
+ }
541
+
542
+ .textArea,
543
+ .largeTextArea {
544
+ min-height: 12mm !important;
545
+ padding: 2mm !important;
546
+ border: 1pt solid black !important;
547
+ font-size: 10pt !important;
548
+ line-height: 1.2 !important;
549
+ }
550
+
551
+ .systemTextArea {
552
+ min-height: 10mm !important;
553
+ padding: 2mm !important;
554
+ border: 1pt solid black !important;
555
+ font-size: 10pt !important;
556
+ line-height: 1.2 !important;
557
+ }
558
+
559
+ .systemRow {
560
+ page-break-inside: avoid;
561
+ margin-bottom: 3mm !important;
562
+ }
563
+
564
+ .specimenGrid {
565
+ display: block !important;
566
+
567
+ .specimenOption {
568
+ display: block !important;
569
+ margin-bottom: 2mm !important;
570
+ page-break-inside: avoid;
571
+
572
+ .checkbox {
573
+ display: inline-block !important;
574
+ width: 3mm !important;
575
+ height: 3mm !important;
576
+ margin-right: 2mm !important;
577
+ vertical-align: middle;
578
+
579
+ svg {
580
+ width: 3mm !important;
581
+ height: 3mm !important;
582
+ }
583
+ }
584
+
585
+ .optionLabel {
586
+ font-size: 10pt !important;
587
+ display: inline !important;
588
+ vertical-align: middle;
589
+ }
590
+
591
+ .field {
592
+ margin-left: 5mm !important;
593
+ margin-top: 1mm !important;
594
+ }
595
+ }
596
+ }
597
+
598
+ .signaturesSection {
599
+ page-break-before: avoid;
600
+ page-break-inside: avoid;
601
+ margin-top: 10mm !important;
602
+ padding-top: 5mm !important;
603
+ border-top: 2pt solid black !important;
604
+ }
605
+
606
+ .signatureBlock {
607
+ page-break-inside: avoid;
608
+ margin-bottom: 8mm !important;
609
+ }
610
+
611
+ .signatureRow {
612
+ display: block !important;
613
+
614
+ .nameField,
615
+ .signField,
616
+ .dateField {
617
+ display: inline-block !important;
618
+ width: 30% !important;
619
+ margin-right: 3% !important;
620
+ vertical-align: bottom;
621
+
622
+ &:last-child {
623
+ margin-right: 0 !important;
624
+ }
625
+ }
626
+ }
627
+
628
+ .nameValue {
629
+ font-size: 10pt !important;
630
+ padding: 1mm 2mm !important;
631
+ min-height: 4mm !important;
632
+ border-bottom: 1pt solid black !important;
633
+ }
634
+
635
+ .signatureLine {
636
+ border-bottom: 1pt solid black !important;
637
+ height: 4mm !important;
638
+ margin-top: 1mm !important;
639
+ }
640
+
641
+ .qualificationRow {
642
+ margin-top: 2mm !important;
643
+ font-size: 10pt !important;
644
+ }
645
+
646
+ .footer {
647
+ position: fixed;
648
+ bottom: 0;
649
+ left: 0;
650
+ right: 0;
651
+ padding: 3mm 0 !important;
652
+ margin-top: 8mm !important;
653
+ border-top: 1pt solid black !important;
654
+ background: white !important;
655
+ page-break-inside: avoid;
656
+ }
657
+
658
+ .footerText {
659
+ font-size: 9pt !important;
660
+ line-height: 1.2 !important;
661
+ margin-bottom: 2mm !important;
662
+ color: black !important;
663
+ }
664
+
665
+ .footerDetails {
666
+ font-size: 8pt !important;
667
+ color: black !important;
668
+ line-height: 1.1 !important;
669
+ padding-top: 1mm !important;
670
+ border-top: 0.5pt solid #666 !important;
671
+
672
+ div {
673
+ margin-bottom: 1mm !important;
674
+
675
+ &:last-child {
676
+ margin-bottom: 0 !important;
677
+ }
678
+ }
679
+ }
680
+
681
+ .encounterSelection,
682
+ .btnSet,
683
+ .noPrint {
684
+ display: none !important;
685
+ }
686
+
687
+ .printableBody > .formSection:nth-child(n + 8) {
688
+ page-break-before: auto;
689
+ }
690
+
691
+ .signaturesSection {
692
+ break-before: auto;
693
+ }
694
+ }
695
+ @media (prefers-contrast: high) {
696
+ .printableContent {
697
+ .value,
698
+ .textArea,
699
+ .largeTextArea,
700
+ .systemTextArea,
701
+ .nameValue {
702
+ border: 2px solid colors.$black;
703
+ background-color: colors.$white;
704
+ }
705
+
706
+ .checkbox {
707
+ border: 3px solid colors.$black;
708
+ }
709
+
710
+ .footerDetails {
711
+ color: colors.$black;
712
+ border-top: 2px solid colors.$black;
713
+ }
714
+ }
715
+ }