@bahmni/clinical-app 0.0.1-dev.152 → 0.0.1-dev.154

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.
@@ -0,0 +1,423 @@
1
+ import { jsx as s, jsxs as p, Fragment as P } from "react/jsx-runtime";
2
+ import { u as ee, h as re, w as ae, a as te, b as C, e as oe, i as ne, C as se, z as U, Y as de, G as me, c as ie, d as le, V as q, f as ce, g as ue, j as A, P as be, M as pe, x as _e, F as fe, k as $e, W as he, K as ve, U as ge } from "./index-stDG41fx.js";
3
+ import { useState as K, useMemo as g, useCallback as L } from "react";
4
+ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Le = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Fe = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Re = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Oe = "_rowValue_1pd36_67", Ie = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", xe = "_abnormalValue_1pd36_102", De = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
5
+ formsTableBody: Ne,
6
+ customAccordianItem: ye,
7
+ formContent: Ce,
8
+ formDetailsContainer: Le,
9
+ observation: Ae,
10
+ groupContainer: Fe,
11
+ rowContainer: Me,
12
+ groupLabel: Re,
13
+ rowLabel: Ve,
14
+ rowValue: Oe,
15
+ groupMembers: Ie,
16
+ memberRow: Te,
17
+ memberLabel: Se,
18
+ memberValue: we,
19
+ abnormalValue: xe,
20
+ commentSection: De,
21
+ commentText: Ee,
22
+ nestedGroup: Ge,
23
+ nestedGroupLabel: Be,
24
+ nestedGroupMembers: Ue
25
+ }, k = (e) => {
26
+ const r = be(e);
27
+ return r === "Image" ? /* @__PURE__ */ s(
28
+ pe,
29
+ {
30
+ imageSrc: e,
31
+ alt: e,
32
+ id: `${e}-img`
33
+ }
34
+ ) : r === "Video" ? /* @__PURE__ */ s(_e, { id: `${e}-video`, videoSrc: e }) : e;
35
+ }, j = (e) => {
36
+ const r = e.observationValue?.unit, n = e.observationValue?.referenceRange?.low?.value, a = e.observationValue?.referenceRange?.high?.value, d = n != null, c = a != null, m = d && c ? ` (${n} - ${a})` : d ? ` (>${n})` : c ? ` (<${a})` : "", t = e.observationValue?.isAbnormal === !0;
37
+ return { units: r, rangeString: m, isAbnormal: t };
38
+ }, H = ({
39
+ member: e,
40
+ depth: r = 0,
41
+ memberIndex: n = 0,
42
+ formName: a = "",
43
+ comment: d
44
+ }) => {
45
+ const c = e.members && e.members.length > 0, m = e.display, t = a ? `${a}-` : "";
46
+ if (c)
47
+ return /* @__PURE__ */ p(
48
+ "div",
49
+ {
50
+ className: o.nestedGroup,
51
+ "data-testid": `${t}obs-nested-group-${m}-${n}`,
52
+ children: [
53
+ /* @__PURE__ */ s(
54
+ "div",
55
+ {
56
+ className: o.nestedGroupLabel,
57
+ "data-testid": `${t}obs-nested-group-label-${m}-${n}`,
58
+ style: { paddingLeft: `${r * 16}px` },
59
+ children: m
60
+ }
61
+ ),
62
+ /* @__PURE__ */ s(
63
+ "div",
64
+ {
65
+ className: o.nestedGroupMembers,
66
+ "data-testid": `${t}obs-nested-group-members-${m}-${n}`,
67
+ children: e.members?.map((N, y) => /* @__PURE__ */ s(
68
+ H,
69
+ {
70
+ member: N,
71
+ depth: r + 1,
72
+ memberIndex: y,
73
+ formName: a
74
+ },
75
+ `${N.id}`
76
+ ))
77
+ }
78
+ )
79
+ ]
80
+ }
81
+ );
82
+ const { units: b, rangeString: h, isAbnormal: _ } = j(e), f = e.observationValue?.value?.toString(), $ = f ? k(f) : null;
83
+ return /* @__PURE__ */ p(P, { children: [
84
+ /* @__PURE__ */ p(
85
+ "div",
86
+ {
87
+ className: o.memberRow,
88
+ "data-testid": `${t}obs-member-row-${m}-${n}`,
89
+ style: { paddingLeft: `${r * 16}px` },
90
+ children: [
91
+ /* @__PURE__ */ p(
92
+ "p",
93
+ {
94
+ className: A(
95
+ o.memberLabel,
96
+ _ ? o.abnormalValue : ""
97
+ ),
98
+ "data-testid": `${t}obs-member-label-${m}-${n}`,
99
+ children: [
100
+ m,
101
+ h
102
+ ]
103
+ }
104
+ ),
105
+ /* @__PURE__ */ p(
106
+ "div",
107
+ {
108
+ className: A(
109
+ o.memberValue,
110
+ _ ? o.abnormalValue : ""
111
+ ),
112
+ "data-testid": `${t}obs-member-value-${m}-${n}`,
113
+ children: [
114
+ $,
115
+ b && ` ${b}`
116
+ ]
117
+ }
118
+ )
119
+ ]
120
+ }
121
+ ),
122
+ d && /* @__PURE__ */ s(
123
+ "div",
124
+ {
125
+ className: o.commentSection,
126
+ "data-testid": `${t}obs-member-comment-${m}-${n}`,
127
+ style: { paddingLeft: `${r * 16}px` },
128
+ children: /* @__PURE__ */ p("span", { className: o.commentText, children: [
129
+ d,
130
+ e.encounter?.provider && ` - by ${e.encounter.provider}`
131
+ ] })
132
+ }
133
+ )
134
+ ] });
135
+ }, qe = ({
136
+ observation: e,
137
+ index: r,
138
+ formName: n = "",
139
+ comment: a
140
+ }) => {
141
+ const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = j(e), b = n ? `${n}-` : "", h = e.observationValue?.value?.toString(), _ = h ? k(h) : null;
142
+ return /* @__PURE__ */ p(
143
+ "div",
144
+ {
145
+ className: o.observation,
146
+ "data-testid": `${b}observation-item-${e.display}-${r}`,
147
+ children: [
148
+ /* @__PURE__ */ p(
149
+ "div",
150
+ {
151
+ className: d ? o.groupContainer : o.rowContainer,
152
+ "data-testid": `${b}observation-container-${e.display}-${r}`,
153
+ children: [
154
+ /* @__PURE__ */ p(
155
+ "p",
156
+ {
157
+ className: A(
158
+ d ? o.groupLabel : o.rowLabel,
159
+ !d && t ? o.abnormalValue : ""
160
+ ),
161
+ "data-testid": `${b}observation-label-${e.display}-${r}`,
162
+ children: [
163
+ e.display,
164
+ !d && m && /* @__PURE__ */ s("span", { className: o.rangeInfo, children: m })
165
+ ]
166
+ }
167
+ ),
168
+ d ? /* @__PURE__ */ s(
169
+ "div",
170
+ {
171
+ className: o.groupMembers,
172
+ "data-testid": `${b}observation-group-members-${e.display}-${r}`,
173
+ children: e.members?.map((f, $) => /* @__PURE__ */ s(
174
+ H,
175
+ {
176
+ member: f,
177
+ depth: 0,
178
+ memberIndex: $,
179
+ formName: n
180
+ },
181
+ `${f.id}`
182
+ ))
183
+ }
184
+ ) : /* @__PURE__ */ p(
185
+ "div",
186
+ {
187
+ className: A(
188
+ o.rowValue,
189
+ t ? o.abnormalValue : ""
190
+ ),
191
+ "data-testid": `${b}observation-value-${e.display}-${r}`,
192
+ children: [
193
+ _,
194
+ c && ` ${c}`
195
+ ]
196
+ }
197
+ )
198
+ ]
199
+ }
200
+ ),
201
+ a && /* @__PURE__ */ s(
202
+ "div",
203
+ {
204
+ className: o.commentSection,
205
+ "data-testid": `${b}observation-comment-${e.display}-${r}`,
206
+ children: /* @__PURE__ */ p("span", { className: o.commentText, children: [
207
+ a,
208
+ e.encounter?.provider && ` - by ${e.encounter.provider}`
209
+ ] })
210
+ }
211
+ )
212
+ ]
213
+ },
214
+ `${e.id}-${r}`
215
+ );
216
+ }, Ke = (e) => e ? e.extension?.find(
217
+ (r) => r.url === fe
218
+ )?.valueString : void 0, Pe = (e) => {
219
+ if (e)
220
+ return e.note?.[0]?.text;
221
+ }, ke = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, V = (e, r) => {
222
+ const n = ke(e, r);
223
+ return n ? {
224
+ formFieldPath: Ke(n),
225
+ comment: Pe(n)
226
+ } : {};
227
+ }, je = (e, r) => {
228
+ if (!e?.entry || !r)
229
+ return [];
230
+ const n = ce(e);
231
+ return [
232
+ ...n.observations.map((a) => {
233
+ const { formFieldPath: d, comment: c } = V(
234
+ e,
235
+ a.id
236
+ );
237
+ return { obs: a, formFieldPath: d, comment: c };
238
+ }),
239
+ ...n.groupedObservations.flatMap((a) => {
240
+ const { formFieldPath: d } = V(e, a.id);
241
+ return (a.members ?? []).map((c) => {
242
+ const { comment: m } = V(e, c.id);
243
+ return { obs: c, formFieldPath: d, comment: m };
244
+ });
245
+ })
246
+ ].filter(
247
+ ({ formFieldPath: a }) => !a || a.includes(r)
248
+ );
249
+ }, Qe = ({
250
+ episodeOfCareUuids: e,
251
+ encounterUuids: r,
252
+ config: n
253
+ }) => {
254
+ const { t: a } = ee(), d = re(), [c, m] = K(!1), [t, b] = K(null), h = n?.numberOfVisits, _ = ae(
255
+ e,
256
+ r
257
+ ), f = te(), {
258
+ data: $ = [],
259
+ isLoading: N,
260
+ isError: y,
261
+ error: Y,
262
+ refetch: z
263
+ } = C({
264
+ queryKey: ["forms", d, e],
265
+ queryFn: () => $e(d, void 0, h),
266
+ enabled: !!d && !_
267
+ }), O = g(() => !r || r.length === 0 ? $ : $.filter(
268
+ (i) => r.includes(i.encounterUuid)
269
+ ), [$, r]), { data: I = [] } = C({
270
+ queryKey: ["observationForms"],
271
+ queryFn: () => he()
272
+ }), T = L(
273
+ (i) => I.find((u) => u.name === i)?.uuid,
274
+ [I]
275
+ ), F = g(() => {
276
+ if (t)
277
+ return T(t.formName);
278
+ }, [t, T]), { isLoading: Q, error: S } = C({
279
+ queryKey: ["formMetadata", F],
280
+ queryFn: () => ve(F),
281
+ enabled: !!F && c
282
+ }), {
283
+ data: M,
284
+ isLoading: W,
285
+ error: w
286
+ } = C({
287
+ queryKey: ["formsEncounterFHIR", t?.encounterUuid],
288
+ queryFn: () => ge(t.encounterUuid),
289
+ enabled: !!t?.encounterUuid && c
290
+ });
291
+ oe(
292
+ (i) => {
293
+ i.patientUUID === d && i.updatedConcepts.size > 0 && (z(), f.invalidateQueries({ queryKey: ["formsEncounter"] }));
294
+ },
295
+ [d]
296
+ );
297
+ const x = g(() => !M || !t?.formName ? [] : je(
298
+ M,
299
+ t.formName
300
+ ), [M, t?.formName]), D = g(
301
+ () => [
302
+ { key: "recordedOn", header: a("FORM_RECORDED_ON") },
303
+ { key: "recordedBy", header: a("FORM_RECORDED_BY") }
304
+ ],
305
+ [a]
306
+ ), X = g(
307
+ () => [
308
+ { key: "recordedOn", sortable: !0 },
309
+ { key: "recordedBy", sortable: !0 }
310
+ ],
311
+ []
312
+ ), E = g(() => {
313
+ const i = O.reduce(
314
+ (u, l) => {
315
+ const v = l.formName;
316
+ u[v] ??= [];
317
+ const R = l.providers.map((Z) => Z.providerName).filter(Boolean).join(", ");
318
+ return u[v].push({
319
+ id: l.encounterUuid,
320
+ formName: l.formName,
321
+ recordedOn: ne(l.encounterDateTime, a, ue).formattedResult,
322
+ recordedBy: R ?? "--",
323
+ encounterDateTime: l.encounterDateTime,
324
+ encounterUuid: l.encounterUuid
325
+ }), u;
326
+ },
327
+ {}
328
+ );
329
+ return Object.entries(i).map(
330
+ ([u, l]) => ({
331
+ formName: u,
332
+ records: l.sort(
333
+ (v, R) => R.encounterDateTime - v.encounterDateTime
334
+ )
335
+ })
336
+ ).sort((u, l) => u.formName.localeCompare(l.formName));
337
+ }, [O, a]), G = L((i) => {
338
+ b(i), m(!0);
339
+ }, []), J = L(() => {
340
+ m(!1), b(null);
341
+ }, []), B = L(
342
+ (i, u) => {
343
+ switch (u) {
344
+ case "recordedOn":
345
+ return /* @__PURE__ */ s(se, { onClick: () => G(i), children: i.recordedOn });
346
+ case "recordedBy":
347
+ return i.recordedBy;
348
+ default:
349
+ return null;
350
+ }
351
+ },
352
+ [G]
353
+ );
354
+ return /* @__PURE__ */ p(P, { children: [
355
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: N || y || E.length === 0 || _ ? /* @__PURE__ */ s(
356
+ U,
357
+ {
358
+ headers: D,
359
+ ariaLabel: a("FORMS_HEADING"),
360
+ rows: [],
361
+ loading: N,
362
+ errorStateMessage: y ? Y?.message : void 0,
363
+ emptyStateMessage: a("FORMS_UNAVAILABLE"),
364
+ renderCell: B,
365
+ className: o.formsTableBody,
366
+ dataTestId: "forms-table"
367
+ }
368
+ ) : /* @__PURE__ */ s(de, { align: "start", children: E.map((i, u) => {
369
+ const { formName: l, records: v } = i;
370
+ return /* @__PURE__ */ s(
371
+ me,
372
+ {
373
+ title: l,
374
+ className: o.customAccordianItem,
375
+ testId: `accordian-title-${l}`,
376
+ open: u === 0,
377
+ children: /* @__PURE__ */ s(
378
+ U,
379
+ {
380
+ headers: D,
381
+ ariaLabel: a("FORMS_HEADING"),
382
+ rows: v,
383
+ loading: !1,
384
+ errorStateMessage: "",
385
+ sortable: X,
386
+ emptyStateMessage: a("FORMS_UNAVAILABLE"),
387
+ renderCell: B,
388
+ className: o.formsTableBody,
389
+ dataTestId: `forms-table-${l}`
390
+ }
391
+ )
392
+ },
393
+ l
394
+ );
395
+ }) }) }),
396
+ c && t && /* @__PURE__ */ s(
397
+ ie,
398
+ {
399
+ id: "modalIdForActionAreaLayout",
400
+ open: c,
401
+ onRequestClose: J,
402
+ modalHeading: t.formName,
403
+ modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
404
+ passiveModal: !0,
405
+ size: "md",
406
+ testId: "form-details-modal",
407
+ children: /* @__PURE__ */ s("div", { className: o.formContent, children: Q || W ? /* @__PURE__ */ s(le, { width: "100%", lineCount: 3 }) : S ? /* @__PURE__ */ s("div", { children: q(S).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ s("div", { children: q(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : x.length > 0 ? /* @__PURE__ */ s("div", { className: o.formDetailsContainer, children: x.map(({ obs: i, comment: u }, l) => /* @__PURE__ */ s(
408
+ qe,
409
+ {
410
+ observation: i,
411
+ index: l,
412
+ formName: t.formName,
413
+ comment: u
414
+ },
415
+ `${i.id}`
416
+ )) }) : /* @__PURE__ */ s("div", { children: a("NO_FORM_DATA_AVAILABLE") }) })
417
+ }
418
+ )
419
+ ] });
420
+ };
421
+ export {
422
+ Qe as default
423
+ };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DM4vxIO7.js";
2
- import { o as d, r as f, s as e } from "./index-BPwSmRKH.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BJExYDyP.js";
2
+ import { o as d, r as f, s as e } from "./index-stDG41fx.js";
3
3
  var p = (a) => {
4
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-DM4vxIO7.js";
2
- import { o as v, r as C, s as e } from "./index-BPwSmRKH.js";
1
+ import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BJExYDyP.js";
2
+ import { o as v, r as C, s as e } from "./index-stDG41fx.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,15 +1,15 @@
1
1
  import { jsxs as I, jsx as c } from "react/jsx-runtime";
2
- import { h as q, p as B, u as N, j as Q, k as x, b as H, e as K, l as M, Q as j, m as w, n as G, A as P, J as X, H as S, X as J, P as Y, L as z, M as W, x as Z, F as ee } from "./index-BPwSmRKH.js";
2
+ import { h as k, p as B, u as N, l as Q, m as x, b as H, e as K, f as M, n as j, t as w, A as z, z as G, X as P, H as S, Q as X, P as Y, L as J, M as W, x as Z, q as ee } from "./index-stDG41fx.js";
3
3
  import { useRef as te, useEffect as T, useMemo as h } from "react";
4
4
  const A = (t, d, i, l, s) => {
5
- const a = J(t, d), r = a.value, o = Y(r);
5
+ const a = X(t, d), r = a.value, o = Y(r);
6
6
  let n = r;
7
7
  o === "Image" && (n = /* @__PURE__ */ c(W, { imageSrc: r, alt: r, id: `${r}-img` })), o === "Video" && (n = /* @__PURE__ */ c(Z, { id: `${r}-video`, videoSrc: r }));
8
8
  const b = s("OBSERVATIONS_RECORDED_BY", {
9
9
  provider: a.provider
10
10
  }), m = t.display, v = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", u = l ? `${l}-${v}-${m}-${i}-${d}` : `${v}-${m}-${i}-${d}`;
11
11
  return /* @__PURE__ */ c(
12
- z,
12
+ J,
13
13
  {
14
14
  header: a.header,
15
15
  value: n,
@@ -36,7 +36,7 @@ const A = (t, d, i, l, s) => {
36
36
  title: d = ""
37
37
  }) => {
38
38
  const { t: i } = N(), l = (s, a, r) => {
39
- const o = X(s.encounterDetails, i);
39
+ const o = P(s.encounterDetails, i);
40
40
  return /* @__PURE__ */ I(
41
41
  S,
42
42
  {
@@ -77,7 +77,7 @@ const A = (t, d, i, l, s) => {
77
77
  observations: re,
78
78
  title: oe
79
79
  }, ie = (t) => ["conceptUuid", t], ne = (t, d) => ["observations", t, ...d], ce = ({ config: t }) => {
80
- const d = t, { conceptNames: i = [], conceptUuid: l = [] } = d, s = te(/* @__PURE__ */ new Set()), a = q(), { addNotification: r } = B(), { t: o } = N(), n = Q({
80
+ const d = t, { conceptNames: i = [], conceptUuid: l = [] } = d, s = te(/* @__PURE__ */ new Set()), a = k(), { addNotification: r } = B(), { t: o } = N(), n = Q({
81
81
  queries: i.map((e) => ({
82
82
  queryKey: ie(e),
83
83
  queryFn: () => x(e),
@@ -98,7 +98,7 @@ const A = (t, d, i, l, s) => {
98
98
  }, [n, i]);
99
99
  const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), m = h(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = h(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
100
100
  data: u,
101
- isLoading: F,
101
+ isLoading: L,
102
102
  isError: R,
103
103
  refetch: g
104
104
  } = H({
@@ -124,11 +124,11 @@ const A = (t, d, i, l, s) => {
124
124
  if (!u) return [];
125
125
  const e = M(u), p = j(e);
126
126
  return w(p);
127
- }, [u]), L = [
127
+ }, [u]), D = [
128
128
  { key: "name", header: "name" },
129
129
  { key: "value", header: "value" },
130
130
  { key: "form", header: "form" }
131
- ], O = F || !v, _ = R && v, D = (!u || u.entry?.length === 0 || m.length === 0) && v, U = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, k = D ? o("NO_OBSERVATIONS_FOUND") : void 0, C = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
131
+ ], O = L || !v, _ = R && v, q = (!u || u.entry?.length === 0 || m.length === 0) && v, F = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0, C = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
132
132
  return /* @__PURE__ */ I(
133
133
  "div",
134
134
  {
@@ -138,7 +138,7 @@ const A = (t, d, i, l, s) => {
138
138
  className: $.observations,
139
139
  children: [
140
140
  /* @__PURE__ */ c(
141
- G,
141
+ z,
142
142
  {
143
143
  id: "observations-title",
144
144
  testId: E ? `observations-title-${y}` : "observations-title",
@@ -148,14 +148,14 @@ const A = (t, d, i, l, s) => {
148
148
  }
149
149
  ),
150
150
  C ? /* @__PURE__ */ c(se, { groupedData: f, title: y }) : /* @__PURE__ */ c(
151
- P,
151
+ G,
152
152
  {
153
- headers: L,
153
+ headers: D,
154
154
  rows: [],
155
155
  ariaLabel: o("OBSERVATIONS"),
156
156
  loading: O,
157
- errorStateMessage: U,
158
- emptyStateMessage: k,
157
+ errorStateMessage: F,
158
+ emptyStateMessage: U,
159
159
  dataTestId: "observations-table"
160
160
  }
161
161
  )
@@ -1,4 +1,4 @@
1
- import { t as we, v as z, y as xt, z as B, r as q, s as y, B as Ro, D as ye, S as R, E as _, I as k, N, O as A, R as bs, T as ir, Z as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Os } from "./index-BPwSmRKH.js";
1
+ import { v as we, y as z, B as xt, D as B, r as q, s as y, E as Ro, I as ye, S as R, J as _, N as k, O as N, R as A, T as bs, Z as ir, _ as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Os } from "./index-stDG41fx.js";
2
2
  var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -3,7 +3,7 @@ export declare const FHIR_MEDICATION_EXTENSION_URL = "http://fhir.openmrs.org/ex
3
3
  export declare const FHIR_MEDICATION_NAME_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine#drugName";
4
4
  export declare const FHIR_OBSERVATION_INTERPRETATION_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation";
5
5
  export declare const FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL = "http://fhir.bahmni.org/ext/observation/form-namespace-path";
6
- export declare const FHIR_OBSERVATION_COMPLEX_DATA_URL = "http://fhir.bahmni.org/ext/observation/complex-data";
6
+ export declare const FHIR_OBSERVATION_VALUE_ATTACHMENT_URL = "http://fhir.bahmni.org/ext/observation/obs-value-attachment";
7
7
  export declare const CONCEPT_DATATYPE_NUMERIC = "Numeric";
8
8
  export declare const CONCEPT_DATATYPE_COMPLEX = "Complex";
9
9
  //# sourceMappingURL=fhir.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../src/constants/fhir.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,sDACQ,CAAC;AAEtD,eAAO,MAAM,6BAA6B,yCACF,CAAC;AAEzC,eAAO,MAAM,kCAAkC,kDACE,CAAC;AAElD,eAAO,MAAM,sCAAsC,uEACmB,CAAC;AAEvE,eAAO,MAAM,wCAAwC,+DACS,CAAC;AAE/D,eAAO,MAAM,iCAAiC,wDACS,CAAC;AAExD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,wBAAwB,YAAY,CAAC"}
1
+ {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../src/constants/fhir.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,sDACQ,CAAC;AAEtD,eAAO,MAAM,6BAA6B,yCACF,CAAC;AAEzC,eAAO,MAAM,kCAAkC,kDACE,CAAC;AAElD,eAAO,MAAM,sCAAsC,uEACmB,CAAC;AAEvE,eAAO,MAAM,wCAAwC,+DACS,CAAC;AAE/D,eAAO,MAAM,qCAAqC,gEACa,CAAC;AAEhE,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,wBAAwB,YAAY,CAAC"}