@argusoft/medplat-core 1.0.23 → 1.0.25

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.
Files changed (61) hide show
  1. package/dist/{AddFeatures-CTVs_Gr9.js → AddFeatures-CqE3v0BN.js} +2 -2
  2. package/dist/{AddFeatures-CTVs_Gr9.js.map → AddFeatures-CqE3v0BN.js.map} +1 -1
  3. package/dist/AddMenuConfiguration-BSQLl88V.js +6570 -0
  4. package/dist/AddMenuConfiguration-BSQLl88V.js.map +1 -0
  5. package/dist/AddMenuConfiguration.css +1 -1
  6. package/dist/{ChangePasswordModalCore-DONyFFlx.js → ChangePasswordModalCore-DTYWRTa-.js} +955 -952
  7. package/dist/ChangePasswordModalCore-DTYWRTa-.js.map +1 -0
  8. package/dist/{ConditionConfig-C3rF2wXU.js → ConditionConfig-DSsgGEXS.js} +2 -2
  9. package/dist/{ConditionConfig-C3rF2wXU.js.map → ConditionConfig-DSsgGEXS.js.map} +1 -1
  10. package/dist/FhirRawResourceList-ZZFd7gTX.js +550 -0
  11. package/dist/FhirRawResourceList-ZZFd7gTX.js.map +1 -0
  12. package/dist/FhirServerList-Dkq7Kbes.js +116 -0
  13. package/dist/FhirServerList-Dkq7Kbes.js.map +1 -0
  14. package/dist/FhirServerProfile-CUOwC6Wb.js +253 -0
  15. package/dist/FhirServerProfile-CUOwC6Wb.js.map +1 -0
  16. package/dist/FhirServerWizard-Db6Hm4bQ.js +161 -0
  17. package/dist/FhirServerWizard-Db6Hm4bQ.js.map +1 -0
  18. package/dist/{ImmunizationConfigurationBase-CTBoSuSz.js → ImmunizationConfigurationBase-BevKZx_l.js} +386 -302
  19. package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +1 -0
  20. package/dist/{ManageEventConfiguration-BntUc_YI.js → ManageEventConfiguration-DV3I5POA.js} +4 -4
  21. package/dist/{ManageEventConfiguration-BntUc_YI.js.map → ManageEventConfiguration-DV3I5POA.js.map} +1 -1
  22. package/dist/{ManageRole-CZAk-IlM.js → ManageRole-B9bs_T00.js} +116 -116
  23. package/dist/ManageRole-B9bs_T00.js.map +1 -0
  24. package/dist/{ManageUser-Gv38VHMu.js → ManageUser-AB3_Vfp_.js} +85 -84
  25. package/dist/{ManageUser-Gv38VHMu.js.map → ManageUser-AB3_Vfp_.js.map} +1 -1
  26. package/dist/{MobileMenuManagement-CV6QCeos.js → MobileMenuManagement-CVAKyKDa.js} +33 -32
  27. package/dist/MobileMenuManagement-CVAKyKDa.js.map +1 -0
  28. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js → MobileTypeEventConfigModal-BxLympIO.js} +2 -2
  29. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js.map → MobileTypeEventConfigModal-BxLympIO.js.map} +1 -1
  30. package/dist/{OtherTypeEventConfigModal-DiVhWDpG.js → OtherTypeEventConfigModal-BeG1GrUi.js} +94 -93
  31. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +1 -0
  32. package/dist/{RoleManagement-B9WgZGEj.js → RoleManagement-BIiW9uTq.js} +2 -2
  33. package/dist/{RoleManagement-B9WgZGEj.js.map → RoleManagement-BIiW9uTq.js.map} +1 -1
  34. package/dist/ServerFormFields-SLghoZ2z.js +136 -0
  35. package/dist/ServerFormFields-SLghoZ2z.js.map +1 -0
  36. package/dist/SyncDialog-BRGpHOE4.js +130 -0
  37. package/dist/SyncDialog-BRGpHOE4.js.map +1 -0
  38. package/dist/{TypeConfiguration-CupQxH9Y.js → TypeConfiguration-37wp-gsl.js} +2 -2
  39. package/dist/{TypeConfiguration-CupQxH9Y.js.map → TypeConfiguration-37wp-gsl.js.map} +1 -1
  40. package/dist/{UserList-BzHsbYel.js → UserList-2gGuDgNa.js} +38 -37
  41. package/dist/{UserList-BzHsbYel.js.map → UserList-2gGuDgNa.js.map} +1 -1
  42. package/dist/{UserListSkeleton-DhIJ5X3y.js → UserListSkeleton-BMKANCtW.js} +57 -93
  43. package/dist/UserListSkeleton-BMKANCtW.js.map +1 -0
  44. package/dist/Users-CsJ08Kjm.js +40 -0
  45. package/dist/Users-CsJ08Kjm.js.map +1 -0
  46. package/dist/dashboardLayoutUtils-Bt5HA96J.js +265 -0
  47. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +1 -0
  48. package/dist/index.css +1 -1
  49. package/dist/index.js +190 -134
  50. package/dist/index.js.map +1 -1
  51. package/dist/permissions-DEWACxJN.js +308 -0
  52. package/dist/permissions-DEWACxJN.js.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/AddMenuConfiguration-DsnY0Rws.js +0 -2237
  55. package/dist/AddMenuConfiguration-DsnY0Rws.js.map +0 -1
  56. package/dist/ChangePasswordModalCore-DONyFFlx.js.map +0 -1
  57. package/dist/ImmunizationConfigurationBase-CTBoSuSz.js.map +0 -1
  58. package/dist/ManageRole-CZAk-IlM.js.map +0 -1
  59. package/dist/MobileMenuManagement-CV6QCeos.js.map +0 -1
  60. package/dist/OtherTypeEventConfigModal-DiVhWDpG.js.map +0 -1
  61. package/dist/UserListSkeleton-DhIJ5X3y.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,43 +1,51 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { lazy as l } from "react";
