@ampath/esm-reports-app 1.0.0-next.84 → 1.0.0-next.86

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 (33) hide show
  1. package/dist/249.css +1 -0
  2. package/dist/249.css.map +1 -0
  3. package/dist/249.js +1 -0
  4. package/dist/249.js.map +1 -0
  5. package/dist/410.js +1 -1
  6. package/dist/757.js +1 -1
  7. package/dist/ampath-esm-reports-app.js +1 -1
  8. package/dist/routes.json +1 -1
  9. package/package.json +1 -1
  10. package/src/dashboard/report-catalog.ts +8 -0
  11. package/src/reports/moh-240/line-list.columns.test.tsx +149 -0
  12. package/src/reports/moh-240/line-list.columns.ts +137 -0
  13. package/src/reports/moh-240/moh-240.component.test.tsx +109 -0
  14. package/src/reports/moh-240/moh-240.component.tsx +45 -32
  15. package/src/reports/moh-711/sections/anc.component.tsx +23 -21
  16. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +31 -72
  17. package/src/reports/moh-711/sections/chanis.component.tsx +80 -80
  18. package/src/reports/moh-711/sections/family-planning.component.tsx +41 -41
  19. package/src/reports/moh-711/sections/maternity.component.tsx +39 -39
  20. package/src/reports/moh-711/sections/medical-social-work.component.tsx +10 -10
  21. package/src/reports/moh-711/sections/pnc.component.tsx +12 -12
  22. package/src/reports/moh-733/moh-733.component.tsx +29 -0
  23. package/src/reports/moh-733/moh-733.scss +191 -0
  24. package/src/reports/moh-733/sections/client-category.component.tsx +246 -0
  25. package/src/reports/moh-733/sections/nutrition-intervention-pregnant-breastfeeding.component.tsx +233 -0
  26. package/src/reports/moh-733/sections/nutrition-intervention.component.tsx +216 -0
  27. package/src/reports/moh-733/sections/nutrition-status-weight.component.tsx +212 -0
  28. package/src/reports/moh-733/sections/nutrition-status.component.tsx +216 -0
  29. package/src/root.component.tsx +2 -0
  30. package/dist/866.css +0 -1
  31. package/dist/866.css.map +0 -1
  32. package/dist/866.js +0 -1
  33. package/dist/866.js.map +0 -1
@@ -39,23 +39,23 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, sta
39
39
  <tr>
40
40
  <td>1</td>
41
41
  <td colSpan={2}>Normal Deliveries</td>
42
- <td onClick={() => navigateToRegister('normal_deliveries')}>{moh711Data.normal_deliveries}</td>
42
+ <td onClick={() => navigateToRegister('normal_deliveries')}>{moh711Data.normal_deliveries ?? 0}</td>
43
43
  </tr>
44
44
  <tr>
45
45
  <td>2</td>
46
46
  <td colSpan={2}>Caesarean Sections</td>
47
- <td onClick={() => navigateToRegister('caesarian_sections')}>{moh711Data.caesarian_sections}</td>
47
+ <td onClick={() => navigateToRegister('caesarian_sections')}>{moh711Data.caesarian_sections ?? 0}</td>
48
48
  </tr>
49
49
  <tr>
50
50
  <td>3</td>
51
51
  <td colSpan={2}>Breach Delivery</td>
52
- <td onClick={() => navigateToRegister('breach_delivery')}>{moh711Data.breach_delivery}</td>
52
+ <td onClick={() => navigateToRegister('breach_delivery')}>{moh711Data.breach_delivery ?? 0}</td>
53
53
  </tr>
54
54
  <tr>
55
55
  <td>4</td>
56
56
  <td colSpan={2}>Assisted Vaginal Deliveries(Vacuum Extraction)</td>
57
57
  <td onClick={() => navigateToRegister('assisted_vaginal_delivery')}>
58
- {moh711Data.assisted_vaginal_delivery}
58
+ {moh711Data.assisted_vaginal_delivery ?? 0}
59
59
  </td>
60
60
  </tr>
61
61
  <tr>
@@ -71,136 +71,136 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, sta
71
71
  <td rowSpan={2}>5</td>
72
72
  <td rowSpan={2}>No. of mothers given uterotonics within 1 minute</td>
73
73
  <td>Oxytocin</td>
