@bahmni/widgets 0.0.1-dev.364 → 0.0.1-dev.366

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as X, m as J, B as Z, N as x, q as ee, F as te } from "./index-D25QZIxn.js";
2
+ import { u as W, a as X, m as J, B as Z, N as x, q as ee, F as te } from "./index-CbeSZAIe.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as G, Fragment as be } from "react/jsx-runtime";
2
- import { u as ye, b as Ne, c as pe, W as Oe, G as Te, d as Ee, z as Fe, A as Ie, i as ve, e as Ae, f as _e, Y as x, N as Re, l as j, $ as K, B as Me, q as Q, T as Be, R as De, F as Ce, O as Le, C as Se } from "./index-D25QZIxn.js";
2
+ import { u as ye, b as Ne, c as pe, W as Oe, G as Te, d as Ee, z as Fe, A as Ie, i as ve, e as Ae, f as _e, Y as x, N as Re, l as j, $ as K, B as Me, q as Q, T as Be, R as De, F as Ce, O as Le, C as Se } from "./index-CbeSZAIe.js";
3
3
  import { useQueryClient as Ue, useQuery as T } from "@tanstack/react-query";
4
4
  import { useState as W, useMemo as d, useCallback as l } from "react";
5
5
  import { useTranslation as we } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as N } from "react/jsx-runtime";
2
- import { g as K, Q as D, t as V, h as q, j as w, k, n as H, o as G, u as P, a as j, p as z, r as J, i as W, s as Y, v as X, w as Z, x, q as ee } from "./index-D25QZIxn.js";
2
+ import { g as K, Q as D, t as V, h as q, j as w, k, n as H, o as G, u as P, a as j, p as z, r as J, i as W, s as Y, v as X, w as Z, x, q as ee } from "./index-CbeSZAIe.js";
3
3
  import { useQueries as te, useQuery as se } from "@tanstack/react-query";
4
4
  import { useRef as oe, useEffect as C, useMemo as g } from "react";
5
5
  import { useTranslation as U } from "react-i18next";
@@ -100331,22 +100331,31 @@ function ZSe(t, e) {
100331
100331
  const i = kSe(n), { issued: s } = n, l = n.performer?.[0].display ?? "-";
100332
100332
  n?.basedOn?.forEach((c) => {
100333
100333
  const u = c.reference?.split("/").pop();
100334
- u && r.set(u, {
100335
- reportId: a,
100336
- attachments: i,
100337
- reportedDate: s,
100338
- reportedBy: l
100339
- });
100334
+ if (u) {
100335
+ const d = {
100336
+ reportId: a,
100337
+ attachments: i,
100338
+ reportedDate: s,
100339
+ reportedBy: l
100340
+ }, m = r.get(u) ?? [];
100341
+ r.set(u, [...m, d]);
100342
+ }
100340
100343
  });
100341
100344
  }), t.map((n) => {
100342
100345
  const a = r.get(n.id);
100343
- return a ? {
100344
- ...n,
100345
- reportId: a.reportId,
100346
- attachments: a.attachments,
100347
- reportedDate: a.reportedDate,
100348
- reportedBy: a.reportedBy
100349
- } : n;
100346
+ if (a && a.length > 0) {
100347
+ const i = a.map((c) => c.reportId), s = a.flatMap(
100348
+ (c) => c.attachments ?? []
100349
+ ), l = a.at(-1);
100350
+ return {
100351
+ ...n,
100352
+ reportIds: i,
100353
+ attachments: s.length > 0 ? s : void 0,
100354
+ reportedDate: l.reportedDate,
100355
+ reportedBy: l.reportedBy
100356
+ };
100357
+ }
100358
+ return n;
100350
100359
  });
100351
100360
  }
100352
100361
  function kSe(t) {
@@ -100375,7 +100384,7 @@ const EBt = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", yBt =
100375
100384
  reportDetails: TBt,
100376
100385
  reportTile: OBt
100377
100386
  }, LBt = ({ investigation: t, headers: e, renderCell: r, showLinkedOrders: n, showReport: a }) => {
100378
- const { t: i } = dt(), s = t.status === "completed", l = !!t.reportId;
100387
+ const { t: i } = dt(), s = t.status === "completed", l = !!t.reportIds?.[0];
100379
100388
  if (!n && !a)
100380
100389
  return null;
100381
100390
  const c = (m) => /* @__PURE__ */ _e(
@@ -100413,7 +100422,12 @@ const EBt = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", yBt =
100413
100422
  " ",
100414
100423
  d
100415
100424
  ] }),
