@bahmni/clinical-app 0.0.1-dev.467 → 0.0.1-dev.469

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 (25) hide show
  1. package/dist/{ConsultationPage-BjrUy4PW.js → ConsultationPage-hOSFBfGN.js} +21081 -20037
  2. package/dist/{DocumentsTable-Cdjrw4yW-DoRY2hdp.js → DocumentsTable-DddJ0p1F-DBATb1Bg.js} +93 -93
  3. package/dist/FormsTable-DLC_vCD0-CLXfaFtn.js +249 -0
  4. package/dist/{LNWAZHJI-CjO-Fgpw.js → LNWAZHJI-Cy9INys2.js} +7 -7
  5. package/dist/{MWZ6AO7Z-BDeQ6SkW.js → MWZ6AO7Z-JShTOcHn.js} +2 -2
  6. package/dist/{Observations-B-dxdRlx-BEL5frvq.js → Observations-Cwi0QkK8-DkzZEyze.js} +75 -75
  7. package/dist/{YPM2AS64-BeiFAEzP.js → YPM2AS64-BIfscLnv.js} +1 -1
  8. package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
  9. package/dist/components/forms/observations/ObservationFormsContainer.d.ts +2 -2
  10. package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
  11. package/dist/constants/forms.d.ts +1 -0
  12. package/dist/constants/forms.d.ts.map +1 -1
  13. package/dist/{hook-DxwMFCWH.js → hook-Ca7ypArY.js} +3 -3
  14. package/dist/{index-BILowQhQ.js → index-DO8Ng_V5.js} +21 -21
  15. package/dist/{index-C4WckLEf.js → index-DZlx8UoV.js} +11 -11
  16. package/dist/index-sjgf7zfi-xYpJ_hkW.js +6900 -0
  17. package/dist/{index-ZfyzcWgS.js → index-z270S3eE.js} +140258 -110101
  18. package/dist/index.css +1 -1
  19. package/dist/index.js +2 -2
  20. package/dist/locales/locale_en.json +7 -1
  21. package/dist/locales/locale_es.json +7 -1
  22. package/dist/stores/observationFormsStore.d.ts +3 -3
  23. package/dist/stores/observationFormsStore.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/FormsTable-hfP2wv7g-Am6W8ufO.js +0 -249
@@ -1,14 +1,14 @@
1
1
  import { jsxs as S, jsx as n } from "react/jsx-runtime";
2
- import { u as z, z as Q, a as B, m as G, f as H, W as M, n as j, w as P, o as W, x as J, B as Y, D as X, p as ee, $ as ae, E as se, F as U, H as te, I as re, h as ie, P as oe, S as ne, T as de, U as le } from "./index-ZfyzcWgS.js";
3
- import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
2
+ import { Q as z, a as G, u as U, q as H, h as x, r as Y, z as j, $ as J, G as W, s as P, K as X, Y as Z, c as ee, M as ae, W as se, v as V, w as re, y as te, H as ie, A as oe, F as ne, L as de, N as le } from "./index-z270S3eE.js";
3
+ import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as L, useMemo as g } from "react";
5
- const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
5
+ const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", R = {
6
6
  observations: me,
7
7
  title: be,
8
8
  wrapper: he,
9
9
  secondary: ve
10
- }, V = (s, l, o, d, c, t) => {
11
- const r = te(s, l, c), e = r.value, p = re(e);
10
+ }, B = (s, l, o, d, u, r) => {
11
+ const t = re(s, l, u), e = t.value, p = te(e);
12
12
  let i = e;
13
13
  p === "Image" && (i = /* @__PURE__ */ n(
14
14
  ne,
@@ -16,71 +16,71 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
16
16
  imageSrc: e,
17
17
  alt: e,
18
18
  id: `${e}-img`,
19
- hideThumbnail: t
19
+ hideThumbnail: r
20
20
  }
21
21
  )), p === "Video" && (i = /* @__PURE__ */ n(
22
22
  de,
23
23
  {
24
24
  id: `${e}-video`,
25
25
  videoSrc: e,
26
- hideThumbnail: t
26
+ hideThumbnail: r
27
27
  }
28
28
  )), p === "PDF" && (i = /* @__PURE__ */ n(le, { id: `${e}-pdf`, src: e }));