74
- <td onClick={() => navigateToRegister('oxytocin_uterotonic')}>{moh711Data.oxytocin_uterotonic}</td>
74
+ <td onClick={() => navigateToRegister('oxytocin_uterotonic')}>{moh711Data.oxytocin_uterotonic ?? 0}</td>
75
75
  </tr>
76
76
  <tr>
77
77
  <td>Carbatosin</td>
78
- <td onClick={() => navigateToRegister('carbatocin_uterotonic')}>{moh711Data.carbatocin_uterotonic}</td>
78
+ <td onClick={() => navigateToRegister('carbatocin_uterotonic')}>{moh711Data.carbatocin_uterotonic ?? 0}</td>
79
79
  </tr>
80
80
  <tr>
81
81
  <td>6</td>
82
82
  <td colSpan={2}>Live Births</td>
83
- <td onClick={() => navigateToRegister('live_birth')}>{moh711Data.live_birth}</td>
83
+ <td onClick={() => navigateToRegister('live_birth')}>{moh711Data.live_birth ?? 0}</td>
84
84
  </tr>
85
85
  <tr>
86
86
  <td>7</td>
87
87
  <td colSpan={2}>No. of Low Birth Weight Babies (below 2500gms)</td>
88
- <td onClick={() => navigateToRegister('low_birth_weight')}>{moh711Data.low_birth_weight}</td>
88
+ <td onClick={() => navigateToRegister('low_birth_weight')}>{moh711Data.low_birth_weight ?? 0}</td>
89
89
  </tr>
90
90
  <tr>
91
91
  <td>8</td>
92
92
  <td colSpan={2}>
93
93
  No. of Low APGAR Score(<strong>&le; 6 at 5 Min</strong>)
94
94
  </td>
95
- <td onClick={() => navigateToRegister('low_apgar_score')}>{moh711Data.low_apgar_score}</td>
95
+ <td onClick={() => navigateToRegister('low_apgar_score')}>{moh711Data.low_apgar_score ?? 0}</td>
96
96
  </tr>
97
97
  <tr>
98
98
  <td>9</td>
99
99
  <td colSpan={2}>No. of Birth with diformities</td>
100
- <td onClick={() => navigateToRegister('birth_with_deformity')}>{moh711Data.birth_with_deformity}</td>
100
+ <td onClick={() => navigateToRegister('birth_with_deformity')}>{moh711Data.birth_with_deformity ?? 0}</td>
101
101
  </tr>
102
102
  <tr>
103
103
  <td>10</td>
104
104
  <td colSpan={2}>No. of Babies applied chlorhexidine for cord care</td>
105
- <td onClick={() => navigateToRegister('chlorhexidine_applied')}>{moh711Data.chlorhexidine_applied}</td>
105
+ <td onClick={() => navigateToRegister('chlorhexidine_applied')}>{moh711Data.chlorhexidine_applied ?? 0}</td>
106
106
  </tr>
107
107
  <tr>
108
108
  <td>11</td>
109
109
  <td colSpan={2}>No. of Neonates given Vit "K"</td>
110
- <td onClick={() => navigateToRegister('vitamin_k')}>{moh711Data.vitamin_k}</td>
110
+ <td onClick={() => navigateToRegister('vitamin_k')}>{moh711Data.vitamin_k ?? 0}</td>
111
111
  </tr>
112
112
  <tr>
113
113
  <td>12</td>
114
114
  <td colSpan={2}>No. of Babies given tetracycline at birth</td>
115
- <td onClick={() => navigateToRegister('tetracycline_given')}>{moh711Data.tetracycline_given}</td>
115
+ <td onClick={() => navigateToRegister('tetracycline_given')}>{moh711Data.tetracycline_given ?? 0}</td>
116
116
  </tr>
117
117
  <tr>
118
118
  <td>13</td>
119
119
  <td colSpan={2}>Pre-Term babies</td>
120
- <td onClick={() => navigateToRegister('pre_term_babies')}>{moh711Data.pre_term_babies}</td>
120
+ <td onClick={() => navigateToRegister('pre_term_babies')}>{moh711Data.pre_term_babies ?? 0}</td>
121
121
  </tr>
122
122
  <tr>
123
123
  <td>14</td>
124
124
  <td colSpan={2}>No. of Babies discharge Alive</td>
