@ampath/esm-reports-app 1.0.0-next.10

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 (154) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +57 -0
  4. package/.husky/pre-commit +7 -0
  5. package/.husky/pre-push +6 -0
  6. package/.prettierignore +14 -0
  7. package/.turbo.json +18 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
  9. package/LICENSE +401 -0
  10. package/README.md +9 -0
  11. package/__mocks__/react-i18next.js +50 -0
  12. package/dist/138.js +2 -0
  13. package/dist/138.js.LICENSE.txt +20 -0
  14. package/dist/138.js.map +1 -0
  15. package/dist/184.js +2 -0
  16. package/dist/184.js.LICENSE.txt +14 -0
  17. package/dist/184.js.map +1 -0
  18. package/dist/197.js +1 -0
  19. package/dist/205.js +1 -0
  20. package/dist/205.js.map +1 -0
  21. package/dist/282.js +2 -0
  22. package/dist/282.js.LICENSE.txt +32 -0
  23. package/dist/282.js.map +1 -0
  24. package/dist/300.js +1 -0
  25. package/dist/311.js +1 -0
  26. package/dist/311.js.map +1 -0
  27. package/dist/335.js +1 -0
  28. package/dist/353.js +1 -0
  29. package/dist/353.js.map +1 -0
  30. package/dist/478.js +2 -0
  31. package/dist/478.js.LICENSE.txt +9 -0
  32. package/dist/478.js.map +1 -0
  33. package/dist/540.js +2 -0
  34. package/dist/540.js.LICENSE.txt +9 -0
  35. package/dist/540.js.map +1 -0
  36. package/dist/55.js +1 -0
  37. package/dist/652.js +1 -0
  38. package/dist/677.js +1 -0
  39. package/dist/677.js.map +1 -0
  40. package/dist/812.js +1 -0
  41. package/dist/812.js.map +1 -0
  42. package/dist/961.js +2 -0
  43. package/dist/961.js.LICENSE.txt +19 -0
  44. package/dist/961.js.map +1 -0
  45. package/dist/99.js +1 -0
  46. package/dist/ampath-esm-reports-app.js +1 -0
  47. package/dist/ampath-esm-reports-app.js.buildmanifest.json +539 -0
  48. package/dist/ampath-esm-reports-app.js.map +1 -0
  49. package/dist/main.js +1 -0
  50. package/dist/main.js.map +1 -0
  51. package/dist/routes.json +1 -0
  52. package/e2e/README.md +115 -0
  53. package/e2e/core/global-setup.ts +32 -0
  54. package/e2e/core/index.ts +1 -0
  55. package/e2e/core/test.ts +20 -0
  56. package/e2e/fixtures/api.ts +26 -0
  57. package/e2e/fixtures/index.ts +1 -0
  58. package/e2e/pages/index.ts +1 -0
  59. package/e2e/pages/root-page.ts +32 -0
  60. package/e2e/specs/template-app.spec.ts +23 -0
  61. package/e2e/support/github/Dockerfile +34 -0
  62. package/e2e/support/github/docker-compose.yml +24 -0
  63. package/e2e/support/github/run-e2e-docker-env.sh +37 -0
  64. package/example.env +6 -0
  65. package/jest.config.js +33 -0
  66. package/package.json +106 -0
  67. package/playwright.config.ts +32 -0
  68. package/prettier.config.js +8 -0
  69. package/src/common/report-filters/report-filters.component.tsx +127 -0
  70. package/src/common/report-filters/report-filters.scss +49 -0
  71. package/src/config-schema.ts +12 -0
  72. package/src/createDashboardLink.tsx +9 -0
  73. package/src/dashboard/reports-dasboard.tsx +41 -0
  74. package/src/dashboard/reports-dashboard.module.scss +14 -0
  75. package/src/dashboard-meta/reports-dashboard.meta.ts +6 -0
  76. package/src/declarations.d.ts +5 -0
  77. package/src/index.ts +20 -0
  78. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  79. package/src/reports/moh-240/moh-240.component.tsx +12 -0
  80. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +42 -0
  81. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
  82. package/src/reports/moh-505/moh-505.component.tsx +234 -0
  83. package/src/reports/moh-705B/moh-705b.component.tsx +466 -0
  84. package/src/reports/moh-705B/moh-705b.scss +41 -0
  85. package/src/reports/moh-705a/moh-705a.component.tsx +473 -0
  86. package/src/reports/moh-705a/moh-705a.scss +41 -0
  87. package/src/reports/moh-706/moh-706.component.tsx +26 -0
  88. package/src/reports/moh-706/moh-706.scss +18 -0
  89. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +117 -0
  90. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +311 -0
  91. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  92. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +172 -0
  93. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  94. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +114 -0
  95. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +40 -0
  96. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  97. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +101 -0
  98. package/src/reports/moh-710/moh-710.component.tsx +663 -0
  99. package/src/reports/moh-710/moh-710.scss +41 -0
  100. package/src/reports/moh-711/moh-711.component.tsx +121 -0
  101. package/src/reports/moh-711/moh711.scss +71 -0
  102. package/src/reports/moh-711/sections/anc.component.tsx +134 -0
  103. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +104 -0
  104. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  105. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  106. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  107. package/src/reports/moh-711/sections/maternity.component.tsx +280 -0
  108. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  109. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  110. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  111. package/src/reports/moh-711/sections/pnc.component.tsx +92 -0
  112. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  113. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  114. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  115. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  116. package/src/reports/moh-717/moh-717.component.tsx +152 -0
  117. package/src/reports/moh-717/moh717.scss +150 -0
  118. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  119. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  120. package/src/reports/moh-717/sections/maternity.component.tsx +94 -0
  121. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  122. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  123. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  124. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  125. package/src/reports/moh-717/sections/outpatient.component.tsx +489 -0
  126. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  127. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  128. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  129. package/src/reports/moh-745/moh-745.component.tsx +629 -0
  130. package/src/reports/moh-745/moh-745.scss +67 -0
  131. package/src/reports/table-wrapper/table-row-mapper.component.tsx +42 -0
  132. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  133. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  134. package/src/resources/moh-705.resource.ts +60 -0
  135. package/src/resources/moh-710.resource.ts +34 -0
  136. package/src/resources/moh-711.resource.ts +34 -0
  137. package/src/resources/moh-717.resource.ts +35 -0
  138. package/src/resources/moh-745.resource.ts +34 -0
  139. package/src/root.component.tsx +35 -0
  140. package/src/root.scss +15 -0
  141. package/src/routes.json +27 -0
  142. package/src/utils/get-base-url.ts +12 -0
  143. package/src/utils/utils.ts +7 -0
  144. package/tools/i18next-parser.config.js +89 -0
  145. package/tools/setup-tests.ts +1 -0
  146. package/tools/update-openmrs-deps.mjs +43 -0
  147. package/translations/am.json +24 -0
  148. package/translations/en.json +24 -0
  149. package/translations/es.json +24 -0
  150. package/translations/fr.json +24 -0
  151. package/translations/he.json +24 -0
  152. package/translations/km.json +24 -0
  153. package/tsconfig.json +24 -0
  154. package/webpack.config.js +1 -0
