@ampath/esm-reports-app 1.0.0-next.4 → 1.0.0-next.41

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 (132) hide show
  1. package/dist/110.js +1 -0
  2. package/dist/110.js.map +1 -0
  3. package/dist/{260.js → 205.js} +1 -1
  4. package/dist/{260.js.map → 205.js.map} +1 -1
  5. package/dist/812.js +1 -1
  6. package/dist/812.js.map +1 -1
  7. package/dist/822.js +2 -0
  8. package/dist/822.js.map +1 -0
  9. package/dist/ampath-esm-reports-app.js +1 -1
  10. package/dist/ampath-esm-reports-app.js.buildmanifest.json +95 -74
  11. package/dist/ampath-esm-reports-app.js.map +1 -1
  12. package/dist/main.js +1 -1
  13. package/dist/main.js.map +1 -1
  14. package/dist/routes.json +1 -1
  15. package/package.json +1 -1
  16. package/src/common/report-filters/report-filters.component.tsx +68 -7
  17. package/src/common/report-filters/report-filters.scss +42 -0
  18. package/src/dashboard/reports-dasboard.tsx +21 -0
  19. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  20. package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
  21. package/src/reports/moh-240/moh-240.component.tsx +93 -0
  22. package/src/reports/moh-240/moh-240.scss +11 -0
  23. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +75 -0
  24. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +98 -0
  25. package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
  26. package/src/reports/moh-505/moh-505.component.tsx +440 -0
  27. package/src/reports/moh-505/moh-505.scss +3 -0
  28. package/src/reports/moh-705B/moh-204b-register.component.tsx +236 -0
  29. package/src/reports/moh-705B/moh-705b.component.tsx +524 -0
  30. package/src/reports/moh-705B/moh-705b.scss +44 -0
  31. package/src/reports/moh-705a/moh-705a.component.tsx +528 -0
  32. package/src/reports/moh-705a/moh-705a.scss +45 -0
  33. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +321 -0
  34. package/src/reports/moh-705a/type.ts +6 -0
  35. package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
  36. package/src/reports/moh-706/moh-706.component.tsx +117 -0
  37. package/src/reports/moh-706/moh-706.scss +30 -0
  38. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
  39. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
  40. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  41. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
  42. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  43. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
  44. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
  45. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  46. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
  47. package/src/reports/moh-710/moh-710.component.tsx +211 -79
  48. package/src/reports/moh-710/moh-710.scss +5 -1
  49. package/src/reports/moh-710/registers/moh-511-710-register.component.tsx +263 -0
  50. package/src/reports/moh-710/registers/type.ts +31 -0
  51. package/src/reports/moh-711/moh-711.component.tsx +109 -1234
  52. package/src/reports/moh-711/moh711.scss +92 -8
  53. package/src/reports/moh-711/registers/moh-333-register.component.tsx +639 -0
  54. package/src/reports/moh-711/registers/moh-405-register.component.tsx +521 -0
  55. package/src/reports/moh-711/registers/moh-406-register.component.tsx +533 -0
  56. package/src/reports/moh-711/registers/moh-510-register.component.tsx +61 -0
  57. package/src/reports/moh-711/registers/moh-511-register.component.tsx +271 -0
  58. package/src/reports/moh-711/registers/type.ts +192 -0
  59. package/src/reports/moh-711/sections/anc.component.tsx +159 -0
  60. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +148 -0
  61. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  62. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  63. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  64. package/src/reports/moh-711/sections/maternity.component.tsx +326 -0
  65. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  66. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  67. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  68. package/src/reports/moh-711/sections/pnc.component.tsx +125 -0
  69. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  70. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  71. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  72. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  73. package/src/reports/moh-717/moh-717.component.tsx +120 -946
  74. package/src/reports/moh-717/moh717.scss +138 -3
  75. package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
  76. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  77. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  78. package/src/reports/moh-717/sections/maternity.component.tsx +126 -0
  79. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  80. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  81. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  82. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  83. package/src/reports/moh-717/sections/outpatient.component.tsx +597 -0
  84. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  85. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  86. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  87. package/src/reports/moh-731/moh-731.component.tsx +181 -0
  88. package/src/reports/moh-731/moh-731.scss +118 -0
  89. package/src/reports/moh-731/registers/moh-366.component.tsx +478 -0
  90. package/src/reports/moh-731/registers/moh-366.scss +45 -0
  91. package/src/reports/moh-731/registers/prep-register.component.tsx +292 -0
  92. package/src/reports/moh-731/registers/prep-registers.scss +45 -0
  93. package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +932 -0
  94. package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +569 -0
  95. package/src/reports/moh-731/sections/pmtct.component.tsx +451 -0
  96. package/src/reports/moh-740/moh-740.component.scss +120 -0
  97. package/src/reports/moh-740/moh-740.component.tsx +1271 -0
  98. package/src/reports/moh-740/moh-740.resource.ts +42 -0
  99. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +18 -0
  100. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +104 -0
  101. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +18 -0
  102. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +79 -0
  103. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  104. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +66 -0
  105. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  106. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  107. package/src/reports/moh-740/shared/utils/format-indicator.ts +22 -0
  108. package/src/reports/moh-740/shared/utils/indicator-register-map.ts +157 -0
  109. package/src/reports/moh-740/types/index.ts +216 -0
  110. package/src/reports/moh-745/moh-745.component.tsx +928 -0
  111. package/src/reports/moh-745/moh-745.scss +74 -0
  112. package/src/reports/moh-745/registers/moh-412-register.component.tsx +191 -0
  113. package/src/reports/moh-745/registers/type.ts +30 -0
  114. package/src/reports/table-wrapper/table-row-mapper.component.tsx +53 -0
  115. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  116. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  117. package/src/resources/moh-505.resource.ts +86 -0
  118. package/src/resources/moh-705.resource.ts +117 -0
  119. package/src/resources/moh-706.resource.ts +86 -0
  120. package/src/resources/moh-710.resource.ts +28 -0
  121. package/src/resources/moh-711.resource.ts +146 -0
  122. package/src/resources/moh-717.resource.ts +27 -0
  123. package/src/resources/moh-731.resource.ts +96 -0
  124. package/src/resources/moh-745.resource.ts +64 -0
  125. package/src/root.component.tsx +39 -0
  126. package/src/routes.json +3 -1
  127. package/src/utils/utils.ts +36 -0
  128. package/dist/367.js +0 -2
  129. package/dist/367.js.map +0 -1
  130. package/dist/86.js +0 -1
  131. package/dist/86.js.map +0 -1
  132. /package/dist/{367.js.LICENSE.txt → 822.js.LICENSE.txt} +0 -0