125
- <td onClick={() => navigateToRegister('discharge_alive')}>{moh711Data.discharge_alive}</td>
125
+ <td onClick={() => navigateToRegister('discharge_alive')}>{moh711Data.discharge_alive ?? 0}</td>
126
126
  </tr>
127
127
  <tr>
128
128
  <td>15</td>
129
129
  <td colSpan={2}>No. of Infants initiated on breast feeding within 1 hour after birth</td>
130
- <td onClick={() => navigateToRegister('bf_within_1_hour')}>{moh711Data.bf_within_1_hour}</td>
130
+ <td onClick={() => navigateToRegister('bf_within_1_hour')}>{moh711Data.bf_within_1_hour ?? 0}</td>
131
131
  </tr>
132
132
  <tr>
133
133
  <td>16</td>
134
134
  <td colSpan={2}>Total Deliveries from HIV +ve Women</td>
135
135
  <td onClick={() => navigateToRegister('deliveries_from_positive_women')}>
136
- {moh711Data.deliveries_from_positive_women}
136
+ {moh711Data.deliveries_from_positive_women ?? 0}
137
137
  </td>
138
138
  </tr>
139
139
  <tr>
140
140
  <td>17</td>
141
141
  <td rowSpan={3}>Perinatal Deaths</td>
142
142
  <td>Fresh Still Birth</td>
143
- <td onClick={() => navigateToRegister('fresh_still_birth')}>{moh711Data.fresh_still_birth}</td>
143
+ <td onClick={() => navigateToRegister('fresh_still_birth')}>{moh711Data.fresh_still_birth ?? 0}</td>
144
144
  </tr>
145
145
  <tr>
146
146
  <td>18</td>
147
147
  <td>Macerated still Birth</td>
148
- <td onClick={() => navigateToRegister('macerated_still_birth')}>{moh711Data.macerated_still_birth}</td>
148
+ <td onClick={() => navigateToRegister('macerated_still_birth')}>{moh711Data.macerated_still_birth ?? 0}</td>
149
149
  </tr>
150
150
  <tr>
151
151
  <td>19</td>
152
152
  <td>Deaths 0-7 days</td>
153
153
  <td onClick={() => navigateToRegister('perinatal_deaths_0_7_days')}>
154
- {moh711Data.perinatal_deaths_0_7_days}
154
+ {moh711Data.perinatal_deaths_0_7_days ?? 0}
155
155
  </td>
156
156
  </tr>
157
157
  <tr>
158
158
  <td>20</td>
159
159
  <td colSpan={2}>Neonatal deaths 0-28 Days</td>
160
160
  <td onClick={() => navigateToRegister('neonatal_deaths_0_28_days')}>
161
- {moh711Data.neonatal_deaths_0_28_days}
161
+ {moh711Data.neonatal_deaths_0_28_days ?? 0}
162
162
  </td>
163
163
  </tr>
164
164
  <tr>
165
165
  <td>21</td>
166
166
  <td colSpan={2}>Maternal deaths 10-14 Years</td>
167
167
  <td onClick={() => navigateToRegister('maternal_deaths_10_14_years')}>
168
- {moh711Data.maternal_deaths_10_14_years}
168
+ {moh711Data.maternal_deaths_10_14_years ?? 0}
169
169
  </td>
170
170
  </tr>
171
171
  <tr>
172
172
  <td>22</td>
173
173
  <td colSpan={2}>Maternal deaths 15-19 Years</td>
174
174
  <td onClick={() => navigateToRegister('maternal_deaths_15_19_years')}>
175
- {moh711Data.maternal_deaths_15_19_years}
175
+ {moh711Data.maternal_deaths_15_19_years ?? 0}
176
176
  </td>
177
177
  </tr>
178
178
  <tr>
179
179
  <td>23</td>
180
180
  <td colSpan={2}>Maternal deaths 20-24 Years</td>
181
181
  <td onClick={() => navigateToRegister('maternal_deaths_20_24_years')}>
182
- {moh711Data.maternal_deaths_20_24_years}
182
+ {moh711Data.maternal_deaths_20_24_years ?? 0}
183
183
  </td>
184
184
  </tr>
185
185
  <tr>
186
186
  <td>24</td>
187
187
  <td colSpan={2}>Maternal deaths 25+ Years</td>
188
188
  <td onClick={() => navigateToRegister('maternal_deaths_25_above_years')}>
