@ampath/esm-reports-app 1.0.0-next.55 → 1.0.0-next.56
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/410.js +1 -1
- package/dist/410.js.map +1 -1
- package/dist/{907.css → 98.css} +1 -1
- package/dist/98.css.map +1 -0
- package/dist/98.js +1 -0
- package/dist/98.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 +1 -1
- package/src/common/daily-summary-table.tsx +55 -0
- package/src/reports/moh-705B/moh-204b-register.component.tsx +11 -2
- package/src/reports/moh-705B/moh-705b.component.tsx +525 -415
- package/src/reports/moh-705B/moh-705b.scss +44 -2
- package/src/reports/moh-705a/moh-705a.component.tsx +525 -418
- package/src/reports/moh-705a/moh-705a.scss +44 -2
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +12 -3
- package/webpack.config.js +22 -1
- package/dist/907.css.map +0 -1
- package/dist/907.js +0 -1
- package/dist/907.js.map +0 -1
|
@@ -64,23 +64,65 @@ $pad: 3mm;
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.container {
|
|
67
|
-
overflow-x:
|
|
67
|
+
overflow-x: visible;
|
|
68
68
|
margin: 0;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.table {
|
|
72
72
|
width: 100%;
|
|
73
|
+
table-layout: fixed;
|
|
73
74
|
border-collapse: collapse;
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.numberColumn {
|
|
79
|
+
width: 3mm;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.diseaseColumn {
|
|
83
|
+
width: 34mm;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dayColumn {
|
|
87
|
+
width: 4.5mm;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.totalColumn {
|
|
91
|
+
width: 8mm;
|
|
74
92
|
}
|
|
75
93
|
|
|
76
94
|
.tableBordered td,
|
|
77
95
|
.tableBordered th {
|
|
78
|
-
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
padding: 0.6mm 0.45mm;
|
|
79
98
|
font-size: $text;
|
|
80
99
|
text-align: left;
|
|
81
100
|
border: $rule;
|
|
82
101
|
}
|
|
83
102
|
|
|
103
|
+
.tableBordered tbody td:nth-child(n + 3):not(:last-child),
|
|
104
|
+
.tableBordered thead th:nth-child(n + 2):not(:last-child) {
|
|
105
|
+
width: 4.5mm;
|
|
106
|
+
font-size: 5pt;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.tableBordered tbody td:last-child,
|
|
112
|
+
.tableBordered thead th:last-child {
|
|
113
|
+
width: 8mm;
|
|
114
|
+
text-align: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.tableBordered tbody td:nth-child(2) {
|
|
118
|
+
font-family: inherit;
|
|
119
|
+
overflow-wrap: anywhere;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tableBordered tbody td:nth-child(n + 3) {
|
|
123
|
+
text-align: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
84
126
|
.tableBordered th {
|
|
85
127
|
font-weight: 700;
|
|
86
128
|
color: $ink;
|
|
@@ -8,7 +8,7 @@ import { getMoh705aPatientList } from '../../../resources/moh-705.resource';
|
|
|
8
8
|
import { moh204aExportColumns } from './moh-204a.columns';
|
|
9
9
|
import { RegisterLayout, usePatientList } from '../../../common/report-register';
|
|
10
10
|
|
|
11
|
-
interface Moh204ARegisterComponentProps {}
|
|
11
|
+
interface Moh204ARegisterComponentProps { }
|
|
12
12
|
|
|
13
13
|
const Moh204ARegisterComponent: React.FC<Moh204ARegisterComponentProps> = () => {
|
|
14
14
|
const [searchParams] = useSearchParams();
|
|
@@ -39,6 +39,15 @@ const Moh204ARegisterComponent: React.FC<Moh204ARegisterComponentProps> = () =>
|
|
|
39
39
|
[startDate, endDate, locationUuids, indicator],
|
|
40
40
|
);
|
|
41
41
|
|
|
42
|
+
const removePatientListDuplicates = async () => {
|
|
43
|
+
const list = await fetchAll();
|
|
44
|
+
const filtered = uniqueBy(list, 'person_id');
|
|
45
|
+
return filtered;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const uniqueBy = (arr: any, key: string) =>
|
|
49
|
+
[...new Map(arr.map((item: any) => [item[key], item])).values()] as Record<string, any>[];
|
|
50
|
+
|
|
42
51
|
return (
|
|
43
52
|
<RegisterLayout
|
|
44
53
|
parentLabel="MOH-705A Report"
|
|
@@ -51,7 +60,7 @@ const Moh204ARegisterComponent: React.FC<Moh204ARegisterComponentProps> = () =>
|
|
|
51
60
|
total={total}
|
|
52
61
|
isTotalExact={isTotalExact}
|
|
53
62
|
onPageChange={onPageChange}
|
|
54
|
-
fetchAll={
|
|
63
|
+
fetchAll={removePatientListDuplicates}
|
|
55
64
|
columns={moh204aExportColumns}
|
|
56
65
|
>
|
|
57
66
|
<div className={styles.tableContainer}>
|
|
@@ -273,7 +282,7 @@ const Moh204ARegisterComponent: React.FC<Moh204ARegisterComponentProps> = () =>
|
|
|
273
282
|
</TableHead>
|
|
274
283
|
<TableBody>
|
|
275
284
|
{patientlist?.length > 0 ? (
|
|
276
|
-
patientlist?.map((patient) => (
|
|
285
|
+
uniqueBy(patientlist, 'person_id')?.map((patient) => (
|
|
277
286
|
<TableRow key={patient.person_id || patient.id}>
|
|
278
287
|
<TableCell>{patient.date}</TableCell>
|
|
279
288
|
<TableCell>{patient.opd_number_new_visit}</TableCell>
|
package/webpack.config.js
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const config = (module.exports = require('openmrs/default-webpack-config'));
|
|
3
|
+
config.watchConfig.ignored = ['.git', 'test-results', `${path.resolve(__dirname, 'dist')}/**`];
|
|
4
|
+
config.overrides.resolve = {
|
|
5
|
+
fallback: {
|
|
6
|
+
crypto: false,
|
|
7
|
+
stream: false,
|
|
8
|
+
os: false,
|
|
9
|
+
path: false,
|
|
10
|
+
zlib: false,
|
|
11
|
+
https: false,
|
|
12
|
+
http: false,
|
|
13
|
+
util: false,
|
|
14
|
+
url: false,
|
|
15
|
+
},
|
|
16
|
+
extensions: ['.tsx', '.ts', '.jsx', '.js', '.scss'],
|
|
17
|
+
alias: {
|
|
18
|
+
'@openmrs/esm-framework': '@openmrs/esm-framework/src/internal',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = config;
|
package/dist/907.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"907.css","mappings":"AA0BA,yHASA,0PAYA,2MAWA,mUAKA,sHAOA,wVAQE,mFAOF,qHAOA,uFAKA,0SAQA,+EAIA,oLASA,6UAKA,kHASA,wVAaE,gMAKE,yMAMJ,+KAUA,sEAIA,wSAMA,wUAKA,2JAaE,2OAOE,+NAKA,yJAGE,4MAfJ,6OAOE,gOAKA,0JAGE,6MAfJ,uOAOE,6NAKA,uJAGE,0MAfJ,uOAOE,6NAKA,uJAGE,0MASN,+MAUE,oUAKA,wSAMF,6EAIA,uBACE,2EAIA,gHAMA,wEAIA,4EAIA,2FAKF,sBACE,iFCxQF,gEAOA,uEAGE,iHAQF,kUAQA,oKAOA,6HAgBA,iHAKA,iIAUA,6HAKA,+HAMA,gIAOA,6VAWA,yKAKA,mFAUE,kMAMA,oLAQF,uLAUA,8UAOE,wEAIA,oFAMF,gHASA,aACE,6DAKF,uBACE,gEAIA,0IAMA,kKAMA,8EAIE,wEAOJ,oEAGE,uEAQF,gHAKE,qEChNF,6NAWE,+TAKA,mSAMF,6DAOA,yIAOE,mTCrBF,iGAMA,yDAIA,uFAQA,6NAaA,gQAaA,gDAIA,sDAOA,2HAOA,gNAYA,2EAIE,4GAKF,0EAKA,wKAQA,qGAMA,gGAIA,cACE,sFAQF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,aACE,gGCjHF,gIAWA,6NAeA,+PAaA,gDAIA,qDAIA,0EAKE,8GAKF,0EAKA,4KAQA,2FAKA,iGAWA,wFAIA,6FAIA,wNAaA,2FAOA,aACE,gGCjHF,oIAQA,oHAOA,8JAkBA,yGAMA,sHAOA,6FAMA,kGAiBA,+IAOE,kJASA,2EAOF,2HAYA,iKAQA,oEAQA,kEAIA,0EAMA,wFASA,4JAQA,gEAIA,mFAOA,iNAYE,yEAIA,mGAMF,uHCnMA,sDAGA,gEC+CA,yDAIA,4OAkBA,4IAUA,4DAUA,wGAMA,4DAGE,6FAOF,+JAYA,oNAeA,iRAcA,gDAIA,qDAQA,uKAYA,wNAaA,sGAMA,gFAiBA,oGAOA,+GAKA,yHAKA,8GAKA,oHAaA,uFAKA,qFAkBA,2GAME,qHAQA,6JAWF,8HAUA,0GASA,qIAWA,sGAOA,6DAIA,uDAMA,sKASA,+FAKA,mQAkBA,4HAQA,oNAcE,qEAKF,4DAQA,+HAWA,aACE,kCAQA,0DAIA,wGAUA,kIClYF,sUChDA,yFAMA,oDAIA,uBACE,kDAKF,mQAKA,0DASA,aAEE,yFAKA","sources":["webpack://@ampath/esm-reports-app/./src/dashboard/reports-dashboard.module.scss","webpack://@ampath/esm-reports-app/./src/common/report-filters/report-filters.scss","webpack://@ampath/esm-reports-app/./src/common/report-placeholder/report-placeholder.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-710/moh-710.scss","webpack://@ampath/esm-reports-app/./src/common/report-skeleton/report-skeleton.scss","webpack://@ampath/esm-reports-app/./src/common/report-page/report-page.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-711/moh711.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-717/moh717.scss","webpack://@ampath/esm-reports-app/./src/reports/table-wrapper/table-wrapper.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-706/moh-706.scss","webpack://@ampath/esm-reports-app/./src/common/report-register/register-table.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-240/moh-240.scss","webpack://@ampath/esm-reports-app/./src/common/report-register/register-layout.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-505/moh-505.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-705B/moh-705b.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-705a/moh-705a.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-745/moh-745.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-740/moh-740.component.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-740/shared/data-cell/data-cell.scss","webpack://@ampath/esm-reports-app/./src/reports/moh-731/moh-731.scss","webpack://@ampath/esm-reports-app/./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@ampath/esm-reports-app/./src/root.scss"],"names":[],"sourceRoot":""}
|