@@ -0,0 +1,374 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface InpatientComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const InpatientComponent = ({ moh717ReportData }: InpatientComponentProps) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th colSpan={2}>B.1 INPATIENTS</th>
17
+ <th className={styles.rotateUp}>MEDICAL</th>
18
+ <th className={styles.rotateUp}>SURGICAL</th>
19
+ <th className={styles.rotateUp}>OBST/GYN</th>
20
+ <th className={styles.rotateUp}>PAEDIATRICS</th>
21
+ <th className={styles.rotateUp}>MATERNITY</th>
22
+ <th className={styles.rotateUp}>EYE</th>
23
+ <th className={styles.rotateUp}>
24
+ NURSERY/
25
+ <br />
26
+ NEWBORN
27
+ </th>
28
+ <th className={styles.rotateUp}>ORTHOPAEDIC</th>
29
+ <th className={styles.rotateUp}>ISOLATION</th>
30
+ <th className={styles.rotateUp}>AMENITY</th>
31
+ <th className={styles.rotateUp}>PSYCHIATRY</th>
32
+ <th className={styles.rotateUp}>ICU</th>
33
+ <th className={styles.rotateUp}>RENAL</th>
34
+ <th className={styles.rotateUp}>OTHER</th>
35
+ <th className={styles.rotateUp}>TOTAL</th>
36
+ </tr>
37
+ </thead>
38
+ <tbody>
39
+ <tr>
40
+ <td>B.1.1</td>
41
+ <td>Discharges</td>
42
+ <td>{moh717ReportData.medical_discharges}</td>
43
+ <td>{moh717ReportData.surgical_discharges}</td>
44
+ <td>{moh717ReportData.obst_gyn_discharges}</td>
45
+ <td>{moh717ReportData.paediatrics_discharges}</td>
46
+ <td>{moh717ReportData.maternity_discharges}</td>
47
+ <td>{moh717ReportData.eye_discharges}</td>
48
+ <td>{moh717ReportData.nursery_newborn_discharges}</td>
49
+ <td>{moh717ReportData.orthopaedic_discharges}</td>
50
+ <td>{}</td>
51
+ <td>{}</td>
52
+ <td>{}</td>
53
+ <td>{}</td>
54
+ <td>{}</td>
55
+ <td>{}</td>
56
+ <td>{}</td>
57
+ </tr>
58
+ <tr>
59
+ <td>B.1.2</td>
60
+ <td>Deaths</td>
61
+ <td>{moh717ReportData.medical_deaths}</td>
62
+ <td>{moh717ReportData.surgical_deaths}</td>
63
+ <td>{moh717ReportData.obst_gyn_deaths}</td>
64
+ <td>{moh717ReportData.paediatrics_deaths}</td>
65
+ <td>{moh717ReportData.maternity_deaths}</td>
66
+ <td>{moh717ReportData.eye_deaths}</td>
67
+ <td>{moh717ReportData.nursery_newborn_deaths}</td>
68
+ <td>{moh717ReportData.orthopaedic_deaths}</td>
69
+ <td>{}</td>
70
+ <td>{}</td>
71
+ <td>{}</td>
72
+ <td>{}</td>
73
+ <td>{}</td>
74
+ <td>{}</td>
75
+ <td>{}</td>
76
+ </tr>
77
+ <tr>
78
+ <td>B.1.3</td>
79
+ <td>Abscondees</td>
80
+ <td>{moh717ReportData.medical_abscondees}</td>
81
+ <td>{moh717ReportData.surgical_abscondees}</td>
82
+ <td>{moh717ReportData.obst_gyn_abscondees}</td>
83
+ <td>{moh717ReportData.paediatrics_abscondees}</td>
84
+ <td>{moh717ReportData.maternity_abscondees}</td>
85
+ <td>{moh717ReportData.eye_abscondees}</td>
86
+ <td>{moh717ReportData.nursery_newborn_abscondees}</td>
87
+ <td>{moh717ReportData.orthopaedic_abscondees}</td>
88
+ <td>{}</td>
89
+ <td>{}</td>
90
+ <td>{}</td>
91
+ <td>{}</td>
92
+ <td>{}</td>
93
+ <td>{}</td>
94
+ <td>{}</td>
95
+ </tr>
96
+ <tr>
97
+ <td>B.1.4</td>
98
+ <td>Referrals Out of the Facility</td>
99
+ <td>{moh717ReportData.medical_referrals_out_of_facility}</td>
100
+ <td>{moh717ReportData.surgical_referrals_out_of_facility}</td>
101
+ <td>{moh717ReportData.obst_gyn_referrals_out_of_facility}</td>
102
+ <td>{moh717ReportData.paediatrics_referrals_out_of_facility}</td>
103
+ <td>{moh717ReportData.maternity_referrals_out_of_facility}</td>
104
+ <td>{moh717ReportData.eye_referrals_out_of_facility}</td>
105
+ <td>{moh717ReportData.nursery_newborn_referrals_out_of_facility}</td>
106
+ <td>{moh717ReportData.orthopaedic_referrals_out_of_facility}</td>
107
+ <td>{}</td>
108
+ <td>{}</td>
109
+ <td>{}</td>
110
+ <td>{}</td>
111
+ <td>{}</td>
112
+ <td>{}</td>
113
+ <td>{}</td>
114
+ </tr>
115
+ <tr>
116
+ <td className={styles.totals}>B.1.5</td>
117
+ <td className={styles.totals}>TOTAL DISCHARGES, DEATHS, etc.</td>
118
+ <td className={styles.totals}>{}</td>
119
+ <td className={styles.totals}>{}</td>
120
+ <td className={styles.totals}>{}</td>
121
+ <td className={styles.totals}>{}</td>
122
+ <td className={styles.totals}>{}</td>
123
+ <td className={styles.totals}>{}</td>
124
+ <td className={styles.totals}>{}</td>
125
+ <td className={styles.totals}>{}</td>
126
+ <td className={styles.totals}>{}</td>
127
+ <td className={styles.totals}>{}</td>
128
+ <td className={styles.totals}>{}</td>
129
+ <td className={styles.totals}>{}</td>
130
+ <td className={styles.totals}>{}</td>
131
+ <td className={styles.totals}>{}</td>
132
+ <td className={styles.totals}>{}</td>
133
+ </tr>
134
+ <tr>
135
+ <td className={styles.totals}>B.1.6</td>
136
+ <td colSpan={16} className={styles.totals}>
137
+ Admissions
138
+ </td>
139
+ </tr>
140
+ <tr>
141
+ <td>B.1.7a</td>
142
+ <td>Admissions Under Five</td>
143
+ <td>{moh717ReportData.medical_admissions_under_five}</td>
144
+ <td>{moh717ReportData.surgical_admissions_under_five}</td>
145
+ <td>{moh717ReportData.obst_gyn_admissions_under_five}</td>
146
+ <td>{moh717ReportData.paediatrics_admissions_under_five}</td>
147
+ <td>{moh717ReportData.maternity_admissions_under_five}</td>
148
+ <td>{moh717ReportData.eye_admissions_under_five}</td>
149
+ <td>{moh717ReportData.nursery_newborn_admissions_under_five}</td>
150
+ <td>{moh717ReportData.orthopaedic_admissions_under_five}</td>
151
+ <td>{}</td>
152
+ <td>{}</td>
153
+ <td>{}</td>
154
+ <td>{}</td>
155
+ <td>{}</td>
156
+ <td>{}</td>
157
+ <td>{}</td>
158
+ </tr>
159
+ <tr>
160
+ <td>B.1.7b</td>
161
+ <td>Admissions Over Five</td>
162
+ <td>{moh717ReportData.medical_admissions_over_five}</td>
163
+ <td>{moh717ReportData.surgical_admissions_over_five}</td>
164
+ <td>{moh717ReportData.obst_gyn_admissions_over_five}</td>
165
+ <td>{moh717ReportData.paediatrics_admissions_over_five}</td>
166
+ <td>{moh717ReportData.maternity_admissions_over_five}</td>
167
+ <td>{moh717ReportData.eye_admissions_over_five}</td>
168
+ <td>{moh717ReportData.nursery_newborn_admissions_over_five}</td>
169
+ <td>{moh717ReportData.orthopaedic_admissions_over_five}</td>
170
+ <td>{}</td>
171
+ <td>{}</td>
172
+ <td>{}</td>
173
+ <td>{}</td>
174
+ <td>{}</td>
175
+ <td>{}</td>
176
+ <td>{}</td>
177
+ </tr>
178
+ <tr>
179
+ <td>B.1.8</td>
180
+ <td>Paroles</td>
181
+ <td>{moh717ReportData.medical_paroles}</td>
182
+ <td>{moh717ReportData.surgical_paroles}</td>
183
+ <td>{moh717ReportData.obst_gyn_paroles}</td>
184
+ <td>{moh717ReportData.paediatrics_paroles}</td>
185
+ <td>{moh717ReportData.maternity_paroles}</td>
186
+ <td>{moh717ReportData.eye_paroles}</td>
187
+ <td>{moh717ReportData.nursery_newborn_paroles}</td>
188
+ <td>{moh717ReportData.orthopaedic_paroles}</td>
189
+ <td>{}</td>
190
+ <td>{}</td>
191
+ <td>{}</td>
192
+ <td>{}</td>
193
+ <td>{}</td>
194
+ <td>{}</td>
195
+ <td>{}</td>
196
+ </tr>
197
+ <tr>
198
+ <td>B.1.9</td>
199
+ <td>Occupied Bed Days -NHIF Members/ And other insurers</td>
200
+ <td>{moh717ReportData.medical_occupied_bed_days_sha_members}</td>
201
+ <td>{moh717ReportData.surgical_occupied_bed_days_sha_members}</td>
202
+ <td>{moh717ReportData.obst_gyn_occupied_bed_days_sha_members}</td>
203
+ <td>{moh717ReportData.paediatrics_occupied_bed_days_sha_members}</td>
204
+ <td>{moh717ReportData.maternity_occupied_bed_days_sha_members}</td>
205
+ <td>{moh717ReportData.eye_occupied_bed_days_sha_members}</td>
206
+ <td>{moh717ReportData.nursery_newborn_occupied_bed_days_sha_members}</td>
207
+ <td>{moh717ReportData.orthopaedic_occupied_bed_days_sha_members}</td>
208
+ <td>{}</td>
209
+ <td>{}</td>
210
+ <td>{}</td>
211
+ <td>{}</td>
212
+ <td>{}</td>
213
+ <td>{}</td>
214
+ <td>{}</td>
215
+ </tr>
216
+ <tr>
217
+ <td>B.1.1O</td>
218
+ <td>Occupied Bed Days- Cash</td>
219
+ <td>{moh717ReportData.medical_occupied_bed_days_non_sha_members}</td>
220
+ <td>{moh717ReportData.surgical_occupied_bed_days_non_sha_members}</td>
221
+ <td>{moh717ReportData.obst_gyn_occupied_bed_days_non_sha_members}</td>
222
+ <td>{moh717ReportData.paediatrics_occupied_bed_days_non_sha_members}</td>
223
+ <td>{moh717ReportData.maternity_occupied_bed_days_non_sha_members}</td>
224
+ <td>{moh717ReportData.eye_occupied_bed_days_non_sha_members}</td>
225
+ <td>{moh717ReportData.nursery_newborn_occupied_bed_days_non_sha_members}</td>
226
+ <td>{moh717ReportData.orthopaedic_occupied_bed_days_non_sha_members}</td>
227
+ <td>{}</td>
228
+ <td>{}</td>
229
+ <td>{}</td>
230
+ <td>{}</td>
231
+ <td>{}</td>
232
+ <td>{}</td>
233
+ <td>{}</td>
234
+ </tr>
235
+ <tr>
236
+ <td>B.1.11</td>
237
+ <td>Well Persons Days</td>
238
+ <td>{moh717ReportData.medical_well_persons_days}</td>
239
+ <td>{moh717ReportData.surgical_well_persons_days}</td>
240
+ <td>{moh717ReportData.obst_gyn_well_persons_days}</td>
241
+ <td>{moh717ReportData.paediatrics_well_persons_days}</td>
242
+ <td>{moh717ReportData.maternity_well_persons_days}</td>
243
+ <td>{moh717ReportData.eye_well_persons_days}</td>
244
+ <td>{moh717ReportData.nursery_newborn_well_persons_days}</td>
245
+ <td>{moh717ReportData.orthopaedic_well_persons_days}</td>
246
+ <td>{}</td>
247
+ <td>{}</td>
248
+ <td>{}</td>
249
+ <td>{}</td>
250
+ <td>{}</td>
251
+ <td>{}</td>
252
+ <td>{}</td>
253
+ </tr>
254
+ <tr>
255
+ <td>B.1.12</td>
256
+ <td>Beds- Authorized</td>
257
+ <td>{moh717ReportData.medical_authorised_beds}</td>
258
+ <td>{moh717ReportData.surgical_authorised_beds}</td>
259
+ <td>{moh717ReportData.obst_gyn_authorised_beds}</td>
260
+ <td>{moh717ReportData.paediatrics_authorised_beds}</td>
261
+ <td>{moh717ReportData.maternity_authorised_beds}</td>
262
+ <td>{moh717ReportData.eye_authorised_beds}</td>
263
+ <td>{moh717ReportData.nursery_newborn_authorised_beds}</td>
264
+ <td>{moh717ReportData.orthopaedic_authorised_beds}</td>
265
+ <td>{}</td>
266
+ <td>{}</td>
267
+ <td>{}</td>
268
+ <td>{}</td>
269
+ <td>{}</td>
270
+ <td>{}</td>
271
+ <td>{}</td>
272
+ </tr>
273
+ <tr>
274
+ <td>B.1.13</td>
275
+ <td>Beds- Actual Physical</td>
276
+ <td>{moh717ReportData.medical_actual_physical_beds}</td>
277
+ <td>{moh717ReportData.surgical_actual_physical_beds}</td>
278
+ <td>{moh717ReportData.obst_gyn_actual_physical_beds}</td>
279
+ <td>{moh717ReportData.paediatrics_actual_physical_beds}</td>
280
+ <td>{moh717ReportData.maternity_actual_physical_beds}</td>
281
+ <td>{moh717ReportData.eye_actual_physical_beds}</td>
282
+ <td>{moh717ReportData.nursery_newborn_actual_physical_beds}</td>
283
+ <td>{moh717ReportData.orthopaedic_actual_physical_beds}</td>
284
+ <td>{}</td>
285
+ <td>{}</td>
286
+ <td>{}</td>
287
+ <td>{}</td>
288
+ <td>{}</td>
289
+ <td>{}</td>
290
+ <td>{}</td>
291
+ </tr>
292
+ <tr>
293
+ <td>B.1.14</td>
294
+ <td>Cots- Authorised</td>
295
+ <td>{moh717ReportData.medical_authorised_cots}</td>
296
+ <td>{moh717ReportData.surgical_authorised_cots}</td>
297
+ <td>{moh717ReportData.obst_gyn_authorised_cots}</td>
298
+ <td>{moh717ReportData.paediatrics_authorised_cots}</td>
299
+ <td>{moh717ReportData.maternity_authorised_cots}</td>
300
+ <td>{moh717ReportData.eye_authorised_cots}</td>
301
+ <td>{moh717ReportData.nursery_newborn_authorised_cots}</td>
302
+ <td>{moh717ReportData.orthopaedic_authorised_cots}</td>
303
+ <td>{}</td>
304
+ <td>{}</td>
305
+ <td>{}</td>
306
+ <td>{}</td>
307
+ <td>{}</td>
308
+ <td>{}</td>
309
+ <td>{}</td>
310
+ </tr>
311
+ <tr>
312
+ <td>B.1.15</td>
313
+ <td>Cots- Actual Physical</td>
314
+ <td>{moh717ReportData.medical_actual_physical_cots}</td>
315
+ <td>{moh717ReportData.surgical_actual_physical_cots}</td>
316
+ <td>{moh717ReportData.obst_gyn_actual_physical_cots}</td>
317
+ <td>{moh717ReportData.paediatrics_actual_physical_cots}</td>
318
+ <td>{moh717ReportData.maternity_actual_physical_cots}</td>
319
+ <td>{moh717ReportData.eye_actual_physical_cots}</td>
320
+ <td>{moh717ReportData.nursery_newborn_actual_physical_cots}</td>
321
+ <td>{moh717ReportData.orthopaedic_actual_physical_cots}</td>
322
+ <td>{}</td>
323
+ <td>{}</td>
324
+ <td>{}</td>
325
+ <td>{}</td>
326
+ <td>{}</td>
327
+ <td>{}</td>
328
+ <td>{}</td>
329
+ </tr>
330
+ <tr>
331
+ <td>B.1.16</td>
332
+ <td>Incubator- Authorised</td>
333
+ <td>{moh717ReportData.medical_authorised_incubator}</td>
334
+ <td>{moh717ReportData.surgical_authorised_incubator}</td>
335
+ <td>{moh717ReportData.obst_gyn_authorised_incubator}</td>
336
+ <td>{moh717ReportData.paediatrics_authorised_incubator}</td>
337
+ <td>{moh717ReportData.maternity_authorised_incubator}</td>
338
+ <td>{moh717ReportData.eye_authorised_incubator}</td>
339
+ <td>{moh717ReportData.nursery_newborn_authorised_incubator}</td>
340
+ <td>{moh717ReportData.orthopaedic_authorised_incubator}</td>
341
+ <td>{}</td>
342
+ <td>{}</td>
343
+ <td>{}</td>
344
+ <td>{}</td>
345
+ <td>{}</td>
346
+ <td>{}</td>
347
+ <td>{}</td>
348
+ </tr>
349
+ <tr>
350
+ <td>B.1.17</td>
351
+ <td>Incubator- Actual Physical</td>
352
+ <td>{moh717ReportData.medical_actual_Physical_incubator}</td>
353
+ <td>{moh717ReportData.surgical_actual_Physical_incubator}</td>
354
+ <td>{moh717ReportData.obst_gyn_actual_Physical_incubator}</td>
355
+ <td>{moh717ReportData.paediatrics_actual_Physical_incubator}</td>
356
+ <td>{moh717ReportData.maternity_actual_Physical_incubator}</td>
357
+ <td>{moh717ReportData.eye_actual_Physical_incubator}</td>
358
+ <td>{moh717ReportData.nursery_newborn_actual_Physical_incubator}</td>
359
+ <td>{moh717ReportData.orthopaedic_actual_Physical_incubator}</td>
360
+ <td>{}</td>
361
+ <td>{}</td>
362
+ <td>{}</td>
363
+ <td>{}</td>
364
+ <td>{}</td>
365
+ <td>{}</td>
366
+ <td>{}</td>
367
+ </tr>
368
+ </tbody>
369
+ </table>
370
+ </>
371
+ );
372
+ };
373
+
374
+ export default InpatientComponent;
@@ -0,0 +1,94 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface MaternityComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh717ReportData }: { moh717ReportData: any }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th colSpan={2} className={styles.totals}>
17
+ B.2 MATERNITY SERVICES
18
+ </th>
19
+ <th className={styles.totals}>Number</th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <tr>
24
+ <td>B.2.1</td>
25
+ <td>Normal Deliveries</td>
26
+ <td>{moh717ReportData.normal_deliveries}</td>
27
+ </tr>
28
+ <tr>
29
+ <td>B.2.2</td>
30
+ <td>Caesarian Sections</td>
31
+ <td>{moh717ReportData.caesarian_sections}</td>
32
+ </tr>
33
+ <tr>
34
+ <td>B.2.3</td>
35
+ <td>Breach Deliveries</td>
36
+ <td>{moh717ReportData.breach_deliveries}</td>
37
+ </tr>
38
+ <tr>
39
+ <td>B.2.4</td>
40
+ <td>Assisted Vaginal Delivery</td>
41
+ <td>{moh717ReportData.assisted_vaginal_deliveries}</td>
42
+ </tr>
43
+ <tr>
44
+ <td>B.2.5a</td>
45
+ <td>BBA (Born before arrival)</td>
46
+ <td>{moh717ReportData.born_before_arrival}</td>
47
+ </tr>
48
+ <tr>
49
+ <td>B.2.5b</td>
50
+ <td>Maternal deaths</td>
51
+ <td>{moh717ReportData.maternal_deaths}</td>
52
+ </tr>
53
+ <tr>
54
+ <td>B.2.6</td>
55
+ <td>Maternal Deaths Audited</td>
56
+ <td>{moh717ReportData.maternal_deaths_audited_within_7_days}</td>
57
+ </tr>
58
+ <tr>
59
+ <td>B.2.7</td>
60
+ <td>Live births</td>
61
+ <td>{moh717ReportData.live_births}</td>
62
+ </tr>
63
+ <tr>
64
+ <td>B.2.8</td>
65
+ <td>Still births</td>
66
+ <td>{moh717ReportData.still_births}</td>
67
+ </tr>
68
+ <tr>
69
+ <td>B.2.9</td>
70
+ <td>Neonatal deaths</td>
71
+ <td>{moh717ReportData.neonatal_deaths_0_28_days}</td>
72
+ </tr>
73
+ <tr>
74
+ <td>B.2.10</td>
75
+ <td>Neonatal deaths Audits</td>
76
+ <td>{moh717ReportData.neonatal_deaths_audits}</td>
77
+ </tr>
78
+ <tr>
79
+ <td>B.2.11</td>
80
+ <td>Low Birth Weight babies (under 2500gms)</td>
81
+ <td>{moh717ReportData.low_birth_weight_less_2500gms}</td>
82
+ </tr>
83
+ <tr>
84
+ <td>B.2.12</td>
85
+ <td>Total Discharges: new born</td>
86
+ <td></td>
87
+ </tr>
88
+ </tbody>
89
+ </table>
90
+ </>
91
+ );
92
+ };
93
+
94
+ export default MaternityComponent;
@@ -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;