189
- {moh711Data.maternal_deaths_25_above_years}
189
+ {moh711Data.maternal_deaths_25_above_years ?? 0}
190
190
  </td>
191
191
  </tr>
192
192
  <tr>
193
193
  <td>25</td>
194
194
  <td colSpan={2}>Maternal Deaths Audited Within 7 Days</td>
195
195
  <td onClick={() => navigateToRegister('maternal_deaths_audited_within_7_days')}>
196
- {moh711Data.maternal_deaths_audited_within_7_days}
196
+ {moh711Data.maternal_deaths_audited_within_7_days ?? 0}
197
197
  </td>
198
198
  </tr>
199
199
  <tr>
200
200
  <td>26</td>
201
201
  <td colSpan={2}>No. of Neonatal deaths audited within 7 days</td>
202
202
  <td onClick={() => navigateToRegister('neonatal_deaths_audited_within_7_days')}>
203
- {moh711Data.neonatal_deaths_audited_within_7_days}
203
+ {moh711Data.neonatal_deaths_audited_within_7_days ?? 0}
204
204
  </td>
205
205
  </tr>
206
206
  </tbody>
@@ -218,42 +218,42 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, sta
218
218
  <tr>
219
219
  <td>27</td>
220
220
  <td>A.P.H (Ante partum Haemorrage)</td>
221
- <td onClick={() => navigateToRegister('ante_partum_haemorrage')}>{moh711Data.ante_partum_haemorrage}</td>
221
+ <td onClick={() => navigateToRegister('ante_partum_haemorrage')}>{moh711Data.ante_partum_haemorrage ?? 0}</td>
222
222
  <td></td>
223
223
  <td></td>
224
224
  </tr>
225
225
  <tr>
226
226
  <td>28</td>
227
227
  <td>P.P.H (Post Partum Haemorrage)</td>
228
- <td onClick={() => navigateToRegister('post_partum_haemorrage')}>{moh711Data.post_partum_haemorrage}</td>
228
+ <td onClick={() => navigateToRegister('post_partum_haemorrage')}>{moh711Data.post_partum_haemorrage ?? 0}</td>
229
229
  <td></td>
230
230
  <td></td>
231
231
  </tr>
232
232
  <tr>
233
233
  <td>29</td>
234
234
  <td>Eclampsia</td>
235
- <td onClick={() => navigateToRegister('eclampsia')}>{moh711Data.eclampsia}</td>
235
+ <td onClick={() => navigateToRegister('eclampsia')}>{moh711Data.eclampsia ?? 0}</td>
236
236
  <td></td>
237
237
  <td></td>
238
238
  </tr>
239
239
  <tr>
240
240
  <td>30</td>
241
241
  <td>Ruptured Uterus</td>
242
- <td onClick={() => navigateToRegister('ruptured_uterus')}>{moh711Data.ruptured_uterus}</td>
242
+ <td onClick={() => navigateToRegister('ruptured_uterus')}>{moh711Data.ruptured_uterus ?? 0}</td>
243
243
  <td></td>
244
244
  <td></td>
245
245
  </tr>
246
246
  <tr>
247
247
  <td>31</td>
248
248
  <td>Obstructed Labour</td>
249
- <td onClick={() => navigateToRegister('obstructed_labour')}>{moh711Data.obstructed_labour}</td>
249
+ <td onClick={() => navigateToRegister('obstructed_labour')}>{moh711Data.obstructed_labour ?? 0}</td>
250
250
  <td></td>
251
251
  <td></td>
252
252
  </tr>
253
253
  <tr>
254
254
  <td>32</td>
255
255
  <td>Sepsis</td>
256
- <td onClick={() => navigateToRegister('sepsis')}>{moh711Data.sepsis}</td>
256
+ <td onClick={() => navigateToRegister('sepsis')}>{moh711Data.sepsis ?? 0}</td>
257
257
  <td></td>
258
258
  <td></td>
259
259
  </tr>
@@ -264,7 +264,7 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, sta
264
264
  <br /> with FGM
265
265
  </td>
266
266
  <td onClick={() => navigateToRegister('fgm_delivery_complications')}>
267
- {moh711Data.fgm_delivery_complications}
267
+ {moh711Data.fgm_delivery_complications ?? 0}
268
268
  </td>
269
269
  <td></td>
270
270
  <td></td>
@@ -284,32 +284,32 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, sta
284
284
  <td>34</td>
