@ampath/esm-reports-app 1.0.0-next.11 → 1.0.0-next.110
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/709.css +1 -0
- package/dist/709.css.map +1 -0
- package/dist/709.js +1 -0
- package/dist/709.js.map +1 -0
- 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/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 +2 -0
- package/src/common/report-header/use-facility-name.ts +117 -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 +302 -0
- package/src/common/report-register/register-layout.scss +209 -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 +501 -0
- package/src/dashboard/reports-dasboard.tsx +269 -33
- package/src/dashboard/reports-dashboard.module.scss +601 -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/moh-368/moh-368.columns.ts +36 -0
- package/src/registers/moh-368/moh-368.component.tsx +178 -0
- package/src/registers/moh-368/moh-368.scss +163 -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 +276 -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 +91 -0
- package/src/reports/acf-summary/acf-summary.component.tsx +101 -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 +803 -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/moh-511-columns.ts +52 -0
- package/src/reports/moh-710/registers/moh-511/moh-511-register.component.tsx +301 -0
- package/src/reports/moh-710/registers/moh-511/moh-511.scss +130 -0
- package/src/reports/moh-710/registers/moh-511/type.ts +32 -0
- package/src/reports/moh-711/linelist/moh-711-anc-linelist.component.tsx +79 -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 +105 -0
- package/src/reports/moh-711/linelist/moh-711-pnc-linelist.component.tsx +82 -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 +675 -0
- package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +562 -0
- package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +577 -0
- package/src/reports/moh-711/registers/moh-406.columns.ts +133 -0
- package/src/reports/moh-711/registers/moh-407-register.component.tsx +153 -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-512-columns.ts +94 -0
- package/src/reports/moh-711/registers/moh-512.component.tsx +276 -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-713/moh-713.component.scss +162 -0
- package/src/reports/moh-713/moh-713.component.tsx +122 -0
- package/src/reports/moh-713/sections/section-a-b-c.component.tsx +571 -0
- package/src/reports/moh-713/sections/section-d.component.tsx +133 -0
- 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 +130 -40
- 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-718/moh-718.component.scss +107 -0
- package/src/reports/moh-718/moh-718.component.tsx +2675 -0
- package/src/reports/moh-729b/moh-729b-form.component.tsx +404 -0
- package/src/reports/moh-729b/moh-729b-linelist.component.tsx +283 -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 +165 -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 +107 -0
- package/src/reports/moh-731/linelist/use-open-moh-731-linelist.ts +50 -0
- package/src/reports/moh-731/moh-731.component.tsx +272 -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 -30
- package/src/reports/moh-740/moh-740.component.tsx +1313 -308
- package/src/reports/moh-740/moh-740.resource.ts +48 -8
- 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 +198 -2
- 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/program/care-and-treatment/care-and-treatment-linelist.component.tsx +148 -0
- package/src/reports/program/care-and-treatment/care-and-treatment-table.component.tsx +159 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.component.tsx +284 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.config.ts +210 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.scss +460 -0
- package/src/reports/program/program-report.component.tsx +97 -0
- package/src/reports/program/program-report.scss +75 -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/care-and-treatment.resource.ts +65 -0
- 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 +92 -9
- package/src/resources/moh-711.resource.ts +188 -9
- package/src/resources/moh-713.resource.ts +64 -0
- 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 +144 -13
- 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/339.js +0 -1
- package/dist/339.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 -560
- package/dist/main.js +0 -1
- package/dist/main.js.map +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Select, SelectItem } from '@carbon/react';
|
|
3
|
+
import { useSearchParams } from 'react-router-dom';
|
|
4
|
+
import { useSession } from '@openmrs/esm-framework';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
|
|
7
|
+
import styles from '../../../common/report-register/register-table.scss';
|
|
8
|
+
import { RegisterLayout, usePatientList } from '../../../common/report-register';
|
|
9
|
+
import { ReportFiltersComponent, type ReportPeriod } from '../../../common/report-filters';
|
|
10
|
+
import { getMoh209PatientList } from '../../../resources/moh-717.resource';
|
|
11
|
+
import { moh209ExportColumns, moh209SubHeaders } from './moh-209.columns';
|
|
12
|
+
|
|
13
|
+
const examinationOptions = [
|
|
14
|
+
{ value: 'plain_xray_without_enhancement', text: 'Plain X-rays without contrast enhancement' },
|
|
15
|
+
{ value: 'contrast_enhancement_examination', text: 'Contrast enhanced examination' },
|
|
16
|
+
{ value: 'magnetic_resonance_imaging', text: 'Magnetic resonance imaging' },
|
|
17
|
+
{ value: 'computerized_tomography', text: 'Computerized tomography' },
|
|
18
|
+
{ value: 'mammography', text: 'Mammography' },
|
|
19
|
+
{ value: 'chest_xray_for_ptb', text: 'Chest X-ray for PTB' },
|
|
20
|
+
{ value: 'general_ultrasound', text: 'General ultrasound' },
|
|
21
|
+
{ value: 'obstetric_ultrasound', text: 'Obstetric ultrasound' },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const Moh209RegisterComponent: React.FC = () => {
|
|
25
|
+
const [searchParams, setSearchParams] = useSearchParams();
|
|
26
|
+
const session = useSession();
|
|
27
|
+
const from = searchParams.get('from');
|
|
28
|
+
const isDrilldown = Boolean(from);
|
|
29
|
+
const [selectedIndicator, setSelectedIndicator] = useState(() => searchParams.get('indicator') ?? '');
|
|
30
|
+
const [generatedIndicator, setGeneratedIndicator] = useState(() => searchParams.get('indicator') ?? '');
|
|
31
|
+
const [generatedPeriod, setGeneratedPeriod] = useState<{ startDate: string; endDate: string } | null>(() => {
|
|
32
|
+
const startDate = searchParams.get('startDate');
|
|
33
|
+
const endDate = searchParams.get('endDate');
|
|
34
|
+
return !isDrilldown && startDate && endDate ? { startDate, endDate } : null;
|
|
35
|
+
});
|
|
36
|
+
const isGenerated = isDrilldown || Boolean(generatedPeriod);
|
|
37
|
+
|
|
38
|
+
const startDate = generatedPeriod?.startDate ?? searchParams.get('startDate');
|
|
39
|
+
const endDate = generatedPeriod?.endDate ?? searchParams.get('endDate');
|
|
40
|
+
const locationUuids = searchParams.get('locationUuids') ?? session?.sessionLocation?.uuid ?? '';
|
|
41
|
+
const indicator = generatedIndicator;
|
|
42
|
+
|
|
43
|
+
const generate = ({ startDate, endDate }: ReportPeriod) => {
|
|
44
|
+
setGeneratedPeriod({ startDate, endDate });
|
|
45
|
+
setGeneratedIndicator(selectedIndicator);
|
|
46
|
+
setSearchParams((currentParams) => {
|
|
47
|
+
const nextParams = new URLSearchParams(currentParams);
|
|
48
|
+
nextParams.set('startDate', startDate);
|
|
49
|
+
nextParams.set('endDate', endDate);
|
|
50
|
+
if (selectedIndicator) {
|
|
51
|
+
nextParams.set('indicator', selectedIndicator);
|
|
52
|
+
} else {
|
|
53
|
+
nextParams.delete('indicator');
|
|
54
|
+
}
|
|
55
|
+
if (!nextParams.has('locationUuids') && locationUuids) {
|
|
56
|
+
nextParams.set('locationUuids', locationUuids);
|
|
57
|
+
}
|
|
58
|
+
return nextParams;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const { rows, total, isTotalExact, isLoading, page, pageSize, onPageChange, fetchAll } = usePatientList(
|
|
63
|
+
({ startIndex, limit }) => {
|
|
64
|
+
if ((!isDrilldown && !generatedPeriod) || !startDate || !endDate || !locationUuids || (isDrilldown && !indicator)) {
|
|
65
|
+
return Promise.resolve({ results: [], total: 0, isTotalExact: true });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return getMoh209PatientList({
|
|
69
|
+
startDate,
|
|
70
|
+
endDate,
|
|
71
|
+
locationUuids,
|
|
72
|
+
indicator,
|
|
73
|
+
startIndex,
|
|
74
|
+
limit,
|
|
75
|
+
from,
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
[startDate, endDate, locationUuids, indicator, from, isDrilldown, generatedPeriod],
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<>
|
|
83
|
+
{!isDrilldown && (
|
|
84
|
+
<ReportFiltersComponent
|
|
85
|
+
reportName="MOH 209 Radiology Register"
|
|
86
|
+
mode="range"
|
|
87
|
+
onGenerate={generate}
|
|
88
|
+
isLoading={isLoading}
|
|
89
|
+
isReportGenerated={Boolean(generatedPeriod)}
|
|
90
|
+
generatedPeriod={generatedPeriod ?? undefined}
|
|
91
|
+
backLink={{ label: 'All registers', to: '/?tab=registers' }}
|
|
92
|
+
additionalFilters={
|
|
93
|
+
<Select
|
|
94
|
+
id="moh-209-examination-type"
|
|
95
|
+
labelText="Type of examination"
|
|
96
|
+
size="sm"
|
|
97
|
+
value={selectedIndicator}
|
|
98
|
+
onChange={(event) => setSelectedIndicator(event.target.value)}
|
|
99
|
+
>
|
|
100
|
+
<SelectItem value="" text="All Indicators" />
|
|
101
|
+
{examinationOptions.map((option) => (
|
|
102
|
+
<SelectItem key={option.value} value={option.value} text={option.text} />
|
|
103
|
+
))}
|
|
104
|
+
</Select>
|
|
105
|
+
}
|
|
106
|
+
/>
|
|
107
|
+
)}
|
|
108
|
+
|
|
109
|
+
<RegisterLayout
|
|
110
|
+
parentLabel={isDrilldown ? 'MOH-717 Report' : 'All registers'}
|
|
111
|
+
parentPath={isDrilldown ? '/moh-717' : '/?tab=registers'}
|
|
112
|
+
title="MOH 209 Radiology Register"
|
|
113
|
+
heading="MOH 209 Radiology Register"
|
|
114
|
+
isLoading={isLoading}
|
|
115
|
+
isEmpty={isGenerated && rows.length === 0}
|
|
116
|
+
page={page}
|
|
117
|
+
pageSize={pageSize}
|
|
118
|
+
total={total}
|
|
119
|
+
isTotalExact={isTotalExact}
|
|
120
|
+
onPageChange={onPageChange}
|
|
121
|
+
fetchAll={isGenerated ? fetchAll : undefined}
|
|
122
|
+
columns={moh209ExportColumns}
|
|
123
|
+
subHeaders={moh209SubHeaders}
|
|
124
|
+
>
|
|
125
|
+
<div className={styles.tableContainer}>
|
|
126
|
+
<table className={classNames(styles.table, styles.tableBordered, styles.tableStriped)}>
|
|
127
|
+
<thead>
|
|
128
|
+
<tr>
|
|
129
|
+
{moh209ExportColumns.map((column) => (
|
|
130
|
+
<th key={column.header} scope="col">
|
|
131
|
+
{column.header}
|
|
132
|
+
</th>
|
|
133
|
+
))}
|
|
134
|
+
</tr>
|
|
135
|
+
<tr>
|
|
136
|
+
{moh209SubHeaders.map((header) => (
|
|
137
|
+
<th key={header} scope="col">
|
|
138
|
+
{header}
|
|
139
|
+
</th>
|
|
140
|
+
))}
|
|
141
|
+
</tr>
|
|
142
|
+
</thead>
|
|
143
|
+
<tbody>
|
|
144
|
+
{rows.map((row, rowIndex) => (
|
|
145
|
+
<tr key={row.encounter_id ?? `${row.person_id ?? 'patient'}-${rowIndex}`}>
|
|
146
|
+
{moh209ExportColumns.map((column) => (
|
|
147
|
+
<td key={column.header}>{String(column.value(row, rowIndex) ?? '')}</td>
|
|
148
|
+
))}
|
|
149
|
+
</tr>
|
|
150
|
+
))}
|
|
151
|
+
</tbody>
|
|
152
|
+
</table>
|
|
153
|
+
</div>
|
|
154
|
+
</RegisterLayout>
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export default Moh209RegisterComponent;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type RegisterColumn } from '../../../common/report-register';
|
|
2
|
+
|
|
3
|
+
/** MOH 209 Radiology Register columns, in the order printed on the form. */
|
|
4
|
+
export const moh209ExportColumns: RegisterColumn[] = [
|
|
5
|
+
{ header: 'Date', value: (row) => row.date ?? '' },
|
|
6
|
+
{ header: 'OPD/IP No', value: (row) => row.opd_ip_number ?? '', text: true },
|
|
7
|
+
{ header: 'Radiology Number', value: (row) => row.radiology_number ?? '', text: true },
|
|
8
|
+
{ header: 'Full Name', value: (row) => row.full_names ?? '' },
|
|
9
|
+
{ header: 'Age', value: (row) => row.age ?? '' },
|
|
10
|
+
{ header: 'Sex', value: (row) => row.sex ?? '' },
|
|
11
|
+
{ header: 'Residence (Village/Estate/Landmark)', value: (row) => row.residence_village_estate_landmark ?? '' },
|
|
12
|
+
{ header: 'Telephone Number', value: (row) => row.telephone_number ?? '', text: true },
|
|
13
|
+
{ header: 'Client referred from', value: (row) => row.client_referred_from ?? '' },
|
|
14
|
+
{ header: 'Previous Report', value: (row) => row.previous_report ?? '' },
|
|
15
|
+
{ header: 'Type of Examination', value: (row) => row.type_of_examination ?? '' },
|
|
16
|
+
{ header: 'Provisional diagnosis', value: (row) => row.provisional_diagnosis ?? '', wrap: true },
|
|
17
|
+
{ header: 'Receiving Radiotherapy (Y/N)', value: (row) => row.receiving_radiotherapy ?? '' },
|
|
18
|
+
{ header: 'Receiving interventional radiology (Y/N)', value: (row) => row.receiving_interventional_radiology ?? '' },
|
|
19
|
+
{ header: 'Current Report', value: (row) => row.current_report ?? '', wrap: true },
|
|
20
|
+
{ header: 'Referrals: 1=From Other HF 2=To Other HF', value: (row) => row.referral_direction ?? '' },
|
|
21
|
+
{ header: 'Reason(s) for referral', value: (row) => row.referral_reason ?? '', wrap: true },
|
|
22
|
+
{ header: 'Size of Film/recording plate', value: (row) => row.film_recording_plate_size ?? '' },
|
|
23
|
+
{ header: 'Amount charged', value: (row) => row.amount_charged ?? '' },
|
|
24
|
+
{ header: 'Receipt number', value: (row) => row.receipt_number ?? '', text: true },
|
|
25
|
+
{ header: 'Name of Requesting clinician', value: (row) => row.requesting_clinician ?? '' },
|
|
26
|
+
{ header: 'Name of Radiographer', value: (row) => row.radiographer_name ?? '' },
|
|
27
|
+
{ header: 'Name of Radiologist', value: (row) => row.radiologist_name ?? '' },
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export const moh209SubHeaders = Array.from({ length: 23 }, (_, index) => String.fromCharCode(65 + index));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { getNutritionRegister } from '../../../resources/moh-717.resource';
|
|
3
|
+
import { useLocation, useNavigate, useSearchParams } from 'react-router-dom';
|
|
4
|
+
|
|
5
|
+
const NutritionRegisterComponent: React.FC = () => {
|
|
6
|
+
const [patientlist, setPatientList] = useState<any[]>([]);
|
|
7
|
+
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
8
|
+
const [searchParams] = useSearchParams();
|
|
9
|
+
const navigate = useNavigate();
|
|
10
|
+
const location = useLocation();
|
|
11
|
+
const startDate = searchParams.get('startDate');
|
|
12
|
+
const endDate = searchParams.get('endDate');
|
|
13
|
+
const locationUuids = searchParams.get('locationUuids');
|
|
14
|
+
const indicator = searchParams.get('indicator');
|
|
15
|
+
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const fetchData = async () => {
|
|
18
|
+
if (!startDate || !endDate || !locationUuids || !indicator) return;
|
|
19
|
+
|
|
20
|
+
setIsLoading(true);
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
const params = {
|
|
24
|
+
startDate,
|
|
25
|
+
endDate,
|
|
26
|
+
locationUuids,
|
|
27
|
+
indicator,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const data = await getNutritionRegister(params);
|
|
31
|
+
setPatientList(data?.results.results || []);
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.error('Failed to fetch register data', error);
|
|
34
|
+
} finally {
|
|
35
|
+
setIsLoading(false);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
fetchData();
|
|
40
|
+
}, [startDate, endDate, locationUuids, indicator]);
|
|
41
|
+
|
|
42
|
+
function navigateBack() {
|
|
43
|
+
navigate(location.state?.from || '/moh-705b');
|
|
44
|
+
}
|
|
45
|
+
return <></>;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default NutritionRegisterComponent;
|
|
@@ -2,12 +2,32 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import styles from '../moh717.scss';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
+
import { useNavigate } from 'react-router-dom';
|
|
5
6
|
|
|
6
7
|
interface MaternityComponentProps {
|
|
7
8
|
moh717ReportData: any;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
locationUuids: string;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
const MaternityComponent: React.FC<MaternityComponentProps> = ({
|
|
14
|
+
const MaternityComponent: React.FC<MaternityComponentProps> = ({
|
|
15
|
+
moh717ReportData,
|
|
16
|
+
startDate,
|
|
17
|
+
endDate,
|
|
18
|
+
locationUuids,
|
|
19
|
+
}) => {
|
|
20
|
+
const navigate = useNavigate();
|
|
21
|
+
const navigateToRegister = (indicator: string | string[]) => {
|
|
22
|
+
const params = new URLSearchParams({
|
|
23
|
+
startDate,
|
|
24
|
+
endDate,
|
|
25
|
+
locationUuids,
|
|
26
|
+
indicator: Array.isArray(indicator) ? indicator.join(',') : indicator,
|
|
27
|
+
from: 'moh-717',
|
|
28
|
+
});
|
|
29
|
+
navigate(`/moh-711-maternity-linelist?${params}`);
|
|
30
|
+
};
|
|
11
31
|
return (
|
|
12
32
|
<>
|
|
13
33
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
@@ -23,62 +43,72 @@ const MaternityComponent: React.FC<MaternityComponentProps> = ({ moh717ReportDat
|
|
|
23
43
|
<tr>
|
|
24
44
|
<td>B.2.1</td>
|
|
25
45
|
<td>Normal Deliveries</td>
|
|
26
|
-
<td>{moh717ReportData.normal_deliveries}</td>
|
|
46
|
+
<td onClick={() => navigateToRegister('normal_deliveries')}>{moh717ReportData.normal_deliveries}</td>
|
|
27
47
|
</tr>
|
|
28
48
|
<tr>
|
|
29
49
|
<td>B.2.2</td>
|
|
30
50
|
<td>Caesarian Sections</td>
|
|
31
|
-
<td>{moh717ReportData.caesarian_sections}</td>
|
|
51
|
+
<td onClick={() => navigateToRegister('caesarian_sections')}>{moh717ReportData.caesarian_sections}</td>
|
|
32
52
|
</tr>
|
|
33
53
|
<tr>
|
|
34
54
|
<td>B.2.3</td>
|
|
35
55
|
<td>Breach Deliveries</td>
|
|
36
|
-
<td>{moh717ReportData.breach_deliveries}</td>
|
|
56
|
+
<td onClick={() => navigateToRegister('breach_deliveries')}>{moh717ReportData.breach_deliveries}</td>
|
|
37
57
|
</tr>
|
|
38
58
|
<tr>
|
|
39
59
|
<td>B.2.4</td>
|
|
40
60
|
<td>Assisted Vaginal Delivery</td>
|
|
41
|
-
<td
|
|
61
|
+
<td onClick={() => navigateToRegister('assisted_vaginal_deliveries')}>
|
|
62
|
+
{moh717ReportData.assisted_vaginal_deliveries}
|
|
63
|
+
</td>
|
|
42
64
|
</tr>
|
|
43
65
|
<tr>
|
|
44
66
|
<td>B.2.5a</td>
|
|
45
67
|
<td>BBA (Born before arrival)</td>
|
|
46
|
-
<td>{moh717ReportData.born_before_arrival}</td>
|
|
68
|
+
<td onClick={() => navigateToRegister('born_before_arrival')}>{moh717ReportData.born_before_arrival}</td>
|
|
47
69
|
</tr>
|
|
48
70
|
<tr>
|
|
49
71
|
<td>B.2.5b</td>
|
|
50
72
|
<td>Maternal deaths</td>
|
|
51
|
-
<td>{moh717ReportData.maternal_deaths}</td>
|
|
73
|
+
<td onClick={() => navigateToRegister('maternal_deaths')}>{moh717ReportData.maternal_deaths}</td>
|
|
52
74
|
</tr>
|
|
53
75
|
<tr>
|
|
54
76
|
<td>B.2.6</td>
|
|
55
77
|
<td>Maternal Deaths Audited</td>
|
|
56
|
-
<td
|
|
78
|
+
<td onClick={() => navigateToRegister('maternal_deaths_audited_within_7_days')}>
|
|
79
|
+
{moh717ReportData.maternal_deaths_audited_within_7_days}
|
|
80
|
+
</td>
|
|
57
81
|
</tr>
|
|
58
82
|
<tr>
|
|
59
83
|
<td>B.2.7</td>
|
|
60
84
|
<td>Live births</td>
|
|
61
|
-
<td>{moh717ReportData.live_births}</td>
|
|
85
|
+
<td onClick={() => navigateToRegister('live_births')}>{moh717ReportData.live_births}</td>
|
|
62
86
|
</tr>
|
|
63
87
|
<tr>
|
|
64
88
|
<td>B.2.8</td>
|
|
65
89
|
<td>Still births</td>
|
|
66
|
-
<td>{moh717ReportData.still_births}</td>
|
|
90
|
+
<td onClick={() => navigateToRegister('still_births')}>{moh717ReportData.still_births}</td>
|
|
67
91
|
</tr>
|
|
68
92
|
<tr>
|
|
69
93
|
<td>B.2.9</td>
|
|
70
94
|
<td>Neonatal deaths</td>
|
|
71
|
-
<td
|
|
95
|
+
<td onClick={() => navigateToRegister('neonatal_deaths_0_28_days')}>
|
|
96
|
+
{moh717ReportData.neonatal_deaths_0_28_days}
|
|
97
|
+
</td>
|
|
72
98
|
</tr>
|
|
73
99
|
<tr>
|
|
74
100
|
<td>B.2.10</td>
|
|
75
101
|
<td>Neonatal deaths Audits</td>
|
|
76
|
-
<td
|
|
102
|
+
<td onClick={() => navigateToRegister('neonatal_deaths_audits')}>
|
|
103
|
+
{moh717ReportData.neonatal_deaths_audits}
|
|
104
|
+
</td>
|
|
77
105
|
</tr>
|
|
78
106
|
<tr>
|
|
79
107
|
<td>B.2.11</td>
|
|
80
108
|
<td>Low Birth Weight babies (under 2500gms)</td>
|
|
81
|
-
<td
|
|
109
|
+
<td onClick={() => navigateToRegister('low_birth_weight_less_2500gms')}>
|
|
110
|
+
{moh717ReportData.low_birth_weight_less_2500gms}
|
|
111
|
+
</td>
|
|
82
112
|
</tr>
|
|
83
113
|
<tr>
|
|
84
114
|
<td>B.2.12</td>
|
|
@@ -18,7 +18,7 @@ const OrthopaedicTraumaComponent: React.FC<OrthopaedicTraumaComponentProps> = ({
|
|
|
18
18
|
<th colSpan={2}>>5 Years</th>
|
|
19
19
|
</tr>
|
|
20
20
|
<tr>
|
|
21
|
-
<th className={styles.
|
|
21
|
+
<th className={styles.alignLeft}>Description</th>
|
|
22
22
|
<th>New</th>
|
|
23
23
|
<th>Revisit</th>
|
|
24
24
|
<th>New</th>
|
|
@@ -2,23 +2,64 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import styles from '../moh717.scss';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
+
import { useNavigate } from 'react-router-dom';
|
|
5
6
|
|
|
6
7
|
interface OutpatientComponentProps {
|
|
7
8
|
moh717ReportData: any;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
locationUuids: string;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
const OutpatientComponent: React.FC<OutpatientComponentProps> = ({
|
|
14
|
+
const OutpatientComponent: React.FC<OutpatientComponentProps> = ({
|
|
15
|
+
moh717ReportData,
|
|
16
|
+
startDate,
|
|
17
|
+
endDate,
|
|
18
|
+
locationUuids,
|
|
19
|
+
}) => {
|
|
20
|
+
const navigate = useNavigate();
|
|
21
|
+
|
|
22
|
+
const navigateTo204ALinelist = (indicator: string | string[]) => {
|
|
23
|
+
navigate(
|
|
24
|
+
`/moh-705a-linelist?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&from=moh-717`,
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
const navigateTo204BLinelist = (indicator: string | string[]) => {
|
|
28
|
+
navigate(
|
|
29
|
+
`/moh-705b-linelist?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&from=moh-717`,
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
const navigateToMoh405Register = (indicator: string | string[]) => {
|
|
33
|
+
const params = new URLSearchParams({
|
|
34
|
+
startDate,
|
|
35
|
+
endDate,
|
|
36
|
+
locationUuids,
|
|
37
|
+
indicator: Array.isArray(indicator) ? indicator.join(',') : indicator,
|
|
38
|
+
from: 'moh-717',
|
|
39
|
+
});
|
|
40
|
+
navigate(`/moh-711-anc-linelist?${params}`);
|
|
41
|
+
};
|
|
42
|
+
const navigateToMoh406Register = (indicator: string | string[]) => {
|
|
43
|
+
const params = new URLSearchParams({
|
|
44
|
+
startDate,
|
|
45
|
+
endDate,
|
|
46
|
+
locationUuids,
|
|
47
|
+
indicator: Array.isArray(indicator) ? indicator.join(',') : indicator,
|
|
48
|
+
from: 'moh-717',
|
|
49
|
+
});
|
|
50
|
+
navigate(`/moh-711-pnc-linelist?${params}`);
|
|
51
|
+
};
|
|
11
52
|
return (
|
|
12
53
|
<>
|
|
13
54
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
14
55
|
<thead>
|
|
15
56
|
<tr>
|
|
16
|
-
<th colSpan={5} className={styles.
|
|
57
|
+
<th colSpan={5} className={styles.alignLeft}>
|
|
17
58
|
A. OUTPATIENT SERVICES
|
|
18
59
|
</th>
|
|
19
60
|
</tr>
|
|
20
61
|
<tr>
|
|
21
|
-
<th colSpan={2} className={styles.
|
|
62
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
22
63
|
A.1 GENERAL OUTPATIENTS(FILTER CLINICS)
|
|
23
64
|
</th>
|
|
24
65
|
<th>NEW</th>
|
|
@@ -30,9 +71,20 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
30
71
|
<tr>
|
|
31
72
|
<td>A.1.1</td>
|
|
32
73
|
<td>Over 5 - Male</td>
|
|
33
|
-
<td
|
|
34
|
-
|
|
35
|
-
|
|
74
|
+
<td onClick={() => navigateTo204BLinelist('opd_attendance_greater_5yrs_male_new')}>
|
|
75
|
+
{moh717ReportData.opd_attendance_greater_5yrs_male_new}
|
|
76
|
+
</td>
|
|
77
|
+
<td onClick={() => navigateTo204BLinelist('opd_attendance_greater_5yrs_male_revisit')}>
|
|
78
|
+
{moh717ReportData.opd_attendance_greater_5yrs_male_revisit}
|
|
79
|
+
</td>
|
|
80
|
+
<td
|
|
81
|
+
onClick={() =>
|
|
82
|
+
navigateTo204BLinelist([
|
|
83
|
+
'opd_attendance_greater_5yrs_male_new',
|
|
84
|
+
'opd_attendance_greater_5yrs_male_revisit',
|
|
85
|
+
])
|
|
86
|
+
}
|
|
87
|
+
>
|
|
36
88
|
{(moh717ReportData.opd_attendance_greater_5yrs_male_new || 0) +
|
|
37
89
|
(moh717ReportData.opd_attendance_greater_5yrs_male_revisit || 0)}
|
|
38
90
|
</td>
|
|
@@ -40,9 +92,20 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
40
92
|
<tr>
|
|
41
93
|
<td>A.1.2</td>
|
|
42
94
|
<td>Over 5 - Female</td>
|
|
43
|
-
<td
|
|
44
|
-
|
|
45
|
-
|
|
95
|
+
<td onClick={() => navigateTo204BLinelist('opd_attendance_greater_5yrs_female_new')}>
|
|
96
|
+
{moh717ReportData.opd_attendance_greater_5yrs_female_new}
|
|
97
|
+
</td>
|
|
98
|
+
<td onClick={() => navigateTo204BLinelist('opd_attendance_greater_5yrs_female_revisit')}>
|
|
99
|
+
{moh717ReportData.opd_attendance_greater_5yrs_female_revisit}
|
|
100
|
+
</td>
|
|
101
|
+
<td
|
|
102
|
+
onClick={() =>
|
|
103
|
+
navigateTo204BLinelist([
|
|
104
|
+
'opd_attendance_greater_5yrs_female_new',
|
|
105
|
+
'opd_attendance_greater_5yrs_female_revisit',
|
|
106
|
+
])
|
|
107
|
+
}
|
|
108
|
+
>
|
|
46
109
|
{(moh717ReportData.opd_attendance_greater_5yrs_female_new || 0) +
|
|
47
110
|
(moh717ReportData.opd_attendance_greater_5yrs_female_revisit || 0)}
|
|
48
111
|
</td>
|
|
@@ -50,9 +113,17 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
50
113
|
<tr>
|
|
51
114
|
<td>A.1.3</td>
|
|
52
115
|
<td>Children Under 5 - Male</td>
|
|
53
|
-
<td
|
|
54
|
-
|
|
55
|
-
|
|
116
|
+
<td onClick={() => navigateTo204ALinelist('opd_attendance_less_5yrs_male_new')}>
|
|
117
|
+
{moh717ReportData.opd_attendance_less_5yrs_male_new}
|
|
118
|
+
</td>
|
|
119
|
+
<td onClick={() => navigateTo204ALinelist('opd_attendance_less_5yrs_male_revisit')}>
|
|
120
|
+
{moh717ReportData.opd_attendance_less_5yrs_male_revisit}
|
|
121
|
+
</td>
|
|
122
|
+
<td
|
|
123
|
+
onClick={() =>
|
|
124
|
+
navigateTo204ALinelist(['opd_attendance_less_5yrs_male_new', 'opd_attendance_less_5yrs_male_revisit'])
|
|
125
|
+
}
|
|
126
|
+
>
|
|
56
127
|
{(moh717ReportData.opd_attendance_less_5yrs_male_new || 0) +
|
|
57
128
|
(moh717ReportData.opd_attendance_less_5yrs_male_revisit || 0)}
|
|
58
129
|
</td>
|
|
@@ -60,9 +131,20 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
60
131
|
<tr>
|
|
61
132
|
<td>A.1.4</td>
|
|
62
133
|
<td>Children Under 5 - Female</td>
|
|
63
|
-
<td
|
|
64
|
-
|
|
65
|
-
|
|
134
|
+
<td onClick={() => navigateTo204ALinelist('opd_attendance_less_5yrs_female_new')}>
|
|
135
|
+
{moh717ReportData.opd_attendance_less_5yrs_female_new}
|
|
136
|
+
</td>
|
|
137
|
+
<td onClick={() => navigateTo204ALinelist('opd_attendance_less_5yrs_female_revisit')}>
|
|
138
|
+
{moh717ReportData.opd_attendance_less_5yrs_female_revisit}
|
|
139
|
+
</td>
|
|
140
|
+
<td
|
|
141
|
+
onClick={() =>
|
|
142
|
+
navigateTo204ALinelist([
|
|
143
|
+
'opd_attendance_less_5yrs_female_new',
|
|
144
|
+
'opd_attendance_less_5yrs_female_revisit',
|
|
145
|
+
])
|
|
146
|
+
}
|
|
147
|
+
>
|
|
66
148
|
{(moh717ReportData.opd_attendance_less_5yrs_female_new || 0) +
|
|
67
149
|
(moh717ReportData.opd_attendance_less_5yrs_female_revisit || 0)}
|
|
68
150
|
</td>
|
|
@@ -70,9 +152,13 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
70
152
|
<tr>
|
|
71
153
|
<td>A.1.5</td>
|
|
72
154
|
<td>Over 60 years</td>
|
|
73
|
-
<td>{moh717ReportData.over_60_years_new}</td>
|
|
74
|
-
<td
|
|
75
|
-
|
|
155
|
+
<td onClick={() => navigateTo204BLinelist('over_60_years_new')}>{moh717ReportData.over_60_years_new}</td>
|
|
156
|
+
<td onClick={() => navigateTo204BLinelist('over_60_years_revisit')}>
|
|
157
|
+
{moh717ReportData.over_60_years_revisit}
|
|
158
|
+
</td>
|
|
159
|
+
<td onClick={() => navigateTo204BLinelist(['over_60_years_new', 'over_60_years_revisit'])}>
|
|
160
|
+
{(moh717ReportData.over_60_years_new || 0) + (moh717ReportData.over_60_years_revisit || 0)}
|
|
161
|
+
</td>
|
|
76
162
|
</tr>
|
|
77
163
|
<tr>
|
|
78
164
|
<td className={styles.totals}>A.1.5</td>
|
|
@@ -105,7 +191,7 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
105
191
|
</td>
|
|
106
192
|
</tr>
|
|
107
193
|
<tr>
|
|
108
|
-
<th colSpan={2} className={styles.
|
|
194
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
109
195
|
A.2 CASUALTY
|
|
110
196
|
</th>
|
|
111
197
|
<th></th>
|
|
@@ -113,7 +199,7 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
113
199
|
<th></th>
|
|
114
200
|
</tr>
|
|
115
201
|
<tr>
|
|
116
|
-
<th colSpan={3} className={styles.
|
|
202
|
+
<th colSpan={3} className={styles.alignLeft}>
|
|
117
203
|
A.3 SPECIAL CLINICS(if recorded separately from General Filter Clinics)
|
|
118
204
|
</th>
|
|
119
205
|
<th></th>
|
|
@@ -331,7 +417,7 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
331
417
|
</td>
|
|
332
418
|
</tr>
|
|
333
419
|
<tr>
|
|
334
|
-
<th colSpan={2} className={styles.
|
|
420
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
335
421
|
A.4 MCH/FP CLIENTS
|
|
336
422
|
</th>
|
|
337
423
|
<th></th>
|
|
@@ -348,16 +434,20 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
348
434
|
<tr>
|
|
349
435
|
<td>A.4.2</td>
|
|
350
436
|
<td>ANC Attendances</td>
|
|
351
|
-
<td>{moh717ReportData.anc_new}</td>
|
|
352
|
-
<td>{moh717ReportData.anc_revisit}</td>
|
|
353
|
-
<td
|
|
437
|
+
<td onClick={() => navigateToMoh405Register('new_anc_clients')}>{moh717ReportData.anc_new}</td>
|
|
438
|
+
<td onClick={() => navigateToMoh405Register('revisit_anc_clients')}>{moh717ReportData.anc_revisit}</td>
|
|
439
|
+
<td onClick={() => navigateToMoh405Register(['new_anc_clients', 'revisit_anc_clients'])}>
|
|
440
|
+
{(moh717ReportData.anc_new || 0) + (moh717ReportData.anc_revisit || 0)}
|
|
441
|
+
</td>
|
|
354
442
|
</tr>
|
|
355
443
|
<tr>
|
|
356
444
|
<td>A.4.3</td>
|
|
357
445
|
<td>PNC Attendances</td>
|
|
358
|
-
<td>{moh717ReportData.pnc_new}</td>
|
|
359
|
-
<td>{moh717ReportData.pnc_revisit}</td>
|
|
360
|
-
<td
|
|
446
|
+
<td onClick={() => navigateToMoh406Register('pnc_new_clients')}>{moh717ReportData.pnc_new}</td>
|
|
447
|
+
<td onClick={() => navigateToMoh406Register('pnc_revisit_clients')}>{moh717ReportData.pnc_revisit}</td>
|
|
448
|
+
<td onClick={() => navigateToMoh406Register(['pnc_new_clients', 'pnc_revisit_clients'])}>
|
|
449
|
+
{(moh717ReportData.pnc_new || 0) + (moh717ReportData.pnc_revisit || 0)}
|
|
450
|
+
</td>
|
|
361
451
|
</tr>
|
|
362
452
|
<tr>
|
|
363
453
|
<td>A.4.4</td>
|
|
@@ -393,7 +483,7 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
393
483
|
</td>
|
|
394
484
|
</tr>
|
|
395
485
|
<tr>
|
|
396
|
-
<th colSpan={2} className={styles.
|
|
486
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
397
487
|
A.5 DENTAL CLINIC
|
|
398
488
|
</th>
|
|
399
489
|
<th></th>
|
|
@@ -457,28 +547,28 @@ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportD
|
|
|
457
547
|
<th className={styles.totals}></th>
|
|
458
548
|
</tr>
|
|
459
549
|
<tr>
|
|
460
|
-
<th colSpan={2} className={styles.
|
|
550
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
461
551
|
A.7 MEDICAL EXAMINATIONS (except p3)
|
|
462
552
|
</th>
|
|
463
|
-
<th className={styles.
|
|
464
|
-
<th className={styles.
|
|
465
|
-
<th className={styles.
|
|
553
|
+
<th className={styles.alignLeft}>{moh717ReportData.medical_examinations_except_p3}</th>
|
|
554
|
+
<th className={styles.alignLeft}>A.10 REMOVAL OF STITCHES</th>
|
|
555
|
+
<th className={styles.alignLeft}>{moh717ReportData.opd_removal_of_stitches}</th>
|
|
466
556
|
</tr>
|
|
467
557
|
<tr>
|
|
468
|
-
<th colSpan={2} className={styles.
|
|
558
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
469
559
|
A.8 MEDICAL REPORTS (incl. p3, compensation, insurance, etc.)
|
|
470
560
|
</th>
|
|
471
|
-
<th className={styles.
|
|
472
|
-
<th className={styles.
|
|
473
|
-
<th className={styles.
|
|
561
|
+
<th className={styles.alignLeft}>{moh717ReportData.opd_medical_reports}</th>
|
|
562
|
+
<th className={styles.alignLeft}>A.12 INJECTIONS</th>
|
|
563
|
+
<th className={styles.alignLeft}>{moh717ReportData.opd_injections_given}</th>
|
|
474
564
|
</tr>
|
|
475
565
|
<tr>
|
|
476
|
-
<th colSpan={2} className={styles.
|
|
566
|
+
<th colSpan={2} className={styles.alignLeft}>
|
|
477
567
|
A.9 DRESSINGS
|
|
478
568
|
</th>
|
|
479
|
-
<th className={styles.
|
|
480
|
-
<th className={styles.
|
|
481
|
-
<th className={styles.
|
|
569
|
+
<th className={styles.alignLeft}>{moh717ReportData.opd_dressing_done}</th>
|
|
570
|
+
<th className={styles.alignLeft}>A.12 STITCHING</th>
|
|
571
|
+
<th className={styles.alignLeft}>{moh717ReportData.opd_stitching}</th>
|
|
482
572
|
</tr>
|
|
483
573
|
</tbody>
|
|
484
574
|
</table>
|