@ampath/esm-reports-app 1.0.0-next.11 → 1.0.0-next.111

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 (359) hide show
  1. package/README.md +2 -0
  2. package/dist/197.js +1 -1
  3. package/dist/282.js +1 -1
  4. package/dist/282.js.map +1 -1
  5. package/dist/295.css +1 -0
  6. package/dist/295.css.map +1 -0
  7. package/dist/295.js +1 -0
  8. package/dist/295.js.map +1 -0
  9. package/dist/299.js +2 -0
  10. package/dist/299.js.LICENSE.txt +3 -0
  11. package/dist/299.js.map +1 -0
  12. package/dist/300.js +1 -1
  13. package/dist/311.js +1 -1
  14. package/dist/311.js.map +1 -1
  15. package/dist/335.js +1 -1
  16. package/dist/353.js +1 -1
  17. package/dist/353.js.map +1 -1
  18. package/dist/354.js +2 -0
  19. package/dist/354.js.LICENSE.txt +20 -0
  20. package/dist/354.js.map +1 -0
  21. package/dist/410.js +1 -0
  22. package/dist/410.js.map +1 -0
  23. package/dist/457.js +2 -0
  24. package/dist/457.js.LICENSE.txt +261 -0
  25. package/dist/457.js.map +1 -0
  26. package/dist/478.js +1 -1
  27. package/dist/478.js.map +1 -1
  28. package/dist/480.js +1 -0
  29. package/dist/540.js +1 -1
  30. package/dist/540.js.map +1 -1
  31. package/dist/55.js +1 -1
  32. package/dist/600.js +2 -0
  33. package/dist/600.js.LICENSE.txt +35 -0
  34. package/dist/600.js.map +1 -0
  35. package/dist/652.js +1 -1
  36. package/dist/757.js +1 -0
  37. package/dist/757.js.map +1 -0
  38. package/dist/781.js +1 -0
  39. package/dist/781.js.map +1 -0
  40. package/dist/955.css +1 -0
  41. package/dist/955.css.map +1 -0
  42. package/dist/955.js +1 -0
  43. package/dist/955.js.map +1 -0
  44. package/dist/961.js +1 -1
  45. package/dist/961.js.map +1 -1
  46. package/dist/99.js +1 -1
  47. package/dist/99.js.map +1 -0
  48. package/dist/ampath-esm-reports-app.js +1 -1
  49. package/dist/ampath-esm-reports-app.js.map +1 -1
  50. package/dist/routes.json +1 -1
  51. package/local-config.json +5 -0
  52. package/package.json +5 -2
  53. package/src/common/daily-summary-table.tsx +55 -0
  54. package/src/common/linelist-table/index.ts +3 -0
  55. package/src/common/linelist-table/linelist-columns.ts +48 -0
  56. package/src/common/linelist-table/linelist-table.component.tsx +442 -0
  57. package/src/common/linelist-table/linelist-table.scss +306 -0
  58. package/src/common/linelist-table/linelist-table.test.tsx +120 -0
  59. package/src/common/linelist-table/use-all-rows.ts +93 -0
  60. package/src/common/linelist-table/use-column-layout.ts +123 -0
  61. package/src/common/report-error/index.ts +1 -0
  62. package/src/common/report-error/show-report-error.ts +25 -0
  63. package/src/common/report-filters/date-range.ts +137 -0
  64. package/src/common/report-filters/index.ts +4 -0
  65. package/src/common/report-filters/report-filters.component.tsx +319 -101
  66. package/src/common/report-filters/report-filters.scss +269 -32
  67. package/src/common/report-filters/types.ts +83 -0
  68. package/src/common/report-filters/use-restore-period.ts +53 -0
  69. package/src/common/report-header/index.ts +2 -0
  70. package/src/common/report-header/use-facility-name.ts +117 -0
  71. package/src/common/report-header/use-location-details.ts +58 -0
  72. package/src/common/report-page/download-sheet-pdf.ts +225 -0
  73. package/src/common/report-page/index.ts +3 -0
  74. package/src/common/report-page/report-page.component.tsx +32 -0
  75. package/src/common/report-page/report-page.scss +45 -0
  76. package/src/common/report-page/use-page-scale.ts +60 -0
  77. package/src/common/report-placeholder/has-report-data.ts +15 -0
  78. package/src/common/report-placeholder/index.ts +3 -0
  79. package/src/common/report-placeholder/report-placeholder.component.tsx +81 -0
  80. package/src/common/report-placeholder/report-placeholder.scss +48 -0
  81. package/src/common/report-placeholder/use-generated-location.ts +62 -0
  82. package/src/common/report-register/index.ts +6 -0
  83. package/src/common/report-register/register-columns.ts +46 -0
  84. package/src/common/report-register/register-layout.component.tsx +302 -0
  85. package/src/common/report-register/register-layout.scss +209 -0
  86. package/src/common/report-register/register-table.scss +71 -0
  87. package/src/common/report-register/report-parents.ts +31 -0
  88. package/src/common/report-register/rows-to-csv.ts +89 -0
  89. package/src/common/report-register/use-location-name.ts +54 -0
  90. package/src/common/report-register/use-patient-list.ts +92 -0
  91. package/src/common/report-skeleton/index.ts +1 -0
  92. package/src/common/report-skeleton/report-skeleton.component.tsx +46 -0
  93. package/src/common/report-skeleton/report-skeleton.scss +29 -0
  94. package/src/config-schema.ts +9 -1
  95. package/src/dashboard/report-catalog.ts +501 -0
  96. package/src/dashboard/reports-dasboard.tsx +269 -33
  97. package/src/dashboard/reports-dashboard.module.scss +601 -14
  98. package/src/index.ts +13 -1
  99. package/src/registers/moh-240/moh-240-register.scss +41 -0
  100. package/src/registers/moh-240/moh-240.component.test.tsx +166 -0
  101. package/src/registers/moh-240/moh-240.component.tsx +164 -0
  102. package/src/registers/moh-267/moh-267-register.component.tsx +409 -0
  103. package/src/registers/moh-267/moh-267-register.scss +298 -0
  104. package/src/registers/moh-267/moh-267-summary.ts +103 -0
  105. package/src/registers/moh-267/moh-267.component.tsx +94 -0
  106. package/src/registers/moh-267/moh-267.types.ts +47 -0
  107. package/src/registers/moh-362/moh-362-lab-register.component.tsx +551 -0
  108. package/src/registers/moh-362/moh-362-lab-register.scss +412 -0
  109. package/src/registers/moh-362/moh-362-linkage-register.component.tsx +215 -0
  110. package/src/registers/moh-362/moh-362-linkage-register.scss +91 -0
  111. package/src/registers/moh-362/moh-362.component.tsx +117 -0
  112. package/src/registers/moh-362/moh-362.scss +11 -0
  113. package/src/registers/moh-362/moh-362.types.ts +87 -0
  114. package/src/registers/moh-368/moh-368.columns.ts +36 -0
  115. package/src/registers/moh-368/moh-368.component.tsx +178 -0
  116. package/src/registers/moh-368/moh-368.scss +163 -0
  117. package/src/registers/presumptive-tb/presumptive-tb-register.component.tsx +391 -0
  118. package/src/registers/presumptive-tb/presumptive-tb-register.scss +262 -0
  119. package/src/registers/presumptive-tb/presumptive-tb.component.tsx +92 -0
  120. package/src/registers/presumptive-tb/presumptive-tb.types.ts +88 -0
  121. package/src/registers/register-catalog.ts +293 -0
  122. package/src/registers/register-file-name.ts +18 -0
  123. package/src/registers/tb-lab-register/tb-lab-register-table.component.tsx +116 -0
  124. package/src/registers/tb-lab-register/tb-lab-register-table.scss +123 -0
  125. package/src/registers/tb-lab-register/tb-lab-register.columns.ts +164 -0
  126. package/src/registers/tb-lab-register/tb-lab-register.component.test.tsx +232 -0
  127. package/src/registers/tb-lab-register/tb-lab-register.component.tsx +153 -0
  128. package/src/registers/tb4/tb4-parts.tsx +164 -0
  129. package/src/registers/tb4/tb4-patient-sheet.component.tsx +418 -0
  130. package/src/registers/tb4/tb4-register.scss +282 -0
  131. package/src/registers/tb4/tb4-treatment-sheet.component.tsx +349 -0
  132. package/src/registers/tb4/tb4.component.tsx +120 -0
  133. package/src/registers/tb4/tb4.types.ts +129 -0
  134. package/src/reports/acf-summary/acf-summary-form.component.tsx +176 -0
  135. package/src/reports/acf-summary/acf-summary-linelist.component.tsx +91 -0
  136. package/src/reports/acf-summary/acf-summary.component.tsx +101 -0
  137. package/src/reports/acf-summary/acf-summary.counts.ts +37 -0
  138. package/src/reports/acf-summary/acf-summary.scss +162 -0
  139. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +63 -48
  140. package/src/reports/moh-240/line-list.columns.test.tsx +156 -0
  141. package/src/reports/moh-240/line-list.columns.ts +139 -0
  142. package/src/reports/moh-240/moh-240-header.component.tsx +62 -0
  143. package/src/reports/moh-240/moh-240.columns.ts +113 -0
  144. package/src/reports/moh-240/moh-240.component.test.tsx +109 -0
  145. package/src/reports/moh-240/moh-240.component.tsx +85 -9
  146. package/src/reports/moh-240/moh-240.scss +40 -0
  147. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +31 -37
  148. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +143 -90
  149. package/src/reports/moh-505/moh-505-header.component.tsx +67 -0
  150. package/src/reports/moh-505/moh-505.component.tsx +396 -231
  151. package/src/reports/moh-505/moh-505.scss +131 -0
  152. package/src/reports/moh-643/moh-643.component.tsx +222 -0
  153. package/src/reports/moh-643/moh-643.rows.ts +77 -0
  154. package/src/reports/moh-643/moh-643.scss +164 -0
  155. package/src/reports/moh-643/registers/moh-643-register.component.tsx +112 -0
  156. package/src/reports/moh-643/registers/moh-643.columns.ts +32 -0
  157. package/src/reports/moh-645/moh-645.component.tsx +331 -0
  158. package/src/reports/moh-645/moh-645.scss +147 -0
  159. package/src/reports/moh-645/registers/moh-645-register.component.tsx +125 -0
  160. package/src/reports/moh-645/registers/moh-645.columns.ts +40 -0
  161. package/src/reports/moh-705B/linelist/moh-705b-linelist.component.tsx +78 -0
  162. package/src/reports/moh-705B/moh-204b-register.component.tsx +318 -0
  163. package/src/reports/moh-705B/moh-204b.columns.ts +39 -0
  164. package/src/reports/moh-705B/moh-705b.component.tsx +622 -427
  165. package/src/reports/moh-705B/moh-705b.scss +153 -22
  166. package/src/reports/moh-705a/linelist/moh-705a-linelist.component.tsx +84 -0
  167. package/src/reports/moh-705a/moh-705a.component.test.tsx +56 -0
  168. package/src/reports/moh-705a/moh-705a.component.tsx +623 -433
  169. package/src/reports/moh-705a/moh-705a.scss +153 -22
  170. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +404 -0
  171. package/src/reports/moh-705a/registers/moh-204a.columns.ts +57 -0
  172. package/src/reports/moh-705a/type.ts +6 -0
  173. package/src/reports/moh-706/moh-706-header.component.tsx +66 -0
  174. package/src/reports/moh-706/moh-706.component.tsx +150 -24
  175. package/src/reports/moh-706/moh-706.scss +119 -11
  176. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +43 -34
  177. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +229 -305
  178. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +30 -23
  179. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +25 -25
  180. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +31 -24
  181. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +21 -14
  182. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +2 -2
  183. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +27 -20
  184. package/src/reports/moh-710/moh-710.component.tsx +803 -621
  185. package/src/reports/moh-710/moh-710.scss +142 -21
  186. package/src/reports/moh-710/registers/moh-413/moh-413-columns.ts +22 -0
  187. package/src/reports/moh-710/registers/moh-413/moh-413.component.tsx +140 -0
  188. package/src/reports/moh-710/registers/moh-413/moh-413.scss +64 -0
  189. package/src/reports/moh-710/registers/moh-510/moh-510.columns.ts +40 -0
  190. package/src/reports/moh-710/registers/moh-510/moh-510.component.tsx +191 -0
  191. package/src/reports/moh-710/registers/moh-510/moh-510.scss +130 -0
  192. package/src/reports/moh-710/registers/moh-511/moh-511-columns.ts +52 -0
  193. package/src/reports/moh-710/registers/moh-511/moh-511-register.component.tsx +301 -0
  194. package/src/reports/moh-710/registers/moh-511/moh-511.scss +130 -0
  195. package/src/reports/moh-710/registers/moh-511/type.ts +32 -0
  196. package/src/reports/moh-711/linelist/moh-711-anc-linelist.component.tsx +79 -0
  197. package/src/reports/moh-711/linelist/moh-711-chanis-linelist.component.tsx +75 -0
  198. package/src/reports/moh-711/linelist/moh-711-family-planning-linelist.component.tsx +105 -0
  199. package/src/reports/moh-711/linelist/moh-711-maternity-linelist.component.tsx +105 -0
  200. package/src/reports/moh-711/linelist/moh-711-pnc-linelist.component.tsx +82 -0
  201. package/src/reports/moh-711/linelist/use-open-moh-711-anc-linelist.ts +20 -0
  202. package/src/reports/moh-711/linelist/use-open-moh-711-chanis-linelist.ts +20 -0
  203. package/src/reports/moh-711/linelist/use-open-moh-711-family-planning-linelist.ts +20 -0
  204. package/src/reports/moh-711/linelist/use-open-moh-711-maternity-linelist.ts +20 -0
  205. package/src/reports/moh-711/linelist/use-open-moh-711-pnc-linelist.ts +20 -0
  206. package/src/reports/moh-711/moh-711.component.tsx +139 -67
  207. package/src/reports/moh-711/moh711.scss +113 -28
  208. package/src/reports/moh-711/registers/moh-333-register.component.tsx +675 -0
  209. package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
  210. package/src/reports/moh-711/registers/moh-405-register.component.tsx +562 -0
  211. package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
  212. package/src/reports/moh-711/registers/moh-406-register.component.tsx +577 -0
  213. package/src/reports/moh-711/registers/moh-406.columns.ts +133 -0
  214. package/src/reports/moh-711/registers/moh-407-register.component.tsx +153 -0
  215. package/src/reports/moh-711/registers/moh-407.columns.ts +24 -0
  216. package/src/reports/moh-711/registers/moh-407.scss +64 -0
  217. package/src/reports/moh-711/registers/moh-512-columns.ts +94 -0
  218. package/src/reports/moh-711/registers/moh-512.component.tsx +276 -0
  219. package/src/reports/moh-711/registers/moh-512.scss +64 -0
  220. package/src/reports/moh-711/registers/tb-register-columns.ts +17 -0
  221. package/src/reports/moh-711/registers/tb-register.component.tsx +96 -0
  222. package/src/reports/moh-711/registers/tb-register.scss +64 -0
  223. package/src/reports/moh-711/registers/type.ts +192 -0
  224. package/src/reports/moh-711/sections/anc.component.tsx +39 -24
  225. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +36 -33
  226. package/src/reports/moh-711/sections/chanis.component.tsx +89 -84
  227. package/src/reports/moh-711/sections/family-planning.component.tsx +117 -51
  228. package/src/reports/moh-711/sections/gbv.component.tsx +43 -43
  229. package/src/reports/moh-711/sections/maternity.component.tsx +76 -47
  230. package/src/reports/moh-711/sections/medical-social-work.component.tsx +11 -21
  231. package/src/reports/moh-711/sections/other.component.tsx +2 -2
  232. package/src/reports/moh-711/sections/physiotherapy.component.tsx +2 -2
  233. package/src/reports/moh-711/sections/pnc.component.tsx +38 -15
  234. package/src/reports/moh-711/sections/post-abortion.component.tsx +2 -2
  235. package/src/reports/moh-711/sections/rehabilitation.component.tsx +2 -2
  236. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +12 -4
  237. package/src/reports/moh-711/sections/tb-screening.component.tsx +52 -15
  238. package/src/reports/moh-713/moh-713.component.scss +162 -0
  239. package/src/reports/moh-713/moh-713.component.tsx +122 -0
  240. package/src/reports/moh-713/sections/section-a-b-c.component.tsx +571 -0
  241. package/src/reports/moh-713/sections/section-d.component.tsx +133 -0
  242. package/src/reports/moh-717/moh-717.component.tsx +139 -97
  243. package/src/reports/moh-717/moh717.scss +174 -77
  244. package/src/reports/moh-717/registers/moh-209-register.component.tsx +159 -0
  245. package/src/reports/moh-717/registers/moh-209.columns.ts +30 -0
  246. package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
  247. package/src/reports/moh-717/sections/maternity.component.tsx +43 -13
  248. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +1 -1
  249. package/src/reports/moh-717/sections/outpatient.component.tsx +130 -40
  250. package/src/reports/moh-717/sections/preparedby.component.tsx +7 -2
  251. package/src/reports/moh-717/sections/special-services.component.tsx +64 -10
  252. package/src/reports/moh-718/moh-718.component.scss +107 -0
  253. package/src/reports/moh-718/moh-718.component.tsx +2675 -0
  254. package/src/reports/moh-718/registers/moh-301/moh-301.register.scss +145 -0
  255. package/src/reports/moh-718/registers/moh-301/moh-301.register.tsx +173 -0
  256. package/src/reports/moh-729b/moh-729b-form.component.tsx +404 -0
  257. package/src/reports/moh-729b/moh-729b-linelist.component.tsx +283 -0
  258. package/src/reports/moh-729b/moh-729b-summary.component.tsx +258 -0
  259. package/src/reports/moh-729b/moh-729b-summary.config.ts +291 -0
  260. package/src/reports/moh-729b/moh-729b.component.tsx +165 -0
  261. package/src/reports/moh-729b/moh-729b.config.ts +241 -0
  262. package/src/reports/moh-729b/moh-729b.scss +276 -0
  263. package/src/reports/moh-729b/moh-729b.types.ts +177 -0
  264. package/src/reports/moh-731/linelist/moh-731-indicators.ts +1126 -0
  265. package/src/reports/moh-731/linelist/moh-731-linelist-sections.ts +474 -0
  266. package/src/reports/moh-731/linelist/moh-731-linelist.component.tsx +107 -0
  267. package/src/reports/moh-731/linelist/use-open-moh-731-linelist.ts +50 -0
  268. package/src/reports/moh-731/moh-731.component.tsx +272 -0
  269. package/src/reports/moh-731/moh-731.scss +496 -0
  270. package/src/reports/moh-731/registers/moh-366.columns.ts +38 -0
  271. package/src/reports/moh-731/registers/moh-366.component.tsx +471 -0
  272. package/src/reports/moh-731/registers/prep-register.component.tsx +284 -0
  273. package/src/reports/moh-731/registers/prep.columns.ts +34 -0
  274. package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +1206 -0
  275. package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +727 -0
  276. package/src/reports/moh-731/sections/pmtct.component.tsx +572 -0
  277. package/src/reports/moh-731/summary/moh-731-summary.component.tsx +313 -0
  278. package/src/reports/moh-731/summary/moh-731-summary.config.ts +538 -0
  279. package/src/reports/moh-731/summary/moh-731-summary.scss +247 -0
  280. package/src/reports/moh-733/linelist/moh-733-linelist.component.tsx +75 -0
  281. package/src/reports/moh-733/linelist/use-open-moh-733-linelist.ts +19 -0
  282. package/src/reports/moh-733/moh-733.component.tsx +176 -0
  283. package/src/reports/moh-733/moh-733.scss +222 -0
  284. package/src/reports/moh-733/sections/client-category.component.tsx +432 -0
  285. package/src/reports/moh-733/sections/nutrition-intervention-pregnant-breastfeeding.component.tsx +318 -0
  286. package/src/reports/moh-733/sections/nutrition-intervention.component.tsx +412 -0
  287. package/src/reports/moh-733/sections/nutrition-status-weight.component.tsx +409 -0
  288. package/src/reports/moh-733/sections/nutrition-status.component.tsx +409 -0
  289. package/src/reports/moh-740/moh-740.component.scss +202 -30
  290. package/src/reports/moh-740/moh-740.component.tsx +1313 -308
  291. package/src/reports/moh-740/moh-740.resource.ts +48 -8
  292. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +20 -0
  293. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +183 -0
  294. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +6 -0
  295. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +151 -0
  296. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  297. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +60 -0
  298. package/src/reports/moh-740/registers/moh-740.columns.ts +54 -0
  299. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  300. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  301. package/src/reports/moh-740/shared/utils/indicator-register-map.ts +159 -0
  302. package/src/reports/moh-740/types/index.ts +198 -2
  303. package/src/reports/moh-745/moh-745.component.tsx +2020 -591
  304. package/src/reports/moh-745/moh-745.scss +114 -39
  305. package/src/reports/moh-745/registers/moh-412-register.component.scss +6 -0
  306. package/src/reports/moh-745/registers/moh-412-register.component.tsx +275 -0
  307. package/src/reports/moh-745/registers/moh-412.columns.ts +52 -0
  308. package/src/reports/moh-745/registers/type.ts +223 -0
  309. package/src/reports/program/care-and-treatment/care-and-treatment-linelist.component.tsx +148 -0
  310. package/src/reports/program/care-and-treatment/care-and-treatment-table.component.tsx +159 -0
  311. package/src/reports/program/care-and-treatment/care-and-treatment.component.tsx +284 -0
  312. package/src/reports/program/care-and-treatment/care-and-treatment.config.ts +210 -0
  313. package/src/reports/program/care-and-treatment/care-and-treatment.scss +460 -0
  314. package/src/reports/program/program-report.component.tsx +97 -0
  315. package/src/reports/program/program-report.scss +75 -0
  316. package/src/reports/table-wrapper/table-row-mapper.component.tsx +19 -4
  317. package/src/reports/table-wrapper/table-wrapper.component.tsx +23 -14
  318. package/src/reports/table-wrapper/table-wrapper.scss +1 -16
  319. package/src/resources/care-and-treatment.resource.ts +65 -0
  320. package/src/resources/moh-267.resource.ts +27 -0
  321. package/src/resources/moh-362.resource.ts +27 -0
  322. package/src/resources/moh-505.resource.ts +76 -0
  323. package/src/resources/moh-643.resource.ts +61 -0
  324. package/src/resources/moh-645.resource.ts +61 -0
  325. package/src/resources/moh-705.resource.ts +81 -17
  326. package/src/resources/moh-706.resource.ts +80 -0
  327. package/src/resources/moh-710.resource.ts +92 -9
  328. package/src/resources/moh-711.resource.ts +188 -9
  329. package/src/resources/moh-713.resource.ts +64 -0
  330. package/src/resources/moh-717.resource.ts +57 -9
  331. package/src/resources/moh-729b.resource.ts +25 -0
  332. package/src/resources/moh-731.resource.ts +90 -0
  333. package/src/resources/moh-733.resource.ts +31 -0
  334. package/src/resources/moh-745.resource.ts +56 -14
  335. package/src/resources/patient-list-page.ts +66 -0
  336. package/src/resources/presumptive-tb.resource.ts +27 -0
  337. package/src/root.component.tsx +146 -13
  338. package/src/root.scss +36 -0
  339. package/src/routes.json +3 -1
  340. package/src/utils/format-indicator.ts +39 -0
  341. package/src/utils/get-base-url.ts +39 -7
  342. package/src/utils/utils.ts +30 -1
  343. package/tsconfig.json +1 -1
  344. package/webpack.config.js +22 -1
  345. package/dist/138.js +0 -2
  346. package/dist/138.js.LICENSE.txt +0 -20
  347. package/dist/138.js.map +0 -1
  348. package/dist/184.js +0 -2
  349. package/dist/184.js.LICENSE.txt +0 -14
  350. package/dist/184.js.map +0 -1
  351. package/dist/205.js +0 -1
  352. package/dist/205.js.map +0 -1
  353. package/dist/339.js +0 -1
  354. package/dist/339.js.map +0 -1
  355. package/dist/812.js +0 -1
  356. package/dist/812.js.map +0 -1
  357. package/dist/ampath-esm-reports-app.js.buildmanifest.json +0 -560
  358. package/dist/main.js +0 -1
  359. package/dist/main.js.map +0 -1