29
- const m = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
30
- /* @__PURE__ */ n("span", { children: r.header.display }),
31
- r.header.referenceRange && /* @__PURE__ */ n("span", { className: O.secondary, children: r.header.referenceRange })
32
- ] }), u = c("OBSERVATIONS_RECORDED_BY", {
33
- provider: r.provider
34
- }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, T = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
35
- /* @__PURE__ */ n("span", { children: u }),
36
- b && /* @__PURE__ */ n("span", { className: O.secondary, children: b })
37
- ] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", R = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
29
+ const m = /* @__PURE__ */ S("div", { className: R.wrapper, children: [
30
+ /* @__PURE__ */ n("span", { children: t.header.display }),
31
+ t.header.referenceRange && /* @__PURE__ */ n("span", { className: R.secondary, children: t.header.referenceRange })
32
+ ] }), c = u("OBSERVATIONS_RECORDED_BY", {
33
+ provider: t.provider
34
+ }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, u, !0).formattedResult : void 0, E = /* @__PURE__ */ S("div", { className: R.wrapper, children: [
35
+ /* @__PURE__ */ n("span", { children: c }),
36
+ b && /* @__PURE__ */ n("span", { className: R.secondary, children: b })
37
+ ] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
38
38
  return /* @__PURE__ */ n(
39
39
  oe,
40
40
  {
41
41
  header: m,
42
42
  value: i,
43
- info: T,
44
- id: R,
45
- testId: R,
46
- ariaLabel: R
43
+ info: E,
44
+ id: O,
45
+ testId: O,
46
+ ariaLabel: O
47
47
  },
48
48
  `obs-${s.id}`
49
49
  );
50
- }, ye = (s, l, o, d, c, t, r) => /* @__PURE__ */ n(
51
- U,
50
+ }, ye = (s, l, o, d, u, r, t) => /* @__PURE__ */ n(
51
+ V,
52
52
  {
53
53
  title: s.display,
54
54
  id: `grouped-obs-${s.display}-${d}`,
55
55
  open: o,
56
56
  children: s.members?.map(
57
- (e, p) => V(
57
+ (e, p) => B(
58
58
  e,
59
59
  p,
60
- c,
61
- t,
60
+ u,
61
+ r,
62
62
  l,
63
- r
63
+ t
64
64
  )
65
65
  )
66
66
  },
67
67
  `grouped-obs-${s.id}`
68
- ), Oe = ({
68
+ ), Re = ({
69
69
  groupedData: s,
70
70
  title: l = "",
71
71
  hideThumbnail: o
72
72
  }) => {
73
- const { t: d } = B(), c = (t, r, e) => {
74
- const p = se(t.encounterDetails, d);
73
+ const { t: d } = U(), u = (r, t, e) => {
74
+ const p = se(r.encounterDetails, d);
75
75
  return /* @__PURE__ */ S(
76
- U,
76
+ V,
77
77
  {
78
78
  title: p,
79
- id: `encounter-${t.encounterId}`,
80
- open: r,
79
+ id: `encounter-${r.encounterId}`,
80
+ open: t,
81
81
  children: [
82
- t.observations.map(
83
- (i, m) => V(
82
+ r.observations.map(
83
+ (i, m) => B(
84
84
  i,
85
85
  m,
86
86
  e,
@@ -89,11 +89,11 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
89
89
  o
90
90
  )
91
91
  ),
92
- t.groupedObservations.map(
92
+ r.groupedObservations.map(
93
93
  (i, m) => ye(
94
94
  i,
95
95
  d,
96
- r,
96
+ t,
97
97
  m,
98
98
  e,
99
99
  l,
@@ -102,7 +102,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
102
102
  )
103
103
  ]
104
104
  },
105
- `encounter-${t.encounterId}`
105
+ `encounter-${r.encounterId}`
106
106
  );
107
107
  };
108
108
  return /* @__PURE__ */ n(
@@ -112,11 +112,11 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
112
112
  "data-testid": "obs-by-encounter-test-id",
113
113
  "aria-label": "obs-by-encounter-aria-label",
114
114
  children: s.map(
115
- (t, r) => c(t, r === 0, r)
115
+ (r, t) => u(r, t === 0, t)
116
116
  )
117
117
  }
118
118
  );
119
- }, Re = (s) => ["conceptUuid", s], _e = (s, l, o, d) => [
119
+ }, Oe = (s) => ["conceptUuid", s], _e = (s, l, o, d) => [
120
120
  "observations",
121
121
  s,
122
122
  ...l,
@@ -128,41 +128,41 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
128
128
  encounterUuids: o
129
129
  }) => {
130
130
  const d = s, {
131
- conceptNames: c = [],
132
- conceptUuid: t = [],
133
- hideThumbnail: r = !1,
131
+ conceptNames: u = [],
132
+ conceptUuid: r = [],
133
+ hideThumbnail: t = !1,
134
134
  scope: e = "all"
135
- } = d, p = pe(/* @__PURE__ */ new Set()), i = z(), { addNotification: m } = Q(), { t: u } = B(), b = ue({
136
- queries: c.map((a) => ({
137
- queryKey: Re(a),
138
- queryFn: () => G(a),
135
+ } = d, p = pe(/* @__PURE__ */ new Set()), i = z(), { addNotification: m } = G(), { t: c } = U(), b = ce({
136
+ queries: u.map((a) => ({
137
+ queryKey: Oe(a),
138
+ queryFn: () => H(a),
139
139
  enabled: !!a
140
140
  }))
141
141
  });
142
142
  L(() => {
143
- const a = b.some((Z) => Z.isError), y = p.current.size > 0;
143
+ const a = b.some((k) => k.isError), y = p.current.size > 0;
144
144
  a && !y ? (m({
145
- title: u("ERROR_DEFAULT_TITLE"),
146
- message: u("ERROR_FETCHING_OBSERVATIONS"),
145
+ title: c("ERROR_DEFAULT_TITLE"),
146
+ message: c("ERROR_FETCHING_OBSERVATIONS"),
147
147
  type: "error"
148
148
  }), p.current.add(0)) : !a && y && p.current.clear();
149
- }, [b, m, u]);
150
- const T = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...T, ...t])], [T, t]), v = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", w = H(
149
+ }, [b, m, c]);
150
+ const E = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...E, ...r])], [E, r]), v = g(() => u.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, u.length]), O = e === "latest" || e === "latest-encounter", F = x(
151
151
  l,
152
152
  o
153
153
  ), {
154
154
  data: _,
155
- isLoading: F,
155
+ isLoading: w,
156
156
  isError: N,
157
157
  refetch: $
158
- } = ce({
158
+ } = ue({
159
159
  queryKey: _e(
160
160
  i,
161
161
  h,
162
162
  o,
163
163
  e
164
164
  ),
165
- queryFn: () => R ? M(
165
+ queryFn: () => O ? Y(
166
166
  i,
167
167
  h,
168
168
  o
@@ -171,9 +171,9 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
171
171
  h,
172
172
  o
173
173
  ),
174
- enabled: !!i && h.length > 0 && v && !w
174
+ enabled: !!i && h.length > 0 && v && !F
175
175
  });
176
- P(
176
+ J(
177
177
  (a) => {
178
178
  a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
179
179
  (y) => h.includes(y)
@@ -182,56 +182,56 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
182
182
  [i, $]
183
183
  ), L(() => {
184
184
  N && m({
185
- title: u("ERROR_DEFAULT_TITLE"),
186
- message: u("ERROR_FETCHING_OBSERVATIONS"),
185
+ title: c("ERROR_DEFAULT_TITLE"),
186
+ message: c("ERROR_FETCHING_OBSERVATIONS"),
187
187
  type: "error"
188
188
  });
189
189
  }, [N]);
190
190
  const I = g(() => {
191
191
  if (!_) return [];
192
192
  let a = W(_);
193
- e === "latest-encounter" && (a = J(a));
194
- const y = Y(a);
195
- return X(y);
196
- }, [_, e]), k = [
193
+ e === "latest-encounter" && (a = P(a));
194
+ const y = X(a);
195
+ return Z(y);
196
+ }, [_, e]), K = [
197
197
  { key: "name", header: "name" },
198
198
  { key: "value", header: "value" },
199
199
  { key: "form", header: "form" }
200
- ], A = F || !v, D = N && v, q = (!_ || _.entry?.length === 0 || h.length === 0) && v, x = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, C = q ? u("NO_OBSERVATIONS_FOUND") : void 0, K = I.length > 0 && !A && !D, E = d.titleTranslationKey, f = E ? u(E) : "";
200
+ ], A = w || !v, D = N && v, q = (!_ || _.entry?.length === 0 || h.length === 0) && v, Q = D ? c("ERROR_FETCHING_OBSERVATIONS") : null, C = q ? c("NO_OBSERVATIONS_FOUND") : void 0, M = I.length > 0 && !A && !D, T = d.titleTranslationKey, f = T ? c(T) : "";
201
201
  return /* @__PURE__ */ S(
202
202
  "div",
203
203
  {
204
204
  id: "observations",
205
- "data-testid": E ? `observations-${f}` : "observations",
205
+ "data-testid": T ? `observations-${f}` : "observations",
206
206
  "aria-label": "observations-aria-label",
207
- className: O.observations,
207
+ className: R.observations,
208
208
  children: [
209
209
  /* @__PURE__ */ n(
210
210
  ee,
211
211
  {
212
212
  id: "observations-title",
213
- testId: E ? `observations-title-${f}` : "observations-title",
213
+ testId: T ? `observations-title-${f}` : "observations-title",
214
214
  title: f,
215
- className: O.title,
215
+ className: R.title,
216
216
  children: /* @__PURE__ */ n("p", { children: f })
217
217
  }
218
218
  ),
219
- K ? /* @__PURE__ */ n(
220
- Oe,
219
+ M ? /* @__PURE__ */ n(
220
+ Re,
221
221
  {
222
222
  groupedData: I,
223
223
  title: f,
224
- hideThumbnail: r
224
+ hideThumbnail: t
225
225
  }
226
226
  ) : /* @__PURE__ */ n(
227
227
  ae,
228
228
  {
229
- headers: k,
229
+ headers: K,
230
230
  rows: [],
231
- ariaLabel: u("OBSERVATIONS"),
231
+ ariaLabel: c("OBSERVATIONS"),
232
232
  loading: A,
233
- errorStateMessage: x,
234
- emptyStateMessage: C ?? u("NO_OBSERVATIONS_AVAILABLE"),
233
+ errorStateMessage: Q,
234
+ emptyStateMessage: C ?? c("NO_OBSERVATIONS_AVAILABLE"),
235
235
  dataTestId: "observations-table"
236
236
  }
237
237
  )
@@ -240,7 +240,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
240
240
  );
241
241
  };
242
242
  export {
243
- Re as conceptUuidQueryKeys,
243
+ Oe as conceptUuidQueryKeys,
244
244
  Se as default,
245
245
  _e as observationsQueryKeys
246
246
  };
@@ -1,4 +1,4 @@
1
- import { cp as we, cq as z, cr as xt, cs as B, cn as q, co as y, ct as Ro, cu as ye, cv as R, cw as _, cx as k, cy as N, cz as A, cA as bs, cB as ir, cC as $e, cD as U, cE as Hn, cF as Vn, cG as dt, cH as D, cI as xs, cJ as cn, cK as Be, cL as ws, cM as qt, cN as zt, cO as $s, cP as Cs, cQ as $n, cR as Ss, cS as Nr, cT as Bt, cU as zo, cV as ks, cW as Es, cX as j, cY as Ur, cZ as Ms, c_ as Ds, c$ as sr, d0 as As, d1 as Ts, d2 as zn, d3 as Fs, d4 as Is, d5 as Z, d6 as Ps, d7 as Ls } from "./index-ZfyzcWgS.js";
1
+ import { cx as we, cy as z, cz as xt, cA as B, cv as q, cw as y, cB as Ro, cC as ye, cD as R, cE as _, cF as k, cG as N, cH as A, cI as bs, cJ as ir, cK as $e, cL as U, cM as Hn, cN as Vn, cO as dt, cP as D, cQ as xs, cR as cn, cS as Be, cT as ws, cU as qt, cV as zt, cW as $s, cX as Cs, cY as $n, cZ as Ss, c_ as Nr, c$ as Bt, d0 as zo, d1 as ks, d2 as Es, d3 as j, d4 as Ur, d5 as Ms, d6 as Ds, d7 as sr, d8 as As, d9 as Ts, da as zn, db as Fs, dc as Is, dd as Z, de as Ps, df as Ls } from "./index-z270S3eE.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgTrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiTrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { ObservationForm, Form2Observation, ConsultationEventPayload } from '@bahmni/services';
2
2
  import { Reference } from 'fhir/r4';
3
3
  import { default as React } from 'react';
4
- import { VALIDATION_STATE_EMPTY, VALIDATION_STATE_MANDATORY, VALIDATION_STATE_INVALID, VALIDATION_STATE_SCRIPT_ERROR } from '../../../constants/forms';
4
+ import { VALIDATION_STATE_EMPTY, VALIDATION_STATE_MANDATORY, VALIDATION_STATE_INVALID, VALIDATION_STATE_SCRIPT_ERROR, VALIDATION_STATE_NOTES_REQUIRED } from '../../../constants/forms';
5
5
  interface ObservationFormsContainerProps {
6
6
  onViewingFormChange: (viewingForm: ObservationForm | null) => void;
7
7
  viewingForm?: ObservationForm | null;
8
8
  onRemoveForm?: (formUuid: string) => void;
9
- onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationErrorType?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR, basedOn?: Reference) => void;
9
+ onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationErrorType?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR | typeof VALIDATION_STATE_NOTES_REQUIRED, basedOn?: Reference) => void;
10
10
  existingObservations?: Form2Observation[];
11
11
  directMode?: boolean;
12
12
  onDirectModeSubmit?: () => void | Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAchB,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAa,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAuBlC,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA2nBvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAchB,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAa,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,0BAA0B,CAAC;AAyBlC,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,GACpC,OAAO,+BAA+B,EAC1C,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAkoBvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
@@ -12,4 +12,5 @@ export declare const VALIDATION_STATE_EMPTY = "empty";
12
12
  export declare const VALIDATION_STATE_MANDATORY = "mandatory";
13
13
  export declare const VALIDATION_STATE_INVALID = "invalid";
14
14
  export declare const VALIDATION_STATE_SCRIPT_ERROR = "script_error";
15
+ export declare const VALIDATION_STATE_NOTES_REQUIRED = "notes_required";
15
16
  //# sourceMappingURL=forms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,0BAA0B,cAAc,CAAC;AACtD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,6BAA6B,iBAAiB,CAAC"}
1
+ {"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,0BAA0B,cAAc,CAAC;AACtD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,+BAA+B,mBAAmB,CAAC"}
@@ -1,12 +1,12 @@
1
- import { ck as i, cl as o } from "./index-ZfyzcWgS.js";
1
+ import { cs as i, ct as o } from "./index-z270S3eE.js";
2
2
  import "react/jsx-runtime";
3
3
  import "@tanstack/react-query";
4
4
  import "react";
5
- const r = i(
5
+ const a = i(
6
6
  o,
7
7
  "useClinicalConfig",
8
8
  "ClinicalConfigProvider"
9
9
  );
10
10
  export {
11
- r as u
11
+ a as u
12
12
  };
@@ -1,43 +1,43 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a as g, Z as u, c7 as f, ch as _, ci as p, cj as x, a_ as h, cd as N } from "./index-ZfyzcWgS.js";
2
+ import { u as g, p as u, cf as p, cp as f, cq as x, cr as _, b6 as N, cl as h } from "./index-z270S3eE.js";
3
3
  import "@tanstack/react-query";
4
4
  import { lazy as b, useMemo as t, Suspense as C } from "react";
5
- import { u as E } from "./hook-DxwMFCWH.js";
5
+ import { u as E } from "./hook-Ca7ypArY.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": b(
8
- () => import("./index-C4WckLEf.js")
8
+ () => import("./index-DZlx8UoV.js")
9
9
  )
10
- }, I = "index-module_page__16xxw", y = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
10
+ }, I = "index-module_page__16xxw", P = "index-module_loading__wNI-4", v = "index-module_message__Ib5Iw", l = {
11
11
  page: I,
12
- loading: y,
13
- message: P
12
+ loading: P,
13
+ message: v
14
14
  }, T = () => {
15
- const { t: i } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
15
+ const { t: a } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
16
16
  () => [
17
- { id: "home", label: i("HOME_LABEL"), href: f },
18
- { id: "clinical", label: i("CLINICAL_LABEL"), isCurrentPage: !0 }
17
+ { id: "home", label: a("HOME_LABEL"), href: p },
18
+ { id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
19
19
  ],
20
- [i]
20
+ [a]
21
21
  ), c = t(
22
- () => _(o?.extensions ?? []),
22
+ () => f(o?.extensions ?? []),
23
23
  [o]
24
24
  ), d = t(
25
- () => Array.from(c.entries()).map(([e, a]) => ({
25
+ () => Array.from(c.entries()).map(([e, i]) => ({
26
26
  pointId: e,
27
27
  Handler: L[e],
28
- filtered: p(
29
- a,
28
+ filtered: x(
29
+ i,
30
30
  r
31
31
  ).filter(
32
32
  (n) => !!n.extensionParams && "searchHandler" in n.extensionParams
33
33
  )
34
- })).filter(({ Handler: e, filtered: a }) => !!e && a.length > 0),
34
+ })).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
35
35
  [c, r]
36
36
  );
37
37
  return /* @__PURE__ */ s(
38
- x,
38
+ _,
39
39
  {
40
- header: /* @__PURE__ */ s(N, { breadcrumbItems: m }),
40
+ header: /* @__PURE__ */ s(h, { breadcrumbItems: m }),
41
41
  main: /* @__PURE__ */ s(
42
42
  "div",
43
43
  {
@@ -45,7 +45,7 @@ const L = {
45
45
  "data-testid": "clinical-list-page-test-id",
46
46
  "aria-label": "Clinical List Page",
47
47
  className: l.page,
48
- children: d.length > 0 ? d.map(({ pointId: e, Handler: a, filtered: n }) => /* @__PURE__ */ s(
48
+ children: d.length > 0 ? d.map(({ pointId: e, Handler: i, filtered: n }) => /* @__PURE__ */ s(
49
49
  "div",
50
50
  {
51
51
  id: e,
@@ -54,13 +54,13 @@ const L = {
54
54
  C,
55
55
  {
56
56
  fallback: /* @__PURE__ */ s(
57
- h,
57
+ N,
58
58
  {
59
59
  type: "multi",
60
60
  className: l.loading
61
61
  }
62
62
  ),
63
- children: /* @__PURE__ */ s(a, { extensions: n })
63
+ children: /* @__PURE__ */ s(i, { extensions: n })
64
64
  }
65
65
  )
66
66
  },
@@ -72,7 +72,7 @@ const L = {
72
72
  "data-testid": "no-extensions-configured-test-id",
73
73
  "aria-label": "No extensions configured",
74
74
  className: l.message,
75
- children: i("NO_EXTENSIONS_CONFIGURED")
75
+ children: a("NO_EXTENSIONS_CONFIGURED")
76
76
  }
77
77
  )
78
78
  }
@@ -1,12 +1,12 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { a as r, d8 as l, d9 as o, da as c, bw as m, bx as b, db as h, dc as g, dd as p, a_ as _ } from "./index-ZfyzcWgS.js";
2
+ import { u as r, dg as l, dh as o, di as c, bE as m, bF as g, dj as h, dk as p, dl as b, b6 as u } from "./index-z270S3eE.js";
3
3
  import "@tanstack/react-query";
4
- import { Suspense as u } from "react";
5
- const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f = "index-module_panel__8VJh2", s = {
4
+ import { Suspense as _ } from "react";
5
+ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", S = "index-module_panel__8VJh2", s = {
6
6
  loading: E,
7
7
  message: $,
8
- panel: f
9
- }, y = ({ extensions: i }) => {
8
+ panel: S
9
+ }, T = ({ extensions: i }) => {
10
10
  const { t: n } = r();
11
11
  return i.length === 0 ? null : /* @__PURE__ */ t(l, { children: [
12
12
  /* @__PURE__ */ e(
@@ -28,7 +28,7 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f =
28
28
  testId: `${a.id}-icon-test-id`,
29
29
  ariaLabel: `Icon ${a.id}`,
30
30
  name: a.icon,
31
- size: b.SM
31
+ size: g.SM
32
32
  }
33
33
  ) : void 0,
34
34
  children: n(a.translationKey)
@@ -38,21 +38,21 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f =
38
38
  }
39
39
  ),
40
40
  /* @__PURE__ */ e(h, { children: i.map((a) => {
41
- const d = g(
41
+ const d = p(
42
42
  a.extensionParams?.searchHandler ?? ""
43
43
  )?.component;
44
44
  return /* @__PURE__ */ e(
45
- p,
45
+ b,
46
46
  {
47
47
  id: `${a.id}-panel`,
48
48
  className: s.panel,
49
49
  "data-testid": `${a.id}-panel-test-id`,
50
50
  "aria-label": `Panel ${a.id}`,
51
51
  children: d && a.extensionParams ? /* @__PURE__ */ e(
52
- u,
52
+ _,
53
53
  {
54
54
  fallback: /* @__PURE__ */ e(
55
- _,
55
+ u,
56
56
  {
57
57
  type: "multi",
58
58
  className: s.loading
@@ -77,5 +77,5 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f =
77
77
  ] });
78
78
  };
79
79
  export {
80
- y as default
80
+ T as default
81
81
  };