@@ -0,0 +1,221 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh711.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface FamilyPlanningComponentProps {
7
+ moh711Data: any;
8
+ }
9
+
10
+ const FamilyPlanningComponent: React.FC<FamilyPlanningComponentProps> = ({ moh711Data }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th></th>
17
+ <th colSpan={2}>D. Family Planning (Number of clients issued with contraceptives)</th>
18
+ <th></th>
19
+ <th></th>
20
+ </tr>
21
+ <tr>
22
+ <th></th>
23
+ <th colSpan={2} className={styles.greyBackground}></th>
24
+ <th>NEW</th>
25
+ <th>RE-VISITS</th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <tr>
30
+ <td>1</td>
31
+ <td colSpan={2}>No. of 1st Ever Users of Contraceptive</td>
32
+ <td>{moh711Data.first_users_contraceptive_new}</td>
33
+ <td className={styles.greyBackground}>{moh711Data.first_users_contraceptive_revisit}</td>
34
+ </tr>
35
+ <tr>
36
+ <td>2</td>
37
+ <td rowSpan={3}>Pills</td>
38
+ <td>Progestine only pills</td>
39
+ <td>{moh711Data.pills_progestine_new}</td>
40
+ <td>{moh711Data.pills_progestine_revisit}</td>
41
+ </tr>
42
+ <tr>
43
+ <td>3</td>
44
+ <td>Pills Combined oral contraceptive</td>
45
+ <td>{moh711Data.pills_combined_oral_contraceptive_new}</td>
46
+ <td>{moh711Data.pills_combined_oral_contraceptive_revisit}</td>
47
+ </tr>
48
+ <tr>
49
+ <td>4</td>
50
+ <td>Emergency contraceptive pill</td>
51
+ <td>{moh711Data.emergency_contraceptive_pill_new}</td>
52
+ <td className={styles.greyBackground}>{moh711Data.emergency_contraceptive_pill_revisit}</td>
53
+ </tr>
54
+ <tr>
55
+ <td>5</td>
56
+ <td rowSpan={2}>Injectables</td>
57
+ <td>FP Injections DMPA- IM</td>
58
+ <td>{moh711Data.fp_injections_dmpa_im}</td>
59
+ <td></td>
60
+ </tr>
61
+ <tr>
62
+ <td>6</td>
63
+ <td>FP Injections DMPA- SC</td>
64
+ <td>{moh711Data.fp_injections_dmpa_sc}</td>
65
+ <td></td>
66
+ </tr>
67
+ <tr>
68
+ <td>7</td>
69
+ <td rowSpan={3}>Condoms</td>
70
+ <td>No. of clients received (Male condoms)</td>
71
+ <td>{moh711Data.male_condoms_new}</td>
72
+ <td>{moh711Data.male_condoms_revisit}</td>
73
+ </tr>
74
+ <tr>
75
+ <td>8</td>
76
+ <td>No. of clients received (Female condoms)</td>
77
+ <td>{moh711Data.female_condoms_new}</td>
78
+ <td>{moh711Data.female_condoms_revisit}</td>
79
+ </tr>
80
+ <tr>
81
+ <td>9</td>
82
+ <td>No. of clients received (Both Male and Female condoms)</td>
83
+ <td>{moh711Data.male_and_female_condoms_new}</td>
84
+ <td>{moh711Data.male_and_female_condoms_revisit}</td>
85
+ </tr>
86
+ <tr>
87
+ <td>10</td>
88
+ <td rowSpan={2}>Natural FP</td>
89
+ <td>No. of clients counselled Natural FP</td>
90
+ <td>{moh711Data.counselled_for_natural_family_planning_new}</td>
91
+ <td className={styles.greyBackground}>{moh711Data.counselled_for_natural_family_planning_revisit}</td>
92
+ </tr>
93
+ <tr>
94
+ <td>11</td>
95
+ <td>No. of clients given cycle beads</td>
96
+ <td>{moh711Data.cycle_beads_new}</td>
97
+ <td className={styles.greyBackground}>{moh711Data.cycle_beads_revisit}</td>
98
+ </tr>
99
+ </tbody>
100
+ </table>
101
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
102
+ <thead>
103
+ <tr>
104
+ <th></th>
105
+ <th colSpan={2}>Long acting and permanent methods</th>
106
+ <th>1st time insertion</th>
107
+ <th>Re-insertion</th>
108
+ </tr>
109
+ </thead>
110
+ <tbody>
111
+ <tr>
112
+ <td>12</td>
113
+ <td rowSpan={2}>Implants</td>
114
+ <td>1 Rod</td>
115
+ <td></td>
116
+ <td></td>
117
+ </tr>
118
+ <tr>
119
+ <td>13</td>
120
+ <td>2 Rods</td>
121
+ <td></td>
122
+ <td></td>
123
+ </tr>
124
+ <tr>
125
+ <td>14</td>
126
+ <td rowSpan={2}>I.U.C.D insertion</td>
127
+ <td>Hormonal</td>
128
+ <td>{moh711Data.iucd_hormonal}</td>
129
+ <td></td>
130
+ </tr>
131
+ <tr>
132
+ <td>15</td>
133
+ <td>Non Hormonal</td>
134
+ <td>{moh711Data.iucd_non_hormonal}</td>
135
+ <td></td>
136
+ </tr>
137
+ <tr>
138
+ <td>16</td>
139
+ <td rowSpan={2}>Voluntary surgical contraception</td>
140
+ <td>BTL</td>
141
+ <td>{moh711Data.surgical_contraception_btl}</td>
142
+ <td className={styles.greyBackground}></td>
143
+ </tr>
144
+ <tr>
145
+ <td>17</td>
146
+ <td>Vasectomy</td>
147
+ <td>{moh711Data.vasectomy} </td>
148
+ <td className={styles.greyBackground}></td>
149
+ </tr>
150
+ <tr>
151
+ <th colSpan={3}></th>
152
+ <th>New</th>
153
+ <th>Revisit</th>
154
+ </tr>
155
+ <tr>
156
+ <td>18</td>
157
+ <td rowSpan={2}>Removals</td>
158
+ <td>I.U.C.D</td>
159
+ <td>{moh711Data.iucd_removals}</td>
160
+ <td className={styles.greyBackground}></td>
161
+ </tr>
162
+ <tr>
163
+ <td>19</td>
164
+ <td>Implants</td>
165
+ <td>{moh711Data.implants_removal}</td>
166
+ <td className={styles.greyBackground}></td>
167
+ </tr>
168
+ <tr>
169
+ <td>20</td>
170
+ <td rowSpan={4}>
171
+ Number of clients <br /> receiving All FP <br /> services (Issued with <br /> commodities plus <br />
172
+ other FP services)
173
+ </td>
174
+ <td>Adolescent clients (10-14 yrs) Receiving FP Services</td>
175
+ <td>{moh711Data.fp_adolescent_10_14_new}</td>
176
+ <td>{moh711Data.fp_adolescent_10_14_revisit}</td>
177
+ </tr>
178
+ <tr>
179
+ <td>21</td>
180
+ <td>Adolescent clients (15-19 Yrs) Receiving FP Services</td>
181
+ <td>{moh711Data.fp_adolescent_15_19_new}</td>
182
+ <td>{moh711Data.fp_adolescent_15_19_revisit}</td>
183
+ </tr>
184
+ <tr>
185
+ <td>22</td>
186
+ <td>Adolescent clients (20-24 Yrs) Receiving FP Services</td>
187
+ <td>{moh711Data.fp_adolescent_20_24_new}</td>
188
+ <td>{moh711Data.fp_adolescent_20_24_revisit}</td>
189
+ </tr>
190
+ <tr>
191
+ <td>23</td>
192
+ <td>Adults 25+ receiving FP Services</td>
193
+ <td>{moh711Data.fp_adolescent_25_plus_new}</td>
194
+ <td>{moh711Data.fp_adolescent_25_plus_revisit}</td>
195
+ </tr>
196
+ <tr>
197
+ <td>24</td>
198
+ <td rowSpan={2}>No. of clients receiving immediate post partum FP Method</td>
199
+ <td>within 48 Hours</td>
200
+ <td>{moh711Data.post_partum_fp_48_hours_new}</td>
201
+ <td className={styles.greyBackground}>{moh711Data.post_partum_fp_48_hours_revisit}</td>
202
+ </tr>
203
+ <tr>
204
+ <td>25</td>
205
+ <td>3 days to 6 weeks</td>
206
+ <td>{moh711Data.post_partum_fp_4_6_weeks_new}</td>
207
+ <td className={styles.greyBackground}>{moh711Data.post_partum_fp_4_6_weeks_revisit}</td>
208
+ </tr>
209
+ <tr>
210
+ <td>26</td>
211
+ <td colSpan={2}>No. of clients receiving post abortion FP Method</td>
212
+ <td>{moh711Data.post_abortion_fp_new}</td>
213
+ <td className={styles.greyBackground}>{moh711Data.post_abortion_fp_revisit}</td>
214
+ </tr>
215
+ </tbody>
216
+ </table>
217
+ </>
218
+ );
219
+ };
220
+
221
+ export default FamilyPlanningComponent;
@@ -0,0 +1,115 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh711.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface GBVComponentProps {
7
+ moh711Data: any;
8
+ }
9
+
10
+ const GBVComponent: React.FC<GBVComponentProps> = ({ moh711Data }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th></th>
17
+ <th colSpan={5}>C. Sexual and Gender Based Violence (SGBV)</th>
18
+ </tr>
19
+ <tr>
20
+ <th></th>
21
+ <th className={styles.greyBackground}></th>
22
+ <th>0-9 yrs</th>
23
+ <th>10-17 yrs</th>
24
+ <th>18-49 Yrs</th>
25
+ <th>50+yrs</th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <tr>
30
+ <td>1</td>
31
+ <td>Total SGBV Total Survivors Seen (Rape, attempted rape, defilement and asault)</td>
32
+ <td>{moh711Data.sgbv_total_survivors_0_9}</td>
33
+ <td>{moh711Data.sgbv_total_survivors_10_17}</td>
34
+ <td>{moh711Data.sgbv_total_survivors_18_49}</td>
35
+ <td>{moh711Data.sgbv_total_survivors_50_plus}</td>
36
+ </tr>
37
+ <tr>
38
+ <td>2</td>
39
+ <td>No. of SGBV survivors presenting within 72 hours</td>
40
+ <td>{moh711Data.sgbv_within_72_hours_0_9}</td>
41
+ <td>{moh711Data.sgbv_within_72_hours_10_17}</td>
42
+ <td>{moh711Data.sgbv_within_72_hours_18_49}</td>
43
+ <td>{moh711Data.sgbv_within_72_hours_50_above}</td>
44
+ </tr>
45
+ <tr>
46
+ <td>3</td>
47
+ <td>No. of eligible Survivors Initiated on PEP</td>
48
+ <td>{moh711Data.sgbv_initiated_on_pep_0_9}</td>
49
+ <td>{moh711Data.sgbv_initiated_on_pep_10_17}</td>
50
+ <td>{moh711Data.sgbv_initiated_on_pep_18_49}</td>
51
+ <td>{moh711Data.sgbv_initiated_on_pep_50_above}</td>
52
+ </tr>
53
+ <tr>
54
+ <td>4</td>
55
+ <td>No. of eligible survivors Completed PEP</td>
56
+ <td>{moh711Data.sgbv_completed_pep_0_9}</td>
57
+ <td>{moh711Data.sgbv_completed_pep_10_17}</td>
58
+ <td>{moh711Data.sgbv_completed_pep_18_49}</td>
59
+ <td>{moh711Data.sgbv_completed_pep_50_above}</td>
60
+ </tr>
61
+ <tr>
62
+ <td>5</td>
63
+ <td>No. of SGBV survivors seroconverting 3 months after exposure</td>
64
+ <td>{moh711Data.sgbv_seroconverting_0_9}</td>
65
+ <td>{moh711Data.sgbv_seroconverting_10_17}</td>
66
+ <td>{moh711Data.sgbv_seroconverting_18_49}</td>
67
+ <td>{moh711Data.sgbv_seroconverting_50_above}</td>
68
+ </tr>
69
+ <tr>
70
+ <td>6</td>
71
+ <td>No. of SGBV survivors eligible for ECP</td>
72
+ <td>{moh711Data.sgbv_eligible_for_ecp_0_9}</td>
73
+ <td>{moh711Data.sgbv_eligible_for_ecp_10_17}</td>
74
+ <td>{moh711Data.sgbv_eligible_for_ecp_18_49}</td>
75
+ <td>{moh711Data.sgbv_eligible_for_ecp_50_above}</td>
76
+ </tr>
77
+ <tr>
78
+ <td>7</td>
79
+ <td>No. of SGBV survivors who received ECP</td>
80
+ <td>{moh711Data.sgbv_receiving_ecp_0_9}</td>
81
+ <td>{moh711Data.sgbv_receiving_ecp_10_17}</td>
82
+ <td>{moh711Data.sgbv_receiving_ecp_18_49}</td>
83
+ <td>{moh711Data.sgbv_receiving_ecp_50_above}</td>
84
+ </tr>
85
+ <tr>
86
+ <td>8</td>
87
+ <td>No. of rape/defilement Survivors Pregnant after 4 weeks</td>
88
+ <td>{moh711Data.sgbv_pregnant_0_9}</td>
89
+ <td>{moh711Data.sgbv_pregnant_10_17}</td>
90
+ <td>{moh711Data.sgbv_pregnant_18_49}</td>
91
+ <td>{moh711Data.sgbv_pregnant_50_above}</td>
92
+ </tr>
93
+ <tr>
94
+ <td>9</td>
95
+ <td>No. of RC/IPV clients seen</td>
96
+ <td>{moh711Data.sgbv_rc_seen_0_9}</td>
97
+ <td>{moh711Data.sgbv_rc_seen_10_17}</td>
98
+ <td>{moh711Data.sgbv_rc_seen_18_49}</td>
99
+ <td>{moh711Data.sgbv_rc_seen_50_above}</td>
100
+ </tr>
101
+ <tr>
102
+ <td>10</td>
103
+ <td>No. of survivors with disability</td>
104
+ <td>{moh711Data.sgbv_with_disability_0_9}</td>
105
+ <td>{moh711Data.sgbv_with_disability_10_17}</td>
106
+ <td>{moh711Data.sgbv_with_disability_18_49}</td>
107
+ <td>{moh711Data.sgbv_with_disability_50_above}</td>
108
+ </tr>
109
+ </tbody>
110
+ </table>
111
+ </>
112
+ );
113
+ };
114
+
115
+ export default GBVComponent;
@@ -0,0 +1,326 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh711.scss';
4
+ import classNames from 'classnames';
5
+ import { useLocation, useNavigate } from 'react-router-dom';
6
+
7
+ interface MaternityComponentProps {
8
+ moh711Data: any;
9
+ startDate: string;
10
+ endDate: string;
11
+ locationUuids: string;
12
+ }
13
+
14
+ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, startDate, endDate, locationUuids }) => {
15
+ const navigate = useNavigate();
16
+ const location = useLocation();
17
+ const navigateToRegister = (indicator: string) => {
18
+ navigate(
19
+ `/moh-333-register?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}`,
20
+ {
21
+ state: {
22
+ from: location.pathname,
23
+ reportName: 'moh711Report',
24
+ },
25
+ },
26
+ );
27
+ };
28
+
29
+ return (
30
+ <>
31
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
32
+ <thead>
33
+ <tr>
34
+ <th colSpan={3}>B. Maternity and NewBorn</th>
35
+ <th>Total</th>
36
+ </tr>
37
+ </thead>
38
+ <tbody>
39
+ <tr>
40
+ <td>1</td>
41
+ <td colSpan={2}>Normal Deliveries</td>
42
+ <td onClick={() => navigateToRegister('normal_deliveries')}>{moh711Data.normal_deliveries}</td>
43
+ </tr>
44
+ <tr>
45
+ <td>2</td>
46
+ <td colSpan={2}>Caesarean Sections</td>
47
+ <td onClick={() => navigateToRegister('caesarian_sections')}>{moh711Data.caesarian_sections}</td>
48
+ </tr>
49
+ <tr>
50
+ <td>3</td>
51
+ <td colSpan={2}>Breach Delivery</td>
52
+ <td onClick={() => navigateToRegister('breach_delivery')}>{moh711Data.breach_delivery}</td>
53
+ </tr>
54
+ <tr>
55
+ <td>4</td>
56
+ <td colSpan={2}>Assisted Vaginal Deliveries(Vacuum Extraction)</td>
57
+ <td onClick={() => navigateToRegister('assisted_vaginal_delivery')}>
58
+ {moh711Data.assisted_vaginal_delivery}
59
+ </td>
60
+ </tr>
61
+ <tr>
62
+ <td></td>
63
+ <td colSpan={2}></td>
64
+ <td></td>
65
+ </tr>
66
+ <tr>
67
+ <th colSpan={3}>Total Deliveries</th>
68
+ <th>
69
+ {(moh711Data?.normal_deliveries ?? 0) +
70
+ (moh711Data?.caesarian_sections ?? 0) +
71
+ (moh711Data?.breach_delivery ?? 0) +
72
+ (moh711Data?.assisted_vaginal_delivery ?? 0)}
73
+ </th>
74
+ </tr>
75
+ <tr>
76
+ <td rowSpan={2}>5</td>
77
+ <td rowSpan={2}>No. of mothers given uterotonics within 1 minute</td>
78
+ <td>Oxytocin</td>
79
+ <td onClick={() => navigateToRegister('oxytocin_uterotonic')}>{moh711Data.oxytocin_uterotonic}</td>
80
+ </tr>
81
+ <tr>
82
+ <td>Carbatosin</td>
83
+ <td onClick={() => navigateToRegister('carbatocin_uterotonic')}>{moh711Data.carbatocin_uterotonic}</td>
84
+ </tr>
85
+ <tr>
86
+ <td>6</td>
87
+ <td colSpan={2}>Live Births</td>
88
+ <td onClick={() => navigateToRegister('live_birth')}>{moh711Data.live_birth}</td>
89
+ </tr>
90
+ <tr>
91
+ <td>7</td>
92
+ <td colSpan={2}>No. of Low Birth Weight Babies (below 2500gms)</td>
93
+ <td onClick={() => navigateToRegister('low_birth_weight')}>{moh711Data.low_birth_weight}</td>
94
+ </tr>
95
+ <tr>
96
+ <td>8</td>
97
+ <td colSpan={2}>
98
+ No. of Low APGAR Score(<strong>&le; 6 at 5 Min</strong>)
99
+ </td>
100
+ <td onClick={() => navigateToRegister('low_apgar_score')}>{moh711Data.low_apgar_score}</td>
101
+ </tr>
102
+ <tr>
103
+ <td>9</td>
104
+ <td colSpan={2}>No. of Birth with diformities</td>
105
+ <td onClick={() => navigateToRegister('birth_with_deformity')}>{moh711Data.birth_with_deformity}</td>
106
+ </tr>
107
+ <tr>
108
+ <td>10</td>
109
+ <td colSpan={2}>No. of Babies applied chlorhexidine for cord care</td>
110
+ <td onClick={() => navigateToRegister('chlorhexidine_applied')}>{moh711Data.chlorhexidine_applied}</td>
111
+ </tr>
112
+ <tr>
113
+ <td>11</td>
114
+ <td colSpan={2}>No. of Neonates given Vit "K"</td>
115
+ <td onClick={() => navigateToRegister('vitamin_k')}>{moh711Data.vitamin_k}</td>
116
+ </tr>
117
+ <tr>
118
+ <td>12</td>
119
+ <td colSpan={2}>No. of Babies given tetracycline at birth</td>
120
+ <td onClick={() => navigateToRegister('tetracycline_given')}>{moh711Data.tetracycline_given}</td>
121
+ </tr>
122
+ <tr>
123
+ <td>13</td>
124
+ <td colSpan={2}>Pre-Term babies</td>
125
+ <td onClick={() => navigateToRegister('pre_term_babies')}>{moh711Data.pre_term_babies}</td>
126
+ </tr>
127
+ <tr>
128
+ <td>14</td>
129
+ <td colSpan={2}>No. of Babies discharge Alive</td>
130
+ <td onClick={() => navigateToRegister('discharge_alive')}>{moh711Data.discharge_alive}</td>
131
+ </tr>
132
+ <tr>
133
+ <td>15</td>
134
+ <td colSpan={2}>No. of Infants initiated on breast feeding within 1 hour after birth</td>
135
+ <td onClick={() => navigateToRegister('bf_within_1_hour')}>{moh711Data.bf_within_1_hour}</td>
136
+ </tr>
137
+ <tr>
138
+ <td>16</td>
139
+ <td colSpan={2}>Total Deliveries from HIV +ve Women</td>
140
+ <td onClick={() => navigateToRegister('deliveries_from_positive_women')}>
141
+ {moh711Data.deliveries_from_positive_women}
142
+ </td>
143
+ </tr>
144
+ <tr>
145
+ <td>17</td>
146
+ <td rowSpan={3}>Perinatal Deaths</td>
147
+ <td>Fresh Still Birth</td>
148
+ <td onClick={() => navigateToRegister('fresh_still_birth')}>{moh711Data.fresh_still_birth}</td>
149
+ </tr>
150
+ <tr>
151
+ <td>18</td>
152
+ <td>Macerated still Birth</td>
153
+ <td onClick={() => navigateToRegister('macerated_still_birth')}>{moh711Data.macerated_still_birth}</td>
154
+ </tr>
155
+ <tr>
156
+ <td>19</td>
157
+ <td>Deaths 0-7 days</td>
158
+ <td onClick={() => navigateToRegister('perinatal_deaths_0_7_days')}>
159
+ {moh711Data.perinatal_deaths_0_7_days}
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td>20</td>
164
+ <td colSpan={2}>Neonatal deaths 0-28 Days</td>
165
+ <td onClick={() => navigateToRegister('neonatal_deaths_0_28_days')}>
166
+ {moh711Data.neonatal_deaths_0_28_days}
167
+ </td>
168
+ </tr>
169
+ <tr>
170
+ <td>21</td>
171
+ <td colSpan={2}>Maternal deaths 10-14 Years</td>
172
+ <td onClick={() => navigateToRegister('maternal_deaths_10_14_years')}>
173
+ {moh711Data.maternal_deaths_10_14_years}
174
+ </td>
175
+ </tr>
176
+ <tr>
177
+ <td>22</td>
178
+ <td colSpan={2}>Maternal deaths 15-19 Years</td>
179
+ <td onClick={() => navigateToRegister('maternal_deaths_15_19_years')}>
180
+ {moh711Data.maternal_deaths_15_19_years}
181
+ </td>
182
+ </tr>
183
+ <tr>
184
+ <td>23</td>
185
+ <td colSpan={2}>Maternal deaths 20-24 Years</td>
186
+ <td onClick={() => navigateToRegister('maternal_deaths_20_24_years')}>
187
+ {moh711Data.maternal_deaths_20_24_years}
188
+ </td>
189
+ </tr>
190
+ <tr>
191
+ <td>24</td>
192
+ <td colSpan={2}>Maternal deaths 25+ Years</td>
193
+ <td onClick={() => navigateToRegister('maternal_deaths_25_above_years')}>
194
+ {moh711Data.maternal_deaths_25_above_years}
195
+ </td>
196
+ </tr>
197
+ <tr>
198
+ <td>25</td>
199
+ <td colSpan={2}>Maternal Deaths Audited Within 7 Days</td>
200
+ <td onClick={() => navigateToRegister('maternal_deaths_audited_within_7_days')}>
201
+ {moh711Data.maternal_deaths_audited_within_7_days}
202
+ </td>
203
+ </tr>
204
+ <tr>
205
+ <td>26</td>
206
+ <td colSpan={2}>No. of Neonatal deaths audited within 7 days</td>
207
+ <td onClick={() => navigateToRegister('neonatal_deaths_audited_within_7_days')}>
208
+ {moh711Data.neonatal_deaths_audited_within_7_days}
209
+ </td>
210
+ </tr>
211
+ </tbody>
212
+ </table>
213
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
214
+ <thead>
215
+ <tr>
216
+ <th colSpan={2}>Maternal complications</th>
217
+ <th>Alive</th>
218
+ <th>Dead</th>
219
+ <th>Total</th>
220
+ </tr>
221
+ </thead>
222
+ <tbody>
223
+ <tr>
224
+ <td>27</td>
225
+ <td>A.P.H (Ante partum Haemorrage)</td>
226
+ <td onClick={() => navigateToRegister('ante_partum_haemorrage')}>{moh711Data.ante_partum_haemorrage}</td>
227
+ <td></td>
228
+ <td></td>
229
+ </tr>
230
+ <tr>
231
+ <td>28</td>
232
+ <td>P.P.H (Post Partum Haemorrage)</td>
233
+ <td onClick={() => navigateToRegister('post_partum_haemorrage')}>{moh711Data.post_partum_haemorrage}</td>
234
+ <td></td>
235
+ <td></td>
236
+ </tr>
237
+ <tr>
238
+ <td>29</td>
239
+ <td>Eclampsia</td>
240
+ <td onClick={() => navigateToRegister('eclampsia')}>{moh711Data.eclampsia}</td>
241
+ <td></td>
242
+ <td></td>
243
+ </tr>
244
+ <tr>
245
+ <td>30</td>
246
+ <td>Ruptured Uterus</td>
247
+ <td onClick={() => navigateToRegister('ruptured_uterus')}>{moh711Data.ruptured_uterus}</td>
248
+ <td></td>
249
+ <td></td>
250
+ </tr>
251
+ <tr>
252
+ <td>31</td>
253
+ <td>Obstructed Labour</td>
254
+ <td onClick={() => navigateToRegister('obstructed_labour')}>{moh711Data.obstructed_labour}</td>
255
+ <td></td>
256
+ <td></td>
257
+ </tr>
258
+ <tr>
259
+ <td>32</td>
260
+ <td>Sepsis</td>
261
+ <td onClick={() => navigateToRegister('sepsis')}>{moh711Data.sepsis}</td>
262
+ <td></td>
263
+ <td></td>
264
+ </tr>
265
+ <tr>
266
+ <td>33</td>
267
+ <td>
268
+ Number of Mothers with delivery complications associated
269
+ <br /> with FGM
270
+ </td>
271
+ <td onClick={() => navigateToRegister('fgm_delivery_complications')}>
272
+ {moh711Data.fgm_delivery_complications}
273
+ </td>
274
+ <td></td>
275
+ <td></td>
276
+ </tr>
277
+ </tbody>
278
+ </table>
279
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
280
+ <thead>
281
+ <tr>
282
+ <th colSpan={2}>Neonate Care and Outcome</th>
283
+ <th></th>
284
+ <th>Total</th>
285
+ </tr>
286
+ </thead>
287
+ <tbody>
288
+ <tr>
289
+ <td>34</td>
290
+ <td rowSpan={3}>Causes of neonatal deaths</td>
291
+ <td>No. of neonatal deaths due to Sepsis</td>
292
+ <td onClick={() => navigateToRegister('neonatal_deaths_sepsis')}>{moh711Data.neonatal_deaths_sepsis}</td>
293
+ </tr>
294
+ <tr>
295
+ <td>35</td>
296
+ <td>No. of neonatal deaths due to Prematurity</td>
297
+ <td onClick={() => navigateToRegister('neonatal_deaths_prematurity')}>
298
+ {moh711Data.neonatal_deaths_prematurity}
299
+ </td>
300
+ </tr>
301
+ <tr>
302
+ <td>36</td>
303
+ <td>No. of neonatal deaths due to Asphyxia</td>
304
+ <td onClick={() => navigateToRegister('neonatal_deaths_asphyxia')}>
305
+ {moh711Data.neonatal_deaths_asphyxia}
306
+ </td>
307
+ </tr>
308
+ <tr>
309
+ <td>37</td>
310
+ <td colSpan={2}>No. of Neonates initiated on Kangaroo Mother Care</td>
311
+ <td onClick={() => navigateToRegister('kangaroo_mother_care')}>{moh711Data.kangaroo_mother_care}</td>
312
+ </tr>
313
+ <tr>
314
+ <td>38</td>
315
+ <td colSpan={2}>Maternal Referrals From Community Unit</td>
316
+ <td onClick={() => navigateToRegister('referrals_from_community')}>
317
+ {moh711Data.referrals_from_community}
318
+ </td>
319
+ </tr>
320
+ </tbody>
321
+ </table>
322
+ </>
323
+ );
324
+ };
325
+
326
+ export default MaternityComponent;