2
+ import { lazy as s } from "react";
3
3
  import { createSlice as L } from "@reduxjs/toolkit";
4
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(
5
+ import { api as F } from "@/common/interceptors/AxiosInterceptor";
6
+ import './index.css';const o = s(
7
7
  () => import("@/views/feature-components/VerifyRoute.jsx")
8
- ), z = l(() => import("./RoleManagement-B9WgZGEj.js").then((e) => e.R)), G = l(
8
+ ), G = s(() => import("./RoleManagement-BIiW9uTq.js").then((e) => e.R)), z = s(
9
9
  () => import("./QueryBuilder-DI0wCJbz.js").then((e) => e.Q)
10
- ), x = l(() => import("./UserList-BzHsbYel.js")), E = l(() => import("./ManageUser-Gv38VHMu.js").then((e) => e.M)), B = l(
10
+ ), x = s(() => import("./UserList-2gGuDgNa.js")), S = s(() => import("./ManageUser-AB3_Vfp_.js").then((e) => e.M)), B = s(
11
11
  () => import("./QueryManagement-CRykYGum.js")
12
- ), w = l(() => import("./FeatureMenu-DUZL32RI.js").then((e) => e.F)), $ = l(() => import("./index-D9YNFPn9.js")), P = l(
12
+ ), w = s(() => import("./FeatureMenu-DUZL32RI.js").then((e) => e.F)), P = s(() => import("./index-D9YNFPn9.js")), $ = s(
13
13
  () => import("./NewServerManagement-Cxe0dV0O.js")
14
- ), b = l(
14
+ ), E = s(
15
15
  () => import("./ManageDynamicFeature-BhONvfC_.js")
16
- ), q = l(
16
+ ), q = s(
17
17
  () => import("./SecurityAuditLogList-Dod711KT.js")
18
- ), H = l(
18
+ ), H = s(
19
19
  () => import("./EventConfigurations-lPcZGpLi.js")
20
- ), S = l(
21
- () => import("./ManageEventConfiguration-BntUc_YI.js")
22
- ), Z = l(
20
+ ), b = s(
21
+ () => import("./ManageEventConfiguration-DV3I5POA.js")
22
+ ), Z = s(
23
23
  () => import("./EntityManagement-GaYsBTvf.js")
24
- ), Q = l(
25
- () => import("./MobileMenuManagement-CV6QCeos.js")
26
- ), X = l(
27
- () => import("./AddMenuConfiguration-DsnY0Rws.js")
28
- ), j = l(
24
+ ), Q = s(
25
+ () => import("./MobileMenuManagement-CVAKyKDa.js")
26
+ ), W = s(
27
+ () => import("./AddMenuConfiguration-BSQLl88V.js")
28
+ ), X = s(
29
29
  () => import("./ManageTranslation-D9IScGhk.js").then((e) => e.M)
30
- ), W = l(
30
+ ), j = s(
31
31
  () => import("./WidgetList-B7X8Awkg.js")
32
- ), J = l(
32
+ ), J = s(
33
33
  () => import("./NotificationList-D1U1LYnz.js").then((e) => e.N)
34
- ), K = l(
34
+ ), K = s(
35
35
  () => import("./ImmunizationConfigurationsList-K2ddBpPJ.js")
36
- ), V = l(
36
+ ), V = s(
37
37
  () => import("./manageImmunization-B4swS745.js")
38
- ), Y = l(
39
- () => import("./ImmunizationConfigurationBase-CTBoSuSz.js")
40
- ), Ce = [
38
+ ), Y = s(
39
+ () => import("./ImmunizationConfigurationBase-BevKZx_l.js")
40
+ ), k = s(
41
+ () => import("./FhirServerList-Dkq7Kbes.js")
42
+ ), ee = s(
43
+ () => import("./FhirServerWizard-Db6Hm4bQ.js")
44
+ ), te = s(
45
+ () => import("./FhirServerProfile-CUOwC6Wb.js")
46
+ ), ae = s(
47
+ () => import("./FhirRawResourceList-ZZFd7gTX.js")
48
+ ), Ue = [
41
49
  {
42
50
  path: "medplat/manage/role",
43
51
  element: /* @__PURE__ */ r(
@@ -46,7 +54,7 @@ import './index.css';const o = l(
46
54
  headerTitle: "Roles",
47
55
  pageTitle: "General",
48
56
  url: "medplat/manage/role",
49
- component: z
57
+ component: G
50
58
  }
51
59
  )
52
60
  },
@@ -58,7 +66,7 @@ import './index.css';const o = l(
58
66
  headerTitle: "Query Master",
59
67
  pageTitle: "General",
60
68
  url: "medplat/manage/query",
61
- component: G
69
+ component: z
62
70
  }
63
71
  )
64
72
  },
