@openmrs/esm-patient-list-management-app 9.2.1-pre.7126 → 9.2.1-pre.7134
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/.turbo/turbo-build.log +8 -8
- package/dist/1992.js +1 -1
- package/dist/1992.js.map +1 -1
- package/dist/416.js +1 -1
- package/dist/416.js.map +1 -1
- package/dist/4300.js +1 -1
- package/dist/439.js +1 -0
- package/dist/6589.js +1 -0
- package/dist/7647.js +1 -1
- package/dist/7647.js.map +1 -1
- package/dist/7760.js +1 -1
- package/dist/7760.js.map +1 -1
- package/dist/8371.js +1 -0
- package/dist/8984.js +1 -1
- package/dist/8984.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-list-management-app.js.buildmanifest.json +87 -21
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/add-patient/add-patient.modal.tsx +1 -1
- package/src/add-patient/add-patient.test.tsx +2 -2
- package/src/api/hooks.ts +6 -1
- package/src/api/{api-remote.ts → patient-list.resource.ts} +2 -2
- package/src/dashboard.meta.ts +1 -1
- package/src/list-details/list-details.component.tsx +1 -1
- package/src/list-details/list-details.test.tsx +2 -2
- package/src/list-details-table/list-details-table.component.tsx +1 -1
- package/src/list-details-table/list-details-table.test.tsx +2 -2
- package/src/lists-table/lists-table.component.tsx +1 -1
- package/src/patient-list-form/patient-list-form.workspace.tsx +2 -2
- package/translations/cs.json +94 -0
- package/translations/en.json +2 -0
- package/translations/sq.json +94 -0
- package/translations/zh_TW.json +94 -0
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"entry": false,
|
|
31
31
|
"recorded": false,
|
|
32
32
|
"reason": "split chunk (cache group: default)",
|
|
33
|
-
"size":
|
|
33
|
+
"size": 99972,
|
|
34
34
|
"sizes": {
|
|
35
|
-
"javascript":
|
|
35
|
+
"javascript": 99972
|
|
36
36
|
},
|
|
37
37
|
"names": [],
|
|
38
38
|
"idHints": [],
|
|
@@ -46,7 +46,29 @@
|
|
|
46
46
|
"auxiliaryFiles": [
|
|
47
47
|
"416.js.map"
|
|
48
48
|
],
|
|
49
|
-
"hash": "
|
|
49
|
+
"hash": "30bb989f091d4da2",
|
|
50
|
+
"childrenByOrder": {}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"rendered": true,
|
|
54
|
+
"initial": false,
|
|
55
|
+
"entry": false,
|
|
56
|
+
"recorded": false,
|
|
57
|
+
"size": 3866,
|
|
58
|
+
"sizes": {
|
|
59
|
+
"javascript": 3866
|
|
60
|
+
},
|
|
61
|
+
"names": [],
|
|
62
|
+
"idHints": [],
|
|
63
|
+
"runtime": [
|
|
64
|
+
"@openmrs/esm-patient-list-management-app",
|
|
65
|
+
"main"
|
|
66
|
+
],
|
|
67
|
+
"files": [
|
|
68
|
+
"439.js"
|
|
69
|
+
],
|
|
70
|
+
"auxiliaryFiles": [],
|
|
71
|
+
"hash": "e0203f4517211d50",
|
|
50
72
|
"childrenByOrder": {}
|
|
51
73
|
},
|
|
52
74
|
{
|
|
@@ -207,9 +229,9 @@
|
|
|
207
229
|
"initial": false,
|
|
208
230
|
"entry": false,
|
|
209
231
|
"recorded": false,
|
|
210
|
-
"size":
|
|
232
|
+
"size": 89469,
|
|
211
233
|
"sizes": {
|
|
212
|
-
"javascript":
|
|
234
|
+
"javascript": 89469
|
|
213
235
|
},
|
|
214
236
|
"names": [],
|
|
215
237
|
"idHints": [],
|
|
@@ -223,7 +245,7 @@
|
|
|
223
245
|
"auxiliaryFiles": [
|
|
224
246
|
"1992.js.map"
|
|
225
247
|
],
|
|
226
|
-
"hash": "
|
|
248
|
+
"hash": "11391674a0660b8a",
|
|
227
249
|
"childrenByOrder": {}
|
|
228
250
|
},
|
|
229
251
|
{
|
|
@@ -645,9 +667,9 @@
|
|
|
645
667
|
"initial": false,
|
|
646
668
|
"entry": false,
|
|
647
669
|
"recorded": false,
|
|
648
|
-
"size":
|
|
670
|
+
"size": 3946,
|
|
649
671
|
"sizes": {
|
|
650
|
-
"javascript":
|
|
672
|
+
"javascript": 3946
|
|
651
673
|
},
|
|
652
674
|
"names": [],
|
|
653
675
|
"idHints": [],
|
|
@@ -659,7 +681,7 @@
|
|
|
659
681
|
"4300.js"
|
|
660
682
|
],
|
|
661
683
|
"auxiliaryFiles": [],
|
|
662
|
-
"hash": "
|
|
684
|
+
"hash": "9260d86d12c977e9",
|
|
663
685
|
"childrenByOrder": {}
|
|
664
686
|
},
|
|
665
687
|
{
|
|
@@ -974,6 +996,28 @@
|
|
|
974
996
|
"hash": "6324654bef0ba6cb",
|
|
975
997
|
"childrenByOrder": {}
|
|
976
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"rendered": true,
|
|
1001
|
+
"initial": false,
|
|
1002
|
+
"entry": false,
|
|
1003
|
+
"recorded": false,
|
|
1004
|
+
"size": 3866,
|
|
1005
|
+
"sizes": {
|
|
1006
|
+
"javascript": 3866
|
|
1007
|
+
},
|
|
1008
|
+
"names": [],
|
|
1009
|
+
"idHints": [],
|
|
1010
|
+
"runtime": [
|
|
1011
|
+
"@openmrs/esm-patient-list-management-app",
|
|
1012
|
+
"main"
|
|
1013
|
+
],
|
|
1014
|
+
"files": [
|
|
1015
|
+
"6589.js"
|
|
1016
|
+
],
|
|
1017
|
+
"auxiliaryFiles": [],
|
|
1018
|
+
"hash": "de103a29ae6c0da5",
|
|
1019
|
+
"childrenByOrder": {}
|
|
1020
|
+
},
|
|
977
1021
|
{
|
|
978
1022
|
"rendered": true,
|
|
979
1023
|
"initial": false,
|
|
@@ -1135,9 +1179,9 @@
|
|
|
1135
1179
|
"initial": false,
|
|
1136
1180
|
"entry": false,
|
|
1137
1181
|
"recorded": false,
|
|
1138
|
-
"size":
|
|
1182
|
+
"size": 132846,
|
|
1139
1183
|
"sizes": {
|
|
1140
|
-
"javascript":
|
|
1184
|
+
"javascript": 132846
|
|
1141
1185
|
},
|
|
1142
1186
|
"names": [],
|
|
1143
1187
|
"idHints": [],
|
|
@@ -1151,7 +1195,7 @@
|
|
|
1151
1195
|
"auxiliaryFiles": [
|
|
1152
1196
|
"7647.js.map"
|
|
1153
1197
|
],
|
|
1154
|
-
"hash": "
|
|
1198
|
+
"hash": "6c87a1c63a7fa971",
|
|
1155
1199
|
"childrenByOrder": {}
|
|
1156
1200
|
},
|
|
1157
1201
|
{
|
|
@@ -1159,9 +1203,9 @@
|
|
|
1159
1203
|
"initial": false,
|
|
1160
1204
|
"entry": false,
|
|
1161
1205
|
"recorded": false,
|
|
1162
|
-
"size":
|
|
1206
|
+
"size": 310683,
|
|
1163
1207
|
"sizes": {
|
|
1164
|
-
"javascript":
|
|
1208
|
+
"javascript": 310683
|
|
1165
1209
|
},
|
|
1166
1210
|
"names": [],
|
|
1167
1211
|
"idHints": [],
|
|
@@ -1175,7 +1219,7 @@
|
|
|
1175
1219
|
"auxiliaryFiles": [
|
|
1176
1220
|
"7760.js.map"
|
|
1177
1221
|
],
|
|
1178
|
-
"hash": "
|
|
1222
|
+
"hash": "acb1ab47a61d0c82",
|
|
1179
1223
|
"childrenByOrder": {}
|
|
1180
1224
|
},
|
|
1181
1225
|
{
|
|
@@ -1243,6 +1287,28 @@
|
|
|
1243
1287
|
"hash": "c5ab70c02fa3bd79",
|
|
1244
1288
|
"childrenByOrder": {}
|
|
1245
1289
|
},
|
|
1290
|
+
{
|
|
1291
|
+
"rendered": true,
|
|
1292
|
+
"initial": false,
|
|
1293
|
+
"entry": false,
|
|
1294
|
+
"recorded": false,
|
|
1295
|
+
"size": 3866,
|
|
1296
|
+
"sizes": {
|
|
1297
|
+
"javascript": 3866
|
|
1298
|
+
},
|
|
1299
|
+
"names": [],
|
|
1300
|
+
"idHints": [],
|
|
1301
|
+
"runtime": [
|
|
1302
|
+
"@openmrs/esm-patient-list-management-app",
|
|
1303
|
+
"main"
|
|
1304
|
+
],
|
|
1305
|
+
"files": [
|
|
1306
|
+
"8371.js"
|
|
1307
|
+
],
|
|
1308
|
+
"auxiliaryFiles": [],
|
|
1309
|
+
"hash": "7f01ff2e6f0032da",
|
|
1310
|
+
"childrenByOrder": {}
|
|
1311
|
+
},
|
|
1246
1312
|
{
|
|
1247
1313
|
"rendered": false,
|
|
1248
1314
|
"initial": false,
|
|
@@ -1369,10 +1435,10 @@
|
|
|
1369
1435
|
"initial": true,
|
|
1370
1436
|
"entry": true,
|
|
1371
1437
|
"recorded": false,
|
|
1372
|
-
"size":
|
|
1438
|
+
"size": 33417,
|
|
1373
1439
|
"sizes": {
|
|
1374
1440
|
"consume-shared": 126,
|
|
1375
|
-
"javascript":
|
|
1441
|
+
"javascript": 11158,
|
|
1376
1442
|
"share-init": 294,
|
|
1377
1443
|
"runtime": 21839
|
|
1378
1444
|
},
|
|
@@ -1389,7 +1455,7 @@
|
|
|
1389
1455
|
"auxiliaryFiles": [
|
|
1390
1456
|
"main.js.map"
|
|
1391
1457
|
],
|
|
1392
|
-
"hash": "
|
|
1458
|
+
"hash": "2b4b6edfee43590e",
|
|
1393
1459
|
"childrenByOrder": {}
|
|
1394
1460
|
},
|
|
1395
1461
|
{
|
|
@@ -1418,10 +1484,10 @@
|
|
|
1418
1484
|
"initial": false,
|
|
1419
1485
|
"entry": false,
|
|
1420
1486
|
"recorded": false,
|
|
1421
|
-
"size":
|
|
1487
|
+
"size": 11200,
|
|
1422
1488
|
"sizes": {
|
|
1423
1489
|
"consume-shared": 42,
|
|
1424
|
-
"javascript":
|
|
1490
|
+
"javascript": 11158
|
|
1425
1491
|
},
|
|
1426
1492
|
"names": [],
|
|
1427
1493
|
"idHints": [],
|
|
@@ -1434,7 +1500,7 @@
|
|
|
1434
1500
|
"auxiliaryFiles": [
|
|
1435
1501
|
"8984.js.map"
|
|
1436
1502
|
],
|
|
1437
|
-
"hash": "
|
|
1503
|
+
"hash": "e960d1e1343f880b",
|
|
1438
1504
|
"childrenByOrder": {}
|
|
1439
1505
|
},
|
|
1440
1506
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"patient-lists-dashboard-link","component":"patientListDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"patient-lists","slot":"patient-lists-dashboard-slot","title":"Patient lists"}},{"name":"patient-lists-dashboard","component":"root","slot":"patient-lists-dashboard-slot"},{"name":"list-details-table","component":"listDetailsTable"},{"name":"add-patient-to-patient-list-button","component":"addPatientToPatientListMenuItem","slot":"patient-actions-slot"}],"modals":[{"name":"add-patient-to-patient-list-modal","component":"addPatientToListModal"},{"name":"remove-patient-from-list-modal","component":"removePatientFromListModal"},{"name":"delete-patient-list-modal","component":"deletePatientListModal"}],"workspaces":[{"name":"patient-list-form-workspace","component":"patientListFormWorkspace","title":"patientListFormHeader","type":"patient-lists"}],"version":"9.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"patient-lists-dashboard-link","component":"patientListDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"patient-lists","slot":"patient-lists-dashboard-slot","title":"Patient lists"}},{"name":"patient-lists-dashboard","component":"root","slot":"patient-lists-dashboard-slot"},{"name":"list-details-table","component":"listDetailsTable"},{"name":"add-patient-to-patient-list-button","component":"addPatientToPatientListMenuItem","slot":"patient-actions-slot"}],"modals":[{"name":"add-patient-to-patient-list-modal","component":"addPatientToListModal"},{"name":"remove-patient-from-list-modal","component":"removePatientFromListModal"},{"name":"delete-patient-list-modal","component":"deletePatientListModal"}],"workspaces":[{"name":"patient-list-form-workspace","component":"patientListFormWorkspace","title":"patientListFormHeader","type":"patient-lists"}],"version":"9.2.1-pre.7134"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-list-management-app",
|
|
3
|
-
"version": "9.2.1-pre.
|
|
3
|
+
"version": "9.2.1-pre.7134",
|
|
4
4
|
"description": "Microfrontend for managing patient lists in O3",
|
|
5
5
|
"browser": "dist/openmrs-esm-patient-list-management-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
|
|
19
19
|
"coverage": "yarn test --coverage",
|
|
20
20
|
"typescript": "tsc",
|
|
21
|
-
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.extension.tsx' 'src/**/*modal.tsx' 'src/**/*.workspace.tsx' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
|
|
21
|
+
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.extension.tsx' 'src/**/*modal.tsx' 'src/**/*.workspace.tsx' 'src/**/*.resource.ts' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
|
|
22
22
|
},
|
|
23
23
|
"browserslist": [
|
|
24
24
|
"extends browserslist-config-openmrs"
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from '@carbon/react';
|
|
17
17
|
import { getCoreTranslation, navigate, restBaseUrl, showSnackbar, usePagination } from '@openmrs/esm-framework';
|
|
18
18
|
import { type AddablePatientListViewModel } from '../api/types';
|
|
19
|
-
import { useAddablePatientLists } from '../api/
|
|
19
|
+
import { useAddablePatientLists } from '../api/patient-list.resource';
|
|
20
20
|
import styles from './add-patient.scss';
|
|
21
21
|
|
|
22
22
|
interface AddPatientProps {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import { navigate } from '@openmrs/esm-framework';
|
|
5
|
-
import { useAddablePatientLists } from '../api/
|
|
5
|
+
import { useAddablePatientLists } from '../api/patient-list.resource';
|
|
6
6
|
import { mockPatient } from '__mocks__';
|
|
7
7
|
import AddPatient from './add-patient.modal';
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ const mockNavigate = jest.mocked(navigate);
|
|
|
10
10
|
const mockUseAddablePatientLists = jest.mocked(useAddablePatientLists);
|
|
11
11
|
const mockCloseModal = jest.fn();
|
|
12
12
|
|
|
13
|
-
jest.mock('../api/
|
|
13
|
+
jest.mock('../api/patient-list.resource', () => ({
|
|
14
14
|
useAddablePatientLists: jest.fn(),
|
|
15
15
|
}));
|
|
16
16
|
|
package/src/api/hooks.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import useSWR from 'swr';
|
|
3
3
|
import useSWRInfinite from 'swr/infinite';
|
|
4
4
|
import { openmrsFetch, type FetchResponse, useConfig, useSession } from '@openmrs/esm-framework';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
cohortUrl,
|
|
7
|
+
getAllPatientLists,
|
|
8
|
+
getPatientListIdsForPatient,
|
|
9
|
+
getPatientListMembers,
|
|
10
|
+
} from './patient-list.resource';
|
|
6
11
|
import { type PatientListManagementConfig } from '../config-schema';
|
|
7
12
|
import {
|
|
8
13
|
type CohortResponse,
|
|
@@ -58,7 +58,7 @@ async function postData(url: string, data = {}, ac = new AbortController()) {
|
|
|
58
58
|
return response.data;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export function extractErrorMessagesFromResponse(errorObject: ErrorObject) {
|
|
61
|
+
export function extractErrorMessagesFromResponse(errorObject: ErrorObject, t?: TFunction) {
|
|
62
62
|
const {
|
|
63
63
|
error: { fieldErrors, globalErrors, message, code },
|
|
64
64
|
} = errorObject ?? {};
|
|
@@ -75,7 +75,7 @@ export function extractErrorMessagesFromResponse(errorObject: ErrorObject) {
|
|
|
75
75
|
.join('\n');
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
return message ?? code ??
|
|
78
|
+
return message ?? code ?? t('unknownError', 'An unknown error occurred');
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
async function deleteData(url: string, data = {}, ac = new AbortController()) {
|
package/src/dashboard.meta.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
launchWorkspace,
|
|
14
14
|
showModal,
|
|
15
15
|
} from '@openmrs/esm-framework';
|
|
16
|
-
import { deletePatientList } from '../api/
|
|
16
|
+
import { deletePatientList } from '../api/patient-list.resource';
|
|
17
17
|
import { usePatientListDetails, usePatientListMembers } from '../api/hooks';
|
|
18
18
|
import ListDetailsTable from '../list-details-table/list-details-table.component';
|
|
19
19
|
import styles from './list-details.scss';
|
|
@@ -4,7 +4,7 @@ import userEvent from '@testing-library/user-event';
|
|
|
4
4
|
import type { OpenmrsCohortMember, OpenmrsCohort } from '../api/types';
|
|
5
5
|
import { showModal } from '@openmrs/esm-framework';
|
|
6
6
|
import { useCohortTypes, usePatientListDetails, usePatientListMembers } from '../api/hooks';
|
|
7
|
-
import { deletePatientList } from '../api/
|
|
7
|
+
import { deletePatientList } from '../api/patient-list.resource';
|
|
8
8
|
import { getByTextWithMarkup } from 'tools';
|
|
9
9
|
import ListDetails from './list-details.component';
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ jest.mock('../api/hooks', () => ({
|
|
|
20
20
|
useCohortTypes: jest.fn(),
|
|
21
21
|
}));
|
|
22
22
|
|
|
23
|
-
jest.mock('../api/
|
|
23
|
+
jest.mock('../api/patient-list.resource');
|
|
24
24
|
|
|
25
25
|
const mockPatientListDetails = {
|
|
26
26
|
name: 'Test Patient List',
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useDebounce,
|
|
33
33
|
useLayoutType,
|
|
34
34
|
} from '@openmrs/esm-framework';
|
|
35
|
-
import { addPatientToList, removePatientFromList } from '../api/
|
|
35
|
+
import { addPatientToList, removePatientFromList } from '../api/patient-list.resource';
|
|
36
36
|
import { EmptyDataIllustration } from '../empty-state/empty-data-illustration.component';
|
|
37
37
|
import styles from './list-details-table.scss';
|
|
38
38
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import { ExtensionSlot, isDesktop, showSnackbar, useLayoutType } from '@openmrs/esm-framework';
|
|
5
|
-
import { addPatientToList } from '../api/
|
|
5
|
+
import { addPatientToList } from '../api/patient-list.resource';
|
|
6
6
|
import ListDetailsTable from './list-details-table.component';
|
|
7
7
|
|
|
8
8
|
const mockShowSnackbar = jest.mocked(showSnackbar);
|
|
@@ -19,7 +19,7 @@ beforeEach(() => {
|
|
|
19
19
|
));
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
jest.mock('../api/
|
|
22
|
+
jest.mock('../api/patient-list.resource', () => ({
|
|
23
23
|
addPatientToList: jest.fn(() => Promise.resolve()),
|
|
24
24
|
removePatientFromList: jest.fn(),
|
|
25
25
|
}));
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from '@openmrs/esm-framework';
|
|
32
32
|
import type { PatientListManagementConfig } from '../config-schema';
|
|
33
33
|
import type { PatientList } from '../api/types';
|
|
34
|
-
import { starPatientList } from '../api/
|
|
34
|
+
import { starPatientList } from '../api/patient-list.resource';
|
|
35
35
|
import { CustomPagination } from './custom-pagination.component';
|
|
36
36
|
import { ErrorState } from '../error-state/error-state.component';
|
|
37
37
|
import EmptyState from '../empty-state/empty-state.component';
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
editPatientList,
|
|
18
18
|
extractErrorMessagesFromResponse,
|
|
19
19
|
type ErrorObject,
|
|
20
|
-
} from '../api/
|
|
20
|
+
} from '../api/patient-list.resource';
|
|
21
21
|
import { useCohortTypes } from '../api/hooks';
|
|
22
22
|
import styles from './patient-list-form.scss';
|
|
23
23
|
|
|
@@ -105,7 +105,7 @@ const PatientListFormWorkspace: React.FC<PatientListFormWorkspaceProps> = ({
|
|
|
105
105
|
OpenmrsFetchError && error instanceof OpenmrsFetchError
|
|
106
106
|
? typeof error.responseBody === 'string'
|
|
107
107
|
? error.responseBody
|
|
108
|
-
: extractErrorMessagesFromResponse(error.responseBody as ErrorObject)
|
|
108
|
+
: extractErrorMessagesFromResponse(error.responseBody as ErrorObject, t)
|
|
109
109
|
: (error as any)?.message;
|
|
110
110
|
|
|
111
111
|
showSnackbar({
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": "Actions",
|
|
3
|
+
"add": "Add",
|
|
4
|
+
"addPatientToList": "Add patient to list",
|
|
5
|
+
"allLists": "All lists",
|
|
6
|
+
"backToListsPage": "Back to lists page",
|
|
7
|
+
"cancel": "Cancel",
|
|
8
|
+
"cannotAddPatient": "Cannot add patient",
|
|
9
|
+
"checkFilters": "Check the filters above",
|
|
10
|
+
"chooseCohortType": "Choose cohort type",
|
|
11
|
+
"cohortNameRequired": "Cohort name is required",
|
|
12
|
+
"configureList": "Configure your patient list using the fields below",
|
|
13
|
+
"confirmDeletePatientList": "Are you sure you want to delete this patient list?",
|
|
14
|
+
"created": "Created",
|
|
15
|
+
"createdOn": "Created on",
|
|
16
|
+
"createList": "Create list",
|
|
17
|
+
"createNewPatientList": "Create new patient list",
|
|
18
|
+
"createPatientList": "Create patient list",
|
|
19
|
+
"delete": "Delete",
|
|
20
|
+
"deleted": "Deleted",
|
|
21
|
+
"deletedPatientList": "Deleted patient list",
|
|
22
|
+
"deletePatientList": "Delete patient list",
|
|
23
|
+
"deleting": "Deleting",
|
|
24
|
+
"editList": "Edit list",
|
|
25
|
+
"editNameDescription": "Edit name or description",
|
|
26
|
+
"editPatientListHeader": "Edit patient list",
|
|
27
|
+
"emptyList": "This list has no patients",
|
|
28
|
+
"emptyStateIllustration": "Empty state illustration",
|
|
29
|
+
"emptyStateText": "There are no {{listType}} patient lists to display",
|
|
30
|
+
"error": "Error",
|
|
31
|
+
"errorAddingPatientToList": "Failed to add patient to list",
|
|
32
|
+
"errorAddPatientToList": "Patient not added to list",
|
|
33
|
+
"errorCopy": "Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",
|
|
34
|
+
"errorCreatingList": "Error creating list",
|
|
35
|
+
"errorDeletingList": "Error deleting patient list",
|
|
36
|
+
"errorRemovingPatientFromList": "Failed to remove patient from list",
|
|
37
|
+
"errorUpdatingList": "Error updating list",
|
|
38
|
+
"identifier": "Identifier",
|
|
39
|
+
"items": "items",
|
|
40
|
+
"itemsDisplayed": "{{numberOfItemsDisplayed}} items",
|
|
41
|
+
"listCreated": "List created successfully",
|
|
42
|
+
"listDescriptionPlaceholder": "e.g. Patients with diagnosed asthma who may be willing to be a part of a university research study",
|
|
43
|
+
"listName": "List name",
|
|
44
|
+
"listNamePlaceholder": "e.g. Potential research participants",
|
|
45
|
+
"listType": "List type",
|
|
46
|
+
"listUpdated": "List updated successfully",
|
|
47
|
+
"listUpToDate": "The list is now up to date",
|
|
48
|
+
"mobile": "Mobile",
|
|
49
|
+
"myLists": "My lists",
|
|
50
|
+
"name": "Name",
|
|
51
|
+
"newList": "New list",
|
|
52
|
+
"newPatientListDescriptionLabel": "Describe the purpose of this list in a few words",
|
|
53
|
+
"newPatientListHeader": "New patient list",
|
|
54
|
+
"newPatientListNameLabel": "List name",
|
|
55
|
+
"nextPage": "Next page",
|
|
56
|
+
"noMatchingLists": "No matching lists to display",
|
|
57
|
+
"noMatchingListsFound": "No matching lists found",
|
|
58
|
+
"noMatchingPatients": "No matching patients to display",
|
|
59
|
+
"noOfPatients": "No. of patients",
|
|
60
|
+
"noPatientsInList": "There are no patients in this list",
|
|
61
|
+
"openPatientList": "Add to list",
|
|
62
|
+
"patientAddedToList": "Patient added to list",
|
|
63
|
+
"patientAlreadyInList": "This patient is already in the list",
|
|
64
|
+
"patientListMemberCount_one": "This list has {{count}} patient",
|
|
65
|
+
"patientListMemberCount_other": "This list has {{count}} patients",
|
|
66
|
+
"patientLists": "Patient lists",
|
|
67
|
+
"patientRemovedFromList": "Patient removed from list",
|
|
68
|
+
"patients": "patients",
|
|
69
|
+
"previousPage": "Previous page",
|
|
70
|
+
"removeFromList": "Remove from list",
|
|
71
|
+
"removePatientFromList": "Remove patient from list",
|
|
72
|
+
"removePatientFromListConfirmation": "Are you sure you want to remove {{patientName}} from this list?",
|
|
73
|
+
"removing": "Removing",
|
|
74
|
+
"saving": "Saving",
|
|
75
|
+
"searchForAListToAddThisPatientTo": "Search for a list to add this patient to.",
|
|
76
|
+
"searchForList": "Search for a list",
|
|
77
|
+
"searchThisList": "Search this list",
|
|
78
|
+
"selectCohortType": "Select cohort type",
|
|
79
|
+
"sex": "Sex",
|
|
80
|
+
"starList": "Star list",
|
|
81
|
+
"starred": "starred",
|
|
82
|
+
"starredLists": "Starred lists",
|
|
83
|
+
"starringPatientListFailed": "Marking patient lists starred / unstarred failed",
|
|
84
|
+
"startDate": "Start Date",
|
|
85
|
+
"submitting": "Submitting",
|
|
86
|
+
"successAddPatientToList": "Patient added to list",
|
|
87
|
+
"successfullyAdded": "Successfully added",
|
|
88
|
+
"systemDefined": "system-defined",
|
|
89
|
+
"systemLists": "System lists",
|
|
90
|
+
"trySearchingForADifferentList": "Try searching for a different list",
|
|
91
|
+
"unstarList": "Unstar list",
|
|
92
|
+
"updated": "Updated",
|
|
93
|
+
"userDefined": "user-defined"
|
|
94
|
+
}
|
package/translations/en.json
CHANGED
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"noMatchingPatients": "No matching patients to display",
|
|
59
59
|
"noOfPatients": "No. of patients",
|
|
60
60
|
"noPatientsInList": "There are no patients in this list",
|
|
61
|
+
"offlinePatients": "Offline patients",
|
|
61
62
|
"openPatientList": "Add to list",
|
|
62
63
|
"patientAddedToList": "Patient added to list",
|
|
63
64
|
"patientAlreadyInList": "This patient is already in the list",
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"systemDefined": "system-defined",
|
|
89
90
|
"systemLists": "System lists",
|
|
90
91
|
"trySearchingForADifferentList": "Try searching for a different list",
|
|
92
|
+
"unknownError": "An unknown error occurred",
|
|
91
93
|
"unstarList": "Unstar list",
|
|
92
94
|
"updated": "Updated",
|
|
93
95
|
"userDefined": "user-defined"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": "Actions",
|
|
3
|
+
"add": "Add",
|
|
4
|
+
"addPatientToList": "Add patient to list",
|
|
5
|
+
"allLists": "All lists",
|
|
6
|
+
"backToListsPage": "Back to lists page",
|
|
7
|
+
"cancel": "Cancel",
|
|
8
|
+
"cannotAddPatient": "Cannot add patient",
|
|
9
|
+
"checkFilters": "Check the filters above",
|
|
10
|
+
"chooseCohortType": "Choose cohort type",
|
|
11
|
+
"cohortNameRequired": "Cohort name is required",
|
|
12
|
+
"configureList": "Configure your patient list using the fields below",
|
|
13
|
+
"confirmDeletePatientList": "Are you sure you want to delete this patient list?",
|
|
14
|
+
"created": "Created",
|
|
15
|
+
"createdOn": "Created on",
|
|
16
|
+
"createList": "Create list",
|
|
17
|
+
"createNewPatientList": "Create new patient list",
|
|
18
|
+
"createPatientList": "Create patient list",
|
|
19
|
+
"delete": "Delete",
|
|
20
|
+
"deleted": "Deleted",
|
|
21
|
+
"deletedPatientList": "Deleted patient list",
|
|
22
|
+
"deletePatientList": "Delete patient list",
|
|
23
|
+
"deleting": "Deleting",
|
|
24
|
+
"editList": "Edit list",
|
|
25
|
+
"editNameDescription": "Edit name or description",
|
|
26
|
+
"editPatientListHeader": "Edit patient list",
|
|
27
|
+
"emptyList": "This list has no patients",
|
|
28
|
+
"emptyStateIllustration": "Empty state illustration",
|
|
29
|
+
"emptyStateText": "There are no {{listType}} patient lists to display",
|
|
30
|
+
"error": "Error",
|
|
31
|
+
"errorAddingPatientToList": "Failed to add patient to list",
|
|
32
|
+
"errorAddPatientToList": "Patient not added to list",
|
|
33
|
+
"errorCopy": "Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",
|
|
34
|
+
"errorCreatingList": "Error creating list",
|
|
35
|
+
"errorDeletingList": "Error deleting patient list",
|
|
36
|
+
"errorRemovingPatientFromList": "Failed to remove patient from list",
|
|
37
|
+
"errorUpdatingList": "Error updating list",
|
|
38
|
+
"identifier": "Identifier",
|
|
39
|
+
"items": "items",
|
|
40
|
+
"itemsDisplayed": "{{numberOfItemsDisplayed}} items",
|
|
41
|
+
"listCreated": "List created successfully",
|
|
42
|
+
"listDescriptionPlaceholder": "e.g. Patients with diagnosed asthma who may be willing to be a part of a university research study",
|
|
43
|
+
"listName": "List name",
|
|
44
|
+
"listNamePlaceholder": "e.g. Potential research participants",
|
|
45
|
+
"listType": "List type",
|
|
46
|
+
"listUpdated": "List updated successfully",
|
|
47
|
+
"listUpToDate": "The list is now up to date",
|
|
48
|
+
"mobile": "Mobile",
|
|
49
|
+
"myLists": "My lists",
|
|
50
|
+
"name": "Name",
|
|
51
|
+
"newList": "New list",
|
|
52
|
+
"newPatientListDescriptionLabel": "Describe the purpose of this list in a few words",
|
|
53
|
+
"newPatientListHeader": "New patient list",
|
|
54
|
+
"newPatientListNameLabel": "List name",
|
|
55
|
+
"nextPage": "Next page",
|
|
56
|
+
"noMatchingLists": "No matching lists to display",
|
|
57
|
+
"noMatchingListsFound": "No matching lists found",
|
|
58
|
+
"noMatchingPatients": "No matching patients to display",
|
|
59
|
+
"noOfPatients": "No. of patients",
|
|
60
|
+
"noPatientsInList": "There are no patients in this list",
|
|
61
|
+
"openPatientList": "Add to list",
|
|
62
|
+
"patientAddedToList": "Patient added to list",
|
|
63
|
+
"patientAlreadyInList": "This patient is already in the list",
|
|
64
|
+
"patientListMemberCount_one": "This list has {{count}} patient",
|
|
65
|
+
"patientListMemberCount_other": "This list has {{count}} patients",
|
|
66
|
+
"patientLists": "Patient lists",
|
|
67
|
+
"patientRemovedFromList": "Patient removed from list",
|
|
68
|
+
"patients": "patients",
|
|
69
|
+
"previousPage": "Previous page",
|
|
70
|
+
"removeFromList": "Remove from list",
|
|
71
|
+
"removePatientFromList": "Remove patient from list",
|
|
72
|
+
"removePatientFromListConfirmation": "Are you sure you want to remove {{patientName}} from this list?",
|
|
73
|
+
"removing": "Removing",
|
|
74
|
+
"saving": "Saving",
|
|
75
|
+
"searchForAListToAddThisPatientTo": "Search for a list to add this patient to.",
|
|
76
|
+
"searchForList": "Search for a list",
|
|
77
|
+
"searchThisList": "Search this list",
|
|
78
|
+
"selectCohortType": "Select cohort type",
|
|
79
|
+
"sex": "Sex",
|
|
80
|
+
"starList": "Star list",
|
|
81
|
+
"starred": "starred",
|
|
82
|
+
"starredLists": "Starred lists",
|
|
83
|
+
"starringPatientListFailed": "Marking patient lists starred / unstarred failed",
|
|
84
|
+
"startDate": "Start Date",
|
|
85
|
+
"submitting": "Submitting",
|
|
86
|
+
"successAddPatientToList": "Patient added to list",
|
|
87
|
+
"successfullyAdded": "Successfully added",
|
|
88
|
+
"systemDefined": "system-defined",
|
|
89
|
+
"systemLists": "System lists",
|
|
90
|
+
"trySearchingForADifferentList": "Try searching for a different list",
|
|
91
|
+
"unstarList": "Unstar list",
|
|
92
|
+
"updated": "Updated",
|
|
93
|
+
"userDefined": "user-defined"
|
|
94
|
+
}
|