@@ -0,0 +1,192 @@
1
+ export const moh406Columns = [
2
+ 'date_of_visit',
3
+ 'pnc_number_new_visit',
4
+ 'pnc_number_revisit',
5
+ 'amrs_id',
6
+ 'full_name',
7
+ 'date_of_birth',
8
+ 'county_subcounty',
9
+ 'village_estate_landmark',
10
+ 'marital_status',
11
+ 'parity',
12
+ 'gravidae',
13
+ 'lmp',
14
+ 'edd',
15
+ 'gestation_weeks',
16
+ 'muac',
17
+ 'height',
18
+ 'weight',
19
+ 'blood_pressure',
20
+ 'breast_exam',
21
+ 'uterus',
22
+ 'pph',
23
+ 'c_section_site',
24
+ 'lochia',
25
+ 'episiotomy',
26
+ 'fistula',
27
+ 'tb_screening',
28
+ 'hiv_tested_pnc',
29
+ 'hiv_test_1',
30
+ 'hiv_test_2',
31
+ 'hiv_test_3',
32
+ 'hiv_result_pnc',
33
+ 'hiv_6wks',
34
+ 'hiv_gt6wks',
35
+ 'infant_result',
36
+ 'mother_result',
37
+ 'cervical_cancer_screening',
38
+ 'family_planning',
39
+ 'other_complications',
40
+ 'haematinics',
41
+ 'referral_from',
42
+ 'referral_to',
43
+ 'referral_reason',
44
+ 'remarks',
45
+ ];
46
+ export const moh511Columns = [
47
+ 'serial_no',
48
+ 'visit_date',
49
+ 'cwc_number_new',
50
+ 'cwc_number_revisit',
51
+ 'birth_notification_number',
52
+ 'full_name',
53
+ 'age',
54
+ 'sex',
55
+ 'county_sub_county',
56
+ 'village_estate_landmark',
57
+ 'phone_number',
58
+ 'weight_kg',
59
+ 'weight_category',
60
+ 'height',
61
+ 'height_category',
62
+ 'muac',
63
+ 'exclusive_breastfeeding_less_6_months',
64
+ 'vitamin_A_supplementation',
65
+ 'dewormed',
66
+ 'mnps_supplimentation',
67
+ 'developmental_milestones',
68
+ 'danger_signs',
69
+ 'disability',
70
+ 'immunization_status_up_to_date',
71
+ 'llin_supplimentation_given',
72
+ 'follow_up',
73
+ 'referred_from',
74
+ 'referred_to',
75
+ 'reason_for_referral',
76
+ 'remarks',
77
+ ];
78
+ export const moh405Columns = [
79
+ 'date_of_visit',
80
+ 'anc_number_new',
81
+ 'anc_number_revisit',
82
+ 'amrs_id',
83
+ 'visit_number',
84
+ 'full_name',
85
+ 'date_of_birth',
86
+ 'subcounty_county',
87
+ 'village_estate',
88
+ 'marital_status',
89
+ 'parity',
90
+ 'gravidae',
91
+ 'lmp',
92
+ 'edd',
93
+ 'gestation_weeks',
94
+ 'muac',
95
+ 'height',
96
+ 'weight',
97
+ 'blood_pressure',
98
+ 'breast_exam',
99
+ 'fgm',
100
+ 'hb_level',
101
+ 'blood_sugar',
102
+ 'blood_group',
103
+ 'urinalysis',
104
+ 'syphilis_test',
105
+ 'hepatitis_b',
106
+ 'tb_screening',
107
+ 'hiv_testing_type',
108
+ 'hiv_test_1',
109
+ 'hiv_test_2',
110
+ 'hiv_test_3',
111
+ 'hiv_results',
112
+ 'haart',
113
+ 'infant_prophylaxis',
114
+ 'partner_testing',
115
+ 'other_conditions',
116
+ 'deworming',
117
+ 'ipt',
118
+ 'tt_dose',
119
+ 'supplementation',
120
+ 'llitn',
121
+ 'referral_from',
122
+ 'referral_to',
123
+ 'referral_reason',
124
+ 'remarks',
125
+ ];
126
+ export const moh333Columns = [
127
+ 'date_of_admission',
128
+ 'amrsid',
129
+ 'admission_number',
130
+ 'full_name',
131
+ 'date_of_birth',
132
+ 'county_subcounty',
133
+ 'village_landmark',
134
+ 'marital_status',
135
+ 'parity',
136
+ 'gravidae',
137
+ 'anc_visits',
138
+ 'lmp',
139
+ 'edd',
140
+ 'diagnosis',
141
+
142
+ // Delivery section
143
+ 'nupi',
144
+ 'age',
145
+ 'phone_number',
146
+ 'labour_duration',
147
+ 'delivery_date',
148
+ 'delivery_time',
149
+ 'gestation_at_birth',
150
+ 'mode_of_delivery',
151
+ 'no_of_babies',
152
+ 'placenta_complete',
153
+ 'uterotonic_given',
154
+ 'vaginal_examination',
155
+ 'blood_loss',
156
+ 'mother_status',
157
+
158
+ // Delivery complications / outcomes
159
+ 'maternal_deaths_notified',
160
+ 'delivery_complications',
161
+ 'apgar_score',
162
+ 'birth_outcome',
163
+ 'birth_weight',
164
+ 'sex',
165
+
166
+ // Baby care
167
+ 'bf_in_1hr',
168
+ 'teo_given',
169
+ 'cord_chlorhexidine',
170
+ 'birth_deformity',
171
+ 'vitamin_k',
172
+ 'pnc_status',
173
+
174
+ // HIV section
175
+ 'hiv_test_1',
176
+ 'hiv_test_2',
177
+ 'hiv_test_3',
178
+ 'hiv_result_maternity',
179
+ 'start_at_maternity',
180
+
181
+ // Follow-up / referral
182
+ 'kangaroo_mother_care',
183
+ 'congenital_abnormalities',
184
+ 'kit_name_1',
185
+ 'kit_name_2',
186
+ 'kit_name_3',
187
+ 'hiv_initial_retest_status',
188
+ 'maternal_treatment',
189
+ 'referral_from',
190
+ 'referral_to',
191
+ 'reason_for_referral',
192
+ ];
@@ -2,14 +2,19 @@ import React from 'react';
2
2
 