@@ -82,7 +90,7 @@ import './index.css';const o = l(
82
90
  headerTitle: "Users",
83
91
  pageTitle: "ManageUser",
84
92
  url: "medplat/manage/users",
85
- component: E
93
+ component: S
86
94
  }
87
95
  )
88
96
  },
@@ -94,7 +102,7 @@ import './index.css';const o = l(
94
102
  headerTitle: "Users",
95
103
  pageTitle: "General",
96
104
  url: "medplat/manage/users",
97
- component: E
105
+ component: S
98
106
  }
99
107
  )
100
108
  },
@@ -130,7 +138,7 @@ import './index.css';const o = l(
130
138
  headerTitle: "Features",
131
139
  pageTitle: "General",
132
140
  url: "medplat/manage/menu",
133
- component: b
141
+ component: E
134
142
  }
135
143
  )
136
144
  },
@@ -142,7 +150,7 @@ import './index.css';const o = l(
142
150
  headerTitle: "Features",
143
151
  pageTitle: "General",
144
152
  url: "medplat/manage/menu",
145
- component: b
153
+ component: E
146
154
  }
147
155
  )
148
156
  },
@@ -166,7 +174,7 @@ import './index.css';const o = l(
166
174
  headerTitle: "Event Configuration",
167
175
  pageTitle: "General",
168
176
  url: "medplat/notification",
169
- component: S
177
+ component: b
170
178
  }
171
179
  )
172
180
  },
@@ -178,7 +186,7 @@ import './index.css';const o = l(
178
186
  headerTitle: "Event Configuration",
179
187
  pageTitle: "General",
180
188
  url: "medplat/notification",
181
- component: S
189
+ component: b
182
190
  }
183
191
  )
