@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,367 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh711.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface ChanisComponentProps {
7
+ moh711Data: any;
8
+ }
9
+
10
+ const ChanisComponent: React.FC<ChanisComponentProps> = ({ moh711Data }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <th colSpan={6}></th>
16
+ <tr>
17
+ <th colSpan={6}>F. Child Health and Nutrition Information System</th>
18
+ </tr>
19
+ <tr>
20
+ <th colSpan={2}>Weight for age</th>
21
+ <th></th>
22
+ <th>M</th>
23
+ <th>F</th>
24
+ <th>Total</th>
25
+ </tr>
26
+ </thead>
27
+ <tbody>
28
+ <tr>
29
+ <td rowSpan={6}>1</td>
30
+ <td rowSpan={6}>
31
+ 0 - &lt;6 <br /> months
32
+ </td>
33
+ <td>Normal Weight for Age</td>
34
+ <td>{moh711Data.normal_weight_0_6_months_male}</td>
35
+ <td>{moh711Data.normal_weight_0_6_months_female}</td>
36
+ <td></td>
37
+ </tr>
38
+ <tr>
39
+ <td>Underweight</td>
40
+ <td>{moh711Data.underweight_0_6_months_male}</td>
41
+ <td>{moh711Data.underweight_0_6_months_female}</td>
42
+ <td></td>
43
+ </tr>
44
+ <tr>
45
+ <td>Severely underweight</td>
46
+ <td>{moh711Data.severely_underweight_0_6_months_male}</td>
47
+ <td>{moh711Data.severely_underweight_0_6_months_female}</td>
48
+ <td></td>
49
+ </tr>
50
+ <tr>
51
+ <td>Overweight</td>
52
+ <td>{moh711Data.overweight_0_6_months_male}</td>
53
+ <td>{moh711Data.overweight_0_6_months_female}</td>
54
+ <td></td>
55
+ </tr>
56
+ <tr>
57
+ <td>Obese</td>
58
+ <td>{moh711Data.obese_0_6_months_male}</td>
59
+ <td>{moh711Data.obese_0_6_months_female}</td>
60
+ <td></td>
61
+ </tr>
62
+ <tr>
63
+ <th>Total Weighed</th>
64
+ <td>{moh711Data.obese_0_6_months_male}</td>
65
+ <td>{moh711Data.obese_0_6_months_female}</td>
66
+ <td></td>
67
+ </tr>
68
+ <tr>
69
+ <td rowSpan={6}>2</td>
70
+ <td rowSpan={6}>6-23 months</td>
71
+ <td>Normal Weight for Age</td>
72
+ <td>{moh711Data.normal_weight_6_23_months_male}</td>
73
+ <td>{moh711Data.normal_weight_6_23_months_female}</td>
74
+ <td></td>
75
+ </tr>
76
+ <tr>
77
+ <td>Underweight</td>
78
+ <td>{moh711Data.underweight_6_23_months_male}</td>
79
+ <td>{moh711Data.underweight_6_23_months_female}</td>
80
+ <td></td>
81
+ </tr>
82
+ <tr>
83
+ <td>Severely underweight</td>
84
+ <td>{moh711Data.severely_underweight_6_23_months_male}</td>
85
+ <td>{moh711Data.severely_underweight_6_23_months_female}</td>
86
+ <td></td>
87
+ </tr>
88
+ <tr>
89
+ <td>Overweight</td>
90
+ <td>{moh711Data.overweight_6_23_months_male}</td>
91
+ <td>{moh711Data.overweight_6_23_months_female}</td>
92
+ <td></td>
93
+ </tr>
94
+ <tr>
95
+ <td>Obese 6-23</td>
96
+ <td>{moh711Data.obese_6_23_months_male}</td>
97
+ <td>{moh711Data.obese_6_23_months_female}</td>
98
+ <td></td>
99
+ </tr>
100
+ <tr>
101
+ <th>Total Weighed</th>
102
+ <td>{moh711Data.obese_6_23_months_male}</td>
103
+ <td>{moh711Data.obese_6_23_months_female}</td>
104
+ <td></td>
105
+ </tr>
106
+ <tr>
107
+ <td rowSpan={6}>3</td>
108
+ <td rowSpan={6}>24 - 59 months</td>
109
+ <td>Normal Weight for Age</td>
110
+ <td>{moh711Data.normal_weight_24_59_months_male}</td>
111
+ <td>{moh711Data.normal_weight_24_59_months_female}</td>
112
+ <td></td>
113
+ </tr>
114
+ <tr>
115
+ <td>Underweight</td>
116
+ <td>{moh711Data.underweight_24_59_months_male}</td>
117
+ <td>{moh711Data.underweight_24_59_months_female}</td>
118
+ <td></td>
119
+ </tr>
120
+ <tr>
121
+ <td>Severely underweight</td>
122
+ <td>{moh711Data.severely_underweight_24_59_months_male}</td>
123
+ <td>{moh711Data.severely_underweight_24_59_months_female}</td>
124
+ <td></td>
125
+ </tr>
126
+ <tr>
127
+ <td>Overweight</td>
128
+ <td>{moh711Data.overweight_24_59_months_male}</td>
129
+ <td>{moh711Data.overweight_24_59_months_female}</td>
130
+ <td></td>
131
+ </tr>
132
+ <tr>
133
+ <td>Obese 24-59</td>
134
+ <td>{moh711Data.obese_24_59_months_male}</td>
135
+ <td>{moh711Data.obese_24_59_months_female}</td>
136
+ <td></td>
137
+ </tr>
138
+ <tr>
139
+ <th>Total Weighed</th>
140
+ <td>{moh711Data.obese_24_59_months_male}</td>
141
+ <td>{moh711Data.obese_6_23_months_female}</td>
142
+ <td></td>
143
+ </tr>
144
+ <tr>
145
+ <td rowSpan={3}>4</td>
146
+ <td rowSpan={3}>MUAC 6-59 months</td>
147
+ <td>Normal (Green)</td>
148
+ <td>{moh711Data.muac_6_59_months_normal_male}</td>
149
+ <td>{moh711Data.muac_6_59_months_normal_female}</td>
150
+ <td></td>
151
+ </tr>
152
+ <tr>
153
+ <td>Moderate (Yellow)</td>
154
+ <td>{moh711Data.muac_6_59_months_moderate_male}</td>
155
+ <td>{moh711Data.muac_6_59_months_moderate_female}</td>
156
+ <td></td>
157
+ </tr>
158
+ <tr>
159
+ <td>Severe (Red)</td>
160
+ <td>{moh711Data.muac_6_59_months_severe_male}</td>
161
+ <td>{moh711Data.muac_6_59_months_severe_female}</td>
162
+ <td></td>
163
+ </tr>
164
+ <tr>
165
+ <th colSpan={2}>Height for Age</th>
166
+ <th></th>
167
+ <th>F</th>
168
+ <th>M</th>
169
+ <th>Total</th>
170
+ </tr>
171
+ <tr>
172
+ <td rowSpan={4}>5</td>
173
+ <td rowSpan={4}>0-&le;6 Months</td>
174
+ <td>Normal Height for Age</td>
175
+ <td>{moh711Data.height_for_age_0_6_months_normal_male}</td>
176
+ <td>{moh711Data.height_for_age_0_6_months_normal_female}</td>
177
+ <td></td>
178
+ </tr>
179
+ <tr>
180
+ <td>Stunted</td>
181
+ <td>{moh711Data.stunted_0_6_months_male}</td>
182
+ <td>{moh711Data.stunted_0_6_months_female}</td>
183
+ <td></td>
184
+ </tr>
185
+ <tr>
186
+ <td>Severely Stunted</td>
187
+ <td>{moh711Data.severely_stunted_0_6_months_male}</td>
188
+ <td>{moh711Data.severely_stunted_0_6_months_female}</td>
189
+ <td></td>
190
+ </tr>
191
+ <tr>
192
+ <th>Total Measured</th>
193
+ <td>{moh711Data.severely_stunted_0_6_months_male}</td>
194
+ <td>{moh711Data.severely_stunted_0_6_months_female}</td>
195
+ <td></td>
196
+ </tr>
197
+ <tr>
198
+ <td rowSpan={4}>6</td>
199
+ <td rowSpan={4}>6 - 23 months</td>
200
+ <td>Normal Height for Age</td>
201
+ <td>{moh711Data.normal_height_for_age_6_23_months_male}</td>
202
+ <td>{moh711Data.normal_height_for_age_6_23_months_female}</td>
203
+ <td></td>
204
+ </tr>
205
+ <tr>
206
+ <td>Stunted</td>
207
+ <td>{moh711Data.stunted_6_23_months_male}</td>
208
+ <td>{moh711Data.stunted_6_23_months_female}</td>
209
+ <td></td>
210
+ </tr>
211
+ <tr>
212
+ <td>Severely Stunted</td>
213
+ <td>{moh711Data.severely_stunted_6_23_months_male}</td>
214
+ <td>{moh711Data.severely_stunted_6_23_months_female}</td>
215
+ <td></td>
216
+ </tr>
217
+ <tr>
218
+ <th>Total Weighed</th>
219
+ <td>{moh711Data.severely_stunted_0_6_months_male}</td>
220
+ <td>{moh711Data.severely_stunted_0_6_months_female}</td>
221
+ <td></td>
222
+ </tr>
223
+ <tr>
224
+ <td rowSpan={4}>7</td>
225
+ <td rowSpan={4}>24 - 59 months</td>
226
+ <td>Normal Height for Age</td>
227
+ <td>{moh711Data.normal_height_for_age_24_59_months_male}</td>
228
+ <td>{moh711Data.normal_height_for_age_24_59_months_female}</td>
229
+ <td></td>
230
+ </tr>
231
+ <tr>
232
+ <td>Stunted</td>
233
+ <td>{moh711Data.stunted_24_59_months_male}</td>
234
+ <td>{moh711Data.stunted_24_59_months_female}</td>
235
+ <td></td>
236
+ </tr>
237
+ <tr>
238
+ <td>Severely Stunted</td>
239
+ <td>{moh711Data.severely_stunted_24_59_months_male}</td>
240
+ <td>{moh711Data.severely_stunted_24_59_months_female}</td>
241
+ <td></td>
242
+ </tr>
243
+ <tr>
244
+ <th>Total Weighed</th>
245
+ <td>{moh711Data.severely_stunted_0_6_months_male}</td>
246
+ <td>{moh711Data.severely_stunted_0_6_months_female}</td>
247
+ <td></td>
248
+ </tr>
249
+ <tr>
250
+ <th colSpan={3}>Others</th>
251
+ <th>M</th>
252
+ <th>F</th>
253
+ <th>Total</th>
254
+ </tr>
255
+ <tr>
256
+ <td rowSpan={4}>8</td>
257
+ <td rowSpan={4}>0 - 59 Months</td>
258
+ <td>New Visits</td>
259
+ <td>{moh711Data.new_visits_0_59_months_attending_cwc_male}</td>
260
+ <td>{moh711Data.new_visits_0_59_months_attending_cwc_female}</td>
261
+ <td></td>
262
+ </tr>
263
+ <tr>
264
+ <td>Kwashiorkor</td>
265
+ <td>{moh711Data.kwashiokor_0_59_months_male}</td>
266
+ <td>{moh711Data.kwashiokor_0_59_months_female}</td>
267
+ <td></td>
268
+ </tr>
269
+ <tr>
270
+ <td>Marasmus</td>
271
+ <td>{moh711Data.marasmus_0_59_months_male}</td>
272
+ <td>{moh711Data.marasmus_0_59_months_female}</td>
273
+ <td></td>
274
+ </tr>
275
+ <tr>
276
+ <td>Faltering Growth</td>
277
+ <td>{moh711Data.faltering_growth_0_59_months_male}</td>
278
+ <td>{moh711Data.faltering_growth_0_59_months_female}</td>
279
+ <td></td>
280
+ </tr>
281
+ <tr>
282
+ <td>9</td>
283
+ <td>0 - &le;6</td>
284
+ <td>Exclusive breastfeeding</td>
285
+ <td>{moh711Data.exclusive_breastfeeding_0_6_months_male}</td>
286
+ <td>{moh711Data.exclusive_breastfeeding_0_6_months_female}</td>
287
+ <td></td>
288
+ </tr>
289
+ <tr>
290
+ <td>10</td>
291
+ <td> 12-59 Months</td>
292
+ <td>Dewormed</td>
293
+ <td>{moh711Data.dewormed_12_59_months_male}</td>
294
+ <td>{moh711Data.dewormed_12_59_months_female}</td>
295
+ <td></td>
296
+ </tr>
297
+ <tr>
298
+ <td>11</td>
299
+ <td>6-23 months</td>
300
+ <td>MNPs Supplimentation</td>
301
+ <td>{moh711Data.mnps_supplimentation_6_23_months_male}</td>
302
+ <td>{moh711Data.mnps_supplimentation_6_23_months_female}</td>
303
+ <td></td>
304
+ </tr>
305
+ <tr>
306
+ <td>12</td>
307
+ <td colSpan={2}>No. of children who have diarrhoea with severe dehydration</td>
308
+ <td></td>
309
+ <td></td>
310
+ <td></td>
311
+ </tr>
312
+ <tr>
313
+ <td>13</td>
314
+ <td colSpan={2}>No. of children who have diarrhoea with some dehydration</td>
315
+ <td></td>
316
+ <td></td>
317
+ <td></td>
318
+ </tr>
319
+ <tr>
320
+ <td>14</td>
321
+ <td colSpan={2}>No. of children who have diarrhoea with no dehydration</td>
322
+ <td></td>
323
+ <td></td>
324
+ <td></td>
325
+ </tr>
326
+ <tr>
327
+ <td>15</td>
328
+ <td colSpan={2}>No. of children with diarrhoea treated with ORS and Zinc (Co-pack)</td>
329
+ <td></td>
330
+ <td></td>
331
+ <td></td>
332
+ </tr>
333
+ <tr>
334
+ <td>16</td>
335
+ <td colSpan={2}>No. of children with pneumonia treated with Amoxycillin (DT)</td>
336
+ <td></td>
337
+ <td></td>
338
+ <td></td>
339
+ </tr>
340
+ <tr>
341
+ <td>17</td>
342
+ <td colSpan={2}>Under five deaths</td>
343
+ <td></td>
344
+ <td></td>
345
+ <td></td>
346
+ </tr>
347
+ <tr>
348
+ <td>18</td>
349
+ <td colSpan={2}>No. of children with any Kind of disability</td>
350
+ <td></td>
351
+ <td></td>
352
+ <td></td>
353
+ </tr>
354
+ <tr>
355
+ <td>19</td>
356
+ <td colSpan={2}>No. of children with delayed milestones</td>
357
+ <td></td>
358
+ <td></td>
359
+ <td></td>
360
+ </tr>
361
+ </tbody>
362
+ </table>
363
+ </>
364
+ );
365
+ };
366
+
367
+ export default ChanisComponent;
@@ -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;