3
3
  import styles from '../moh711.scss';
4
4
  import classNames from 'classnames';
5
+ import { useOpenMoh711AncLinelist } from '../linelist/use-open-moh-711-anc-linelist';
5
6
 
6
7
  interface ANCComponentProps {
7
8
  moh711Data: any;
9
+ startDate: string;
10
+ endDate: string;
11
+ locationUuids: string;
8
12
  }
9
13
 
10
- const ANCComponent: React.FC<ANCComponentProps> = ({ moh711Data }) => {
14
+ const ANCComponent: React.FC<ANCComponentProps> = ({ moh711Data, startDate, endDate, locationUuids }) => {
15
+ const openLinelist = useOpenMoh711AncLinelist(startDate, endDate, locationUuids);
11
16
  return (
12
- <>
17
+ <div className={styles.section}>
13
18
  <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
19
  <thead>
15
20
  <tr>
@@ -22,112 +27,122 @@ const ANCComponent: React.FC<ANCComponentProps> = ({ moh711Data }) => {
22
27
  <td>1</td>
23
28
  <td rowSpan={2}>No. of ANC Clients</td>
24
29
  <td>New</td>
25
- <td>{moh711Data.new_anc_clients}</td>
30
+ <td onClick={() => openLinelist('new_anc_clients')}>{moh711Data.new_anc_clients ?? 0}</td>
26
31
  </tr>
27
32
  <tr>
28
33
  <td>2</td>
29
34
  <td>Re-visit</td>
30
- <td>{moh711Data.revisit_anc_clients}</td>
35
+ <td onClick={() => openLinelist('revisit_anc_clients')}>{moh711Data.revisit_anc_clients ?? 0}</td>
31
36
  </tr>
32
37
  <tr>
33
38
  <td>3</td>
34
39
  <td colSpan={2}>No. of Clients given IPT (1st Dose)</td>
35
- <td>{moh711Data.first_ipt_dose}</td>
40
+ <td onClick={() => openLinelist('first_ipt_dose')}>{moh711Data.first_ipt_dose ?? 0}</td>
36
41
  </tr>
37
42
  <tr>
38
43
  <td>4</td>
39
44
  <td colSpan={2}>No. of Clients given IPT (2nd Dose)</td>
40
- <td>{moh711Data.second_ipt_dose}</td>
45
+ <td onClick={() => openLinelist('second_ipt_dose')}>{moh711Data.second_ipt_dose ?? 0}</td>
41
46
  </tr>
42
47
  <tr>
43
48
  <td>5</td>
44
49
  <td colSpan={2}>No. of Clients given IPT (3rd Dose)</td>
45
- <td>{moh711Data.third_ipt_dose}</td>
50
+ <td onClick={() => openLinelist('third_ipt_dose')}>{moh711Data.third_ipt_dose ?? 0}</td>
46
51
  </tr>
47
52
  <tr>
48
53
  <td>6</td>
49
54
  <td colSpan={2}>No. of Clients with Hb&lt;11g/dl</td>
50
- <td>{moh711Data.Hb_less_11g}</td>
55
+ <td onClick={() => openLinelist('Hb_less_11g')}>{moh711Data.Hb_less_11g ?? 0}</td>
51
56
  </tr>
52
57
  <tr>
53
58
  <td>7</td>
54
59
  <td colSpan={2}>No. clients with 1st ANC contact at 12 or less weeks</td>
55
- <td>{moh711Data.first_anc_contact_12_or_less_weeks}</td>
60
+ <td onClick={() => openLinelist('first_anc_contact_12_or_less_weeks')}>
61
+ {moh711Data.first_anc_contact_12_or_less_weeks ?? 0}
62
+ </td>
56
63
  </tr>
57
64
  <tr>
58
65
  <td>8</td>
59
66
  <td colSpan={2}>Pregnant women completing 4th ANC Contacts</td>
60
- <td>{moh711Data.completing_4_anc_visits}</td>
67
+ <td onClick={() => openLinelist('completing_4_anc_visits')}>
68
+ {moh711Data.completing_4_anc_visits ?? 0}
69
+ </td>
61
70
  </tr>
62
71
  <tr>
63
72
  <td>9</td>
64
73
  <td colSpan={2}>No. of clients completed 8th ANC Contacts</td>
65
- <td>{moh711Data.completing_8_anc_contact}</td>
74
+ <td onClick={() => openLinelist('completing_8_anc_contact')}>
75
+ {moh711Data.completing_8_anc_contact ?? 0}
76
+ </td>
66
77
  </tr>
67
78
  <tr>
68
79
  <td>10</td>
69
80
  <td colSpan={2}>No. of LLINs distributed to under 1 year</td>
70
- <td>{moh711Data.llins_children_less_than_one}</td>
81
+ <td onClick={() => openLinelist('llins_children_less_than_one')}>
82
+ {moh711Data.llins_children_less_than_one ?? 0}
83
+ </td>
71
84
  </tr>
72
85
  <tr>
73
86
  <td>11</td>
74
87
  <td colSpan={2}>No. of LLINs distributed to ANC clients</td>
75
- <td>{moh711Data.llins_anc_clients}</td>
88
+ <td onClick={() => openLinelist('llins_anc_clients')}>{moh711Data.llins_anc_clients ?? 0}</td>
76
89
  </tr>
77
90
  <tr>
78
91
  <td>12</td>
79
92
  <td rowSpan={2}>No. of clients</td>
80
93
  <td>Tested for Syphilis</td>
81
- <td>{moh711Data.anc_clients_tested_syphilis}</td>
94
+ <td onClick={() => openLinelist('anc_clients_tested_syphilis')}>
95
+ {moh711Data.anc_clients_tested_syphilis ?? 0}
96
+ </td>
82
97
  </tr>
83
98
  <tr>
84
99
  <td>13</td>
85
100
  <td>Positive (+ve)</td>
86
- <td>{moh711Data.syphilis_positive}</td>
101
+ <td onClick={() => openLinelist('syphilis_positive')}> {moh711Data.syphilis_positive ?? 0}</td>
87
102
  </tr>
88
103
  <tr>
89
104
  <td>14</td>
90
105
  <td colSpan={2}>Total Women Done Breast Examination</td>
91
- <td>{moh711Data.breast_exam}</td>
106
+ <td onClick={() => openLinelist('breast_exam')}>{moh711Data.breast_exam ?? 0}</td>
92
107
  </tr>
93
108
  <tr>
94
109
  <td>15</td>
95
110
  <td colSpan={2}>No. of adolescents (10-14 years) presenting with pregnancy at 1st ANC contact</td>
96
- <td>{moh711Data.adolesc_10_14}</td>
111
+ <td onClick={() => openLinelist('adolesc_10_14')}>{moh711Data.adolesc_10_14 ?? 0}</td>
97
112
  </tr>
98
113
  <tr>
99
114
  <td>16</td>
100
115
  <td colSpan={2}>No. of adolescents (15-19 years) presenting with pregnancy at 1st ANC contact</td>
101
- <td>{moh711Data.adolesc_15_19}</td>
116
+ <td onClick={() => openLinelist('adolesc_15_19')}>{moh711Data.adolesc_15_19 ?? 0}</td>
102
117
  </tr>
103
118
  <tr>
104
119
  <td>17</td>
105
120
  <td colSpan={2}>No. of youth (20-24 years) presenting with pregnancy at 1st ANC contact</td>
106
- <td>{moh711Data.youth_20_24}</td>
121
+ <td onClick={() => openLinelist('youth_20_24')}>{moh711Data.youth_20_24 ?? 0}</td>
107
122
  </tr>
108
123
  <tr>
109
124
  <td>18</td>
110
125
  <td colSpan={2}>No. of clients issued with Iron</td>
111
- <td>{moh711Data.iron}</td>
126
+ <td onClick={() => openLinelist('iron')}>{moh711Data.iron ?? 0}</td>
112
127
  </tr>
113
128
  <tr>
114
129
  <td>19</td>
115
130
  <td colSpan={2}>No. of clients issued with Folic</td>
116
- <td>{moh711Data.folic}</td>
131
+ <td onClick={() => openLinelist('folic')}>{moh711Data.folic ?? 0}</td>
117
132
  </tr>
118
133
  <tr>
119
134
  <td>20</td>
120
135
  <td colSpan={2}>No. of clients issued with Combined Ferrous Folate</td>
121
- <td>{moh711Data.iron_and_folate}</td>
136
+ <td onClick={() => openLinelist('iron_and_folate')}>{moh711Data.iron_and_folate ?? 0}</td>
122
137
  </tr>
123
138
  <tr>
124
139
  <td>21</td>
125
140
  <td colSpan={2}>No. of pregnant women presenting in ANC with complication associated with FGM</td>
126
- <td>{moh711Data.fgm_complications}</td>
141
+ <td onClick={() => openLinelist('fgm_complications')}>{moh711Data.fgm_complications ?? 0}</td>
127
142
  </tr>
128
143
  </tbody>
129
144
  </table>
130
- </>
145
+ </div>
131
146
  );
132
147
  };
133
148
 
@@ -5,11 +5,14 @@ import classNames from 'classnames';
5
5
 
6
6
  interface CervicalCancerComponentProps {
7
7
  moh711Data: any;
8
+ startDate: string;
9
+ endDate: string;
10
+ locationUuids: string;
8
11
  }
9
12
 
10
- const CervicalCancerComponent: React.FC<CervicalCancerComponentProps> = ({ moh711Data }) => {
13
+ const CervicalCancerComponent: React.FC<CervicalCancerComponentProps> = () => {
11
14
  return (
12
- <>
15
+ <div className={styles.section}>
13
16
  <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
17
  <thead>
15
18
  <tr>
@@ -28,76 +31,76 @@ const CervicalCancerComponent: React.FC<CervicalCancerComponentProps> = ({ moh71
28
31
  <tr>
29
32
  <td>1</td>
30
33
  <td>No. of Clients receiving VIA/VILI/HPV VILI/HPV</td>
31
- <td>{moh711Data.via_villi_hpv_less_25}</td>
32
- <td>{moh711Data.via_villi_hpv_25_49}</td>
33
- <td>{moh711Data.via_villi_hpv_50_above}</td>
34
+ <td></td>
35
+ <td></td>
36
+ <td></td>
34
37
  </tr>
35
38
  <tr>
36
39
  <td>2</td>
37
40
  <td>No. screened for Pap smear</td>
38
- <td>{moh711Data.pap_smear_less_25}</td>
39
- <td>{moh711Data.pap_smear_25_49}</td>
40
- <td>{moh711Data.pap_smear_50_above}</td>
41
+ <td></td>
42
+ <td></td>
43
+ <td></td>
41
44
  </tr>
42
45
  <tr>
43
46
  <td>3</td>
44
47
  <td>No. screend for HPV test</td>
45
- <td>{moh711Data.hpv_test_less_25}</td>
46
- <td>{moh711Data.hpv_test_25_49}</td>
47
- <td>{moh711Data.hpv_test_50_above}</td>
48
+ <td></td>
49
+ <td></td>
50
+ <td></td>
48
51
  </tr>
49
52
  <tr>
50
53
  <td>4</td>
51
54
  <td>No. of clients with Positive VIA/VILI results</td>
52
- <td>{moh711Data.positive_via_villi_less_25}</td>
53
- <td>{moh711Data.positive_via_villi_25_49}</td>
54
- <td>{moh711Data.positive_via_villi_50_above}</td>
55
+ <td></td>
56
+ <td></td>
57
+ <td></td>
55
58
  </tr>
56
59
  <tr>
57
60
  <td>5</td>
58
61
  <td>No. of clients with Positive Cytology result</td>
59
- <td>{moh711Data.positive_cytology_less_25}</td>
60
- <td>{moh711Data.positive_cytology_25_49}</td>
61
- <td>{moh711Data.positive_cytology_50_above}</td>
62
+ <td></td>
63
+ <td></td>
64
+ <td></td>
62
65
  </tr>
63
66
  <tr>
64
67
  <td>6</td>
65
68
  <td>No. of clients with Positive HPV results</td>
66
- <td>{moh711Data.positive_hpv_less_25}</td>
67
- <td>{moh711Data.positive_hpv_25_49}</td>
68
- <td>{moh711Data.positive_hpv_50_above}</td>
69
+ <td></td>
70
+ <td></td>
71
+ <td></td>
69
72
  </tr>
70
73
  <tr>
71
74
  <td>7</td>
72
75
  <td>No. of clients with suspicious cancer lessions</td>
73
- <td>{moh711Data.suspicious_cancer_lessions_less_25}</td>
74
- <td>{moh711Data.suspicious_cancer_lessions_25_49}</td>
75
- <td>{moh711Data.suspicious_cancer_lessions_50_above}</td>
76
+ <td></td>
77
+ <td></td>
78
+ <td></td>
76
79
  </tr>
77
80
  <tr>
78
81
  <td>8</td>
79
82
  <td>No. of clients treated using Cryotherapy</td>
80
- <td>{moh711Data.cryotherapy_treatment_less_25}</td>
81
- <td>{moh711Data.cryotherapy_treatment_25_49}</td>
82
- <td>{moh711Data.cryotherapy_treatment_50_above}</td>
83
+ <td></td>
84
+ <td></td>
85
+ <td></td>
83
86
  </tr>
84
87
  <tr>
85
88
  <td>9</td>
86
89
  <td>No. of clients treated using LEEP</td>
87
- <td>{moh711Data.leep_treatment_less_25}</td>
88
- <td>{moh711Data.leep_treatment_25_49}</td>
89
- <td>{moh711Data.leep_treatment_50_above}</td>
90
+ <td></td>
91
+ <td></td>
92
+ <td></td>
90
93
  </tr>
91
94
  <tr>
92
95
  <td>10</td>
93
96
  <td>No of HIV positive clients screened</td>
94
- <td>{moh711Data.hiv_positive_screened_cervical_cancer_less_25}</td>
95
- <td>{moh711Data.hiv_positive_screened_cervical_cancer_25_49}</td>
96
- <td>{moh711Data.hiv_positive_screened_cervical_cancer_50_above}</td>
97
+ <td></td>
98
+ <td></td>
99
+ <td></td>
97
100
  </tr>
98
101
  </tbody>
99
102
  </table>
100
- </>
103
+ </div>
101
104
  );
102
105
  };
103
106