184
192
  },
@@ -189,7 +197,7 @@ import './index.css';const o = l(
189
197
  {
190
198
  headerTitle: "Server Management",
191
199
  url: "medplat/admin/newServerManagement",
192
- component: P
200
+ component: $
193
201
  }
194
202
  )
195
203
  },
@@ -218,7 +226,7 @@ import './index.css';const o = l(
218
226
  },
219
227
  {
220
228
  path: "medplat/admin/mobileMenuManagement/addMenuConfiguration",
221
- element: /* @__PURE__ */ r(X, {})
229
+ element: /* @__PURE__ */ r(W, {})
222
230
  },
223
231
  {
224
232
  path: "medplat/manage/manageTranslation",
@@ -228,7 +236,7 @@ import './index.css';const o = l(
228
236
  headerTitle: "Manage Translation",
229
237
  pageTitle: "General",
230
238
  url: "medplat/manage/manageTranslation",
231
- component: j
239
+ component: X
232
240
  }
233
241
  )
234
242
  },
@@ -240,7 +248,7 @@ import './index.css';const o = l(
240
248
  headerTitle: "Widgets",
241
249
  pageTitle: "General",
242
250
  url: "medplat/manage/manage-widgets",
243
- component: W
251
+ component: j
244
252
  }
245
253
  )
246
254
  },
@@ -323,11 +331,59 @@ import './index.css';const o = l(
323
331
  {
324
332
  headerTitle: "Activity Analytics",
325
333
  url: "medplat/manage/activityAnalytics",
326
- component: $
334
+ component: P
335
+ }
336
+ )
337
+ },
338
+ {
339
+ path: "medplat/admin/fhirResource",
340
+ element: /* @__PURE__ */ r(
341
+ o,
342
+ {
343
+ headerTitle: "FHIR Sync",
344
+ pageTitle: "General",
345
+ url: "medplat/admin/fhirResource",
346
+ component: k
347
+ }
348
+ )
349
+ },
350
+ {
351
+ path: "medplat/admin/fhirResource/new",
352
+ element: /* @__PURE__ */ r(
353
+ o,
354
+ {
355
+ headerTitle: "Connect FHIR Server",
356
+ pageTitle: "General",
357
+ url: "medplat/admin/fhirResource",
358
+ component: ee
359
+ }
360
+ )
361
+ },
362
+ {
363
+ path: "medplat/admin/fhirResource/:serverId",
364
+ element: /* @__PURE__ */ r(
365
+ o,
366
+ {
367
+ headerTitle: "FHIR Server",
368
+ pageTitle: "General",
369
+ url: "medplat/admin/fhirResource",
370
+ component: te
371
+ }
372
+ )
373
+ },
374
+ {
375
+ path: "medplat/admin/fhirResource/:serverId/staging",
376
+ element: /* @__PURE__ */ r(
377
+ o,
378
+ {
379
+ headerTitle: "FHIR Staging Inbox",
380
+ pageTitle: "General",
381
+ url: "medplat/admin/fhirResource",
382
+ component: ae
327
383
  }
328
384
  )
329
385
  }