100416
- /* @__PURE__ */ L($Se, { reportId: t.reportId })
100425
+ /* @__PURE__ */ L(
100426
+ $Se,
100427
+ {
100428
+ reportId: t.reportIds?.[0]
100429
+ }
100430
+ )
100417
100431
  ] }) }) })
100418
100432
  ] });
100419
100433
  }, RBt = ({
@@ -100623,8 +100637,8 @@ const PSe = (t) => ["radiologyInvestigation", t], UBt = async (t, e, r, n) => {
100623
100637
  q.imagingStudies
100624
100638
  ), le = k.length > 0 && c, re = !Y;
100625
100639
  let he = !1;
100626
- u && !d ? he = !!q.reportId && re : d || (he = !!q.reportId);
100627
- const me = q.imagingStudies && q.imagingStudies.length > 0 && q.imagingStudies[0]?.id, Ve = (Y ? !!Y.reportId : !!q.reportId) && me;
100640
+ u && !d ? he = !!q.reportIds?.[0] && re : d || (he = !!q.reportIds?.[0]);
100641
+ const me = q.imagingStudies && q.imagingStudies.length > 0 && q.imagingStudies[0]?.id, Ve = (Y ? !!Y.reportIds?.[0] : !!q.reportIds?.[0]) && me;
100628
100642
  return le || he || Ve ? /* @__PURE__ */ _e(
100629
100643
  "div",
100630
100644
  {
@@ -100780,7 +100794,7 @@ const PSe = (t) => ["radiologyInvestigation", t], UBt = async (t, e, r, n) => {
100780
100794
  }
100781
100795
  );
100782
100796
  const J = g?.reportedDate && gt(g.reportedDate, a, !0).formattedResult, G = b && gt(b, a, !0).formattedResult, $ = g?.reportedBy, te = (q) => {
100783
- const Y = q.linkedOrders && q.linkedOrders.length > 0, k = q.status === "completed", le = !!q.reportId, re = u && Y, he = d && k && le;
100797
+ const Y = q.linkedOrders && q.linkedOrders.length > 0, k = q.status === "completed", le = !!q.reportIds?.[0], re = u && Y, he = d && k && le;
100784
100798
  return !re && !he ? null : /* @__PURE__ */ L(
100785
100799
  LBt,
100786
100800
  {
@@ -100850,7 +100864,7 @@ const PSe = (t) => ["radiologyInvestigation", t], UBt = async (t, e, r, n) => {
100850
100864
  k
100851
100865
  );
100852
100866
  }) }),
100853
- g && E === "report" && /* @__PURE__ */ L(
100867
+ g?.reportIds?.[0] && E === "report" && /* @__PURE__ */ L(
100854
100868
  pr,
100855
100869
  {
100856
100870
  open: !!g,
@@ -100867,7 +100881,7 @@ const PSe = (t) => ["radiologyInvestigation", t], UBt = async (t, e, r, n) => {
100867
100881
  children: /* @__PURE__ */ L(pr.Body, { children: /* @__PURE__ */ L(
100868
100882
  $Se,
100869
100883
  {
100870
- reportId: g.reportId
100884
+ reportId: g.reportIds[0]
100871
100885
  }
100872
100886
  ) })
100873
100887
  }
@@ -101059,21 +101073,21 @@ function VPt(t, e) {
101059
101073
  const HPt = ({
101060
101074
  test: t,
101061
101075
  isOpen: e,
101062
- hasProcessedReport: r,
101063
- reportId: n
101076
+ hasProcessedReport: r
101064
101077
  }) => {
101065
- const { t: a } = dt(), [i, s] = ve(!1), {
101078
+ const { t: n } = dt(), [a, i] = ve(!1), s = t.reportIds ?? [], {
101066
101079
  data: l,
101067
101080
  isLoading: c,
101068
101081
  isError: u
101069
101082
  } = Wt({
101070
- queryKey: ["diagnosticReportBundle", n],
101071
- queryFn: () => wDe(n),
101072
- enabled: e && r && !!n
101073
- }), d = Ze(() => {
101074
- if (l)
101075
- return VPt(l, a);
101076
- }, [l, a]), m = Array.isArray(d) && d.length > 0, w = Ze(() => !m || !d ? [] : d.map((v, y) => ({
101083
+ queryKey: ["diagnosticReportBundles", s],
101084
+ queryFn: async () => await Promise.all(
101085
+ s.map((y) => wDe(y))
101086
+ ),
101087
+ enabled: e && r && s.length > 0
101088
+ }), d = Ze(() => !l || l.length === 0 ? void 0 : l.flatMap(
101089
+ (y) => VPt(y, n) ?? []
101090
+ ), [l, n]), m = Array.isArray(d) && d.length > 0, w = Ze(() => !m || !d ? [] : d.map((v, y) => ({
101077
101091
  id: `${t.id}-${y}`,
101078
101092
  testName: v.TestName,
101079
101093
  value: v.value,
@@ -101084,12 +101098,12 @@ const HPt = ({
101084
101098
  interpretation: v.interpretation
101085
101099
  })), [m, d, t.id]), g = Ze(
101086
101100
  () => [
101087
- { key: "testName", header: a("LAB_TEST_NAME") },
101088
- { key: "result", header: a("LAB_TEST_RESULT") },
101089
- { key: "referenceRange", header: a("LAB_TEST_REFERENCE_RANGE") },
101090
- { key: "reportedOn", header: a("LAB_TEST_REPORTED_ON") }
101101
+ { key: "testName", header: n("LAB_TEST_NAME") },
101102
+ { key: "result", header: n("LAB_TEST_RESULT") },
101103
+ { key: "referenceRange", header: n("LAB_TEST_REFERENCE_RANGE") },
101104
+ { key: "reportedOn", header: n("LAB_TEST_REPORTED_ON") }
101091
101105
  ],
101092
- [a]
101106
+ [n]
101093
101107
  ), H = (v, y) => {
101094
101108
  const x = v.interpretation === "A";
101095
101109
  switch (y) {
@@ -101116,22 +101130,22 @@ const HPt = ({
101116
101130
  headers: g,
101117
101131
  rows: w,
101118
101132
  loading: c,
101119
- errorStateMessage: u ? a("LAB_TEST_ERROR_LOADING") : void 0,
101133
+ errorStateMessage: u ? n("LAB_TEST_ERROR_LOADING") : void 0,
101120
101134
  ariaLabel: `${t.testName} results`,
101121
101135
  dataTestId: `lab-test-results-table-${t.testName}`,
101122
101136
  renderCell: H,
101123
101137
  className: b1.labTestResultsTable
101124
101138
  }
101125
- ) : /* @__PURE__ */ L("div", { className: b1.testResultsPending, children: a("LAB_TEST_RESULTS_PENDING") + " ...." }) : null, M = t.attachments && t.attachments.length > 0, b = t.attachments && a("LAB_TEST_VIEW_ATTACHMENT", { count: t.attachments.length });
101139
+ ) : /* @__PURE__ */ L("div", { className: b1.testResultsPending, children: n("LAB_TEST_RESULTS_PENDING") + " ...." }) : null, M = t.attachments && t.attachments.length > 0, b = t.attachments && n("LAB_TEST_VIEW_ATTACHMENT", { count: t.attachments.length });
101126
101140
  return /* @__PURE__ */ _e("div", { className: b1.labTest, children: [
101127
101141
  /* @__PURE__ */ _e("div", { className: b1.labTestHeader, children: [
101128
101142
  /* @__PURE__ */ _e("div", { className: b1.labTestInfo, children: [
101129
101143
  /* @__PURE__ */ L("span", { children: t.testName }),
101130
- t.testType === "Panel" && /* @__PURE__ */ L("span", { className: b1.testDetails, children: a(`LAB_TEST_${t.testType.toUpperCase()}`) }),
101144
+ t.testType === "Panel" && /* @__PURE__ */ L("span", { className: b1.testDetails, children: n(`LAB_TEST_${t.testType.toUpperCase()}`) }),
101131
101145
  M && /* @__PURE__ */ L(
101132
101146
  wn,
101133
101147
  {
101134
- onClick: () => s(!0),
101148
+ onClick: () => i(!0),
101135
101149
  className: b1.viewAttachmentsLink,
101136
101150
  children: b
101137
101151
  }
@@ -101144,20 +101158,20 @@ const HPt = ({
101144
101158
  ariaLabel: t.note
101145
101159
  }
101146
101160
  ),
101147
- t.priority === ba.stat && /* @__PURE__ */ L(Jr, { type: "red", "data-testid": `lab-test-priority-${t.priority}`, children: a(`LAB_TEST_${t.priority.toUpperCase()}`) })
101161
+ t.priority === ba.stat && /* @__PURE__ */ L(Jr, { type: "red", "data-testid": `lab-test-priority-${t.priority}`, children: n(`LAB_TEST_${t.priority.toUpperCase()}`) })
101148
101162
  ] }),
101149
101163
  /* @__PURE__ */ _e("span", { className: b1.testDetails, children: [
101150
- a("LAB_TEST_ORDERED_BY"),
101164
+ n("LAB_TEST_ORDERED_BY"),
101151
101165
  ": ",
101152
101166
  t.orderedBy
101153
101167
  ] })
101154
101168
  ] }),
101155
101169
  E(),
101156
- M && i && /* @__PURE__ */ L(
101170
+ M && a && /* @__PURE__ */ L(
101157
101171
  pr,
101158
101172
  {
101159
- open: i,
101160
- onRequestClose: () => s(!1),
101173
+ open: a,
101174
+ onRequestClose: () => i(!1),
101161
101175
  passiveModal: !0,
101162
101176
  modalHeading: b,
101163
101177
  testId: "attachments-modal",
@@ -101300,8 +101314,7 @@ const HPt = ({
101300
101314
  {
101301
101315
  test: ce,
101302
101316
  isOpen: c.has(se),
101303
- hasProcessedReport: !!ce.reportId,
101304
- reportId: ce.reportId
101317
+ hasProcessedReport: !!ce.reportIds && ce.reportIds.length > 0
101305
101318
  },
101306
101319
  ce.id ?? `${ne.date}-${ce.testName}`
101307
101320
  ))
@@ -111017,7 +111030,7 @@ const xGt = [
111017
111030
  },
111018
111031
  {
111019
111032
  type: "patientDocuments",
111020
- component: lr(() => import("./DocumentsTable-N9qq_iTU.js"))
111033
+ component: lr(() => import("./DocumentsTable-BcHUDfiC.js"))
111021
111034
  },
111022
111035
  {
111023
111036
  type: "flowSheet",
@@ -111025,7 +111038,7 @@ const xGt = [
111025
111038
  },
111026
111039
  {
111027
111040
  type: "forms",
111028
- component: lr(() => import("./FormsTable-BHlCPgz3.js"))
111041
+ component: lr(() => import("./FormsTable-SzyAdP8V.js"))
111029
111042
  },
111030
111043
  {
111031
111044
  type: "labOrders",
@@ -111033,7 +111046,7 @@ const xGt = [
111033
111046
  },
111034
111047
  {
111035
111048
  type: "observations",
111036
- component: lr(() => import("./Observations-CVErKld3.js"))
111049
+ component: lr(() => import("./Observations-CyS3YbXr.js"))
111037
111050
  },
111038
111051
  {
111039
111052
  type: "ordersControl",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ae as o, ac as r, I as n, ab as g, J as c, C as l, a4 as d, ak as P, K as m, y as v, L as u, D as T, E as C, aa as b, _ as A, a2 as p, V as I, av as S, ax as f, ay as W, M as D, a6 as L, a7 as R, O as U, P as y, a1 as h, a3 as E, U as N, S as x, X as O, a0 as _, at as G, as as H, a9 as V, Z as k, aj as M, ag as q, af as w, f as F, aq as j, ap as z, ai as B, am as J, an as K, ao as X, ah as Z, al as Q, H as Y, ar as $, ad as aa, a5 as ea, a8 as sa, b as ta, aw as ia, a as oa, u as ra, au as na, c as ga } from "./index-D25QZIxn.js";
1
+ import { ae as o, ac as r, I as n, ab as g, J as c, C as l, a4 as d, ak as P, K as m, y as v, L as u, D as T, E as C, aa as b, _ as A, a2 as p, V as I, av as S, ax as f, ay as W, M as D, a6 as L, a7 as R, O as U, P as y, a1 as h, a3 as E, U as N, S as x, X as O, a0 as _, at as G, as as H, a9 as V, Z as k, aj as M, ag as q, af as w, f as F, aq as j, ap as z, ai as B, am as J, an as K, ao as X, ah as Z, al as Q, H as Y, ar as $, ad as aa, a5 as ea, a8 as sa, b as ta, aw as ia, a as oa, u as ra, au as na, c as ga } from "./index-CbeSZAIe.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -1 +1 @@
1
- {"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2M3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4M3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -4,7 +4,6 @@ interface LabInvestigationItemProps {
4
4
  test: FormattedLabInvestigations;
5
5
  isOpen: boolean;
6
6
  hasProcessedReport: boolean;
7
- reportId?: string;
8
7
  }
9
8
  declare const LabInvestigationItem: React.FC<LabInvestigationItemProps>;
10
9
  export default LabInvestigationItem;
@@ -1 +1 @@
1
- {"version":3,"file":"LabInvestigationItem.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigationItem.tsx"],"names":[],"mappings":"AASA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAA4B,MAAM,UAAU,CAAC;AAIhF,UAAU,yBAAyB;IACjC,IAAI,EAAE,0BAA0B,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyK7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"LabInvestigationItem.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigationItem.tsx"],"names":[],"mappings":"AASA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAA4B,MAAM,UAAU,CAAC;AAIhF,UAAU,yBAAyB;IACjC,IAAI,EAAE,0BAA0B,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AACD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmL7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -17,7 +17,7 @@ export interface FormattedLabInvestigations {
17
17
  readonly result?: string | LabTestResult[];
18
18
  readonly testType: string;
19
19
  readonly note?: string;
20
- readonly reportId?: string;
20
+ readonly reportIds?: string[];
21
21
  readonly attachments?: Attachment[];
22
22
  readonly reportedBy?: string;
23
23
  readonly reportedDate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/models.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,IAAI,WAAW;IACf,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WA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AI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandedContentForPrimaryOrder.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/ExpandedContentForPrimaryOrder.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,+BAA+B,CAAC;IAC/C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,EAAE,CACV,GAAG,EAAE,+BAA+B,EACpC,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,+BAA+B,KACnD,KAAK,CAAC,SAAS,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CACnD,mCAAmC,CA4DpC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
1
+ {"version":3,"file":"ExpandedContentForPrimaryOrder.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/ExpandedContentForPrimaryOrder.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,+BAA+B,CAAC;IAC/C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,EAAE,CACV,GAAG,EAAE,+BAA+B,EACpC,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,+BAA+B,KACnD,KAAK,CAAC,SAAS,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CACnD,mCAAmC,CA8DpC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAiBhD,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,gDACjB,CAAC;AAsBnD;;;GAGG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgiBtD,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAiBhD,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,gDACjB,CAAC;AAsBnD;;;GAGG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiiBtD,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -14,7 +14,7 @@ export interface RadiologyInvestigationViewModel {
14
14
  readonly basedOn?: string[];
15
15
  readonly imagingStudies?: ImagingStudy[];
16
16
  readonly note?: string;
17
- readonly reportId?: string;
17
+ readonly reportIds?: string[];
18
18
  readonly reportedBy?: string;
19
19
  readonly reportedDate?: string;
20
20
  readonly linkedOrders?: RadiologyInvestigationViewModel[];
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,+BAA+B,EAAE,CAAC;CAC3D"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA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GAChD,0BAA0B,EAAE,GAAG,+BAA+B,EAAE,CA6DlE;AAED;;;;GAIG;AAEH,wBAAgB,sCAAsC,CACpD,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,GAC7C,UAAU,EAAE,GAAG,SAAS,CAiB1B"}
1
+ {"version":3,"file":"Investigations.d.ts","sourceRoot":"","sources":["../../src/utils/Investigations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EACL,0BAA0B,EAC1B,UAAU,EACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAC3C,gBAAgB,EAAE,CAOpB;AAED;;;;;GAKG;AAEH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,0BAA0B,EAAE,GAAG,+BAA+B,EAAE,EACvE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,SAAS,GAChD,0BAA0B,EAAE,GAAG,+BAA+B,EAAE,CA6ElE;AAED;;;;GAIG;AAEH,wBAAgB,sCAAsC,CACpD,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,GAC7C,UAAU,EAAE,GAAG,SAAS,CAiB1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.364",
3
+ "version": "0.0.1-dev.366",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",