285
285
  <td rowSpan={3}>Causes of neonatal deaths</td>
286
286
  <td>No. of neonatal deaths due to Sepsis</td>
287
- <td onClick={() => navigateToRegister('neonatal_deaths_sepsis')}>{moh711Data.neonatal_deaths_sepsis}</td>
287
+ <td onClick={() => navigateToRegister('neonatal_deaths_sepsis')}>{moh711Data.neonatal_deaths_sepsis ?? 0}</td>
288
288
  </tr>
289
289
  <tr>
290
290
  <td>35</td>
291
291
  <td>No. of neonatal deaths due to Prematurity</td>
292
292
  <td onClick={() => navigateToRegister('neonatal_deaths_prematurity')}>
293
- {moh711Data.neonatal_deaths_prematurity}
293
+ {moh711Data.neonatal_deaths_prematurity ?? 0}
294
294
  </td>
295
295
  </tr>
296
296
  <tr>
297
297
  <td>36</td>
298
298
  <td>No. of neonatal deaths due to Asphyxia</td>
299
299
  <td onClick={() => navigateToRegister('neonatal_deaths_asphyxia')}>
300
- {moh711Data.neonatal_deaths_asphyxia}
300
+ {moh711Data.neonatal_deaths_asphyxia ?? 0}
301
301
  </td>
302
302
  </tr>
303
303
  <tr>
304
304
  <td>37</td>
305
305
  <td colSpan={2}>No. of Neonates initiated on Kangaroo Mother Care</td>
306
- <td onClick={() => navigateToRegister('kangaroo_mother_care')}>{moh711Data.kangaroo_mother_care}</td>
306
+ <td onClick={() => navigateToRegister('kangaroo_mother_care')}>{moh711Data.kangaroo_mother_care ?? 0}</td>
307
307
  </tr>
308
308
  <tr>
309
309
  <td>38</td>
310
310
  <td colSpan={2}>Maternal Referrals From Community Unit</td>
311
311
  <td onClick={() => navigateToRegister('referrals_from_community')}>
312
- {moh711Data.referrals_from_community}
312
+ {moh711Data.referrals_from_community ?? 0}
313
313
  </td>
314
314
  </tr>
315
315
  </tbody>
@@ -7,7 +7,7 @@ interface MedicalSocialWorkComponentProps {
7
7
  moh711Data: any;
8
8
  }
9
9
 
