@ampath/esm-reports-app 1.0.0-next.7 → 1.0.0-next.71
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/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/580.js +1 -0
- package/dist/580.js.map +1 -0
- 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/781.js +1 -0
- package/dist/781.js.map +1 -0
- package/dist/919.css +1 -0
- package/dist/919.css.map +1 -0
- package/dist/919.js +1 -0
- package/dist/919.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/package.json +4 -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 +317 -99
- package/src/common/report-filters/report-filters.scss +255 -32
- package/src/common/report-filters/types.ts +79 -0
- package/src/common/report-filters/use-restore-period.ts +43 -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 +59 -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 +265 -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 +27 -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 +173 -0
- package/src/dashboard/reports-dasboard.tsx +189 -18
- 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-362/moh-362-lab-register.component.tsx +392 -0
- package/src/registers/moh-362/moh-362-linkage-register.component.tsx +120 -0
- package/src/registers/moh-362/moh-362-register.scss +222 -0
- package/src/registers/moh-362/moh-362.component.tsx +99 -0
- package/src/registers/moh-362/moh-362.scss +11 -0
- package/src/registers/moh-362/moh-362.types.ts +97 -0
- package/src/registers/register-catalog.ts +96 -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/reports/datatable-wrapper/datatable-wrapper.component.tsx +63 -48
- 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.tsx +72 -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 -106
- package/src/reports/moh-505/moh-505-header.component.tsx +67 -0
- package/src/reports/moh-505/moh-505.component.tsx +441 -0
- package/src/reports/moh-505/moh-505.scss +117 -0
- package/src/reports/moh-705B/moh-204b-register.component.tsx +244 -0
- package/src/reports/moh-705B/moh-204b.columns.ts +39 -0
- package/src/reports/moh-705B/moh-705b.component.tsx +659 -0
- package/src/reports/moh-705B/moh-705b.scss +172 -0
- package/src/reports/moh-705a/moh-705a.component.tsx +661 -0
- package/src/reports/moh-705a/moh-705a.scss +172 -0
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +329 -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 +54 -62
- package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +228 -317
- package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +31 -46
- package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +47 -55
- package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +43 -58
- package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +31 -39
- package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +26 -34
- package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +9 -24
- package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +43 -51
- package/src/reports/moh-710/moh-710.component.tsx +799 -632
- package/src/reports/moh-710/moh-710.scss +142 -21
- 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 +144 -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/moh-711.component.tsx +138 -1269
- package/src/reports/moh-711/moh711.scss +135 -20
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +637 -0
- package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +520 -0
- package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +530 -0
- package/src/reports/moh-711/registers/moh-406.columns.ts +133 -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/type.ts +192 -0
- package/src/reports/moh-711/sections/anc.component.tsx +159 -0
- package/src/reports/moh-711/sections/cervical-cancer.component.tsx +148 -0
- package/src/reports/moh-711/sections/chanis.component.tsx +366 -0
- package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
- package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
- package/src/reports/moh-711/sections/maternity.component.tsx +321 -0
- package/src/reports/moh-711/sections/medical-social-work.component.tsx +73 -0
- package/src/reports/moh-711/sections/other.component.tsx +47 -0
- package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
- package/src/reports/moh-711/sections/pnc.component.tsx +127 -0
- package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
- package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
- package/src/reports/moh-711/sections/report-compiled-by.component.tsx +50 -0
- package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
- package/src/reports/moh-717/moh-717.component.tsx +149 -985
- package/src/reports/moh-717/moh717.scss +217 -21
- package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
- package/src/reports/moh-717/sections/finance.component.tsx +42 -0
- package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
- package/src/reports/moh-717/sections/maternity.component.tsx +126 -0
- package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
- package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
- package/src/reports/moh-717/sections/operations.component.tsx +53 -0
- package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
- package/src/reports/moh-717/sections/outpatient.component.tsx +597 -0
- package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
- package/src/reports/moh-717/sections/preparedby.component.tsx +52 -0
- package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
- package/src/reports/moh-731/linelist/moh-731-indicators.ts +1122 -0
- package/src/reports/moh-731/linelist/moh-731-linelist-sections.ts +472 -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 +266 -0
- package/src/reports/moh-731/moh-731.scss +499 -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 +529 -0
- package/src/reports/moh-731/summary/moh-731-summary.scss +242 -0
- package/src/reports/moh-740/moh-740.component.scss +202 -0
- package/src/reports/moh-740/moh-740.component.tsx +1332 -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.tsx +149 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +123 -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 +1021 -0
- package/src/reports/moh-745/moh-745.scss +132 -0
- package/src/reports/moh-745/registers/moh-412-register.component.tsx +249 -0
- package/src/reports/moh-745/registers/moh-412.columns.ts +52 -0
- package/src/reports/moh-745/registers/type.ts +181 -0
- package/src/reports/table-wrapper/table-row-mapper.component.tsx +57 -0
- 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-362.resource.ts +27 -0
- package/src/resources/moh-505.resource.ts +69 -0
- package/src/resources/moh-705.resource.ts +106 -0
- package/src/resources/moh-706.resource.ts +80 -0
- package/src/resources/moh-710.resource.ts +32 -9
- package/src/resources/moh-711.resource.ts +137 -9
- package/src/resources/moh-717.resource.ts +26 -9
- package/src/resources/moh-731.resource.ts +90 -0
- package/src/resources/moh-745.resource.ts +76 -0
- package/src/resources/patient-list-page.ts +65 -0
- package/src/root.component.tsx +59 -8
- 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 +36 -0
- 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/711.js +0 -1
- package/dist/711.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
|
@@ -1,324 +1,235 @@
|
|
|
1
|
-
import React, { useMemo } from
|
|
2
|
-
import
|
|
3
|
-
import TableWrapper from "../../../table-wrapper/table-wrapper.component";
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import TableWrapper from '../../../table-wrapper/table-wrapper.component';
|
|
4
3
|
import styles from '../../../table-wrapper/table-wrapper.scss';
|
|
4
|
+
import TableRowMapper from '../../../table-wrapper/table-row-mapper.component';
|
|
5
|
+
import { getCell } from '../../../../utils/utils';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
interface BloodChemistryProps {
|
|
8
|
+
data?: any;
|
|
9
|
+
locationUuids?: string;
|
|
10
|
+
startDate?: string;
|
|
11
|
+
endDate?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const BloodChemistry: React.FC<BloodChemistryProps> = ({ data, locationUuids, startDate, endDate }) => {
|
|
15
|
+
const tableRows = useMemo(() => {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
tableCells: [getCell('', '2. BLOOD CHEMISTRY', 4, 1, true)],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
tableCells: [getCell('', '', 4)],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
tableCells: [
|
|
25
|
+
getCell('', 'Blood Sugar Test', 1, 1, true),
|
|
26
|
+
getCell('', 'Total Exam', 1, 1, true),
|
|
27
|
+
getCell('', 'Low', 1, 1, true),
|
|
28
|
+
getCell('', 'High', 1, 1, true),
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
tableCells: [
|
|
33
|
+
getCell('', '2.1 Blood sugar'),
|
|
34
|
+
getCell('total_blood_sugar'),
|
|
35
|
+
getCell('blood_sugar_low'),
|
|
36
|
+
getCell('blood_sugar_high'),
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
tableCells: [getCell('', '2.2 OGTT'), getCell('total_ogtt'), getCell('ogtt_low'), getCell('ogtt_high')],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
tableCells: [getCell('', '2.3 Renal Function Test', 1, 1, true), getCell('total_renal_function_test'), getCell(), getCell()],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
tableCells: [
|
|
47
|
+
getCell('', '2.4 Creatinine'),
|
|
48
|
+
getCell('total_creatinine'),
|
|
49
|
+
getCell('creatinine_low'),
|
|
50
|
+
getCell('creatinine_high'),
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
tableCells: [getCell('', '2.5 Urea'), getCell('total_urea'), getCell('urea_low'), getCell('urea_high')],
|
|
55
|
+
},
|
|
13
56
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
tableCells: [
|
|
100
|
-
getCell("", "2.8 Chlorides"),
|
|
101
|
-
getCell(),
|
|
102
|
-
getCell(),
|
|
103
|
-
getCell(),
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
tableCells: [
|
|
108
|
-
getCell("", "2.8 Liver Function Test", 1, true),
|
|
109
|
-
getCell(),
|
|
110
|
-
getCell(),
|
|
111
|
-
getCell(),
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
tableCells: [
|
|
116
|
-
getCell("", "2.9 Direct bilirubin"),
|
|
117
|
-
getCell(),
|
|
118
|
-
getCell(),
|
|
119
|
-
getCell(),
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
tableCells: [
|
|
124
|
-
getCell("", "2.10 Total bilirubin"),
|
|
125
|
-
getCell(),
|
|
126
|
-
getCell(),
|
|
127
|
-
getCell(),
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
tableCells: [
|
|
132
|
-
getCell("", "2.11 ASAT (SGOT)"),
|
|
133
|
-
getCell(),
|
|
134
|
-
getCell(),
|
|
135
|
-
getCell(),
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
tableCells: [
|
|
140
|
-
getCell("", "2.12 ALAT (SGPT)"),
|
|
141
|
-
getCell(),
|
|
142
|
-
getCell(),
|
|
143
|
-
getCell(),
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
tableCells: [
|
|
148
|
-
getCell("", "2.13 Serum Protein"),
|
|
149
|
-
getCell(),
|
|
150
|
-
getCell(),
|
|
151
|
-
getCell(),
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
tableCells: [
|
|
156
|
-
getCell("", "2.14 Albumin"),
|
|
157
|
-
getCell(),
|
|
158
|
-
getCell(),
|
|
159
|
-
getCell(),
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
tableCells: [
|
|
164
|
-
getCell("", "2.15 Alkaline Phosphatase"),
|
|
165
|
-
getCell(),
|
|
166
|
-
getCell(),
|
|
167
|
-
getCell(),
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
tableCells: [
|
|
172
|
-
getCell("", "2.16 Lipid Profile", 1, true),
|
|
173
|
-
getCell(),
|
|
174
|
-
getCell(),
|
|
175
|
-
getCell(),
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
tableCells: [
|
|
180
|
-
getCell("", "2.17 Total cholesterol"),
|
|
181
|
-
getCell(),
|
|
182
|
-
getCell(),
|
|
183
|
-
getCell(),
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
tableCells: [
|
|
188
|
-
getCell("", "2.18 Triglycerides"),
|
|
189
|
-
getCell(),
|
|
190
|
-
getCell(),
|
|
191
|
-
getCell(),
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
tableCells: [
|
|
196
|
-
getCell("", "2.19 LDL"),
|
|
197
|
-
getCell(),
|
|
198
|
-
getCell(),
|
|
199
|
-
getCell(),
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
tableCells: [
|
|
204
|
-
getCell("", "Hormonal Test", 1, true),
|
|
205
|
-
getCell("", "Total Exam", 1, true),
|
|
206
|
-
getCell("", "Low", 1, true),
|
|
207
|
-
getCell("", "High", 1, true),
|
|
208
|
-
]
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
tableCells: [
|
|
212
|
-
getCell("", "2.20 T3"),
|
|
213
|
-
getCell(),
|
|
214
|
-
getCell(),
|
|
215
|
-
getCell(),
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
tableCells: [
|
|
220
|
-
getCell("", "2.21 T4"),
|
|
221
|
-
getCell(),
|
|
222
|
-
getCell(),
|
|
223
|
-
getCell(),
|
|
224
|
-
]
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
tableCells: [
|
|
228
|
-
getCell("", "2.22 TSH"),
|
|
229
|
-
getCell(),
|
|
230
|
-
getCell(),
|
|
231
|
-
getCell(),
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
tableCells: [
|
|
236
|
-
getCell("", "Tumor Markers", 1, true),
|
|
237
|
-
getCell("", "Total Exam", 1, true),
|
|
238
|
-
getCell("", "Number Positive", 2, true),
|
|
239
|
-
]
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
tableCells: [
|
|
243
|
-
getCell("", "2.23 PSA"),
|
|
244
|
-
getCell(),
|
|
245
|
-
getCell("", "", 2),
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
tableCells: [
|
|
250
|
-
getCell("", "2.24 CA 15-3"),
|
|
251
|
-
getCell(),
|
|
252
|
-
getCell("", "", 2),
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
tableCells: [
|
|
257
|
-
getCell("", "2.25 CA 19-9"),
|
|
258
|
-
getCell(),
|
|
259
|
-
getCell("", "", 2),
|
|
260
|
-
]
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
tableCells: [
|
|
264
|
-
getCell("", "2.26 CA 125"),
|
|
265
|
-
getCell(),
|
|
266
|
-
getCell("", "", 2),
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
tableCells: [
|
|
271
|
-
getCell("", "2.27 CEA"),
|
|
272
|
-
getCell(),
|
|
273
|
-
getCell("", "", 2),
|
|
274
|
-
]
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
tableCells: [
|
|
278
|
-
getCell("", "2.28 AFP"),
|
|
279
|
-
getCell(),
|
|
280
|
-
getCell("", "", 2),
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
tableCells: [
|
|
285
|
-
getCell("", "CSF Chemistry", 1, true),
|
|
286
|
-
getCell("", "Total Exam", 1, true),
|
|
287
|
-
getCell("", "Low", 1, true),
|
|
288
|
-
getCell("", "High", 1, true),
|
|
289
|
-
]
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
tableCells: [
|
|
293
|
-
getCell("", "2.29 Proteins"),
|
|
294
|
-
getCell(),
|
|
295
|
-
getCell(),
|
|
296
|
-
getCell(),
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
tableCells: [
|
|
301
|
-
getCell("", "2.30 Glucose"),
|
|
302
|
-
getCell(),
|
|
303
|
-
getCell(),
|
|
304
|
-
getCell(),
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
]
|
|
308
|
-
}, []);
|
|
57
|
+
{
|
|
58
|
+
tableCells: [getCell('', '2.6 Sodium'), getCell('total_sodium'), getCell('sodium_low'), getCell('sodium_high')],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
tableCells: [
|
|
62
|
+
getCell('', '2.7 Potassium'),
|
|
63
|
+
getCell('total_potassium'),
|
|
64
|
+
getCell('potassium_low'),
|
|
65
|
+
getCell('potassium_high'),
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
tableCells: [
|
|
70
|
+
getCell('', '2.8 Chlorides'),
|
|
71
|
+
getCell('total_chlorides'),
|
|
72
|
+
getCell('chlorides_low'),
|
|
73
|
+
getCell('chlorides_high'),
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
tableCells: [getCell('', '2.8 Liver Function Test', 1, 1, true), getCell('total_liver_function_test'), getCell(), getCell()],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
tableCells: [
|
|
81
|
+
getCell('', '2.9 Direct bilirubin'),
|
|
82
|
+
getCell('total_direct_bili'),
|
|
83
|
+
getCell('direct_bili_low'),
|
|
84
|
+
getCell('direct_bili_high'),
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
tableCells: [
|
|
89
|
+
getCell('', '2.10 Total bilirubin'),
|
|
90
|
+
getCell('total_total_bili'),
|
|
91
|
+
getCell('total_bili_low'),
|
|
92
|
+
getCell('total_bili_high'),
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
tableCells: [getCell('', '2.11 ASAT (SGOT)'), getCell('total_ast'), getCell('ast_low'), getCell('ast_high')],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
tableCells: [getCell('', '2.12 ALAT (SGPT)'), getCell('total_alt'), getCell('alt_low'), getCell('alt_high')],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
tableCells: [
|
|
103
|
+
getCell('', '2.13 Serum Protein'),
|
|
104
|
+
getCell('total_total_protein'),
|
|
105
|
+
getCell('total_protein_low'),
|
|
106
|
+
getCell('total_protein_high'),
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
tableCells: [
|
|
111
|
+
getCell('', '2.14 Albumin'),
|
|
112
|
+
getCell('total_albumin'),
|
|
113
|
+
getCell('albumin_low'),
|
|
114
|
+
getCell('albumin_high'),
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
tableCells: [
|
|
119
|
+
getCell('', '2.15 Alkaline Phosphatase'),
|
|
120
|
+
getCell('total_alk_phos'),
|
|
121
|
+
getCell('alk_phos_low'),
|
|
122
|
+
getCell('alk_phos_high'),
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
tableCells: [
|
|
127
|
+
getCell('', '2.16 Lipid Profile', 1, 1, true),
|
|
128
|
+
getCell('total_lipid_profile'),
|
|
129
|
+
getCell('lipid_profile_low'),
|
|
130
|
+
getCell('lipid_profile_high'),
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
tableCells: [
|
|
135
|
+
getCell('', '2.17 Total cholesterol'),
|
|
136
|
+
getCell('total_cholesterol_with_members'),
|
|
137
|
+
getCell('total_cholesterol_low'),
|
|
138
|
+
getCell('total_cholesterol_high'),
|
|
139
|
+
],
|
|
140
|
+
},
|
|
309
141
|
|
|
142
|
+
{
|
|
143
|
+
tableCells: [
|
|
144
|
+
getCell('', '2.18 Triglycerides'),
|
|
145
|
+
getCell('total_triglycerides_with_members'),
|
|
146
|
+
getCell('triglycerides_low'),
|
|
147
|
+
getCell('triglycerides_high'),
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
tableCells: [getCell('', '2.19 LDL'), getCell('total_ldl_with_members'), getCell('ldl_low'), getCell('ldl_high')],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
tableCells: [
|
|
155
|
+
getCell('', 'Hormonal Test', 1, 1, true),
|
|
156
|
+
getCell('', 'Total Exam', 1, 1, true),
|
|
157
|
+
getCell('', 'Low', 1, 1, true),
|
|
158
|
+
getCell('', 'High', 1, 1, true),
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
tableCells: [getCell('', '2.20 T3'), getCell('total_t3'), getCell('t3_low'), getCell('t3_high')],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
tableCells: [getCell('', '2.21 T4'), getCell('total_t4'), getCell('t4_low'), getCell('t4_high')],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
tableCells: [getCell('', '2.22 TSH'), getCell('total_tsh'), getCell('tsh_low'), getCell('tsh_high')],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
tableCells: [
|
|
172
|
+
getCell('', 'Tumor Markers', 1, 1, true),
|
|
173
|
+
getCell('', 'Total Exam', 1, 1, true),
|
|
174
|
+
getCell('', 'Number Positive', 2, 1, true),
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
tableCells: [getCell('', '2.23 PSA'), getCell('total_psa'), getCell('positive_psa', '', 2)],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
tableCells: [getCell('', '2.24 CA 15-3'), getCell('total_ca_15_3'), getCell('ca_15_3_high', '', 2)],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
tableCells: [getCell('', '2.25 CA 19-9'), getCell('total_ca_19_9'), getCell('positive_ca_19_9', '', 2)],
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
tableCells: [getCell('', '2.26 CA 125'), getCell('total_ca_125'), getCell('ca_125_high', '', 2)],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
tableCells: [getCell('', '2.27 CEA'), getCell('total_cea'), getCell('positive_cea', '', 2)],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
tableCells: [getCell('', '2.28 AFP'), getCell('total_afp'), getCell('positive_afp', '', 2)],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
tableCells: [
|
|
197
|
+
getCell('', 'CSF Chemistry', 1, 1, true),
|
|
198
|
+
getCell('', 'Total Exam', 1, 1, true),
|
|
199
|
+
getCell('', 'Low', 1, 1, true),
|
|
200
|
+
getCell('', 'High', 1, 1, true),
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
tableCells: [
|
|
205
|
+
getCell('', '2.29 Proteins'),
|
|
206
|
+
getCell('total_proteins'),
|
|
207
|
+
getCell('proteins_low'),
|
|
208
|
+
getCell('proteins_high'),
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
tableCells: [
|
|
213
|
+
getCell('', '2.30 Glucose'),
|
|
214
|
+
getCell('total_glucose'),
|
|
215
|
+
getCell('glucose_low'),
|
|
216
|
+
getCell('glucose_high'),
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
];
|
|
220
|
+
}, []);
|
|
310
221
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
))}
|
|
222
|
+
return (
|
|
223
|
+
<TableWrapper>
|
|
224
|
+
<TableRowMapper
|
|
225
|
+
tableRows={tableRows}
|
|
226
|
+
data={data}
|
|
227
|
+
locationUuids={locationUuids}
|
|
228
|
+
startDate={startDate}
|
|
229
|
+
endDate={endDate}
|
|
230
|
+
/>
|
|
321
231
|
</TableWrapper>
|
|
322
|
-
|
|
232
|
+
);
|
|
233
|
+
};
|
|
323
234
|
|
|
324
|
-
export default BloodChemistry;
|
|
235
|
+
export default BloodChemistry;
|
|
@@ -1,51 +1,44 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
import { TableRow, TableCell } from '@carbon/react';
|
|
3
2
|
import TableWrapper from "../../../table-wrapper/table-wrapper.component";
|
|
4
|
-
import
|
|
3
|
+
import TableRowMapper from "../../../table-wrapper/table-row-mapper.component";
|
|
4
|
+
import { getCell } from "../../../../utils/utils";
|
|
5
5
|
|
|
6
6
|
const DrugSusceptibilityTesting: React.FC = () => {
|
|
7
|
-
const
|
|
8
|
-
key,
|
|
9
|
-
value,
|
|
10
|
-
strong,
|
|
11
|
-
colSpan
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const cells = Array.from({ length: 25}, (_, i) => getCell());
|
|
7
|
+
const cells = Array.from({ length: 25 }, (_, i) => getCell());
|
|
15
8
|
|
|
16
9
|
const tableRows = useMemo(() => {
|
|
17
10
|
return [
|
|
18
11
|
{
|
|
19
|
-
tableCells: [getCell("", "9. DRUG SUSCEPTIBILITY TESTING", 12, true)]
|
|
12
|
+
tableCells: [getCell("", "9. DRUG SUSCEPTIBILITY TESTING", 12, 1, true)]
|
|
20
13
|
},
|
|
21
14
|
{
|
|
22
15
|
tableCells: [
|
|
23
|
-
getCell("", "Drug Resistance Pattern", 1, true),
|
|
24
|
-
getCell("", "a. Ciprofloxacin", 1, true),
|
|
25
|
-
getCell("", "b. Levofloxacin", 1, true),
|
|
26
|
-
getCell("", "c. Gentamicin", 1, true),
|
|
27
|
-
getCell("", "d. Tetracycline", 1, true),
|
|
28
|
-
getCell("", "e. Ceftazidime", 1, true),
|
|
29
|
-
getCell("", "f. Cefuroxime", 1, true),
|
|
30
|
-
getCell("", "g. Cefotaxime", 1, true),
|
|
31
|
-
getCell("", "h. Ampicillin", 1, true),
|
|
32
|
-
getCell("", "i. Cefazolin", 1, true),
|
|
33
|
-
getCell("", "j. Amoxillin-Clavulanate", 1, true),
|
|
34
|
-
getCell("", "k. Amikacin", 1, true),
|
|
35
|
-
getCell("", "m. Chloramphenicol", 1, true),
|
|
36
|
-
getCell("", "n. Cefepime", 1, true),
|
|
37
|
-
getCell("", "p. Piperacillin-tazobactam", 1, true),
|
|
38
|
-
getCell("", "q. obramycin", 1, true),
|
|
39
|
-
getCell("", "r. Ampicillin Sulbactam", 1, true),
|
|
40
|
-
getCell("", "s. Trimethoprim Sulfamethoxazole", 1, true),
|
|
41
|
-
getCell("", "t. Penicillin", 1, true),
|
|
42
|
-
getCell("", "u. Vancomycin", 1, true),
|
|
43
|
-
getCell("", "v. Meropenem", 1, true),
|
|
44
|
-
getCell("", "w. Clindamycin", 1, true),
|
|
45
|
-
getCell("", "x. Doxycycline/tetracyclin", 1, true),
|
|
46
|
-
getCell("", "y. Ceftazidime-avibactam", 1, true),
|
|
47
|
-
getCell("", "z. Erythromycin", 1, true),
|
|
48
|
-
getCell("", "aa. Gentamicin", 1, true),
|
|
16
|
+
getCell("", "Drug Resistance Pattern", 1, 1, true),
|
|
17
|
+
getCell("", "a. Ciprofloxacin", 1, 1, true),
|
|
18
|
+
getCell("", "b. Levofloxacin", 1, 1, true),
|
|
19
|
+
getCell("", "c. Gentamicin", 1, 1, true),
|
|
20
|
+
getCell("", "d. Tetracycline", 1, 1, true),
|
|
21
|
+
getCell("", "e. Ceftazidime", 1, 1, true),
|
|
22
|
+
getCell("", "f. Cefuroxime", 1, 1, true),
|
|
23
|
+
getCell("", "g. Cefotaxime", 1, 1, true),
|
|
24
|
+
getCell("", "h. Ampicillin", 1, 1, true),
|
|
25
|
+
getCell("", "i. Cefazolin", 1, 1, true),
|
|
26
|
+
getCell("", "j. Amoxillin-Clavulanate", 1, 1, true),
|
|
27
|
+
getCell("", "k. Amikacin", 1, 1, true),
|
|
28
|
+
getCell("", "m. Chloramphenicol", 1, 1, true),
|
|
29
|
+
getCell("", "n. Cefepime", 1, 1, true),
|
|
30
|
+
getCell("", "p. Piperacillin-tazobactam", 1, 1, true),
|
|
31
|
+
getCell("", "q. obramycin", 1, 1, true),
|
|
32
|
+
getCell("", "r. Ampicillin Sulbactam", 1, 1, true),
|
|
33
|
+
getCell("", "s. Trimethoprim Sulfamethoxazole", 1, 1, true),
|
|
34
|
+
getCell("", "t. Penicillin", 1, 1, true),
|
|
35
|
+
getCell("", "u. Vancomycin", 1, 1, true),
|
|
36
|
+
getCell("", "v. Meropenem", 1, 1, true),
|
|
37
|
+
getCell("", "w. Clindamycin", 1, 1, true),
|
|
38
|
+
getCell("", "x. Doxycycline/tetracyclin", 1, 1, true),
|
|
39
|
+
getCell("", "y. Ceftazidime-avibactam", 1, 1, true),
|
|
40
|
+
getCell("", "z. Erythromycin", 1, 1, true),
|
|
41
|
+
getCell("", "aa. Gentamicin", 1, 1, true),
|
|
49
42
|
]
|
|
50
43
|
},
|
|
51
44
|
{
|
|
@@ -137,15 +130,7 @@ const DrugSusceptibilityTesting: React.FC = () => {
|
|
|
137
130
|
|
|
138
131
|
|
|
139
132
|
return <TableWrapper>
|
|
140
|
-
{tableRows
|
|
141
|
-
<TableRow>
|
|
142
|
-
{tR.tableCells.map((tC) => (
|
|
143
|
-
<TableCell className={styles.dataCell} colSpan={tC.colSpan}>
|
|
144
|
-
{tC.strong ? <strong>{tC.value}</strong> : tC.value}
|
|
145
|
-
</TableCell>
|
|
146
|
-
))}
|
|
147
|
-
</TableRow>
|
|
148
|
-
))}
|
|
133
|
+
<TableRowMapper tableRows={tableRows} />
|
|
149
134
|
</TableWrapper>
|
|
150
135
|
}
|
|
151
136
|
|