@argusoft/medplat-core 1.0.17 → 1.0.19
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/{AddMenuConfiguration-QWfpcnuP.js → AddMenuConfiguration-DsnY0Rws.js} +544 -544
- package/dist/AddMenuConfiguration-DsnY0Rws.js.map +1 -0
- package/dist/{AddRoleDrawer-SvntLdRu.js → AddRoleDrawer-Bc655LQU.js} +17 -17
- package/dist/{AddRoleDrawer-SvntLdRu.js.map → AddRoleDrawer-Bc655LQU.js.map} +1 -1
- package/dist/ChangePasswordModalCore-50EzprTk.js +5495 -0
- package/dist/ChangePasswordModalCore-50EzprTk.js.map +1 -0
- package/dist/{ConditionConfig-DB0FqwgG.js → ConditionConfig-D2hOAa4n.js} +2 -2
- package/dist/{ConditionConfig-DB0FqwgG.js.map → ConditionConfig-D2hOAa4n.js.map} +1 -1
- package/dist/{EntityManagement-DQKXnEzz.js → EntityManagement-D4nG7wUX.js} +2 -2
- package/dist/{EntityManagement-DQKXnEzz.js.map → EntityManagement-D4nG7wUX.js.map} +1 -1
- package/dist/ImmunizationConfigurationBase-C5wnjI_-.js +5706 -0
- package/dist/ImmunizationConfigurationBase-C5wnjI_-.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/{ManageDynamicFeature-CsIett5x.js → ManageDynamicFeature-i6ARKe36.js} +2 -2
- package/dist/{ManageDynamicFeature-CsIett5x.js.map → ManageDynamicFeature-i6ARKe36.js.map} +1 -1
- package/dist/{ManageEventConfiguration-0YBDaxOI.js → ManageEventConfiguration-CHugu2vQ.js} +92 -92
- package/dist/ManageEventConfiguration-CHugu2vQ.js.map +1 -0
- package/dist/{ManageUser-eBS0yC5k.js → ManageUser-C6dlK-Mr.js} +3 -4
- package/dist/{ManageUser-eBS0yC5k.js.map → ManageUser-C6dlK-Mr.js.map} +1 -1
- package/dist/{MobileMenuManagement-BmrO-7MN.js → MobileMenuManagement-CV6QCeos.js} +15 -15
- package/dist/MobileMenuManagement-CV6QCeos.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-Ltm529jG.js → MobileTypeEventConfigModal-2w0WQ3WY.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-Ltm529jG.js.map → MobileTypeEventConfigModal-2w0WQ3WY.js.map} +1 -1
- package/dist/{NewServerManagement-5YcAtF-g.js → NewServerManagement-Cxe0dV0O.js} +5 -5
- package/dist/NewServerManagement-Cxe0dV0O.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js → OtherTypeEventConfigModal-D1p8M39y.js} +43 -43
- package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js.map → OtherTypeEventConfigModal-D1p8M39y.js.map} +1 -1
- package/dist/{QueryManagement-DGHV_-d5.js → QueryManagement-CRykYGum.js} +3 -3
- package/dist/QueryManagement-CRykYGum.js.map +1 -0
- package/dist/SecurityAuditLogList-Dod711KT.js +874 -0
- package/dist/SecurityAuditLogList-Dod711KT.js.map +1 -0
- package/dist/{TableDetails-DztbjsIA.js → TableDetails-Cf_YfnY2.js} +235 -235
- package/dist/TableDetails-Cf_YfnY2.js.map +1 -0
- package/dist/{TableList-DYwotUDO.js → TableList-HGbEN4bv.js} +28 -28
- package/dist/TableList-HGbEN4bv.js.map +1 -0
- package/dist/{TypeConfiguration-DYbBG_hZ.js → TypeConfiguration-D-3xNcyd.js} +2 -2
- package/dist/{TypeConfiguration-DYbBG_hZ.js.map → TypeConfiguration-D-3xNcyd.js.map} +1 -1
- package/dist/{UserList-BAeAFeXZ.js → UserList-D7GL7jvO.js} +420 -421
- package/dist/UserList-D7GL7jvO.js.map +1 -0
- package/dist/{WidgetList-D-fIf3N2.js → WidgetList-B3Sm9weK.js} +2 -2
- package/dist/{WidgetList-D-fIf3N2.js.map → WidgetList-B3Sm9weK.js.map} +1 -1
- package/dist/index-D9YNFPn9.js +1439 -0
- package/dist/index-D9YNFPn9.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +189 -174
- package/dist/index.js.map +1 -1
- package/dist/{index-BFznsakV.js → pdfmake-Cf-381ou.js} +13951 -15385
- package/dist/pdfmake-Cf-381ou.js.map +1 -0
- package/package.json +1 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
- package/dist/ChangePasswordModalCore-ClND1mel.js +0 -181
- package/dist/ChangePasswordModalCore-ClND1mel.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js +0 -5389
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +0 -1
- package/dist/ManageEventConfiguration-0YBDaxOI.js.map +0 -1
- package/dist/MobileMenuManagement-BmrO-7MN.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
- package/dist/QueryManagement-DGHV_-d5.js.map +0 -1
- package/dist/SecurityAuditLogList-DHTcOtbx.js +0 -748
- package/dist/SecurityAuditLogList-DHTcOtbx.js.map +0 -1
- package/dist/TableDetails-DztbjsIA.js.map +0 -1
- package/dist/TableList-DYwotUDO.js.map +0 -1
- package/dist/UserList-BAeAFeXZ.js.map +0 -1
- package/dist/index-BFznsakV.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { createSlice as
|
|
4
|
-
import { execute as d, executeAll as
|
|
5
|
-
import { api as
|
|
6
|
-
import './index.css';const
|
|
2
|
+
import { lazy as l } from "react";
|
|
3
|
+
import { createSlice as L } from "@reduxjs/toolkit";
|
|
4
|
+
import { execute as d, executeAll as O } from "@/common/services/GlobalApis";
|
|
5
|
+
import { api as C } from "@/common/interceptors/AxiosInterceptor";
|
|
6
|
+
import './index.css';const o = l(
|
|
7
7
|
() => import("@/views/feature-components/VerifyRoute.jsx")
|
|
8
|
-
),
|
|
8
|
+
), z = l(() => import("./RoleManagement-BThAL5LO.js").then((e) => e.R)), G = l(
|
|
9
9
|
() => import("./QueryBuilder-DXexUIe8.js").then((e) => e.Q)
|
|
10
|
-
), x =
|
|
11
|
-
() => import("./QueryManagement-
|
|
12
|
-
), w =
|
|
13
|
-
() => import("./NewServerManagement-
|
|
14
|
-
),
|
|
15
|
-
() => import("./ManageDynamicFeature-
|
|
16
|
-
),
|
|
17
|
-
() => import("./SecurityAuditLogList-
|
|
18
|
-
), H =
|
|
10
|
+
), x = l(() => import("./UserList-D7GL7jvO.js")), E = l(() => import("./ManageUser-C6dlK-Mr.js").then((e) => e.M)), B = l(
|
|
11
|
+
() => import("./QueryManagement-CRykYGum.js")
|
|
12
|
+
), w = l(() => import("./FeatureMenu-CLX8VNZ-.js").then((e) => e.F)), $ = l(() => import("./index-D9YNFPn9.js")), P = l(
|
|
13
|
+
() => import("./NewServerManagement-Cxe0dV0O.js")
|
|
14
|
+
), b = l(
|
|
15
|
+
() => import("./ManageDynamicFeature-i6ARKe36.js")
|
|
16
|
+
), q = l(
|
|
17
|
+
() => import("./SecurityAuditLogList-Dod711KT.js")
|
|
18
|
+
), H = l(
|
|
19
19
|
() => import("./EventConfigurations-D8juDb29.js")
|
|
20
|
-
), S =
|
|
21
|
-
() => import("./ManageEventConfiguration-
|
|
22
|
-
), Z =
|
|
23
|
-
() => import("./EntityManagement-
|
|
24
|
-
), Q =
|
|
25
|
-
() => import("./MobileMenuManagement-
|
|
26
|
-
), X =
|
|
27
|
-
() => import("./AddMenuConfiguration-
|
|
28
|
-
), j =
|
|
20
|
+
), S = l(
|
|
21
|
+
() => import("./ManageEventConfiguration-CHugu2vQ.js")
|
|
22
|
+
), Z = l(
|
|
23
|
+
() => import("./EntityManagement-D4nG7wUX.js")
|
|
24
|
+
), Q = l(
|
|
25
|
+
() => import("./MobileMenuManagement-CV6QCeos.js")
|
|
26
|
+
), X = l(
|
|
27
|
+
() => import("./AddMenuConfiguration-DsnY0Rws.js")
|
|
28
|
+
), j = l(
|
|
29
29
|
() => import("./ManageTranslation-D9IScGhk.js").then((e) => e.M)
|
|
30
|
-
), W =
|
|
31
|
-
() => import("./WidgetList-
|
|
32
|
-
), J =
|
|
30
|
+
), W = l(
|
|
31
|
+
() => import("./WidgetList-B3Sm9weK.js")
|
|
32
|
+
), J = l(
|
|
33
33
|
() => import("./NotificationList-CUZSWp2J.js").then((e) => e.N)
|
|
34
|
-
), K =
|
|
34
|
+
), K = l(
|
|
35
35
|
() => import("./ImmunizationConfigurationsList-K2ddBpPJ.js")
|
|
36
|
-
),
|
|
36
|
+
), V = l(
|
|
37
37
|
() => import("./manageImmunization-B4swS745.js")
|
|
38
|
-
), Y =
|
|
39
|
-
() => import("./ImmunizationConfigurationBase-
|
|
38
|
+
), Y = l(
|
|
39
|
+
() => import("./ImmunizationConfigurationBase-C5wnjI_-.js")
|
|
40
40
|
), Ce = [
|
|
41
41
|
{
|
|
42
42
|
path: "medplat/manage/role",
|
|
43
43
|
element: /* @__PURE__ */ r(
|
|
44
|
-
|
|
44
|
+
o,
|
|
45
45
|
{
|
|
46
46
|
headerTitle: "Roles",
|
|
47
47
|
pageTitle: "General",
|
|
48
48
|
url: "medplat/manage/role",
|
|
49
|
-
component:
|
|
49
|
+
component: z
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
path: "medplat/manage/query",
|
|
55
55
|
element: /* @__PURE__ */ r(
|
|
56
|
-
|
|
56
|
+
o,
|
|
57
57
|
{
|
|
58
58
|
headerTitle: "Query Master",
|
|
59
59
|
pageTitle: "General",
|
|
60
60
|
url: "medplat/manage/query",
|
|
61
|
-
component:
|
|
61
|
+
component: G
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
path: "medplat/manage/users",
|
|
67
67
|
element: /* @__PURE__ */ r(
|
|
68
|
-
|
|
68
|
+
o,
|
|
69
69
|
{
|
|
70
70
|
headerTitle: "Users",
|
|
71
71
|
pageTitle: "UserList",
|
|
@@ -77,31 +77,31 @@ import './index.css';const s = o(
|
|
|
77
77
|
{
|
|
78
78
|
path: "medplat/manage/user",
|
|
79
79
|
element: /* @__PURE__ */ r(
|
|
80
|
-
|
|
80
|
+
o,
|
|
81
81
|
{
|
|
82
82
|
headerTitle: "Users",
|
|
83
83
|
pageTitle: "ManageUser",
|
|
84
84
|
url: "medplat/manage/users",
|
|
85
|
-
component:
|
|
85
|
+
component: E
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
path: "medplat/manage/user/:id",
|
|
91
91
|
element: /* @__PURE__ */ r(
|
|
92
|
-
|
|
92
|
+
o,
|
|
93
93
|
{
|
|
94
94
|
headerTitle: "Users",
|
|
95
95
|
pageTitle: "General",
|
|
96
96
|
url: "medplat/manage/users",
|
|
97
|
-
component:
|
|
97
|
+
component: E
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
path: "medplat/querymanagement",
|
|
103
103
|
element: /* @__PURE__ */ r(
|
|
104
|
-
|
|
104
|
+
o,
|
|
105
105
|
{
|
|
106
106
|
headerTitle: "Query Management",
|
|
107
107
|
pageTitle: "General",
|
|
@@ -113,7 +113,7 @@ import './index.css';const s = o(
|
|
|
113
113
|
{
|
|
114
114
|
path: "medplat/manage/menu",
|
|
115
115
|
element: /* @__PURE__ */ r(
|
|
116
|
-
|
|
116
|
+
o,
|
|
117
117
|
{
|
|
118
118
|
headerTitle: "Features",
|
|
119
119
|
pageTitle: "General",
|
|
@@ -125,31 +125,31 @@ import './index.css';const s = o(
|
|
|
125
125
|
{
|
|
126
126
|
path: "medplat/manage/menu/addfeature",
|
|
127
127
|
element: /* @__PURE__ */ r(
|
|
128
|
-
|
|
128
|
+
o,
|
|
129
129
|
{
|
|
130
130
|
headerTitle: "Features",
|
|
131
131
|
pageTitle: "General",
|
|
132
132
|
url: "medplat/manage/menu",
|
|
133
|
-
component:
|
|
133
|
+
component: b
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
path: "medplat/manage/menu/addDynamicFeature",
|
|
139
139
|
element: /* @__PURE__ */ r(
|
|
140
|
-
|
|
140
|
+
o,
|
|
141
141
|
{
|
|
142
142
|
headerTitle: "Features",
|
|
143
143
|
pageTitle: "General",
|
|
144
144
|
url: "medplat/manage/menu",
|
|
145
|
-
component:
|
|
145
|
+
component: b
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
path: "medplat/notification/all",
|
|
151
151
|
element: /* @__PURE__ */ r(
|
|
152
|
-
|
|
152
|
+
o,
|
|
153
153
|
{
|
|
154
154
|
headerTitle: "Event Configuration",
|
|
155
155
|
pageTitle: "General",
|
|
@@ -161,7 +161,7 @@ import './index.css';const s = o(
|
|
|
161
161
|
{
|
|
162
162
|
path: "medplat/views/config",
|
|
163
163
|
element: /* @__PURE__ */ r(
|
|
164
|
-
|
|
164
|
+
o,
|
|
165
165
|
{
|
|
166
166
|
headerTitle: "Event Configuration",
|
|
167
167
|
pageTitle: "General",
|
|
@@ -173,7 +173,7 @@ import './index.css';const s = o(
|
|
|
173
173
|
{
|
|
174
174
|
path: "medplat/views/config/:id",
|
|
175
175
|
element: /* @__PURE__ */ r(
|
|
176
|
-
|
|
176
|
+
o,
|
|
177
177
|
{
|
|
178
178
|
headerTitle: "Event Configuration",
|
|
179
179
|
pageTitle: "General",
|
|
@@ -185,18 +185,18 @@ import './index.css';const s = o(
|
|
|
185
185
|
{
|
|
186
186
|
path: "medplat/admin/newServerManagement",
|
|
187
187
|
element: /* @__PURE__ */ r(
|
|
188
|
-
|
|
188
|
+
o,
|
|
189
189
|
{
|
|
190
190
|
headerTitle: "Server Management",
|
|
191
191
|
url: "medplat/admin/newServerManagement",
|
|
192
|
-
component:
|
|
192
|
+
component: P
|
|
193
193
|
}
|
|
194
194
|
)
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
path: "medplat/admin/mobileEntityManagement",
|
|
198
198
|
element: /* @__PURE__ */ r(
|
|
199
|
-
|
|
199
|
+
o,
|
|
200
200
|
{
|
|
201
201
|
pageTitle: "General",
|
|
202
202
|
url: "medplat/admin/mobileEntityManagement",
|
|
@@ -208,7 +208,7 @@ import './index.css';const s = o(
|
|
|
208
208
|
{
|
|
209
209
|
path: "medplat/admin/mobileMenuManagement",
|
|
210
210
|
element: /* @__PURE__ */ r(
|
|
211
|
-
|
|
211
|
+
o,
|
|
212
212
|
{
|
|
213
213
|
url: "medplat/admin/mobileMenuManagement",
|
|
214
214
|
component: /* @__PURE__ */ r(Q, {}),
|
|
@@ -223,7 +223,7 @@ import './index.css';const s = o(
|
|
|
223
223
|
{
|
|
224
224
|
path: "medplat/manage/manageTranslation",
|
|
225
225
|
element: /* @__PURE__ */ r(
|
|
226
|
-
|
|
226
|
+
o,
|
|
227
227
|
{
|
|
228
228
|
headerTitle: "Manage Translation",
|
|
229
229
|
pageTitle: "General",
|
|
@@ -235,7 +235,7 @@ import './index.css';const s = o(
|
|
|
235
235
|
{
|
|
236
236
|
path: "medplat/manage/managewidgets",
|
|
237
237
|
element: /* @__PURE__ */ r(
|
|
238
|
-
|
|
238
|
+
o,
|
|
239
239
|
{
|
|
240
240
|
headerTitle: "Widgets",
|
|
241
241
|
pageTitle: "General",
|
|
@@ -247,7 +247,7 @@ import './index.css';const s = o(
|
|
|
247
247
|
{
|
|
248
248
|
path: "medplat/manage/notification",
|
|
249
249
|
element: /* @__PURE__ */ r(
|
|
250
|
-
|
|
250
|
+
o,
|
|
251
251
|
{
|
|
252
252
|
headerTitle: "Notification Configuration",
|
|
253
253
|
pageTitle: "General",
|
|
@@ -259,7 +259,7 @@ import './index.css';const s = o(
|
|
|
259
259
|
{
|
|
260
260
|
path: "medplat/manage/immunizationConfiguratorList",
|
|
261
261
|
element: /* @__PURE__ */ r(
|
|
262
|
-
|
|
262
|
+
o,
|
|
263
263
|
{
|
|
264
264
|
headerTitle: "Immunizations",
|
|
265
265
|
pageTitle: "General",
|
|
@@ -271,31 +271,31 @@ import './index.css';const s = o(
|
|
|
271
271
|
{
|
|
272
272
|
path: "medplat/manage/manageImmunization",
|
|
273
273
|
element: /* @__PURE__ */ r(
|
|
274
|
-
|
|
274
|
+
o,
|
|
275
275
|
{
|
|
276
276
|
headerTitle: "Immunizations",
|
|
277
277
|
pageTitle: "General",
|
|
278
278
|
url: "medplat/training/question",
|
|
279
|
-
component:
|
|
279
|
+
component: V
|
|
280
280
|
}
|
|
281
281
|
)
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
path: "medplat/manage/manageImmunization/:id",
|
|
285
285
|
element: /* @__PURE__ */ r(
|
|
286
|
-
|
|
286
|
+
o,
|
|
287
287
|
{
|
|
288
288
|
headerTitle: "Immunizations",
|
|
289
289
|
pageTitle: "General",
|
|
290
290
|
url: "medplat/training/question",
|
|
291
|
-
component:
|
|
291
|
+
component: V
|
|
292
292
|
}
|
|
293
293
|
)
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
path: "medplat/manage/immunizationConfiguration",
|
|
297
297
|
element: /* @__PURE__ */ r(
|
|
298
|
-
|
|
298
|
+
o,
|
|
299
299
|
{
|
|
300
300
|
headerTitle: "Immunization Configuration",
|
|
301
301
|
pageTitle: "General",
|
|
@@ -307,27 +307,27 @@ import './index.css';const s = o(
|
|
|
307
307
|
{
|
|
308
308
|
path: "medplat/manage/securityAuditLogs",
|
|
309
309
|
element: /* @__PURE__ */ r(
|
|
310
|
-
|
|
310
|
+
o,
|
|
311
311
|
{
|
|
312
312
|
headerTitle: "Security Audit Logs",
|
|
313
313
|
pageTitle: "Security Audit Logs",
|
|
314
314
|
url: "medplat/manage/securityAuditLogs",
|
|
315
|
-
component:
|
|
315
|
+
component: q
|
|
316
316
|
}
|
|
317
317
|
)
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
path: "medplat/manage/activityAnalytics",
|
|
321
321
|
element: /* @__PURE__ */ r(
|
|
322
|
-
|
|
322
|
+
o,
|
|
323
323
|
{
|
|
324
324
|
headerTitle: "Activity Analytics",
|
|
325
325
|
url: "medplat/manage/activityAnalytics",
|
|
326
|
-
component:
|
|
326
|
+
component: $
|
|
327
327
|
}
|
|
328
328
|
)
|
|
329
329
|
}
|
|
330
|
-
],
|
|
330
|
+
], F = () => ({
|
|
331
331
|
vaccines: [],
|
|
332
332
|
selectedVaccineIds: [],
|
|
333
333
|
views: [
|
|
@@ -353,68 +353,68 @@ import './index.css';const s = o(
|
|
|
353
353
|
featureRights: {},
|
|
354
354
|
isConfigLoaded: !1,
|
|
355
355
|
validationErrors: {}
|
|
356
|
-
}), k =
|
|
357
|
-
const
|
|
356
|
+
}), k = F(), h = (e = [], t = {}) => {
|
|
357
|
+
const i = e.findIndex(
|
|
358
358
|
(a) => t.id !== void 0 && (a == null ? void 0 : a.id) === t.id || t.code && (a == null ? void 0 : a.code) === t.code
|
|
359
359
|
);
|
|
360
|
-
return
|
|
361
|
-
(a,
|
|
360
|
+
return i === -1 ? [...e, t] : e.map(
|
|
361
|
+
(a, s) => s === i ? {
|
|
362
362
|
...a,
|
|
363
363
|
...t
|
|
364
364
|
} : a
|
|
365
365
|
);
|
|
366
|
-
},
|
|
366
|
+
}, U = L({
|
|
367
367
|
name: "immunization",
|
|
368
368
|
initialState: k,
|
|
369
369
|
reducers: {
|
|
370
370
|
toggleVaccine: (e, t) => {
|
|
371
|
-
const
|
|
371
|
+
const i = t.payload;
|
|
372
372
|
Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
|
|
373
|
-
const a = e.selectedVaccineIds.indexOf(
|
|
374
|
-
a > -1 ? e.selectedVaccineIds.splice(a, 1) : e.selectedVaccineIds.push(
|
|
373
|
+
const a = e.selectedVaccineIds.indexOf(i);
|
|
374
|
+
a > -1 ? e.selectedVaccineIds.splice(a, 1) : e.selectedVaccineIds.push(i);
|
|
375
375
|
},
|
|
376
376
|
setVaccines: (e, t) => {
|
|
377
|
-
const
|
|
378
|
-
e.vaccines =
|
|
377
|
+
const i = Array.isArray(t.payload) ? t.payload : [];
|
|
378
|
+
e.vaccines = i, e.selectedVaccineIds.length === 0 && (e.selectedVaccineIds = i.filter((a) => a.isActive).map((a) => a.id));
|
|
379
379
|
},
|
|
380
380
|
setSelectedVaccineIds: (e, t) => {
|
|
381
381
|
e.selectedVaccineIds = t.payload;
|
|
382
382
|
},
|
|
383
383
|
addCustomVaccine: (e, t) => {
|
|
384
|
-
const
|
|
384
|
+
const i = t.payload || {}, {
|
|
385
385
|
name: a,
|
|
386
|
-
vaccine_name:
|
|
387
|
-
disease:
|
|
388
|
-
target_prevention:
|
|
389
|
-
id:
|
|
390
|
-
baseDateCode:
|
|
391
|
-
base_date_code:
|
|
392
|
-
recipientType:
|
|
393
|
-
recipient_type:
|
|
394
|
-
} =
|
|
395
|
-
id:
|
|
396
|
-
name:
|
|
397
|
-
category:
|
|
386
|
+
vaccine_name: s,
|
|
387
|
+
disease: m,
|
|
388
|
+
target_prevention: u,
|
|
389
|
+
id: c,
|
|
390
|
+
baseDateCode: _,
|
|
391
|
+
base_date_code: M,
|
|
392
|
+
recipientType: y,
|
|
393
|
+
recipient_type: n
|
|
394
|
+
} = i, g = a || s || "Unnamed Vaccine", p = m || u || "General", N = (Array.isArray(e.vaccines) ? e.vaccines : []).map((T) => Number(T == null ? void 0 : T.id)).filter((T) => !Number.isNaN(T)), D = N.length > 0 ? Math.max(...N) + 1 : 1, v = {
|
|
395
|
+
id: c || D,
|
|
396
|
+
name: g,
|
|
397
|
+
category: p,
|
|
398
398
|
doses: 0,
|
|
399
399
|
doseType: "FIXED",
|
|
400
400
|
doseDetails: {},
|
|
401
401
|
regions: [],
|
|
402
402
|
dependencies: [],
|
|
403
|
-
isActive:
|
|
404
|
-
baseDateCode:
|
|
405
|
-
recipientType:
|
|
403
|
+
isActive: i.isActive !== void 0 ? i.isActive : !1,
|
|
404
|
+
baseDateCode: _ || M || null,
|
|
405
|
+
recipientType: y || n || ""
|
|
406
406
|
};
|
|
407
|
-
Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(
|
|
407
|
+
Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(v);
|
|
408
408
|
},
|
|
409
409
|
setCurrentView: (e, t) => {
|
|
410
410
|
e.currentViewId = t.payload;
|
|
411
411
|
},
|
|
412
412
|
updateScheduledVaccine: (e, t) => {
|
|
413
|
-
const
|
|
413
|
+
const i = t.payload, a = e.scheduledVaccines.findIndex((s) => s.id === i.id);
|
|
414
414
|
a !== -1 ? e.scheduledVaccines[a] = {
|
|
415
415
|
...e.scheduledVaccines[a],
|
|
416
|
-
...
|
|
417
|
-
} : e.scheduledVaccines.push(
|
|
416
|
+
...i
|
|
417
|
+
} : e.scheduledVaccines.push(i);
|
|
418
418
|
},
|
|
419
419
|
setBaseDatesMaster: (e, t) => {
|
|
420
420
|
e.baseDateMaster = t.payload;
|
|
@@ -429,24 +429,24 @@ import './index.css';const s = o(
|
|
|
429
429
|
e.filtersMaster = t.payload;
|
|
430
430
|
},
|
|
431
431
|
upsertBaseDateMasterItem: (e, t) => {
|
|
432
|
-
e.baseDateMaster =
|
|
432
|
+
e.baseDateMaster = h(e.baseDateMaster, t.payload);
|
|
433
433
|
},
|
|
434
434
|
upsertRecipientMasterItem: (e, t) => {
|
|
435
|
-
e.recipientMaster =
|
|
435
|
+
e.recipientMaster = h(e.recipientMaster, t.payload);
|
|
436
436
|
},
|
|
437
437
|
updateBaseDateMasterStatus: (e, t) => {
|
|
438
|
-
const { code:
|
|
438
|
+
const { code: i, is_active: a } = t.payload;
|
|
439
439
|
e.baseDateMaster = e.baseDateMaster.map(
|
|
440
|
-
(
|
|
440
|
+
(s) => s.code === i ? { ...s, is_active: a } : s
|
|
441
441
|
);
|
|
442
442
|
},
|
|
443
443
|
upsertFilterMasterItem: (e, t) => {
|
|
444
|
-
e.filtersMaster =
|
|
444
|
+
e.filtersMaster = h(e.filtersMaster, t.payload);
|
|
445
445
|
},
|
|
446
446
|
updateFilterMasterStatus: (e, t) => {
|
|
447
|
-
const { code:
|
|
447
|
+
const { code: i, is_active: a } = t.payload;
|
|
448
448
|
e.filtersMaster = e.filtersMaster.map(
|
|
449
|
-
(
|
|
449
|
+
(s) => s.code === i ? { ...s, is_active: a } : s
|
|
450
450
|
);
|
|
451
451
|
},
|
|
452
452
|
setFeatureRights: (e, t) => {
|
|
@@ -455,7 +455,7 @@ import './index.css';const s = o(
|
|
|
455
455
|
setImmunizationConfigLoaded: (e, t) => {
|
|
456
456
|
e.isConfigLoaded = t.payload;
|
|
457
457
|
},
|
|
458
|
-
resetImmunizationState: () =>
|
|
458
|
+
resetImmunizationState: () => F(),
|
|
459
459
|
activateSelectedVaccines: (e) => {
|
|
460
460
|
e.vaccines = e.vaccines.map((t) => ({
|
|
461
461
|
...t,
|
|
@@ -463,18 +463,18 @@ import './index.css';const s = o(
|
|
|
463
463
|
}));
|
|
464
464
|
},
|
|
465
465
|
setVaccineStatus: (e, t) => {
|
|
466
|
-
const { vaccineId:
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
a &&
|
|
466
|
+
const { vaccineId: i, status: a } = t.payload, s = e.vaccines.findIndex((u) => u.id === i);
|
|
467
|
+
s !== -1 && (e.vaccines[s].isActive = a), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
|
|
468
|
+
const m = e.selectedVaccineIds.indexOf(i);
|
|
469
|
+
a && m === -1 ? e.selectedVaccineIds.push(i) : !a && m !== -1 && e.selectedVaccineIds.splice(m, 1);
|
|
470
470
|
},
|
|
471
471
|
setValidationErrors: (e, t) => {
|
|
472
|
-
const { vaccineId:
|
|
473
|
-
e.validationErrors[
|
|
472
|
+
const { vaccineId: i, errors: a } = t.payload;
|
|
473
|
+
e.validationErrors[i] = a;
|
|
474
474
|
},
|
|
475
475
|
clearValidationErrors: (e, t) => {
|
|
476
|
-
const
|
|
477
|
-
|
|
476
|
+
const i = t.payload;
|
|
477
|
+
i ? delete e.validationErrors[i] : e.validationErrors = {};
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
}), {
|
|
@@ -482,17 +482,17 @@ import './index.css';const s = o(
|
|
|
482
482
|
setVaccines: Ue,
|
|
483
483
|
addCustomVaccine: Re,
|
|
484
484
|
setCurrentView: De,
|
|
485
|
-
updateScheduledVaccine:
|
|
486
|
-
setBaseDatesMaster:
|
|
487
|
-
setRecipientMaster:
|
|
488
|
-
setDbTablesMaster:
|
|
489
|
-
setFiltersMaster:
|
|
485
|
+
updateScheduledVaccine: ve,
|
|
486
|
+
setBaseDatesMaster: Le,
|
|
487
|
+
setRecipientMaster: Oe,
|
|
488
|
+
setDbTablesMaster: ze,
|
|
489
|
+
setFiltersMaster: Ge,
|
|
490
490
|
upsertBaseDateMasterItem: xe,
|
|
491
491
|
upsertRecipientMasterItem: Be,
|
|
492
492
|
updateBaseDateMasterStatus: we,
|
|
493
|
-
upsertFilterMasterItem:
|
|
494
|
-
updateFilterMasterStatus:
|
|
495
|
-
setFeatureRights:
|
|
493
|
+
upsertFilterMasterItem: $e,
|
|
494
|
+
updateFilterMasterStatus: Pe,
|
|
495
|
+
setFeatureRights: qe,
|
|
496
496
|
setImmunizationConfigLoaded: He,
|
|
497
497
|
resetImmunizationState: Ze,
|
|
498
498
|
activateSelectedVaccines: Qe,
|
|
@@ -500,7 +500,7 @@ import './index.css';const s = o(
|
|
|
500
500
|
setValidationErrors: je,
|
|
501
501
|
clearValidationErrors: We,
|
|
502
502
|
setVaccineStatus: Je
|
|
503
|
-
} =
|
|
503
|
+
} = U.actions, Ke = U.reducer, I = (e, t) => {
|
|
504
504
|
if (e == null)
|
|
505
505
|
return t;
|
|
506
506
|
if (typeof e != "string")
|
|
@@ -510,73 +510,88 @@ import './index.css';const s = o(
|
|
|
510
510
|
} catch {
|
|
511
511
|
return t;
|
|
512
512
|
}
|
|
513
|
-
},
|
|
514
|
-
if (
|
|
513
|
+
}, f = (...e) => e.filter(Boolean).join("_"), A = (e) => e == null || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, R = (e, t = "FLEXIBLE", i = 1) => {
|
|
514
|
+
if (i === 0 || !e)
|
|
515
515
|
return "N.A.";
|
|
516
516
|
if (t === "FIXED") {
|
|
517
|
-
const
|
|
518
|
-
if (!
|
|
517
|
+
const m = Array.isArray(e) ? e[0] : e;
|
|
518
|
+
if (!m)
|
|
519
519
|
return "N.A.";
|
|
520
|
-
const
|
|
521
|
-
return
|
|
520
|
+
const u = A(m.eligibleFrom), c = A(m.eligibleTo);
|
|
521
|
+
return u === "N.A." && c === "N.A." ? "N.A." : `${u} to ${c}`;
|
|
522
522
|
}
|
|
523
523
|
if (!Array.isArray(e) || e.length === 0)
|
|
524
524
|
return "N.A.";
|
|
525
|
-
const a =
|
|
525
|
+
const a = A(e[0].eligibleFrom), s = A(
|
|
526
526
|
e[e.length - 1].eligibleTo
|
|
527
527
|
);
|
|
528
|
-
return a === "N.A." &&
|
|
528
|
+
return a === "N.A." && s === "N.A." ? "N.A." : `${a} to ${s}`;
|
|
529
529
|
}, ee = (e) => {
|
|
530
|
-
const t = String(e.dose_type || "").toLowerCase(),
|
|
530
|
+
const t = String(e.dose_type || "").toLowerCase(), i = t === "fixed" || t === "na" || !e.dose_type, a = I(e.duration_units, {
|
|
531
|
+
eligibleFrom: "days",
|
|
532
|
+
eligibleTo: "days",
|
|
533
|
+
interval: "days"
|
|
534
|
+
}), s = i ? [
|
|
531
535
|
{
|
|
532
|
-
id:
|
|
533
|
-
eligibleFrom: e.dose_eligible_from !== void 0 ? `${e.dose_eligible_from} days` : "",
|
|
534
|
-
eligibleTo: e.dose_eligible_to !== void 0 ? `${e.dose_eligible_to} days` : "",
|
|
536
|
+
id: f("fixed", e.id),
|
|
537
|
+
eligibleFrom: e.dose_eligible_from !== void 0 ? `${e.dose_eligible_from} ${a.eligibleFrom || "days"}` : "",
|
|
538
|
+
eligibleTo: e.dose_eligible_to !== void 0 ? `${e.dose_eligible_to} ${a.eligibleTo || "days"}` : "",
|
|
535
539
|
interval: e.min_gap || 0
|
|
536
540
|
}
|
|
537
|
-
] : I(e.dose, []).map((
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
541
|
+
] : I(e.dose, []).map((n, g) => {
|
|
542
|
+
const p = {
|
|
543
|
+
eligibleFrom: n.eligible_from_unit || a.eligibleFrom || "days",
|
|
544
|
+
eligibleTo: n.eligible_to_unit || a.eligibleTo || "days",
|
|
545
|
+
interval: n.interval_unit || a.interval || "days",
|
|
546
|
+
overdue: n.overdue_unit || "days"
|
|
547
|
+
};
|
|
548
|
+
return {
|
|
549
|
+
id: n.id || f("dose", e.id, g),
|
|
550
|
+
isBooster: n.isBooster === !0 || n.is_booster === !0 || typeof n.dose == "string" && n.dose.toUpperCase().startsWith("B"),
|
|
551
|
+
alias: n.alias || n.booster_alias || "",
|
|
552
|
+
eligibleFrom: n.eligible_from !== void 0 ? `${n.eligible_from} ${p.eligibleFrom}` : "",
|
|
553
|
+
eligibleTo: n.eligible_to !== void 0 ? `${n.eligible_to} ${p.eligibleTo}` : "",
|
|
554
|
+
overdue: n.overdue !== void 0 && n.overdue !== null ? `${n.overdue} ${p.overdue}` : "",
|
|
555
|
+
interval: n.min_gap || 0,
|
|
556
|
+
units: p
|
|
557
|
+
};
|
|
558
|
+
}), m = I(e.location, []).filter((n) => n && typeof n == "object").map((n, g) => {
|
|
559
|
+
var p;
|
|
546
560
|
return {
|
|
547
|
-
id:
|
|
548
|
-
locationId:
|
|
549
|
-
locationIdArr:
|
|
550
|
-
locationList:
|
|
551
|
-
fullPath: (
|
|
561
|
+
id: f("region", e.id, g),
|
|
562
|
+
locationId: n.locationId,
|
|
563
|
+
locationIdArr: n.locationIdArr,
|
|
564
|
+
locationList: n.locationList,
|
|
565
|
+
fullPath: (p = n.locationList) == null ? void 0 : p.replaceAll(" => ", " → ")
|
|
552
566
|
};
|
|
553
|
-
}),
|
|
554
|
-
(
|
|
555
|
-
id:
|
|
556
|
-
vaccine:
|
|
557
|
-
requirement:
|
|
558
|
-
minGap: Number.parseInt(
|
|
559
|
-
maxGap: Number.parseInt(
|
|
560
|
-
message:
|
|
567
|
+
}), u = I(e.validations, []).map(
|
|
568
|
+
(n, g) => ({
|
|
569
|
+
id: f("dep", e.id, g),
|
|
570
|
+
vaccine: n.vaccine || "",
|
|
571
|
+
requirement: n.requirement || "Should be given",
|
|
572
|
+
minGap: Number.parseInt(n.minGap, 10) || 0,
|
|
573
|
+
maxGap: Number.parseInt(n.maxGap, 10) || 0,
|
|
574
|
+
message: n.message || ""
|
|
561
575
|
})
|
|
562
|
-
),
|
|
576
|
+
), c = I(e.filters, []), _ = Array.isArray(c) ? c : (c == null ? void 0 : c.codes) || [], M = I(e.code_sets, []), y = Array.isArray(M) ? M : [];
|
|
563
577
|
return {
|
|
564
578
|
...e,
|
|
565
579
|
name: e.vaccine_name || e.name || "N.A.",
|
|
566
580
|
category: e.target_prevention || e.disease || e.category || "N.A.",
|
|
567
581
|
doses: e.no_of_doses || 0,
|
|
568
582
|
doseType: e.dose_type && e.dose_type !== "NA" ? e.dose_type : "FIXED",
|
|
569
|
-
doseDetails:
|
|
570
|
-
eligibility:
|
|
571
|
-
|
|
583
|
+
doseDetails: s,
|
|
584
|
+
eligibility: R(
|
|
585
|
+
s,
|
|
572
586
|
e.dose_type,
|
|
573
587
|
e.no_of_doses || 0
|
|
574
588
|
),
|
|
575
589
|
isActive: e.is_active !== void 0 ? e.is_active : !0,
|
|
576
|
-
regions:
|
|
577
|
-
dependencies:
|
|
578
|
-
filters:
|
|
579
|
-
codeSets:
|
|
590
|
+
regions: m,
|
|
591
|
+
dependencies: u,
|
|
592
|
+
filters: _,
|
|
593
|
+
codeSets: y,
|
|
594
|
+
durationUnits: a,
|
|
580
595
|
baseDateCode: e.base_date_code,
|
|
581
596
|
recipientType: e.recipient_type || ""
|
|
582
597
|
};
|
|
@@ -589,7 +604,7 @@ import './index.css';const s = o(
|
|
|
589
604
|
}), ne = () => d({
|
|
590
605
|
code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
|
|
591
606
|
parameters: {}
|
|
592
|
-
}), ie = () =>
|
|
607
|
+
}), ie = () => O([
|
|
593
608
|
{
|
|
594
609
|
code: "FETCH_IMMUNISATION_BASE_DATE",
|
|
595
610
|
parameters: {},
|
|
@@ -613,10 +628,10 @@ import './index.css';const s = o(
|
|
|
613
628
|
]), re = (e) => d({
|
|
614
629
|
code: "INSERT_IMMUNIZATION_MASTER",
|
|
615
630
|
parameters: e
|
|
616
|
-
}),
|
|
631
|
+
}), oe = (e) => d({
|
|
617
632
|
code: "UPDATE_IMMUNIZATION_DOSE",
|
|
618
633
|
...e
|
|
619
|
-
}),
|
|
634
|
+
}), se = (e) => d({
|
|
620
635
|
code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
|
|
621
636
|
...e
|
|
622
637
|
}), le = (e) => d({
|
|
@@ -649,19 +664,19 @@ import './index.css';const s = o(
|
|
|
649
664
|
}), Me = (e) => d({
|
|
650
665
|
code: "ADD_IMMUNISATION_FILTER",
|
|
651
666
|
parameters: e
|
|
652
|
-
}),
|
|
667
|
+
}), fe = (e) => d({
|
|
653
668
|
code: "UPDATE_IMMUNISATION_FILTER",
|
|
654
669
|
parameters: e
|
|
655
|
-
}),
|
|
656
|
-
calculateOverallEligibility:
|
|
670
|
+
}), Ae = (e) => C.post("/medplatform/v2/immunisation/list", e), _e = (e) => C.post("/medplatform/v2/immunisation/revalidate", e), Ye = {
|
|
671
|
+
calculateOverallEligibility: R,
|
|
657
672
|
mapImmunizationVaccineConfig: ee,
|
|
658
673
|
getVaccines: te,
|
|
659
674
|
getBaseDates: ae,
|
|
660
675
|
getRecipients: ne,
|
|
661
676
|
getImmunizationReferenceData: ie,
|
|
662
677
|
addImmunization: re,
|
|
663
|
-
updateImmunization:
|
|
664
|
-
checkImmunizationConfigurationInitiation:
|
|
678
|
+
updateImmunization: oe,
|
|
679
|
+
checkImmunizationConfigurationInitiation: se,
|
|
665
680
|
updateVaccineStatus: le,
|
|
666
681
|
updateVaccineStatusFromArray: de,
|
|
667
682
|
updateImmunizationConfigurationInitiation: me,
|
|
@@ -672,8 +687,8 @@ import './index.css';const s = o(
|
|
|
672
687
|
getAllTablesAndColumns: Ie,
|
|
673
688
|
getFilters: Te,
|
|
674
689
|
addFilter: Me,
|
|
675
|
-
updateFilter:
|
|
676
|
-
getImmunisationV2List:
|
|
690
|
+
updateFilter: fe,
|
|
691
|
+
getImmunisationV2List: Ae,
|
|
677
692
|
revalidateImmunisationV2List: _e
|
|
678
693
|
};
|
|
679
694
|
export {
|