10
- const MedicalSocialWorkComponent: React.FC<MedicalSocialWorkComponentProps> = ({ moh711Data }) => {
10
+ const MedicalSocialWorkComponent: React.FC<MedicalSocialWorkComponentProps> = () => {
11
11
  return (
12
12
  <div className={styles.section}>
13
13
  <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
@@ -22,47 +22,47 @@ const MedicalSocialWorkComponent: React.FC<MedicalSocialWorkComponentProps> = ({
22
22
  <tr>
23
23
  <td>1</td>
24
24
  <td>Psycho-Social Counselling</td>
25
- <td>{moh711Data.psycho_social_counselling}</td>
25
+ <td></td>
26
26
  </tr>
27
27
  <tr>
28
28
  <td>2</td>
29
29
  <td>Alcohol and Drug Abuse</td>
30
- <td>{moh711Data.alcohol_and_drug_abuse}</td>
30
+ <td></td>
31
31
  </tr>
32
32
  <tr>
33
33
  <td>3</td>
34
34
  <td>Mental illness</td>
35
- <td>{moh711Data.mental_illness}</td>
35
+ <td></td>
36
36
  </tr>
37
37
  <tr>
38
38
  <td>4</td>
39
39
  <td>Adolescent issues</td>
40
- <td>{moh711Data.adolescent_issues}</td>
40
+ <td></td>
41
41
  </tr>
42
42
  <tr>
43
43
  <td>5</td>
44
44
  <td>Psycho-Social Assessment (psycho, social and economic)</td>
45
- <td>{moh711Data.psycho_social_economic_assessment}</td>
45
+ <td></td>
46
46
  </tr>
47
47
  <tr>
48
48
  <td>6</td>
49
49
  <td>Social investigations (Home visits / Follow ups)</td>
50
- <td>{moh711Data.social_investigations}</td>
50
+ <td></td>
51
51
  </tr>
52
52
  <tr>
53
53
  <td>7</td>
54
54
  <td>Social Rehabilitation</td>
55
- <td>{moh711Data.psycho_social_rehabilitation}</td>
55
+ <td></td>
56
56
  </tr>
57
57
  <tr>
58
58
  <td>8</td>
59
59
  <td>Outreach Services / Health Talks</td>
60
- <td>{moh711Data.outreach_services}</td>
60
+ <td></td>
61
61
  </tr>
62
62
  <tr>
63
63
  <td>9</td>
64
64
  <td>Referrals</td>
65
- <td>{moh711Data.mental_health_referral}</td>
65
+ <td></td>
66
66
  </tr>
67
67
  </tbody>
68
68
  </table>
@@ -43,25 +43,25 @@ const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data, startDate, endD
43
43
  <td>1</td>
44
44
  <td rowSpan={2}>No. of PNC Clients</td>
45
45
  <td>New</td>
46
- <td onClick={() => navigateToRegister('pnc_new_clients')}>{moh711Data.pnc_new_clients}</td>
46
+ <td onClick={() => navigateToRegister('pnc_new_clients')}>{moh711Data.pnc_new_clients ?? 0}</td>
47
47
  </tr>
48
48
  <tr>
49
49
  <td>2</td>
50
50
  <td>Revisit</td>
51
- <td onClick={() => navigateToRegister('pnc_revisit_clients')}>{moh711Data.pnc_revisit_clients}</td>
51
+ <td onClick={() => navigateToRegister('pnc_revisit_clients')}>{moh711Data.pnc_revisit_clients ?? 0}</td>
52
52
  </tr>
53
53
  <tr>
54
54
  <td>3</td>
55
55
  <td colSpan={2}>No of Women counselled on Post Partum FP</td>
56
56
  <td onClick={() => navigateToRegister('women_couselled_on_post_partum_fp')}>
57
- {moh711Data.women_couselled_on_post_partum_fp}
57
+ {moh711Data.women_couselled_on_post_partum_fp ?? 0}
58
58
  </td>
59
59
  </tr>
60
60
  <tr>
61
61
  <td>4</td>
62
62
  <td colSpan={2}>No of Clients who received Post Partum FP</td>
63
63
  <td onClick={() => navigateToRegister('women_received_post_partum_fp')}>
64
- {moh711Data.women_received_post_partum_fp}
64
+ {moh711Data.women_received_post_partum_fp ?? 0}
65
65
  </td>
66
66
  </tr>
67
67
  <tr>
@@ -69,21 +69,21 @@ const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data, startDate, endD
69
69
  <td rowSpan={3}>No. of Mothers receiving Postpartum Care</td>
70
70
  <td>within 48 hours</td>
71
71
  <td onClick={() => navigateToRegister('mothers_post_partum_care_48_hours')}>
72
- {moh711Data.mothers_post_partum_care_48_hours}
72
+ {moh711Data.mothers_post_partum_care_48_hours ?? 0}
73
73
  </td>
74
74
  </tr>
75
75
  <tr>
76
76
  <td></td>
77
77
  <td>Between 3 days to 6 weeks</td>
78
78
  <td onClick={() => navigateToRegister('mothers_post_partum_care_3_6_weeks')}>
79
- {moh711Data.mothers_post_partum_care_3_6_weeks}
79
+ {moh711Data.mothers_post_partum_care_3_6_weeks ?? 0}
80
80
  </td>
81
81
  </tr>
82
82
  <tr>
83
83
  <td></td>
84
84
  <td>After 6 weeks</td>
85
85
  <td onClick={() => navigateToRegister('mothers_post_partum_care_after_6_weeks')}>
86
- {moh711Data.mothers_post_partum_care_after_6_weeks}
86
+ {moh711Data.mothers_post_partum_care_after_6_weeks ?? 0}
87
87
  </td>
88
88
  </tr>
89
89
  <tr>
@@ -91,31 +91,31 @@ const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data, startDate, endD
91
91
  <td rowSpan={3}>No. of Babies received Postpartum Care</td>
92
92
  <td>Within 48 hours</td>
93
93
  <td onClick={() => navigateToRegister('infants_post_partum_care_48_hours')}>
94
- {moh711Data.infants_post_partum_care_48_hours}
94
+ {moh711Data.infants_post_partum_care_48_hours ?? 0}
95
95
  </td>
96
96
  </tr>
97
97
  <tr>
98
98
  <td>Between 3 days to 6 weeks</td>
99
99
  <td onClick={() => navigateToRegister('infants_post_partum_care_3_6_weeks')}>
100
- {moh711Data.infants_post_partum_care_3_6_weeks}
100
+ {moh711Data.infants_post_partum_care_3_6_weeks ?? 0}
101
101
  </td>
102
102
  </tr>
103
103
  <tr>
104
104
  <td>After 6 weeks</td>
105
105
  <td onClick={() => navigateToRegister('infants_post_partum_care_after_6_weeks')}>
106
- {moh711Data.infants_post_partum_care_after_6_weeks}
106
+ {moh711Data.infants_post_partum_care_after_6_weeks ?? 0}
107
107
  </td>
108
108
  </tr>
109
109
  <tr>
110
110
  <td>7</td>
111
111
  <td colSpan={2}>Number of Cases of Fistula</td>
112
- <td onClick={() => navigateToRegister('fistula_cases')}>{moh711Data.fistula_cases}</td>
112
+ <td onClick={() => navigateToRegister('fistula_cases')}>{moh711Data.fistula_cases ?? 0}</td>
113
113
  </tr>
114
114
  <tr>
115
115
  <td>8</td>
116
116
  <td colSpan={2}>No referred from the Community unit to PNC</td>
117
117
  <td onClick={() => navigateToRegister('referrals_from_community')}>
118
- {moh711Data.referrals_from_community}
118
+ {moh711Data.referrals_from_community ?? 0}
119
119
  </td>
120
120
  </tr>
121
121
  </tbody>
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import ClientCategoryComponent from './sections/client-category.component';
3
+
4
+ import styles from './moh-733.scss';
5
+ import NutritionStatusComponent from './sections/nutrition-status.component';
6
+ import NutritionStatusWeightComponent from './sections/nutrition-status-weight.component';
7
+ import NutritionInterventionComponent from './sections/nutrition-intervention.component';
8
+ import NutritionInterventionPregnantBrestfeedingComponent from './sections/nutrition-intervention-pregnant-breastfeeding.component';
9
+
10
+ const Moh733Component: React.FC = () => {
11
+ return (
12
+ <>
13
+ <div className={styles.parentBorder}>
14
+ <p>CLIENT CATEGORY</p>
15
+ <ClientCategoryComponent moh733Data={[]} startDate="" endDate="" locationUuids="" />
16
+ <p>NUTRITION STATUS</p>
17
+ <NutritionStatusComponent moh733Data={[]} startDate="" endDate="" locationUuids="" />
18
+ <p>NUTRITION STATUS</p>
19
+ <NutritionStatusWeightComponent moh733Data={[]} startDate="" endDate="" locationUuids="" />
20
+ <p>NUTRITION INTERVENTION</p>
21
+ <NutritionInterventionComponent moh733Data={[]} startDate="" endDate="" locationUuids="" />
22
+ <p>NUTRITION INTERVENTION</p>
23
+ <NutritionInterventionPregnantBrestfeedingComponent moh733Data={[]} startDate="" endDate="" locationUuids="" />
24
+ </div>
25
+ </>
26
+ );
27
+ };
28
+
29
+ export default Moh733Component;
@@ -0,0 +1,191 @@
1
+
2
+ /* Smaller than the section headings beneath it: at 9pt the form title was
3
+ heavier than the lettered sections it introduces. */
4
+
5
+ .mainTitleBox h5 {
6
+ font-size: 7.5pt;
7
+ font-weight: 700;
8
+ line-height: 1.25;
9
+ text-align: center;
10
+ }
11
+
12
+ .container {
13
+ display: grid;
14
+ grid-template-columns: 1fr 1fr;
15
+ gap: 4mm;
16
+ align-items: start;
17
+ margin: 0 0 4mm;
18
+
19
+ grid-template-areas: 'left right';
20
+ }
21
+
22
+ .left {
23
+ grid-area: left;
24
+ min-width: 0;
25
+ }
26
+
27
+ .right {
28
+ grid-area: right;
29
+ min-width: 0;
30
+ }
31
+
32
+ /* Stack on small screens */
33
+ @media (max-width: 768px) {
34
+ .container {
35
+ grid-template-columns: 1fr;
36
+ grid-template-areas:
37
+ 'left'
38
+ 'right';
39
+ }
40
+ }
41
+
42
+ /* A lettered section. Maternity carries three tables and Family Planning two,
43
+ so the gap inside a section is smaller than the gap between them -- given the
44
+ same margin, a multi-table section reads as several separate ones.
45
+
46
+ Kept off a page break so a section is never split from its heading; at about
47
+ 116 rows in the taller column this runs to roughly two A4 pages. */
48
+
49
+ .section {
50
+ margin-bottom: 4mm;
51
+ break-inside: avoid;
52
+ page-break-inside: avoid;
53
+
54
+ &:last-child {
55
+ margin-bottom: 0;
56
+ }
57
+ }
58
+
59
+ /* Full width, so both columns fill their half of the grid and line up with the
60
+ header box above -- sized to content they came out ragged and short of it. */
61
+
62
+ .table {
63
+ width: 100%;
64
+ margin-bottom: 2mm;
65
+ table-layout: auto;
66
+ border-collapse: collapse;
67
+
68
+ &:last-child {
69
+ margin-bottom: 0;
70
+ }
71
+ }
72
+
73
+ .tableBordered td,
74
+ .tableBordered thead th {
75
+ padding: 1mm 1.5mm;
76
+ font-size: 7pt;
77
+ border: 1px solid #000;
78
+ }
79
+
80
+ .tableBordered th {
81
+ font-weight: bold;
82
+ font-size: small;
83
+ background-color: #e0e0e0;
84
+ }
85
+
86
+ .nutritionStatusTable thead tr:nth-child(2) th {
87
+ background-color: transparent;
88
+ }
89
+
90
+ .tableBordered thead .samHeader {
91
+ background-color: #d0e2ff;
92
+ }
93
+
94
+ .tableBordered thead .mamHeader {
95
+ background-color: #ffddb7;
96
+ }
97
+
98
+ .tableStriped tbody tr:nth-of-type(odd) {
99
+ background-color: #f9f9f9;
100
+ }
101
+
102
+ /* Sub-heading rows inside a section table */
103
+
104
+ .greyBackground {
105
+ font-weight: 600;
106
+ background-color: #e0e0e0;
107
+ }
108
+
109
+ .compiledBy {
110
+ width: 10rem;
111
+ }
112
+
113
+ /* Spans the same width as the two columns beneath it */
114
+
115
+ .headerContainer {
116
+ display: flex;
117
+ align-items: flex-start;
118
+ width: 100%;
119
+ margin: 0 0 4mm;
120
+ }
121
+
122
+ .mainTitleBox {
123
+ width: 100%;
124
+ padding: 3mm;
125
+ text-align: center;
126
+ border: 1px solid #000;
127
+ }
128
+
129
+ .locationContainer {
130
+ display: flex;
131
+ flex-wrap: nowrap;
132
+ align-items: baseline;
133
+ justify-content: space-between;
134
+ gap: 3mm;
135
+ margin-top: 3mm;
136
+ font-size: 6.5pt;
137
+ white-space: nowrap;
138
+ }
139
+
140
+ /* These carry the facility and period once a report is generated, so they need
141
+ to hold text on the rule rather than only draw it. */
142
+
143
+ .line,
144
+ .shortLine {
145
+ display: inline-block;
146
+ padding: 0 0.5mm;
147
+ margin-left: 1mm;
148
+ overflow: hidden;
149
+ font-weight: 600;
150
+ text-align: center;
151
+ text-overflow: ellipsis;
152
+ vertical-align: bottom;
153
+ border-bottom: 1px solid #000;
154
+ }
155
+
156
+ .line {
157
+ width: 26mm;
158
+ }
159
+
160
+ .shortLine {
161
+ width: 14mm;
162
+ }
163
+ /* On paper the striping is screen affordance that prints as grey noise */
164
+
165
+ @media print {
166
+ .tableStriped tbody tr:nth-of-type(odd) {
167
+ background-color: transparent;
168
+ }
169
+ }
170
+
171
+ .category {
172
+ display: flex;
173
+ gap: 2rem;
174
+ }
175
+
176
+ .subCategory {
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: 0.5rem;
180
+ }
181
+
182
+ .categoryheader {
183
+ font-weight: normal;
184
+ text-align: center;
185
+ }
186
+ .parentBorder {
187
+ border: 2px solid black;
188
+ margin: 2rem;
189
+ justify-content: space-between;
190
+ padding: 2rem;
191
+ }