330
- ], F = () => ({
386
+ ], R = () => ({
331
387
  vaccines: [],
332
388
  selectedVaccineIds: [],
333
389
  views: [
@@ -353,19 +409,19 @@ import './index.css';const o = l(
353
409
  featureRights: {},
354
410
  isConfigLoaded: !1,
355
411
  validationErrors: {}
356
- }), k = F(), h = (e = [], t = {}) => {
412
+ }), ne = R(), h = (e = [], t = {}) => {
357
413
  const i = e.findIndex(
358
414
  (a) => t.id !== void 0 && (a == null ? void 0 : a.id) === t.id || t.code && (a == null ? void 0 : a.code) === t.code
359
415
  );
360
416
  return i === -1 ? [...e, t] : e.map(
361
- (a, s) => s === i ? {
417
+ (a, l) => l === i ? {
362
418
  ...a,
363
419
  ...t
364
420
  } : a
365
421
  );
366
- }, U = L({
422
+ }, C = L({
367
423
  name: "immunization",
368
- initialState: k,
424
+ initialState: ne,
369
425
  reducers: {
370
426
  toggleVaccine: (e, t) => {
371
427
  const i = t.payload;
@@ -383,16 +439,16 @@ import './index.css';const o = l(
383
439
  addCustomVaccine: (e, t) => {
384
440
  const i = t.payload || {}, {
385
441
  name: a,
386
- vaccine_name: s,
442
+ vaccine_name: l,
387
443
  disease: m,
388
444
  target_prevention: u,
389
445
  id: c,
390
446
  baseDateCode: _,
391
- base_date_code: M,
447
+ base_date_code: f,
392
448
  recipientType: y,
393
449
  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,
450
+ } = i, g = a || l || "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)), U = N.length > 0 ? Math.max(...N) + 1 : 1, D = {
451
+ id: c || U,
396
452
  name: g,
397
453
  category: p,
398
454
  doses: 0,
@@ -401,16 +457,16 @@ import './index.css';const o = l(
401
457
  regions: [],
402
458
  dependencies: [],
403
459
  isActive: i.isActive !== void 0 ? i.isActive : !1,
404
- baseDateCode: _ || M || null,
460
+ baseDateCode: _ || f || null,
405
461
  recipientType: y || n || ""
406
462
  };
407
- Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(v);
463
+ Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(D);
408
464
  },
409
465
  setCurrentView: (e, t) => {
410
466
  e.currentViewId = t.payload;
411
467
  },
412
468
  updateScheduledVaccine: (e, t) => {
413
- const i = t.payload, a = e.scheduledVaccines.findIndex((s) => s.id === i.id);
469
+ const i = t.payload, a = e.scheduledVaccines.findIndex((l) => l.id === i.id);
414
470
  a !== -1 ? e.scheduledVaccines[a] = {
415
471
  ...e.scheduledVaccines[a],
416
472
  ...i
@@ -437,7 +493,7 @@ import './index.css';const o = l(
437
493
  updateBaseDateMasterStatus: (e, t) => {
438
494
  const { code: i, is_active: a } = t.payload;
439
495
  e.baseDateMaster = e.baseDateMaster.map(
440
- (s) => s.code === i ? { ...s, is_active: a } : s
496
+ (l) => l.code === i ? { ...l, is_active: a } : l
441
497
  );
442
498
  },
443
499
  upsertFilterMasterItem: (e, t) => {
@@ -446,7 +502,7 @@ import './index.css';const o = l(
446
502
  updateFilterMasterStatus: (e, t) => {
447
503
  const { code: i, is_active: a } = t.payload;
448
504
  e.filtersMaster = e.filtersMaster.map(
449
- (s) => s.code === i ? { ...s, is_active: a } : s
505
+ (l) => l.code === i ? { ...l, is_active: a } : l
450
506
  );
451
507
  },
452
508
  setFeatureRights: (e, t) => {
@@ -455,7 +511,7 @@ import './index.css';const o = l(
455
511
  setImmunizationConfigLoaded: (e, t) => {
456
512
  e.isConfigLoaded = t.payload;
457
513
  },
458
- resetImmunizationState: () => F(),
514
+ resetImmunizationState: () => R(),
459
515
  activateSelectedVaccines: (e) => {
460
516
  e.vaccines = e.vaccines.map((t) => ({
461
517
  ...t,
@@ -463,8 +519,8 @@ import './index.css';const o = l(
463
519
  }));
464
520
  },
465
521
  setVaccineStatus: (e, t) => {
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 = []);
522
+ const { vaccineId: i, status: a } = t.payload, l = e.vaccines.findIndex((u) => u.id === i);
523
+ l !== -1 && (e.vaccines[l].isActive = a), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
468
524
  const m = e.selectedVaccineIds.indexOf(i);
469
525
  a && m === -1 ? e.selectedVaccineIds.push(i) : !a && m !== -1 && e.selectedVaccineIds.splice(m, 1);
470
526
  },
@@ -478,29 +534,29 @@ import './index.css';const o = l(
478
534
  }
479
535
  }
480
536
  }), {
481
- toggleVaccine: Fe,
482
- setVaccines: Ue,
483
- addCustomVaccine: Re,
484
- setCurrentView: De,
485
- updateScheduledVaccine: ve,
486
- setBaseDatesMaster: Le,
487
- setRecipientMaster: Oe,
488
- setDbTablesMaster: ze,
489
- setFiltersMaster: Ge,
490
- upsertBaseDateMasterItem: xe,
491
- upsertRecipientMasterItem: Be,
492
- updateBaseDateMasterStatus: we,
493
- upsertFilterMasterItem: $e,
494
- updateFilterMasterStatus: Pe,
495
- setFeatureRights: qe,
496
- setImmunizationConfigLoaded: He,
497
- resetImmunizationState: Ze,
498
- activateSelectedVaccines: Qe,
499
- setSelectedVaccineIds: Xe,
500
- setValidationErrors: je,
501
- clearValidationErrors: We,
502
- setVaccineStatus: Je
503
- } = U.actions, Ke = U.reducer, I = (e, t) => {
537
+ toggleVaccine: De,
538
+ setVaccines: Le,
539
+ addCustomVaccine: Oe,
540
+ setCurrentView: Ge,
541
+ updateScheduledVaccine: ze,
542
+ setBaseDatesMaster: xe,
543
+ setRecipientMaster: Be,
544
+ setDbTablesMaster: we,
545
+ setFiltersMaster: Pe,
546
+ upsertBaseDateMasterItem: $e,
547
+ upsertRecipientMasterItem: qe,
548
+ updateBaseDateMasterStatus: He,
549
+ upsertFilterMasterItem: Ze,
550
+ updateFilterMasterStatus: Qe,
551
+ setFeatureRights: We,
552
+ setImmunizationConfigLoaded: Xe,
553
+ resetImmunizationState: je,
554
+ activateSelectedVaccines: Je,
555
+ setSelectedVaccineIds: Ke,
556
+ setValidationErrors: Ye,
557
+ clearValidationErrors: ke,
558
+ setVaccineStatus: et
559
+ } = C.actions, tt = C.reducer, I = (e, t) => {
504
560
  if (e == null)
505
561
  return t;
506
562
  if (typeof e != "string")
@@ -510,7 +566,7 @@ import './index.css';const o = l(
510
566
  } catch {
511
567
  return t;
512
568
  }
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) => {
569
+ }, M = (...e) => e.filter(Boolean).join("_"), A = (e) => e == null || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, v = (e, t = "FLEXIBLE", i = 1) => {
514
570
  if (i === 0 || !e)
515
571
  return "N.A.";
516
572
  if (t === "FIXED") {
@@ -522,18 +578,18 @@ import './index.css';const o = l(
522
578
  }
523
579
  if (!Array.isArray(e) || e.length === 0)
524
580
  return "N.A.";
525
- const a = A(e[0].eligibleFrom), s = A(
581
+ const a = A(e[0].eligibleFrom), l = A(
526
582
  e[e.length - 1].eligibleTo
527
583
  );
528
- return a === "N.A." && s === "N.A." ? "N.A." : `${a} to ${s}`;
529
- }, ee = (e) => {
584
+ return a === "N.A." && l === "N.A." ? "N.A." : `${a} to ${l}`;
585
+ }, ie = (e) => {
530
586
  const t = String(e.dose_type || "").toLowerCase(), i = t === "fixed" || t === "na" || !e.dose_type, a = I(e.duration_units, {
531
587
  eligibleFrom: "days",
532
588
  eligibleTo: "days",
533
589
  interval: "days"
534
- }), s = i ? [
590
+ }), l = i ? [
535
591
  {
536
- id: f("fixed", e.id),
592
+ id: M("fixed", e.id),
537
593
  eligibleFrom: e.dose_eligible_from !== void 0 ? `${e.dose_eligible_from} ${a.eligibleFrom || "days"}` : "",
538
594
  eligibleTo: e.dose_eligible_to !== void 0 ? `${e.dose_eligible_to} ${a.eligibleTo || "days"}` : "",
539
595
  interval: e.min_gap || 0
@@ -546,7 +602,7 @@ import './index.css';const o = l(
546
602
  overdue: n.overdue_unit || "days"
547
603
  };
548
604
  return {
549
- id: n.id || f("dose", e.id, g),
605
+ id: n.id || M("dose", e.id, g),
550
606
  isBooster: n.isBooster === !0 || n.is_booster === !0 || typeof n.dose == "string" && n.dose.toUpperCase().startsWith("B"),
551
607
  alias: n.alias || n.booster_alias || "",
552
608
  eligibleFrom: n.eligible_from !== void 0 ? `${n.eligible_from} ${p.eligibleFrom}` : "",
@@ -558,7 +614,7 @@ import './index.css';const o = l(
558
614
  }), m = I(e.location, []).filter((n) => n && typeof n == "object").map((n, g) => {
559
615
  var p;
560
616
  return {
561
- id: f("region", e.id, g),
617
+ id: M("region", e.id, g),
562
618
  locationId: n.locationId,
563
619
  locationIdArr: n.locationIdArr,
564
620
  locationList: n.locationList,
@@ -566,23 +622,23 @@ import './index.css';const o = l(
566
622
  };
567
623
  }), u = I(e.validations, []).map(
568
624
  (n, g) => ({
569
- id: f("dep", e.id, g),
625
+ id: M("dep", e.id, g),
570
626
  vaccine: n.vaccine || "",
571
627
  requirement: n.requirement || "Should be given",
572
628
  minGap: Number.parseInt(n.minGap, 10) || 0,
573
629
  maxGap: Number.parseInt(n.maxGap, 10) || 0,
574
630
  message: n.message || ""
575
631
  })
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 : [];
632
+ ), c = I(e.filters, []), _ = Array.isArray(c) ? c : (c == null ? void 0 : c.codes) || [], f = I(e.code_sets, []), y = Array.isArray(f) ? f : [];
577
633
  return {
578
634
  ...e,
579
635
  name: e.vaccine_name || e.name || "N.A.",
580
636
  category: e.target_prevention || e.disease || e.category || "N.A.",
581
637
  doses: e.no_of_doses || 0,
582
638
  doseType: e.dose_type && e.dose_type !== "NA" ? e.dose_type : "FIXED",
583
- doseDetails: s,
584
- eligibility: R(
585
- s,
639
+ doseDetails: l,
640
+ eligibility: v(
641
+ l,
586
642
  e.dose_type,
587
643
  e.no_of_doses || 0
588
644
  ),
@@ -595,16 +651,16 @@ import './index.css';const o = l(
595
651
  baseDateCode: e.base_date_code,
596
652
  recipientType: e.recipient_type || ""
597
653
  };
598
- }, te = () => d({
654
+ }, re = () => d({
599
655
  code: "FETCH_IMMUNISATION_MASTER",
600
656
  parameters: {}
601
- }), ae = () => d({
657
+ }), oe = () => d({
602
658
  code: "FETCH_IMMUNISATION_BASE_DATE",
603
659
  parameters: {}
604
- }), ne = () => d({
660
+ }), se = () => d({
605
661
  code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
606
662
  parameters: {}
607
- }), ie = () => O([
663
+ }), le = () => O([
608
664
  {
609
665
  code: "FETCH_IMMUNISATION_BASE_DATE",
610
666
  parameters: {},
@@ -625,75 +681,75 @@ import './index.css';const o = l(
625
681
  parameters: {},
626
682
  sequence: 4
627
683
  }
628
- ]), re = (e) => d({
684
+ ]), de = (e) => d({
629
685
  code: "INSERT_IMMUNIZATION_MASTER",
630
686
  parameters: e
631
- }), oe = (e) => d({
687
+ }), me = (e) => d({
632
688
  code: "UPDATE_IMMUNIZATION_DOSE",
633
689
  ...e
634
- }), se = (e) => d({
690
+ }), ce = (e) => d({
635
691
  code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
636
692
  ...e
637
- }), le = (e) => d({
693
+ }), pe = (e) => d({
638
694
  code: "UPDATE_IMMUNIZATION_STATUS",
639
695
  ...e
640
- }), de = (e) => d({
696
+ }), ue = (e) => d({
641
697
  code: "UPDATE_IMMUNIZATION_STATUS_FOR_ARRAY",
642
698
  ...e
643
- }), me = (e) => d({
699
+ }), ge = (e) => d({
644
700
  code: "UPDATE_IMMUNIZATION_CONFIGURATION_INITIATION",
645
701
  ...e
646
- }), ce = (e) => d({
702
+ }), Ie = (e) => d({
647
703
  code: "SAVE_IMMUNISATION_BASE_DATE",
648
704
  parameters: e
649
- }), pe = (e) => d({
705
+ }), Te = (e) => d({
650
706
  code: "SAVE_IMMUNISATION_RECEPIENT_MASTER",
651
707
  parameters: e
652
- }), ue = (e) => d({
708
+ }), fe = (e) => d({
653
709
  code: "UPDATE_IMMUNISATION_RECEPIENT_MASTER",
654
710
  parameters: e
655
- }), ge = (e) => d({
711
+ }), Me = (e) => d({
656
712
  code: "UPDATE_IMMUNISATION_BASE_DATE",
657
713
  parameters: e
658
- }), Ie = () => d({
714
+ }), Ae = () => d({
659
715
  code: "retrieve_all_tables_and_columns",
660
716
  parameters: {}
661
- }), Te = () => d({
717
+ }), _e = () => d({
662
718
  code: "GET_ALL_IMMUNISATION_FILTERS",
663
719
  parameters: {}
664
- }), Me = (e) => d({
720
+ }), ye = (e) => d({
665
721
  code: "ADD_IMMUNISATION_FILTER",
666
722
  parameters: e
667
- }), fe = (e) => d({
723
+ }), he = (e) => d({
668
724
  code: "UPDATE_IMMUNISATION_FILTER",
669
725
  parameters: e
670
- }), Ae = (e) => C.post("/medplatform/v2/immunisation/list", e), _e = (e) => C.post("/medplatform/v2/immunisation/revalidate", e), Ye = {
671
- calculateOverallEligibility: R,
672
- mapImmunizationVaccineConfig: ee,
673
- getVaccines: te,
674
- getBaseDates: ae,
675
- getRecipients: ne,
676
- getImmunizationReferenceData: ie,
677
- addImmunization: re,
678
- updateImmunization: oe,
679
- checkImmunizationConfigurationInitiation: se,
680
- updateVaccineStatus: le,
681
- updateVaccineStatusFromArray: de,
682
- updateImmunizationConfigurationInitiation: me,
683
- saveBaseDate: ce,
684
- saveRecipient: pe,
685
- updateRecipient: ue,
686
- updateBaseDate: ge,
687
- getAllTablesAndColumns: Ie,
688
- getFilters: Te,
689
- addFilter: Me,
690
- updateFilter: fe,
691
- getImmunisationV2List: Ae,
692
- revalidateImmunisationV2List: _e
726
+ }), Ne = (e) => F.post("/medplatform/v2/immunisation/list", e), Se = (e) => F.post("/medplatform/v2/immunisation/revalidate", e), at = {
727
+ calculateOverallEligibility: v,
728
+ mapImmunizationVaccineConfig: ie,
729
+ getVaccines: re,
730
+ getBaseDates: oe,
731
+ getRecipients: se,
732
+ getImmunizationReferenceData: le,
733
+ addImmunization: de,
734
+ updateImmunization: me,
735
+ checkImmunizationConfigurationInitiation: ce,
736
+ updateVaccineStatus: pe,
737
+ updateVaccineStatusFromArray: ue,
738
+ updateImmunizationConfigurationInitiation: ge,
739
+ saveBaseDate: Ie,
740
+ saveRecipient: Te,
741
+ updateRecipient: fe,
742
+ updateBaseDate: Me,
743
+ getAllTablesAndColumns: Ae,
744
+ getFilters: _e,
745
+ addFilter: ye,
746
+ updateFilter: he,
747
+ getImmunisationV2List: Ne,
748
+ revalidateImmunisationV2List: Se
693
749
  };
694
750
  export {
695
- Ye as ImmunizationUtil,
696
- Ke as immunizationReducer,
697
- Ce as routes
751
+ at as ImmunizationUtil,
752
+ tt as immunizationReducer,
753
+ Ue as routes
698
754
  };
699
755
  //# sourceMappingURL=index.js.map