@bahmni/clinical-app 0.0.1-dev.348 → 0.0.1-dev.350

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 (29) hide show
  1. package/dist/{ConsultationPage-Cj4sR0YF.js → ConsultationPage-oWnx8161.js} +12789 -12396
  2. package/dist/{DocumentsTable-c08bldqE-Dtv4Xp6q.js → DocumentsTable-D07TTQvw-BE03gh0S.js} +33 -33
  3. package/dist/FormsTable-CPV7G3yP-xbYgVNgG.js +293 -0
  4. package/dist/{LNWAZHJI-Ddjk4Uzd.js → LNWAZHJI-DkYA-mID.js} +2 -2
  5. package/dist/{MWZ6AO7Z-BOUIUQ1f.js → MWZ6AO7Z-DiL24-b5.js} +2 -2
  6. package/dist/{Observations-Ce1nztbS-BxKzfVMI.js → Observations-tLsS82qM-B7Dh5NSA.js} +29 -29
  7. package/dist/{YPM2AS64-DFBlovbU.js → YPM2AS64-SeqWXm0n.js} +181 -181
  8. package/dist/components/dashboardSection/DashboardSection.d.ts.map +1 -1
  9. package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
  10. package/dist/components/forms/observations/ObservationFormsContainer.d.ts +85 -0
  11. package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
  12. package/dist/components/forms/observations/ObservationFormsPanel.d.ts.map +1 -1
  13. package/dist/components/patientHeader/ConsultationActionButton.d.ts.map +1 -1
  14. package/dist/events/startConsultation/models.d.ts +4 -0
  15. package/dist/events/startConsultation/models.d.ts.map +1 -1
  16. package/dist/{hook-B4nWn5gZ.js → hook-D1L0XgP4.js} +1 -1
  17. package/dist/hooks/useObservationFormData.d.ts.map +1 -1
  18. package/dist/{index-D8VlPiOt.js → index-CErj4Z3U.js} +14325 -14254
  19. package/dist/{index-DbY_HTl6.js → index-DPTlw-B-.js} +24 -24
  20. package/dist/{index-P9Hox9Kh.js → index-RgW2gd5e.js} +1 -1
  21. package/dist/index.css +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/locales/locale_en.json +4 -0
  24. package/dist/locales/locale_es.json +4 -0
  25. package/dist/services/encounterBundleService.d.ts.map +1 -1
  26. package/dist/utils/fhir/observationResourceCreator.d.ts +19 -5
  27. package/dist/utils/fhir/observationResourceCreator.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/FormsTable-Bt99F81Y-BqUmg3sD.js +0 -232
@@ -1,27 +1,27 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { bz as m, u, aK as p, bw as f, bG as b, aC as _, bC as x } from "./index-D8VlPiOt.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { bD as m, u, M as p, bA as f, bK as b, aG as _, bG as x } from "./index-CErj4Z3U.js";
3
3
  import { lazy as N, useMemo as r, Suspense as h } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-B4nWn5gZ.js";
6
- const C = (s) => {
5
+ import { u as E } from "./hook-D1L0XgP4.js";
6
+ const P = (s) => {
7
7
  const i = /* @__PURE__ */ new Map();
8
8
  for (const e of s) {
9
9
  const o = i.get(e.extensionPointId) ?? [];
10
10
  o.push(e), i.set(e.extensionPointId, o);
11
11
  }
12
12
  return i;
13
- }, P = (s, i) => s.filter(
13
+ }, v = (s, i) => s.filter(
14
14
  (e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
15
- ), v = {
15
+ ), C = {
16
16
  "org.bahmni.clinical.v2.search": N(
17
- () => import("./index-P9Hox9Kh.js")
17
+ () => import("./index-RgW2gd5e.js")
18
18
  )
19
- }, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", w = "index-module_message__Ib5Iw", l = {
19
+ }, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", A = "index-module_message__Ib5Iw", l = {
20
20
  page: L,
21
21
  loading: I,
22
22
  tabs: y,
23
- message: w
24
- }, M = () => {
23
+ message: A
24
+ }, w = () => {
25
25
  const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = p(), o = r(
26
26
  () => [
27
27
  { id: "home", label: s("HOME_LABEL"), href: f },
@@ -29,49 +29,49 @@ const C = (s) => {
29
29
  ],
30
30
  [s]
31
31
  ), c = r(
32
- () => C(i?.extensions ?? []),
32
+ () => P(i?.extensions ?? []),
33
33
  [i]
34
34
  ), d = r(
35
- () => Array.from(c.entries()).map(([n, t]) => ({
35
+ () => Array.from(c.entries()).map(([n, a]) => ({
36
36
  pointId: n,
37
- Handler: v[n],
38
- filtered: P(t, e)
39
- })).filter(({ Handler: n, filtered: t }) => !!n && t.length > 0),
37
+ Handler: C[n],
38
+ filtered: v(a, e)
39
+ })).filter(({ Handler: n, filtered: a }) => !!n && a.length > 0),
40
40
  [c, e]
41
41
  );
42
- return /* @__PURE__ */ a(
42
+ return /* @__PURE__ */ t(
43
43
  b,
44
44
  {
45
- header: /* @__PURE__ */ a(x, { breadcrumbItems: o }),
46
- main: /* @__PURE__ */ a(
45
+ header: /* @__PURE__ */ t(x, { breadcrumbItems: o }),
46
+ main: /* @__PURE__ */ t(
47
47
  "div",
48
48
  {
49
49
  id: "clinical-list-page",
50
50
  "data-testid": "clinical-list-page-test-id",
51
51
  "aria-label": "Clinical List Page",
52
52
  className: l.page,
53
- children: d.length > 0 ? d.map(({ pointId: n, Handler: t, filtered: g }) => /* @__PURE__ */ a(
53
+ children: d.length > 0 ? d.map(({ pointId: n, Handler: a, filtered: g }) => /* @__PURE__ */ t(
54
54
  "div",
55
55
  {
56
56
  id: n,
57
57
  "data-testid": `${n}-test-id`,
58
58
  className: l.tabs,
59
- children: /* @__PURE__ */ a(
59
+ children: /* @__PURE__ */ t(
60
60
  h,
61
61
  {
62
- fallback: /* @__PURE__ */ a(
62
+ fallback: /* @__PURE__ */ t(
63
63
  _,
64
64
  {
65
65
  type: "multi",
66
66
  className: l.loading
67
67
  }
68
68
  ),
69
- children: /* @__PURE__ */ a(t, { extensions: g })
69
+ children: /* @__PURE__ */ t(a, { extensions: g })
70
70
  }
71
71
  )
72
72
  },
73
73
  n
74
- )) : /* @__PURE__ */ a(
74
+ )) : /* @__PURE__ */ t(
75
75
  "p",
76
76
  {
77
77
  id: "no-extensions-configured",
@@ -87,5 +87,5 @@ const C = (s) => {
87
87
  );
88
88
  };
89
89
  export {
90
- M as default
90
+ w as default
91
91
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cv as o, cw as l, cx as c, b2 as m, b3 as g, cy as h, cz as b, cA as p, aC as u } from "./index-D8VlPiOt.js";
2
+ import { u as r, cz as o, cA as l, cB as c, b7 as m, b8 as g, cC as h, cD as b, cE as p, aG as u } from "./index-CErj4Z3U.js";
3
3
  import { Suspense as E } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const _ = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", t = {