@ampath/esm-reports-app 1.0.0-next.10 → 1.0.0-next.101
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.
- package/README.md +2 -0
- package/dist/197.js +1 -1
- package/dist/282.js +1 -1
- package/dist/282.js.map +1 -1
- package/dist/295.css +1 -0
- package/dist/295.css.map +1 -0
- package/dist/295.js +1 -0
- package/dist/295.js.map +1 -0
- package/dist/299.js +2 -0
- package/dist/299.js.LICENSE.txt +3 -0
- package/dist/299.js.map +1 -0
- package/dist/300.js +1 -1
- package/dist/311.js +1 -1
- package/dist/311.js.map +1 -1
- package/dist/335.js +1 -1
- package/dist/353.js +1 -1
- package/dist/353.js.map +1 -1
- package/dist/354.js +2 -0
- package/dist/354.js.LICENSE.txt +20 -0
- package/dist/354.js.map +1 -0
- package/dist/410.js +1 -0
- package/dist/410.js.map +1 -0
- package/dist/457.js +2 -0
- package/dist/457.js.LICENSE.txt +261 -0
- package/dist/457.js.map +1 -0
- package/dist/478.js +1 -1
- package/dist/478.js.map +1 -1
- package/dist/480.js +1 -0
- package/dist/540.js +1 -1
- package/dist/540.js.map +1 -1
- package/dist/55.js +1 -1
- package/dist/600.js +2 -0
- package/dist/600.js.LICENSE.txt +35 -0
- package/dist/600.js.map +1 -0
- package/dist/652.js +1 -1
- package/dist/757.js +1 -0
- package/dist/757.js.map +1 -0
- package/dist/781.js +1 -0
- package/dist/781.js.map +1 -0
- package/dist/859.css +1 -0
- package/dist/859.css.map +1 -0
- package/dist/859.js +1 -0
- package/dist/859.js.map +1 -0
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/99.js +1 -1
- package/dist/99.js.map +1 -0
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/ampath-esm-reports-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/local-config.json +5 -0
- package/package.json +5 -2
- package/src/common/daily-summary-table.tsx +55 -0
- package/src/common/linelist-table/index.ts +3 -0
- package/src/common/linelist-table/linelist-columns.ts +48 -0
- package/src/common/linelist-table/linelist-table.component.tsx +442 -0
- package/src/common/linelist-table/linelist-table.scss +306 -0
- package/src/common/linelist-table/linelist-table.test.tsx +120 -0
- package/src/common/linelist-table/use-all-rows.ts +93 -0
- package/src/common/linelist-table/use-column-layout.ts +123 -0
- package/src/common/report-error/index.ts +1 -0
- package/src/common/report-error/show-report-error.ts +25 -0
- package/src/common/report-filters/date-range.ts +137 -0
- package/src/common/report-filters/index.ts +4 -0
- package/src/common/report-filters/report-filters.component.tsx +319 -101
- package/src/common/report-filters/report-filters.scss +269 -32
- package/src/common/report-filters/types.ts +83 -0
- package/src/common/report-filters/use-restore-period.ts +53 -0
- package/src/common/report-header/index.ts +1 -0
- package/src/common/report-header/use-location-details.ts +58 -0
- package/src/common/report-page/download-sheet-pdf.ts +225 -0
- package/src/common/report-page/index.ts +3 -0
- package/src/common/report-page/report-page.component.tsx +32 -0
- package/src/common/report-page/report-page.scss +45 -0
- package/src/common/report-page/use-page-scale.ts +60 -0
- package/src/common/report-placeholder/has-report-data.ts +15 -0
- package/src/common/report-placeholder/index.ts +3 -0
- package/src/common/report-placeholder/report-placeholder.component.tsx +81 -0
- package/src/common/report-placeholder/report-placeholder.scss +48 -0
- package/src/common/report-placeholder/use-generated-location.ts +62 -0
- package/src/common/report-register/index.ts +6 -0
- package/src/common/report-register/register-columns.ts +46 -0
- package/src/common/report-register/register-layout.component.tsx +266 -0
- package/src/common/report-register/register-layout.scss +150 -0
- package/src/common/report-register/register-table.scss +71 -0
- package/src/common/report-register/report-parents.ts +31 -0
- package/src/common/report-register/rows-to-csv.ts +89 -0
- package/src/common/report-register/use-location-name.ts +54 -0
- package/src/common/report-register/use-patient-list.ts +92 -0
- package/src/common/report-skeleton/index.ts +1 -0
- package/src/common/report-skeleton/report-skeleton.component.tsx +46 -0
- package/src/common/report-skeleton/report-skeleton.scss +29 -0
- package/src/config-schema.ts +9 -1
- package/src/dashboard/report-catalog.ts +215 -0
- package/src/dashboard/reports-dasboard.tsx +189 -30
- package/src/dashboard/reports-dashboard.module.scss +357 -14
- package/src/index.ts +13 -1
- package/src/registers/moh-240/moh-240-register.scss +41 -0
- package/src/registers/moh-240/moh-240.component.test.tsx +166 -0
- package/src/registers/moh-240/moh-240.component.tsx +164 -0
- package/src/registers/moh-267/moh-267-register.component.tsx +409 -0
- package/src/registers/moh-267/moh-267-register.scss +298 -0
- package/src/registers/moh-267/moh-267-summary.ts +103 -0
- package/src/registers/moh-267/moh-267.component.tsx +94 -0
- package/src/registers/moh-267/moh-267.types.ts +47 -0
- package/src/registers/moh-362/moh-362-lab-register.component.tsx +551 -0
- package/src/registers/moh-362/moh-362-lab-register.scss +412 -0
- package/src/registers/moh-362/moh-362-linkage-register.component.tsx +215 -0
- package/src/registers/moh-362/moh-362-linkage-register.scss +91 -0
- package/src/registers/moh-362/moh-362.component.tsx +117 -0
- package/src/registers/moh-362/moh-362.scss +11 -0
- package/src/registers/moh-362/moh-362.types.ts +87 -0
- package/src/registers/presumptive-tb/presumptive-tb-register.component.tsx +391 -0
- package/src/registers/presumptive-tb/presumptive-tb-register.scss +262 -0
- package/src/registers/presumptive-tb/presumptive-tb.component.tsx +92 -0
- package/src/registers/presumptive-tb/presumptive-tb.types.ts +88 -0
- package/src/registers/register-catalog.ts +251 -0
- package/src/registers/register-file-name.ts +18 -0
- package/src/registers/tb-lab-register/tb-lab-register-table.component.tsx +116 -0
- package/src/registers/tb-lab-register/tb-lab-register-table.scss +123 -0
- package/src/registers/tb-lab-register/tb-lab-register.columns.ts +164 -0
- package/src/registers/tb-lab-register/tb-lab-register.component.test.tsx +232 -0
- package/src/registers/tb-lab-register/tb-lab-register.component.tsx +153 -0
- package/src/registers/tb4/tb4-parts.tsx +164 -0
- package/src/registers/tb4/tb4-patient-sheet.component.tsx +418 -0
- package/src/registers/tb4/tb4-register.scss +282 -0
- package/src/registers/tb4/tb4-treatment-sheet.component.tsx +349 -0
- package/src/registers/tb4/tb4.component.tsx +120 -0
- package/src/registers/tb4/tb4.types.ts +129 -0
- package/src/reports/acf-summary/acf-summary-form.component.tsx +176 -0
- package/src/reports/acf-summary/acf-summary-linelist.component.tsx +86 -0
- package/src/reports/acf-summary/acf-summary.component.tsx +97 -0
- package/src/reports/acf-summary/acf-summary.counts.ts +37 -0
- package/src/reports/acf-summary/acf-summary.scss +162 -0
- package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +63 -48
- package/src/reports/moh-240/line-list.columns.test.tsx +156 -0
- package/src/reports/moh-240/line-list.columns.ts +139 -0
- package/src/reports/moh-240/moh-240-header.component.tsx +62 -0
- package/src/reports/moh-240/moh-240.columns.ts +113 -0
- package/src/reports/moh-240/moh-240.component.test.tsx +109 -0
- package/src/reports/moh-240/moh-240.component.tsx +85 -9
- package/src/reports/moh-240/moh-240.scss +40 -0
- package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +31 -37
- package/src/reports/moh-240/sub-reports/page-summary.component.tsx +143 -90
- package/src/reports/moh-505/moh-505-header.component.tsx +67 -0
- package/src/reports/moh-505/moh-505.component.tsx +396 -231
- package/src/reports/moh-505/moh-505.scss +131 -0
- package/src/reports/moh-643/moh-643.component.tsx +222 -0
- package/src/reports/moh-643/moh-643.rows.ts +77 -0
- package/src/reports/moh-643/moh-643.scss +164 -0
- package/src/reports/moh-643/registers/moh-643-register.component.tsx +112 -0
- package/src/reports/moh-643/registers/moh-643.columns.ts +32 -0
- package/src/reports/moh-645/moh-645.component.tsx +331 -0
- package/src/reports/moh-645/moh-645.scss +147 -0
- package/src/reports/moh-645/registers/moh-645-register.component.tsx +125 -0
- package/src/reports/moh-645/registers/moh-645.columns.ts +40 -0
- package/src/reports/moh-705B/linelist/moh-705b-linelist.component.tsx +78 -0
- package/src/reports/moh-705B/moh-204b-register.component.tsx +318 -0
- package/src/reports/moh-705B/moh-204b.columns.ts +39 -0
- package/src/reports/moh-705B/moh-705b.component.tsx +622 -427
- package/src/reports/moh-705B/moh-705b.scss +153 -22
- package/src/reports/moh-705a/linelist/moh-705a-linelist.component.tsx +84 -0
- package/src/reports/moh-705a/moh-705a.component.test.tsx +56 -0
- package/src/reports/moh-705a/moh-705a.component.tsx +623 -433
- package/src/reports/moh-705a/moh-705a.scss +153 -22
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +404 -0
- package/src/reports/moh-705a/registers/moh-204a.columns.ts +57 -0
- package/src/reports/moh-705a/type.ts +6 -0
- package/src/reports/moh-706/moh-706-header.component.tsx +66 -0
- package/src/reports/moh-706/moh-706.component.tsx +150 -24
- package/src/reports/moh-706/moh-706.scss +119 -11
- package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +43 -34
- package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +229 -305
- package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +30 -23
- package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +25 -25
- package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +31 -24
- package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +21 -14
- package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +2 -2
- package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +27 -20
- package/src/reports/moh-710/moh-710.component.tsx +815 -621
- package/src/reports/moh-710/moh-710.scss +142 -21
- package/src/reports/moh-710/registers/moh-413/moh-413-columns.ts +22 -0
- package/src/reports/moh-710/registers/moh-413/moh-413.component.tsx +140 -0
- package/src/reports/moh-710/registers/moh-413/moh-413.scss +64 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.columns.ts +40 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.component.tsx +191 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.scss +130 -0
- package/src/reports/moh-710/registers/moh-511-710-register.component.tsx +268 -0
- package/src/reports/moh-710/registers/moh-511-710.columns.ts +52 -0
- package/src/reports/moh-710/registers/type.ts +31 -0
- package/src/reports/moh-711/linelist/moh-711-anc-linelist.component.tsx +77 -0
- package/src/reports/moh-711/linelist/moh-711-chanis-linelist.component.tsx +75 -0
- package/src/reports/moh-711/linelist/moh-711-family-planning-linelist.component.tsx +105 -0
- package/src/reports/moh-711/linelist/moh-711-maternity-linelist.component.tsx +104 -0
- package/src/reports/moh-711/linelist/moh-711-pnc-linelist.component.tsx +80 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-anc-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-chanis-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-family-planning-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-maternity-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-pnc-linelist.ts +20 -0
- package/src/reports/moh-711/moh-711.component.tsx +139 -67
- package/src/reports/moh-711/moh711.scss +113 -28
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +680 -0
- package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +566 -0
- package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +581 -0
- package/src/reports/moh-711/registers/moh-406.columns.ts +133 -0
- package/src/reports/moh-711/registers/moh-407-register.component.tsx +157 -0
- package/src/reports/moh-711/registers/moh-407.columns.ts +24 -0
- package/src/reports/moh-711/registers/moh-407.scss +64 -0
- package/src/reports/moh-711/registers/moh-510-register.component.tsx +55 -0
- package/src/reports/moh-711/registers/moh-511-register.component.tsx +270 -0
- package/src/reports/moh-711/registers/moh-511.columns.ts +59 -0
- package/src/reports/moh-711/registers/moh-512-columns.ts +94 -0
- package/src/reports/moh-711/registers/moh-512.component.tsx +191 -0
- package/src/reports/moh-711/registers/moh-512.scss +64 -0
- package/src/reports/moh-711/registers/tb-register-columns.ts +17 -0
- package/src/reports/moh-711/registers/tb-register.component.tsx +96 -0
- package/src/reports/moh-711/registers/tb-register.scss +64 -0
- package/src/reports/moh-711/registers/type.ts +192 -0
- package/src/reports/moh-711/sections/anc.component.tsx +39 -24
- package/src/reports/moh-711/sections/cervical-cancer.component.tsx +36 -33
- package/src/reports/moh-711/sections/chanis.component.tsx +89 -84
- package/src/reports/moh-711/sections/family-planning.component.tsx +117 -51
- package/src/reports/moh-711/sections/gbv.component.tsx +43 -43
- package/src/reports/moh-711/sections/maternity.component.tsx +76 -47
- package/src/reports/moh-711/sections/medical-social-work.component.tsx +11 -21
- package/src/reports/moh-711/sections/other.component.tsx +2 -2
- package/src/reports/moh-711/sections/physiotherapy.component.tsx +2 -2
- package/src/reports/moh-711/sections/pnc.component.tsx +38 -15
- package/src/reports/moh-711/sections/post-abortion.component.tsx +2 -2
- package/src/reports/moh-711/sections/rehabilitation.component.tsx +2 -2
- package/src/reports/moh-711/sections/report-compiled-by.component.tsx +12 -4
- package/src/reports/moh-711/sections/tb-screening.component.tsx +52 -15
- package/src/reports/moh-717/moh-717.component.tsx +139 -97
- package/src/reports/moh-717/moh717.scss +174 -77
- package/src/reports/moh-717/registers/moh-209-register.component.tsx +159 -0
- package/src/reports/moh-717/registers/moh-209.columns.ts +30 -0
- package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
- package/src/reports/moh-717/sections/maternity.component.tsx +43 -13
- package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +1 -1
- package/src/reports/moh-717/sections/outpatient.component.tsx +149 -43
- package/src/reports/moh-717/sections/preparedby.component.tsx +7 -2
- package/src/reports/moh-717/sections/special-services.component.tsx +64 -10
- package/src/reports/moh-729b/moh-729b-form.component.tsx +404 -0
- package/src/reports/moh-729b/moh-729b-linelist.component.tsx +278 -0
- package/src/reports/moh-729b/moh-729b-summary.component.tsx +258 -0
- package/src/reports/moh-729b/moh-729b-summary.config.ts +291 -0
- package/src/reports/moh-729b/moh-729b.component.tsx +161 -0
- package/src/reports/moh-729b/moh-729b.config.ts +241 -0
- package/src/reports/moh-729b/moh-729b.scss +276 -0
- package/src/reports/moh-729b/moh-729b.types.ts +177 -0
- package/src/reports/moh-731/linelist/moh-731-indicators.ts +1126 -0
- package/src/reports/moh-731/linelist/moh-731-linelist-sections.ts +474 -0
- package/src/reports/moh-731/linelist/moh-731-linelist.component.tsx +102 -0
- package/src/reports/moh-731/linelist/use-open-moh-731-linelist.ts +50 -0
- package/src/reports/moh-731/moh-731.component.tsx +269 -0
- package/src/reports/moh-731/moh-731.scss +496 -0
- package/src/reports/moh-731/registers/moh-366.columns.ts +38 -0
- package/src/reports/moh-731/registers/moh-366.component.tsx +471 -0
- package/src/reports/moh-731/registers/prep-register.component.tsx +284 -0
- package/src/reports/moh-731/registers/prep.columns.ts +34 -0
- package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +1206 -0
- package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +727 -0
- package/src/reports/moh-731/sections/pmtct.component.tsx +572 -0
- package/src/reports/moh-731/summary/moh-731-summary.component.tsx +313 -0
- package/src/reports/moh-731/summary/moh-731-summary.config.ts +538 -0
- package/src/reports/moh-731/summary/moh-731-summary.scss +247 -0
- package/src/reports/moh-733/linelist/moh-733-linelist.component.tsx +75 -0
- package/src/reports/moh-733/linelist/use-open-moh-733-linelist.ts +19 -0
- package/src/reports/moh-733/moh-733.component.tsx +176 -0
- package/src/reports/moh-733/moh-733.scss +222 -0
- package/src/reports/moh-733/sections/client-category.component.tsx +432 -0
- package/src/reports/moh-733/sections/nutrition-intervention-pregnant-breastfeeding.component.tsx +318 -0
- package/src/reports/moh-733/sections/nutrition-intervention.component.tsx +412 -0
- package/src/reports/moh-733/sections/nutrition-status-weight.component.tsx +409 -0
- package/src/reports/moh-733/sections/nutrition-status.component.tsx +409 -0
- package/src/reports/moh-740/moh-740.component.scss +202 -0
- package/src/reports/moh-740/moh-740.component.tsx +1339 -0
- package/src/reports/moh-740/moh-740.resource.ts +54 -0
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +20 -0
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +183 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +6 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +151 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.tsx +60 -0
- package/src/reports/moh-740/registers/moh-740.columns.ts +54 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
- package/src/reports/moh-740/shared/utils/indicator-register-map.ts +159 -0
- package/src/reports/moh-740/types/index.ts +223 -0
- package/src/reports/moh-745/moh-745.component.tsx +2020 -591
- package/src/reports/moh-745/moh-745.scss +114 -39
- package/src/reports/moh-745/registers/moh-412-register.component.scss +6 -0
- package/src/reports/moh-745/registers/moh-412-register.component.tsx +275 -0
- package/src/reports/moh-745/registers/moh-412.columns.ts +52 -0
- package/src/reports/moh-745/registers/type.ts +223 -0
- package/src/reports/table-wrapper/table-row-mapper.component.tsx +19 -4
- package/src/reports/table-wrapper/table-wrapper.component.tsx +23 -14
- package/src/reports/table-wrapper/table-wrapper.scss +1 -16
- package/src/resources/moh-267.resource.ts +27 -0
- package/src/resources/moh-362.resource.ts +27 -0
- package/src/resources/moh-505.resource.ts +76 -0
- package/src/resources/moh-643.resource.ts +61 -0
- package/src/resources/moh-645.resource.ts +61 -0
- package/src/resources/moh-705.resource.ts +81 -17
- package/src/resources/moh-706.resource.ts +80 -0
- package/src/resources/moh-710.resource.ts +60 -9
- package/src/resources/moh-711.resource.ts +206 -9
- package/src/resources/moh-717.resource.ts +57 -9
- package/src/resources/moh-729b.resource.ts +25 -0
- package/src/resources/moh-731.resource.ts +90 -0
- package/src/resources/moh-733.resource.ts +31 -0
- package/src/resources/moh-745.resource.ts +56 -14
- package/src/resources/patient-list-page.ts +66 -0
- package/src/resources/presumptive-tb.resource.ts +27 -0
- package/src/root.component.tsx +103 -12
- package/src/root.scss +36 -0
- package/src/routes.json +3 -1
- package/src/utils/format-indicator.ts +39 -0
- package/src/utils/get-base-url.ts +39 -7
- package/src/utils/utils.ts +30 -1
- package/tsconfig.json +1 -1
- package/webpack.config.js +22 -1
- package/dist/138.js +0 -2
- package/dist/138.js.LICENSE.txt +0 -20
- package/dist/138.js.map +0 -1
- package/dist/184.js +0 -2
- package/dist/184.js.LICENSE.txt +0 -14
- package/dist/184.js.map +0 -1
- package/dist/205.js +0 -1
- package/dist/205.js.map +0 -1
- package/dist/677.js +0 -1
- package/dist/677.js.map +0 -1
- package/dist/812.js +0 -1
- package/dist/812.js.map +0 -1
- package/dist/ampath-esm-reports-app.js.buildmanifest.json +0 -539
- package/dist/main.js +0 -1
- package/dist/main.js.map +0 -1
|
@@ -2,14 +2,20 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import styles from '../moh711.scss';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
+
import { useOpenMoh711MaternityLinelist } from '../linelist/use-open-moh-711-maternity-linelist';
|
|
5
6
|
|
|
6
7
|
interface MaternityComponentProps {
|
|
7
8
|
moh711Data: any;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
locationUuids: string;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) => {
|
|
14
|
+
const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data, startDate, endDate, locationUuids }) => {
|
|
15
|
+
const openLinelist = useOpenMoh711MaternityLinelist(startDate, endDate, locationUuids);
|
|
16
|
+
|
|
11
17
|
return (
|
|
12
|
-
|
|
18
|
+
<div className={styles.section}>
|
|
13
19
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
20
|
<thead>
|
|
15
21
|
<tr>
|
|
@@ -21,27 +27,24 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) =
|
|
|
21
27
|
<tr>
|
|
22
28
|
<td>1</td>
|
|
23
29
|
<td colSpan={2}>Normal Deliveries</td>
|
|
24
|
-
<td>{moh711Data.normal_deliveries}</td>
|
|
30
|
+
<td onClick={() => openLinelist('normal_deliveries')}>{moh711Data.normal_deliveries ?? 0}</td>
|
|
25
31
|
</tr>
|
|
26
32
|
<tr>
|
|
27
33
|
<td>2</td>
|
|
28
34
|
<td colSpan={2}>Caesarean Sections</td>
|
|
29
|
-
<td>{moh711Data.caesarian_sections}</td>
|
|
35
|
+
<td onClick={() => openLinelist('caesarian_sections')}>{moh711Data.caesarian_sections ?? 0}</td>
|
|
30
36
|
</tr>
|
|
31
37
|
<tr>
|
|
32
38
|
<td>3</td>
|
|
33
39
|
<td colSpan={2}>Breach Delivery</td>
|
|
34
|
-
<td>{moh711Data.breach_delivery}</td>
|
|
40
|
+
<td onClick={() => openLinelist('breach_delivery')}>{moh711Data.breach_delivery ?? 0}</td>
|
|
35
41
|
</tr>
|
|
36
42
|
<tr>
|
|
37
43
|
<td>4</td>
|
|
38
44
|
<td colSpan={2}>Assisted Vaginal Deliveries(Vacuum Extraction)</td>
|
|
39
|
-
<td
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<td></td>
|
|
43
|
-
<td colSpan={2}></td>
|
|
44
|
-
<td></td>
|
|
45
|
+
<td onClick={() => openLinelist('assisted_vaginal_delivery')}>
|
|
46
|
+
{moh711Data.assisted_vaginal_delivery ?? 0}
|
|
47
|
+
</td>
|
|
45
48
|
</tr>
|
|
46
49
|
<tr>
|
|
47
50
|
<th colSpan={3}>Total Deliveries</th>
|
|
@@ -56,119 +59,137 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) =
|
|
|
56
59
|
<td rowSpan={2}>5</td>
|
|
57
60
|
<td rowSpan={2}>No. of mothers given uterotonics within 1 minute</td>
|
|
58
61
|
<td>Oxytocin</td>
|
|
59
|
-
<td>{moh711Data.oxytocin_uterotonic}</td>
|
|
62
|
+
<td onClick={() => openLinelist('oxytocin_uterotonic')}>{moh711Data.oxytocin_uterotonic ?? 0}</td>
|
|
60
63
|
</tr>
|
|
61
64
|
<tr>
|
|
62
65
|
<td>Carbatosin</td>
|
|
63
|
-
<td>{moh711Data.carbatocin_uterotonic}</td>
|
|
66
|
+
<td onClick={() => openLinelist('carbatocin_uterotonic')}>{moh711Data.carbatocin_uterotonic ?? 0}</td>
|
|
64
67
|
</tr>
|
|
65
68
|
<tr>
|
|
66
69
|
<td>6</td>
|
|
67
70
|
<td colSpan={2}>Live Births</td>
|
|
68
|
-
<td>{moh711Data.live_birth}</td>
|
|
71
|
+
<td onClick={() => openLinelist('live_birth')}>{moh711Data.live_birth ?? 0}</td>
|
|
69
72
|
</tr>
|
|
70
73
|
<tr>
|
|
71
74
|
<td>7</td>
|
|
72
75
|
<td colSpan={2}>No. of Low Birth Weight Babies (below 2500gms)</td>
|
|
73
|
-
<td>{moh711Data.low_birth_weight}</td>
|
|
76
|
+
<td onClick={() => openLinelist('low_birth_weight')}>{moh711Data.low_birth_weight ?? 0}</td>
|
|
74
77
|
</tr>
|
|
75
78
|
<tr>
|
|
76
79
|
<td>8</td>
|
|
77
80
|
<td colSpan={2}>
|
|
78
81
|
No. of Low APGAR Score(<strong>≤ 6 at 5 Min</strong>)
|
|
79
82
|
</td>
|
|
80
|
-
<td>{moh711Data.low_apgar_score}</td>
|
|
83
|
+
<td onClick={() => openLinelist('low_apgar_score')}>{moh711Data.low_apgar_score ?? 0}</td>
|
|
81
84
|
</tr>
|
|
82
85
|
<tr>
|
|
83
86
|
<td>9</td>
|
|
84
87
|
<td colSpan={2}>No. of Birth with diformities</td>
|
|
85
|
-
<td>{moh711Data.birth_with_deformity}</td>
|
|
88
|
+
<td onClick={() => openLinelist('birth_with_deformity')}>{moh711Data.birth_with_deformity ?? 0}</td>
|
|
86
89
|
</tr>
|
|
87
90
|
<tr>
|
|
88
91
|
<td>10</td>
|
|
89
92
|
<td colSpan={2}>No. of Babies applied chlorhexidine for cord care</td>
|
|
90
|
-
<td>{moh711Data.chlorhexidine_applied}</td>
|
|
93
|
+
<td onClick={() => openLinelist('chlorhexidine_applied')}>{moh711Data.chlorhexidine_applied ?? 0}</td>
|
|
91
94
|
</tr>
|
|
92
95
|
<tr>
|
|
93
96
|
<td>11</td>
|
|
94
97
|
<td colSpan={2}>No. of Neonates given Vit "K"</td>
|
|
95
|
-
<td>{moh711Data.vitamin_k}</td>
|
|
98
|
+
<td onClick={() => openLinelist('vitamin_k')}>{moh711Data.vitamin_k ?? 0}</td>
|
|
96
99
|
</tr>
|
|
97
100
|
<tr>
|
|
98
101
|
<td>12</td>
|
|
99
102
|
<td colSpan={2}>No. of Babies given tetracycline at birth</td>
|
|
100
|
-
<td>{moh711Data.tetracycline_given}</td>
|
|
103
|
+
<td onClick={() => openLinelist('tetracycline_given')}>{moh711Data.tetracycline_given ?? 0}</td>
|
|
101
104
|
</tr>
|
|
102
105
|
<tr>
|
|
103
106
|
<td>13</td>
|
|
104
107
|
<td colSpan={2}>Pre-Term babies</td>
|
|
105
|
-
<td>{moh711Data.pre_term_babies}</td>
|
|
108
|
+
<td onClick={() => openLinelist('pre_term_babies')}>{moh711Data.pre_term_babies ?? 0}</td>
|
|
106
109
|
</tr>
|
|
107
110
|
<tr>
|
|
108
111
|
<td>14</td>
|
|
109
112
|
<td colSpan={2}>No. of Babies discharge Alive</td>
|
|
110
|
-
<td>{moh711Data.discharge_alive}</td>
|
|
113
|
+
<td onClick={() => openLinelist('discharge_alive')}>{moh711Data.discharge_alive ?? 0}</td>
|
|
111
114
|
</tr>
|
|
112
115
|
<tr>
|
|
113
116
|
<td>15</td>
|
|
114
117
|
<td colSpan={2}>No. of Infants initiated on breast feeding within 1 hour after birth</td>
|
|
115
|
-
<td>{moh711Data.bf_within_1_hour}</td>
|
|
118
|
+
<td onClick={() => openLinelist('bf_within_1_hour')}>{moh711Data.bf_within_1_hour ?? 0}</td>
|
|
116
119
|
</tr>
|
|
117
120
|
<tr>
|
|
118
121
|
<td>16</td>
|
|
119
122
|
<td colSpan={2}>Total Deliveries from HIV +ve Women</td>
|
|
120
|
-
<td
|
|
123
|
+
<td onClick={() => openLinelist('deliveries_from_positive_women')}>
|
|
124
|
+
{moh711Data.deliveries_from_positive_women ?? 0}
|
|
125
|
+
</td>
|
|
121
126
|
</tr>
|
|
122
127
|
<tr>
|
|
123
128
|
<td>17</td>
|
|
124
129
|
<td rowSpan={3}>Perinatal Deaths</td>
|
|
125
130
|
<td>Fresh Still Birth</td>
|
|
126
|
-
<td>{moh711Data.fresh_still_birth}</td>
|
|
131
|
+
<td onClick={() => openLinelist('fresh_still_birth')}>{moh711Data.fresh_still_birth ?? 0}</td>
|
|
127
132
|
</tr>
|
|
128
133
|
<tr>
|
|
129
134
|
<td>18</td>
|
|
130
135
|
<td>Macerated still Birth</td>
|
|
131
|
-
<td>{moh711Data.macerated_still_birth}</td>
|
|
136
|
+
<td onClick={() => openLinelist('macerated_still_birth')}>{moh711Data.macerated_still_birth ?? 0}</td>
|
|
132
137
|
</tr>
|
|
133
138
|
<tr>
|
|
134
139
|
<td>19</td>
|
|
135
140
|
<td>Deaths 0-7 days</td>
|
|
136
|
-
<td
|
|
141
|
+
<td onClick={() => openLinelist('perinatal_deaths_0_7_days')}>
|
|
142
|
+
{moh711Data.perinatal_deaths_0_7_days ?? 0}
|
|
143
|
+
</td>
|
|
137
144
|
</tr>
|
|
138
145
|
<tr>
|
|
139
146
|
<td>20</td>
|
|
140
147
|
<td colSpan={2}>Neonatal deaths 0-28 Days</td>
|
|
141
|
-
<td
|
|
148
|
+
<td onClick={() => openLinelist('neonatal_deaths_0_28_days')}>
|
|
149
|
+
{moh711Data.neonatal_deaths_0_28_days ?? 0}
|
|
150
|
+
</td>
|
|
142
151
|
</tr>
|
|
143
152
|
<tr>
|
|
144
153
|
<td>21</td>
|
|
145
154
|
<td colSpan={2}>Maternal deaths 10-14 Years</td>
|
|
146
|
-
<td
|
|
155
|
+
<td onClick={() => openLinelist('maternal_deaths_10_14_years')}>
|
|
156
|
+
{moh711Data.maternal_deaths_10_14_years ?? 0}
|
|
157
|
+
</td>
|
|
147
158
|
</tr>
|
|
148
159
|
<tr>
|
|
149
160
|
<td>22</td>
|
|
150
161
|
<td colSpan={2}>Maternal deaths 15-19 Years</td>
|
|
151
|
-
<td
|
|
162
|
+
<td onClick={() => openLinelist('maternal_deaths_15_19_years')}>
|
|
163
|
+
{moh711Data.maternal_deaths_15_19_years ?? 0}
|
|
164
|
+
</td>
|
|
152
165
|
</tr>
|
|
153
166
|
<tr>
|
|
154
167
|
<td>23</td>
|
|
155
168
|
<td colSpan={2}>Maternal deaths 20-24 Years</td>
|
|
156
|
-
<td
|
|
169
|
+
<td onClick={() => openLinelist('maternal_deaths_20_24_years')}>
|
|
170
|
+
{moh711Data.maternal_deaths_20_24_years ?? 0}
|
|
171
|
+
</td>
|
|
157
172
|
</tr>
|
|
158
173
|
<tr>
|
|
159
174
|
<td>24</td>
|
|
160
175
|
<td colSpan={2}>Maternal deaths 25+ Years</td>
|
|
161
|
-
<td
|
|
176
|
+
<td onClick={() => openLinelist('maternal_deaths_25_above_years')}>
|
|
177
|
+
{moh711Data.maternal_deaths_25_above_years ?? 0}
|
|
178
|
+
</td>
|
|
162
179
|
</tr>
|
|
163
180
|
<tr>
|
|
164
181
|
<td>25</td>
|
|
165
182
|
<td colSpan={2}>Maternal Deaths Audited Within 7 Days</td>
|
|
166
|
-
<td
|
|
183
|
+
<td onClick={() => openLinelist('maternal_deaths_audited_within_7_days')}>
|
|
184
|
+
{moh711Data.maternal_deaths_audited_within_7_days ?? 0}
|
|
185
|
+
</td>
|
|
167
186
|
</tr>
|
|
168
187
|
<tr>
|
|
169
188
|
<td>26</td>
|
|
170
189
|
<td colSpan={2}>No. of Neonatal deaths audited within 7 days</td>
|
|
171
|
-
<td
|
|
190
|
+
<td onClick={() => openLinelist('neonatal_deaths_audited_within_7_days')}>
|
|
191
|
+
{moh711Data.neonatal_deaths_audited_within_7_days ?? 0}
|
|
192
|
+
</td>
|
|
172
193
|
</tr>
|
|
173
194
|
</tbody>
|
|
174
195
|
</table>
|
|
@@ -185,42 +206,42 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) =
|
|
|
185
206
|
<tr>
|
|
186
207
|
<td>27</td>
|
|
187
208
|
<td>A.P.H (Ante partum Haemorrage)</td>
|
|
188
|
-
<td>{moh711Data.ante_partum_haemorrage}</td>
|
|
209
|
+
<td onClick={() => openLinelist('ante_partum_haemorrage')}>{moh711Data.ante_partum_haemorrage ?? 0}</td>
|
|
189
210
|
<td></td>
|
|
190
211
|
<td></td>
|
|
191
212
|
</tr>
|
|
192
213
|
<tr>
|
|
193
214
|
<td>28</td>
|
|
194
215
|
<td>P.P.H (Post Partum Haemorrage)</td>
|
|
195
|
-
<td>{moh711Data.post_partum_haemorrage}</td>
|
|
216
|
+
<td onClick={() => openLinelist('post_partum_haemorrage')}>{moh711Data.post_partum_haemorrage ?? 0}</td>
|
|
196
217
|
<td></td>
|
|
197
218
|
<td></td>
|
|
198
219
|
</tr>
|
|
199
220
|
<tr>
|
|
200
221
|
<td>29</td>
|
|
201
222
|
<td>Eclampsia</td>
|
|
202
|
-
<td>{moh711Data.eclampsia}</td>
|
|
223
|
+
<td onClick={() => openLinelist('eclampsia')}>{moh711Data.eclampsia ?? 0}</td>
|
|
203
224
|
<td></td>
|
|
204
225
|
<td></td>
|
|
205
226
|
</tr>
|
|
206
227
|
<tr>
|
|
207
228
|
<td>30</td>
|
|
208
229
|
<td>Ruptured Uterus</td>
|
|
209
|
-
<td>{moh711Data.ruptured_uterus}</td>
|
|
230
|
+
<td onClick={() => openLinelist('ruptured_uterus')}>{moh711Data.ruptured_uterus ?? 0}</td>
|
|
210
231
|
<td></td>
|
|
211
232
|
<td></td>
|
|
212
233
|
</tr>
|
|
213
234
|
<tr>
|
|
214
235
|
<td>31</td>
|
|
215
236
|
<td>Obstructed Labour</td>
|
|
216
|
-
<td>{moh711Data.obstructed_labour}</td>
|
|
237
|
+
<td onClick={() => openLinelist('obstructed_labour')}>{moh711Data.obstructed_labour ?? 0}</td>
|
|
217
238
|
<td></td>
|
|
218
239
|
<td></td>
|
|
219
240
|
</tr>
|
|
220
241
|
<tr>
|
|
221
242
|
<td>32</td>
|
|
222
243
|
<td>Sepsis</td>
|
|
223
|
-
<td>{moh711Data.sepsis}</td>
|
|
244
|
+
<td onClick={() => openLinelist('sepsis')}>{moh711Data.sepsis ?? 0}</td>
|
|
224
245
|
<td></td>
|
|
225
246
|
<td></td>
|
|
226
247
|
</tr>
|
|
@@ -230,7 +251,9 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) =
|
|
|
230
251
|
Number of Mothers with delivery complications associated
|
|
231
252
|
<br /> with FGM
|
|
232
253
|
</td>
|
|
233
|
-
<td
|
|
254
|
+
<td onClick={() => openLinelist('fgm_delivery_complications')}>
|
|
255
|
+
{moh711Data.fgm_delivery_complications ?? 0}
|
|
256
|
+
</td>
|
|
234
257
|
<td></td>
|
|
235
258
|
<td></td>
|
|
236
259
|
</tr>
|
|
@@ -249,31 +272,37 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh711Data }) =
|
|
|
249
272
|
<td>34</td>
|
|
250
273
|
<td rowSpan={3}>Causes of neonatal deaths</td>
|
|
251
274
|
<td>No. of neonatal deaths due to Sepsis</td>
|
|
252
|
-
<td>{moh711Data.neonatal_deaths_sepsis}</td>
|
|
275
|
+
<td onClick={() => openLinelist('neonatal_deaths_sepsis')}>{moh711Data.neonatal_deaths_sepsis ?? 0}</td>
|
|
253
276
|
</tr>
|
|
254
277
|
<tr>
|
|
255
278
|
<td>35</td>
|
|
256
279
|
<td>No. of neonatal deaths due to Prematurity</td>
|
|
257
|
-
<td
|
|
280
|
+
<td onClick={() => openLinelist('neonatal_deaths_prematurity')}>
|
|
281
|
+
{moh711Data.neonatal_deaths_prematurity ?? 0}
|
|
282
|
+
</td>
|
|
258
283
|
</tr>
|
|
259
284
|
<tr>
|
|
260
285
|
<td>36</td>
|
|
261
286
|
<td>No. of neonatal deaths due to Asphyxia</td>
|
|
262
|
-
<td
|
|
287
|
+
<td onClick={() => openLinelist('neonatal_deaths_asphyxia')}>
|
|
288
|
+
{moh711Data.neonatal_deaths_asphyxia ?? 0}
|
|
289
|
+
</td>
|
|
263
290
|
</tr>
|
|
264
291
|
<tr>
|
|
265
292
|
<td>37</td>
|
|
266
293
|
<td colSpan={2}>No. of Neonates initiated on Kangaroo Mother Care</td>
|
|
267
|
-
<td>{moh711Data.kangaroo_mother_care}</td>
|
|
294
|
+
<td onClick={() => openLinelist('kangaroo_mother_care')}>{moh711Data.kangaroo_mother_care ?? 0}</td>
|
|
268
295
|
</tr>
|
|
269
296
|
<tr>
|
|
270
297
|
<td>38</td>
|
|
271
298
|
<td colSpan={2}>Maternal Referrals From Community Unit</td>
|
|
272
|
-
<td
|
|
299
|
+
<td onClick={() => openLinelist('referrals_from_community')}>
|
|
300
|
+
{moh711Data.referrals_from_community ?? 0}
|
|
301
|
+
</td>
|
|
273
302
|
</tr>
|
|
274
303
|
</tbody>
|
|
275
304
|
</table>
|
|
276
|
-
|
|
305
|
+
</div>
|
|
277
306
|
);
|
|
278
307
|
};
|
|
279
308
|
|
|
@@ -7,9 +7,9 @@ interface MedicalSocialWorkComponentProps {
|
|
|
7
7
|
moh711Data: any;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const MedicalSocialWorkComponent: React.FC<MedicalSocialWorkComponentProps> = (
|
|
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}`)}>
|
|
14
14
|
<thead>
|
|
15
15
|
<tr>
|
|
@@ -22,61 +22,51 @@ const MedicalSocialWorkComponent: React.FC<MedicalSocialWorkComponentProps> = ({
|
|
|
22
22
|
<tr>
|
|
23
23
|
<td>1</td>
|
|
24
24
|
<td>Psycho-Social Counselling</td>
|
|
25
|
-
<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
|
|
30
|
+
<td></td>
|
|
31
31
|
</tr>
|
|
32
32
|
<tr>
|
|
33
33
|
<td>3</td>
|
|
34
34
|
<td>Mental illness</td>
|
|
35
|
-
<td
|
|
35
|
+
<td></td>
|
|
36
36
|
</tr>
|
|
37
37
|
<tr>
|
|
38
38
|
<td>4</td>
|
|
39
39
|
<td>Adolescent issues</td>
|
|
40
|
-
<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
|
|
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
|
|
50
|
+
<td></td>
|
|
51
51
|
</tr>
|
|
52
52
|
<tr>
|
|
53
53
|
<td>7</td>
|
|
54
54
|
<td>Social Rehabilitation</td>
|
|
55
|
-
<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
|
|
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>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<td></td>
|
|
69
|
-
<td></td>
|
|
70
|
-
<td></td>
|
|
71
|
-
</tr>
|
|
72
|
-
<tr>
|
|
73
|
-
<td></td>
|
|
74
|
-
<td></td>
|
|
75
65
|
<td></td>
|
|
76
66
|
</tr>
|
|
77
67
|
</tbody>
|
|
78
68
|
</table>
|
|
79
|
-
|
|
69
|
+
</div>
|
|
80
70
|
);
|
|
81
71
|
};
|
|
82
72
|
|
|
@@ -9,7 +9,7 @@ interface OtherComponentProps {
|
|
|
9
9
|
|
|
10
10
|
const OtherComponent: React.FC<OtherComponentProps> = ({ moh711Data }) => {
|
|
11
11
|
return (
|
|
12
|
-
|
|
12
|
+
<div className={styles.section}>
|
|
13
13
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
14
|
<thead>
|
|
15
15
|
<tr>
|
|
@@ -40,7 +40,7 @@ const OtherComponent: React.FC<OtherComponentProps> = ({ moh711Data }) => {
|
|
|
40
40
|
</tr>
|
|
41
41
|
</tbody>
|
|
42
42
|
</table>
|
|
43
|
-
|
|
43
|
+
</div>
|
|
44
44
|
);
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -9,7 +9,7 @@ interface PhysiotherapyComponentProps {
|
|
|
9
9
|
|
|
10
10
|
const PhysiotherapyComponent: React.FC<PhysiotherapyComponentProps> = () => {
|
|
11
11
|
return (
|
|
12
|
-
|
|
12
|
+
<div className={styles.section}>
|
|
13
13
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
14
|
<thead>
|
|
15
15
|
<tr>
|
|
@@ -54,7 +54,7 @@ const PhysiotherapyComponent: React.FC<PhysiotherapyComponentProps> = () => {
|
|
|
54
54
|
</tr>
|
|
55
55
|
</tbody>
|
|
56
56
|
</table>
|
|
57
|
-
|
|
57
|
+
</div>
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
60
|
|
|
@@ -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 { useOpenMoh711PncLinelist } from '../linelist/use-open-moh-711-pnc-linelist';
|
|
5
6
|
|
|
6
7
|
interface PNCComponentProps {
|
|
7
8
|
moh711Data: any;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
locationUuids: string;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data }) => {
|
|
14
|
+
const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data, startDate, endDate, locationUuids }) => {
|
|
15
|
+
const openLinelist = useOpenMoh711PncLinelist(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>
|
|
@@ -26,66 +31,84 @@ const PNCComponent: React.FC<PNCComponentProps> = ({ moh711Data }) => {
|
|
|
26
31
|
<td>1</td>
|
|
27
32
|
<td rowSpan={2}>No. of PNC Clients</td>
|
|
28
33
|
<td>New</td>
|
|
29
|
-
<td>{moh711Data.pnc_new_clients}</td>
|
|
34
|
+
<td onClick={() => openLinelist('pnc_new_clients')}>{moh711Data.pnc_new_clients ?? 0}</td>
|
|
30
35
|
</tr>
|
|
31
36
|
<tr>
|
|
32
37
|
<td>2</td>
|
|
33
38
|
<td>Revisit</td>
|
|
34
|
-
<td>{moh711Data.pnc_revisit_clients}</td>
|
|
39
|
+
<td onClick={() => openLinelist('pnc_revisit_clients')}>{moh711Data.pnc_revisit_clients ?? 0}</td>
|
|
35
40
|
</tr>
|
|
36
41
|
<tr>
|
|
37
42
|
<td>3</td>
|
|
38
43
|
<td colSpan={2}>No of Women counselled on Post Partum FP</td>
|
|
39
|
-
<td
|
|
44
|
+
<td onClick={() => openLinelist('women_couselled_on_post_partum_fp')}>
|
|
45
|
+
{moh711Data.women_couselled_on_post_partum_fp ?? 0}
|
|
46
|
+
</td>
|
|
40
47
|
</tr>
|
|
41
48
|
<tr>
|
|
42
49
|
<td>4</td>
|
|
43
50
|
<td colSpan={2}>No of Clients who received Post Partum FP</td>
|
|
44
|
-
<td
|
|
51
|
+
<td onClick={() => openLinelist('women_received_post_partum_fp')}>
|
|
52
|
+
{moh711Data.women_received_post_partum_fp ?? 0}
|
|
53
|
+
</td>
|
|
45
54
|
</tr>
|
|
46
55
|
<tr>
|
|
47
56
|
<td>5</td>
|
|
48
57
|
<td rowSpan={3}>No. of Mothers receiving Postpartum Care</td>
|
|
49
58
|
<td>within 48 hours</td>
|
|
50
|
-
<td
|
|
59
|
+
<td onClick={() => openLinelist('mothers_post_partum_care_48_hours')}>
|
|
60
|
+
{moh711Data.mothers_post_partum_care_48_hours ?? 0}
|
|
61
|
+
</td>
|
|
51
62
|
</tr>
|
|
52
63
|
<tr>
|
|
53
64
|
<td></td>
|
|
54
65
|
<td>Between 3 days to 6 weeks</td>
|
|
55
|
-
<td
|
|
66
|
+
<td onClick={() => openLinelist('mothers_post_partum_care_3_6_weeks')}>
|
|
67
|
+
{moh711Data.mothers_post_partum_care_3_6_weeks ?? 0}
|
|
68
|
+
</td>
|
|
56
69
|
</tr>
|
|
57
70
|
<tr>
|
|
58
71
|
<td></td>
|
|
59
72
|
<td>After 6 weeks</td>
|
|
60
|
-
<td
|
|
73
|
+
<td onClick={() => openLinelist('mothers_post_partum_care_after_6_weeks')}>
|
|
74
|
+
{moh711Data.mothers_post_partum_care_after_6_weeks ?? 0}
|
|
75
|
+
</td>
|
|
61
76
|
</tr>
|
|
62
77
|
<tr>
|
|
63
78
|
<td rowSpan={3}>6</td>
|
|
64
79
|
<td rowSpan={3}>No. of Babies received Postpartum Care</td>
|
|
65
80
|
<td>Within 48 hours</td>
|
|
66
|
-
<td
|
|
81
|
+
<td onClick={() => openLinelist('infants_post_partum_care_48_hours')}>
|
|
82
|
+
{moh711Data.infants_post_partum_care_48_hours ?? 0}
|
|
83
|
+
</td>
|
|
67
84
|
</tr>
|
|
68
85
|
<tr>
|
|
69
86
|
<td>Between 3 days to 6 weeks</td>
|
|
70
|
-
<td
|
|
87
|
+
<td onClick={() => openLinelist('infants_post_partum_care_3_6_weeks')}>
|
|
88
|
+
{moh711Data.infants_post_partum_care_3_6_weeks ?? 0}
|
|
89
|
+
</td>
|
|
71
90
|
</tr>
|
|
72
91
|
<tr>
|
|
73
92
|
<td>After 6 weeks</td>
|
|
74
|
-
<td
|
|
93
|
+
<td onClick={() => openLinelist('infants_post_partum_care_after_6_weeks')}>
|
|
94
|
+
{moh711Data.infants_post_partum_care_after_6_weeks ?? 0}
|
|
95
|
+
</td>
|
|
75
96
|
</tr>
|
|
76
97
|
<tr>
|
|
77
98
|
<td>7</td>
|
|
78
99
|
<td colSpan={2}>Number of Cases of Fistula</td>
|
|
79
|
-
<td>{moh711Data.fistula_cases}</td>
|
|
100
|
+
<td onClick={() => openLinelist('fistula_cases')}>{moh711Data.fistula_cases ?? 0}</td>
|
|
80
101
|
</tr>
|
|
81
102
|
<tr>
|
|
82
103
|
<td>8</td>
|
|
83
104
|
<td colSpan={2}>No referred from the Community unit to PNC</td>
|
|
84
|
-
<td
|
|
105
|
+
<td onClick={() => openLinelist('referrals_from_community')}>
|
|
106
|
+
{moh711Data.referrals_from_community ?? 0}
|
|
107
|
+
</td>
|
|
85
108
|
</tr>
|
|
86
109
|
</tbody>
|
|
87
110
|
</table>
|
|
88
|
-
|
|
111
|
+
</div>
|
|
89
112
|
);
|
|
90
113
|
};
|
|
91
114
|
|
|
@@ -9,7 +9,7 @@ interface PostAbortionProps {
|
|
|
9
9
|
|
|
10
10
|
const PostAbortion: React.FC<PostAbortionProps> = ({ moh711Data }) => {
|
|
11
11
|
return (
|
|
12
|
-
|
|
12
|
+
<div className={styles.section}>
|
|
13
13
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
14
|
<thead>
|
|
15
15
|
<tr>
|
|
@@ -35,7 +35,7 @@ const PostAbortion: React.FC<PostAbortionProps> = ({ moh711Data }) => {
|
|
|
35
35
|
</tr>
|
|
36
36
|
</tbody>
|
|
37
37
|
</table>
|
|
38
|
-
|
|
38
|
+
</div>
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -9,7 +9,7 @@ interface RehabilitationComponentProps {
|
|
|
9
9
|
|
|
10
10
|
const RehabilitationComponent: React.FC<RehabilitationComponentProps> = ({ moh711Data }) => {
|
|
11
11
|
return (
|
|
12
|
-
|
|
12
|
+
<div className={styles.section}>
|
|
13
13
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
14
|
<thead>
|
|
15
15
|
<tr>
|
|
@@ -50,7 +50,7 @@ const RehabilitationComponent: React.FC<RehabilitationComponentProps> = ({ moh71
|
|
|
50
50
|
</tr>
|
|
51
51
|
</tbody>
|
|
52
52
|
</table>
|
|
53
|
-
|
|
53
|
+
</div>
|
|
54
54
|
);
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -2,10 +2,18 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import styles from '../moh711.scss';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
+
import { formatDate, useSession } from '@openmrs/esm-framework';
|
|
5
6
|
|
|
6
7
|
const ReportCompiledByComponent: React.FC = () => {
|
|
8
|
+
const session = useSession();
|
|
9
|
+
|
|
10
|
+
/* Who produced the return and when. Designation and signature stay blank --
|
|
11
|
+
those are signed by hand on the printed form. */
|
|
12
|
+
const compiledBy = session?.user?.person?.display ?? session?.user?.display ?? '';
|
|
13
|
+
const compiledOn = formatDate(new Date(), { mode: 'standard', time: false, noToday: true });
|
|
14
|
+
|
|
7
15
|
return (
|
|
8
|
-
|
|
16
|
+
<div className={styles.section}>
|
|
9
17
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
10
18
|
<thead>
|
|
11
19
|
<tr>
|
|
@@ -16,7 +24,7 @@ const ReportCompiledByComponent: React.FC = () => {
|
|
|
16
24
|
<tr>
|
|
17
25
|
<td></td>
|
|
18
26
|
<td>Name:</td>
|
|
19
|
-
<td className={styles.compiledBy}
|
|
27
|
+
<td className={styles.compiledBy}>{compiledBy}</td>
|
|
20
28
|
</tr>
|
|
21
29
|
<tr>
|
|
22
30
|
<td></td>
|
|
@@ -26,7 +34,7 @@ const ReportCompiledByComponent: React.FC = () => {
|
|
|
26
34
|
<tr>
|
|
27
35
|
<td></td>
|
|
28
36
|
<td>Date:</td>
|
|
29
|
-
<td
|
|
37
|
+
<td className={styles.compiledBy}>{compiledOn}</td>
|
|
30
38
|
</tr>
|
|
31
39
|
<tr>
|
|
32
40
|
<td></td>
|
|
@@ -35,7 +43,7 @@ const ReportCompiledByComponent: React.FC = () => {
|
|
|
35
43
|
</tr>
|
|
36
44
|
</tbody>
|
|
37
45
|
</table>
|
|
38
|
-
|
|
46
|
+
</div>
|
|
39
47
|
);
|
|
40
48
|
};
|
|
41
49
|
|