@ampath/esm-reports-app 1.0.0-next.3 → 1.0.0-next.30

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 (140) hide show
  1. package/dist/138.js +2 -0
  2. package/dist/138.js.LICENSE.txt +20 -0
  3. package/dist/138.js.map +1 -0
  4. package/dist/184.js +1 -1
  5. package/dist/184.js.map +1 -1
  6. package/dist/205.js +1 -0
  7. package/dist/205.js.map +1 -0
  8. package/dist/282.js +1 -1
  9. package/dist/282.js.LICENSE.txt +3 -3
  10. package/dist/282.js.map +1 -1
  11. package/dist/311.js +1 -0
  12. package/dist/311.js.map +1 -0
  13. package/dist/353.js +1 -2
  14. package/dist/353.js.map +1 -1
  15. package/dist/478.js +2 -0
  16. package/dist/478.js.LICENSE.txt +9 -0
  17. package/dist/478.js.map +1 -0
  18. package/dist/540.js +1 -1
  19. package/dist/540.js.map +1 -1
  20. package/dist/645.js +1 -0
  21. package/dist/645.js.map +1 -0
  22. package/dist/812.js +1 -0
  23. package/dist/812.js.map +1 -0
  24. package/dist/961.js +1 -1
  25. package/dist/961.js.map +1 -1
  26. package/dist/ampath-esm-reports-app.js +1 -1
  27. package/dist/ampath-esm-reports-app.js.buildmanifest.json +174 -99
  28. package/dist/ampath-esm-reports-app.js.map +1 -1
  29. package/dist/main.js +1 -1
  30. package/dist/main.js.map +1 -1
  31. package/dist/routes.json +1 -1
  32. package/package.json +2 -1
  33. package/src/common/report-filters/report-filters.component.tsx +127 -0
  34. package/src/common/report-filters/report-filters.scss +49 -0
  35. package/src/dashboard/reports-dasboard.tsx +38 -1
  36. package/src/dashboard/reports-dashboard.module.scss +14 -0
  37. package/src/index.ts +1 -1
  38. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  39. package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
  40. package/src/reports/moh-240/moh-240.component.tsx +68 -0
  41. package/src/reports/moh-240/moh-240.scss +3 -0
  42. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +72 -0
  43. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
  44. package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
  45. package/src/reports/moh-505/moh-505.component.tsx +240 -0
  46. package/src/reports/moh-505/moh-505.scss +3 -0
  47. package/src/reports/moh-705B/moh-204b-register.component.tsx +235 -0
  48. package/src/reports/moh-705B/moh-705b.component.tsx +524 -0
  49. package/src/reports/moh-705B/moh-705b.scss +44 -0
  50. package/src/reports/moh-705a/moh-705a.component.tsx +528 -0
  51. package/src/reports/moh-705a/moh-705a.scss +45 -0
  52. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +320 -0
  53. package/src/reports/moh-705a/type.ts +6 -0
  54. package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
  55. package/src/reports/moh-706/moh-706.component.tsx +104 -0
  56. package/src/reports/moh-706/moh-706.scss +30 -0
  57. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
  58. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
  59. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  60. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
  61. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  62. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
  63. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
  64. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  65. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
  66. package/src/reports/moh-710/moh-710.component.tsx +665 -0
  67. package/src/reports/moh-710/moh-710.scss +45 -0
  68. package/src/reports/moh-710/patient-list/moh-710-patient-list.component.tsx +13 -0
  69. package/src/reports/moh-711/moh-711.component.tsx +139 -0
  70. package/src/reports/moh-711/moh711.scss +82 -0
  71. package/src/reports/moh-711/registers/moh-333-register.component.tsx +636 -0
  72. package/src/reports/moh-711/registers/moh-405-register.component.tsx +518 -0
  73. package/src/reports/moh-711/registers/moh-406-register.component.tsx +530 -0
  74. package/src/reports/moh-711/registers/moh-510-register.component.tsx +61 -0
  75. package/src/reports/moh-711/registers/moh-511-register.component.tsx +263 -0
  76. package/src/reports/moh-711/registers/type.ts +194 -0
  77. package/src/reports/moh-711/sections/anc.component.tsx +153 -0
  78. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +104 -0
  79. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  80. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  81. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  82. package/src/reports/moh-711/sections/maternity.component.tsx +319 -0
  83. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  84. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  85. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  86. package/src/reports/moh-711/sections/pnc.component.tsx +118 -0
  87. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  88. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  89. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  90. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  91. package/src/reports/moh-717/moh-717.component.tsx +170 -0
  92. package/src/reports/moh-717/moh717.scss +154 -0
  93. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  94. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  95. package/src/reports/moh-717/sections/maternity.component.tsx +119 -0
  96. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  97. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  98. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  99. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  100. package/src/reports/moh-717/sections/outpatient.component.tsx +489 -0
  101. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  102. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  103. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  104. package/src/reports/moh-740/moh-740.component.scss +120 -0
  105. package/src/reports/moh-740/moh-740.component.tsx +1263 -0
  106. package/src/reports/moh-740/moh-740.resource.ts +42 -0
  107. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +6 -0
  108. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +18 -0
  109. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +79 -0
  110. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  111. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +43 -0
  112. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  113. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  114. package/src/reports/moh-740/shared/utils/format-indicator.ts +22 -0
  115. package/src/reports/moh-740/types/index.ts +183 -0
  116. package/src/reports/moh-745/moh-745.component.tsx +928 -0
  117. package/src/reports/moh-745/moh-745.scss +74 -0
  118. package/src/reports/moh-745/registers/moh-412-register.component.tsx +191 -0
  119. package/src/reports/moh-745/registers/type.ts +29 -0
  120. package/src/reports/table-wrapper/table-row-mapper.component.tsx +51 -0
  121. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  122. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  123. package/src/resources/moh-705.resource.ts +117 -0
  124. package/src/resources/moh-706.resource.ts +86 -0
  125. package/src/resources/moh-710.resource.ts +60 -0
  126. package/src/resources/moh-711.resource.ts +175 -0
  127. package/src/resources/moh-717.resource.ts +35 -0
  128. package/src/resources/moh-745.resource.ts +64 -0
  129. package/src/root.component.tsx +38 -0
  130. package/src/utils/get-base-url.ts +12 -0
  131. package/src/utils/utils.ts +36 -0
  132. package/dist/255.js +0 -1
  133. package/dist/255.js.map +0 -1
  134. package/dist/353.js.LICENSE.txt +0 -39
  135. package/dist/36.js +0 -1
  136. package/dist/36.js.map +0 -1
  137. package/dist/734.js +0 -1
  138. package/dist/734.js.map +0 -1
  139. package/dist/97.js +0 -1
  140. package/dist/97.js.map +0 -1
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface MedicalRecordsComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const MedicalRecordsComponent: React.FC<MedicalRecordsComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th>F. MEDICAL RECORDS ISSUED</th>
17
+ <th>Number</th>
18
+ </tr>
19
+ </thead>
20
+ <tbody>
21
+ <tr>
22
+ <td>F.1 New Files/Folders</td>
23
+ <td>{moh717ReportData.new_patient_files_issued}</td>
24
+ </tr>
25
+ <tr>
26
+ <td>F.2 Outpatient Cards/booklets</td>
27
+ <td>{moh717ReportData.outpatient_records_cards_issued}</td>
28
+ </tr>
29
+ </tbody>
30
+ </table>
31
+ </>
32
+ );
33
+ };
34
+
35
+ export default MedicalRecordsComponent;
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface MortuaryComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const MortuaryComponent: React.FC<MortuaryComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th>E. MORTUARY</th>
17
+ <th>Number</th>
18
+ </tr>
19
+ </thead>
20
+ <tbody>
21
+ <tr>
22
+ <td>E.1 Body days</td>
23
+ <td>{moh717ReportData.mortuary_body_days}</td>
24
+ </tr>
25
+ <tr>
26
+ <td>E.2 Embalment</td>
27
+ <td>{moh717ReportData.mortuary_embalment}</td>
28
+ </tr>
29
+ <tr>
30
+ <td>E.3 Post-Mortem</td>
31
+ <td>{moh717ReportData.mortuary_postmortem}</td>
32
+ </tr>
33
+ <tr>
34
+ <td>E.4 Unclaimed body days</td>
35
+ <td>{moh717ReportData.mortuary_unclaimed_bodies}</td>
36
+ </tr>
37
+ </tbody>
38
+ </table>
39
+ </>
40
+ );
41
+ };
42
+
43
+ export default MortuaryComponent;
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface OperationsComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const OperationsComponent: React.FC<OperationsComponentProps> = ({ moh717ReportData }: { moh717ReportData: any }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th className={styles.totals}>B.3 OPERATIONS</th>
17
+ <th className={styles.totals}>No. Booked</th>
18
+ <th className={styles.totals}>No. Operated</th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ <tr>
23
+ <td>B.3.1 Minor Surgeries (excluding circumcision)</td>
24
+ <td>{moh717ReportData.minor_surgeries_booked}</td>
25
+ <td>{moh717ReportData.minor_surgeries_operated}</td>
26
+ </tr>
27
+ <tr>
28
+ <td>B.3.1.1 Emergencies</td>
29
+ <td>{moh717ReportData.emergencies_booked}</td>
30
+ <td>{moh717ReportData.emergencies_operated}</td>
31
+ </tr>
32
+ <tr>
33
+ <td>B.3.1.2 Cold Cases</td>
34
+ <td>{moh717ReportData.cold_cases_booked}</td>
35
+ <td>{moh717ReportData.cold_surgical_cases}</td>
36
+ </tr>
37
+ <tr>
38
+ <td>B.3.2 Circumcision</td>
39
+ <td>{moh717ReportData.circumcisions_booked}</td>
40
+ <td>{moh717ReportData.circumcisions_operated}</td>
41
+ </tr>
42
+ <tr>
43
+ <td>B.3.3 Major surgeries</td>
44
+ <td>{moh717ReportData.major_surgeries_booked}</td>
45
+ <td>{moh717ReportData.major_surgeries_operated}</td>
46
+ </tr>
47
+ </tbody>
48
+ </table>
49
+ </>
50
+ );
51
+ };
52
+
53
+ export default OperationsComponent;
@@ -0,0 +1,98 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface OrthopaedicTraumaComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const OrthopaedicTraumaComponent: React.FC<OrthopaedicTraumaComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th className={styles.totals}>B4. ORTHOPAEDIC TRAUMA SERVICES</th>
17
+ <th colSpan={2}>&lt;5 Years</th>
18
+ <th colSpan={2}>&gt;5 Years</th>
19
+ </tr>
20
+ <tr>
21
+ <th className={styles.alighnLeft}>Description</th>
22
+ <th>New</th>
23
+ <th>Revisit</th>
24
+ <th>New</th>
25
+ <th>Revisit</th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <tr>
30
+ <td>No of Casts fixed</td>
31
+ <td>{moh717ReportData.casts_fixed_less_5_years_new}</td>
32
+ <td>{moh717ReportData.casts_fixed_less_5_years_revisit}</td>
33
+ <td>{moh717ReportData.casts_fixed_over_5_years_new}</td>
34
+ <td>{moh717ReportData.casts_fixed_over_5_years_revisit}</td>
35
+ </tr>
36
+ <tr>
37
+ <td>No of Tractions fixed</td>
38
+ <td>{moh717ReportData.tractions_fixed_less_5_years_new}</td>
39
+ <td>{moh717ReportData.tractions_fixed_less_5_years_revisit}</td>
40
+ <td>{moh717ReportData.tractions_fixed_over_5_years_new}</td>
41
+ <td>{moh717ReportData.tractions_fixed_over_5_years_revisit}</td>
42
+ </tr>
43
+ <tr>
44
+ <td>No of Closed Reductions (Fructures, Dislocation)</td>
45
+ <td>{moh717ReportData.closed_reductions_less_5_years_new}</td>
46
+ <td>{moh717ReportData.closed_reductions_less_5_years_revisit}</td>
47
+ <td>{moh717ReportData.closed_reductions_over_5_years_new}</td>
48
+ <td>{moh717ReportData.closed_reductions_over_5_years_revisit}</td>
49
+ </tr>
50
+ <tr>
51
+ <td>No of Orthopeadic cases assisted in theatre</td>
52
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_less_5_years_new}</td>
53
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_less_5_years_revisit}</td>
54
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_over_5_years_new}</td>
55
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_over_5_years_revisit}</td>
56
+ </tr>
57
+ <tr>
58
+ <td>No of club foot seen /corrected (Ponsseti method)</td>
59
+ <td>{moh717ReportData.club_foot_seen_less_5_years_new}</td>
60
+ <td>{moh717ReportData.club_foot_seen_less_5_years_revisit}</td>
61
+ <td>{moh717ReportData.club_foot_seen_over_5_years_new}</td>
62
+ <td>{moh717ReportData.club_foot_seen_over_5_years_revisit}</td>
63
+ </tr>
64
+ <tr>
65
+ <td>No of Crepe bandages and arm slings applied</td>
66
+ <td>{moh717ReportData.crepe_bandages_applied_less_5_years_new}</td>
67
+ <td>{moh717ReportData.crepe_bandages_applied_less_5_years_revisit}</td>
68
+ <td>{moh717ReportData.crepe_bandages_applied_over_5_years_new}</td>
69
+ <td>{moh717ReportData.crepe_bandages_applied_over_5_years_revisit}</td>
70
+ </tr>
71
+ <tr>
72
+ <th className={styles.alignLeft}>Removals</th>
73
+ <th colSpan={2}>Casts</th>
74
+ <th colSpan={2}>Tractions</th>
75
+ <th>Ex-Fixator</th>
76
+ </tr>
77
+ <tr>
78
+ <td rowSpan={2}></td>
79
+ <th>&lt;5 years</th>
80
+ <th>&gt;5 years</th>
81
+ <th>&lt;5 years</th>
82
+ <th>&gt;5 years</th>
83
+ <th>&gt;5 years</th>
84
+ </tr>
85
+ <tr>
86
+ <th>{moh717ReportData.removals_done_cast_less_5_years}</th>
87
+ <th>{moh717ReportData.removals_done_cast_over_5_years}</th>
88
+ <th>{moh717ReportData.removals_done_tractions_less_5_years}</th>
89
+ <th>{moh717ReportData.orthopaedic_removals_tractions_over_5_years}</th>
90
+ <th>{moh717ReportData.ex_fixator_removed_over_5_years}</th>
91
+ </tr>
92
+ </tbody>
93
+ </table>
94
+ </>
95
+ );
96
+ };
97
+
98
+ export default OrthopaedicTraumaComponent;