@bahmni/widgets 0.0.1-dev.264 → 0.0.1-dev.266

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.
@@ -62725,7 +62725,7 @@ const pXe = ({
62725
62725
  testId: t,
62726
62726
  children: e,
62727
62727
  ...r
62728
- }) => /* @__PURE__ */ Y(Is, { ...r, "data-testid": t, children: e }), fXe = "_container_ajkme_1", mXe = "_accordion_ajkme_14", wXe = "_rows_ajkme_44", Ec = {
62728
+ }) => /* @__PURE__ */ Y(Is, { ...r, "data-testid": t, children: e }), fXe = "_container_iixgz_1", mXe = "_accordion_iixgz_5", wXe = "_rows_iixgz_36", Ec = {
62729
62729
  container: fXe,
62730
62730
  accordion: mXe,
62731
62731
  rows: wXe
@@ -83564,7 +83564,7 @@ const o4t = ({
83564
83564
  );
83565
83565
  };
83566
83566
  var Qu = /* @__PURE__ */ ((t) => (t.STAT = "stat", t.ROUTINE = "routine", t.URGENT = "urgent", t.ASAP = "asap", t))(Qu || {});
83567
- const f4t = "_medicationTableEmpty_1uyri_1", m4t = "_medicationTabList_1uyri_12", w4t = "_medicationTabs_1uyri_16", g4t = "_columnDataBold_1uyri_20", v4t = "_medicationName_1uyri_27", E4t = "_medicineDetails_1uyri_37", y4t = "_PRN_1uyri_45", V4t = "_STAT_1uyri_50", H4t = "_activeStatus_1uyri_55", b4t = "_scheduledStatus_1uyri_59", M4t = "_cancelledStatus_1uyri_63", x4t = "_completedStatus_1uyri_67", N4t = "_stoppedStatus_1uyri_71", z4t = "_unknownStatus_1uyri_75", A4t = "_rowSeperator_1uyri_79", _4t = "_medicationsTableBody_1uyri_83", C4t = "_customAccordianItem_1uyri_90", Jt = {
83567
+ const f4t = "_medicationTableEmpty_16to4_1", m4t = "_medicationTabList_16to4_12", w4t = "_medicationTabs_16to4_16", g4t = "_columnDataBold_16to4_20", v4t = "_medicationName_16to4_27", E4t = "_medicineDetails_16to4_37", y4t = "_PRN_16to4_45", V4t = "_STAT_16to4_50", H4t = "_activeStatus_16to4_55", b4t = "_scheduledStatus_16to4_59", M4t = "_cancelledStatus_16to4_63", x4t = "_completedStatus_16to4_67", N4t = "_stoppedStatus_16to4_71", z4t = "_unknownStatus_16to4_75", A4t = "_rowSeperator_16to4_79", _4t = "_medicationsTableBody_16to4_83", C4t = "_customAccordianItem_16to4_90", Jt = {
83568
83568
  medicationTableEmpty: f4t,
83569
83569
  medicationTabList: m4t,
83570
83570
  medicationTabs: w4t,
@@ -83953,7 +83953,7 @@ const G4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
83953
83953
  return null;
83954
83954
  }
83955
83955
  };
83956
- return E ? /* @__PURE__ */ Y("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ Y("p", { className: Jt.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ Y("div", { "data-testid": "medications-table", children: /* @__PURE__ */ Ce(
83956
+ return E ? /* @__PURE__ */ Y("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ Y("p", { className: Jt.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ Y("div", { id: "medications-table", "data-testid": "medications-table", children: /* @__PURE__ */ Ce(
83957
83957
  pu,
83958
83958
  {
83959
83959
  selectedIndex: u,
@@ -84608,7 +84608,7 @@ function e7e(t) {
84608
84608
  }));
84609
84609
  return e.length > 0 ? e : void 0;
84610
84610
  }
84611
- const Cdt = "_investigationName_1sd3z_1", Tdt = "_resultsCell_1sd3z_11", Odt = "_radiologyInvestigationTableBody_1sd3z_17", Ldt = "_customAccordianItem_1sd3z_30", Ddt = "_linkedOrderRow_1sd3z_51", Rdt = "_expandableContentSpacer_1sd3z_58", Sdt = "_reportSection_1sd3z_62", $dt = "_reportTitle_1sd3z_65", Idt = "_reportDetails_1sd3z_71", Zdt = "_reportTile_1sd3z_79", w1 = {
84611
+ const Cdt = "_investigationName_1j8fh_17", Tdt = "_resultsCell_1j8fh_27", Odt = "_radiologyInvestigationTableBody_1j8fh_33", Ldt = "_customAccordianItem_1j8fh_46", Ddt = "_linkedOrderRow_1j8fh_67", Rdt = "_expandableContentSpacer_1j8fh_74", Sdt = "_reportSection_1j8fh_78", $dt = "_reportTitle_1j8fh_81", Idt = "_reportDetails_1j8fh_87", Zdt = "_reportTile_1j8fh_95", w1 = {
84612
84612
  investigationName: Cdt,
84613
84613
  resultsCell: Tdt,
84614
84614
  radiologyInvestigationTableBody: Odt,
@@ -85147,7 +85147,7 @@ const r7e = (t) => ["radiologyInvestigation", t], Qdt = async (t, e, r, n) => {
85147
85147
  __proto__: null,
85148
85148
  default: Xdt,
85149
85149
  radiologyInvestigationQueryKeys: r7e
85150
- }, Symbol.toStringTag, { value: "Module" })), tut = "_labSkeleton_1icxb_1", rut = "_labTest_1icxb_5", nut = "_labTestHeader_1icxb_10", out = "_labTestInfo_1icxb_19", aut = "_testName_1icxb_31", iut = "_result_1icxb_39", sut = "_abnormalResult_1icxb_53", lut = "_testDetails_1icxb_69", cut = "_testResultsPending_1icxb_77", dut = "_accordionItem_1icxb_86", uut = "_labInvestigationTableBodyError_1icxb_97", hut = "_labTestResultsTable_1icxb_106", put = "_viewAttachmentsLink_1icxb_112", fut = "_attachmentsContainer_1icxb_116", mut = "_attachmentViewer_1icxb_123", wut = "_attachmentIframe_1icxb_131", gut = "_attachmentImage_1icxb_137", vut = "_attachmentNumber_1icxb_142", tr = {
85150
+ }, Symbol.toStringTag, { value: "Module" })), tut = "_labSkeleton_ogyfk_5", rut = "_labTest_ogyfk_9", nut = "_labTestHeader_ogyfk_14", out = "_labTestInfo_ogyfk_23", aut = "_testName_ogyfk_35", iut = "_result_ogyfk_43", sut = "_abnormalResult_ogyfk_57", lut = "_testDetails_ogyfk_73", cut = "_testResultsPending_ogyfk_81", dut = "_accordionItem_ogyfk_90", uut = "_labInvestigationTableBodyError_ogyfk_101", hut = "_labTestResultsTable_ogyfk_110", put = "_viewAttachmentsLink_ogyfk_116", fut = "_attachmentsContainer_ogyfk_120", mut = "_attachmentViewer_ogyfk_127", wut = "_attachmentIframe_ogyfk_135", gut = "_attachmentImage_ogyfk_141", vut = "_attachmentNumber_ogyfk_146", tr = {
85151
85151
  labSkeleton: tut,
85152
85152
  labTest: rut,
85153
85153
  labTestHeader: nut,
@@ -85527,31 +85527,33 @@ const _ut = ({
85527
85527
  className: tr.labSkeleton,
85528
85528
  testId: "lab-skeleton"
85529
85529
  }
85530
- ) : !A && (N.length === 0 || g) ? /* @__PURE__ */ Y("div", { className: tr.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ Y(Ao, { align: "start", children: F.map((K, Q) => /* @__PURE__ */ Y(
85531
- _o,
85532
- {
85533
- className: tr.accordionItem,
85534
- open: c.has(Q),
85535
- onHeadingClick: () => {
85536
- u((X) => {
85537
- const B = new Set(X);
85538
- return B.has(Q) ? B.delete(Q) : (B.add(Q), m(Q)), B;
85539
- });
85540
- },
85541
- title: K.date,
85542
- children: K.tests?.map((X) => /* @__PURE__ */ Y(
85543
- _ut,
85544
- {
85545
- test: X,
85546
- isOpen: c.has(Q),
85547
- hasProcessedReport: !!X.reportId,
85548
- reportId: X.reportId
85530
+ ) : !A && (N.length === 0 || g) ? /* @__PURE__ */ Y("div", { className: tr.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ Y("div", { id: "lab-investigations", children: /* @__PURE__ */ Y(Ao, { align: "start", children: F.map(
85531
+ (K, Q) => /* @__PURE__ */ Y(
85532
+ _o,
85533
+ {
85534
+ className: tr.accordionItem,
85535
+ open: c.has(Q),
85536
+ onHeadingClick: () => {
85537
+ u((X) => {
85538
+ const B = new Set(X);
85539
+ return B.has(Q) ? B.delete(Q) : (B.add(Q), m(Q)), B;
85540
+ });
85549
85541
  },
85550
- X.id ?? `${K.date}-${X.testName}`
85551
- ))
85552
- },
85553
- K.date
85554
- )) });
85542
+ title: K.date,
85543
+ children: K.tests?.map((X) => /* @__PURE__ */ Y(
85544
+ _ut,
85545
+ {
85546
+ test: X,
85547
+ isOpen: c.has(Q),
85548
+ hasProcessedReport: !!X.reportId,
85549
+ reportId: X.reportId
85550
+ },
85551
+ X.id ?? `${K.date}-${X.testName}`
85552
+ ))
85553
+ },
85554
+ K.date
85555
+ )
85556
+ ) }) });
85555
85557
  }, Out = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
85556
85558
  __proto__: null,
85557
85559
  default: Tut
@@ -86349,7 +86351,7 @@ ${A.formattedResult}`
86349
86351
  }, aht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
86350
86352
  __proto__: null,
86351
86353
  default: oht
86352
- }, Symbol.toStringTag, { value: "Module" })), iht = "_requestName_1uf67_1", sht = "_serviceRequestTableBody_1uf67_12", lht = "_customAccordianItem_1uf67_25", ei = {
86354
+ }, Symbol.toStringTag, { value: "Module" })), iht = "_requestName_1khlg_5", sht = "_serviceRequestTableBody_1khlg_16", lht = "_customAccordianItem_1khlg_29", ei = {
86353
86355
  requestName: iht,
86354
86356
  serviceRequestTableBody: sht,
86355
86357
  customAccordianItem: lht
@@ -86503,47 +86505,54 @@ const o7e = (t, e, r) => ["genericServiceRequest", t, e, r], pht = async (t, e,
86503
86505
  },
86504
86506
  [a]
86505
86507
  );
86506
- return /* @__PURE__ */ Y("div", { "data-testid": "generic-service-request-table", children: y || x || z.length === 0 || c ? /* @__PURE__ */ Y(
86507
- cr,
86508
+ return /* @__PURE__ */ Y(
86509
+ "div",
86508
86510
  {
86509
- headers: N,
86510
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
86511
- rows: [],
86512
- loading: y,
86513
- errorStateMessage: x ? H?.message : void 0,
86514
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
86515
- renderCell: O,
86516
- className: ei.serviceRequestTableBody,
86517
- dataTestId: "generic-service-request-table"
86518
- }
86519
- ) : /* @__PURE__ */ Y(Ao, { align: "start", children: z.map((T, L) => {
86520
- const { date: $, requests: j } = T;
86521
- return /* @__PURE__ */ Y(
86522
- _o,
86523
- {
86524
- title: $,
86525
- className: ei.customAccordianItem,
86526
- testId: "accordian-table-title",
86527
- open: L === 0,
86528
- children: /* @__PURE__ */ Y(
86529
- cr,
86511
+ id: "generic-service-request-table",
86512
+ "data-testid": "generic-service-request-table",
86513
+ children: y || x || z.length === 0 || c ? /* @__PURE__ */ Y(
86514
+ cr,
86515
+ {
86516
+ headers: N,
86517
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
86518
+ rows: [],
86519
+ loading: y,
86520
+ errorStateMessage: x ? H?.message : void 0,
86521
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
86522
+ renderCell: O,
86523
+ className: ei.serviceRequestTableBody,
86524
+ dataTestId: "generic-service-request-table"
86525
+ }
86526
+ ) : /* @__PURE__ */ Y(Ao, { align: "start", children: z.map((T, L) => {
86527
+ const { date: $, requests: j } = T;
86528
+ return /* @__PURE__ */ Y(
86529
+ _o,
86530
86530
  {
86531
- headers: N,
86532
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
86533
- rows: j,
86534
- loading: y,
86535
- errorStateMessage: "",
86536
- sortable: A,
86537
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
86538
- renderCell: O,
86539
- className: ei.serviceRequestTableBody,
86540
- dataTestId: `generic-service-request-table-${$}`
86541
- }
86542
- )
86543
- },
86544
- $
86545
- );
86546
- }) }) });
86531
+ title: $,
86532
+ className: ei.customAccordianItem,
86533
+ testId: "accordian-table-title",
86534
+ open: L === 0,
86535
+ children: /* @__PURE__ */ Y(
86536
+ cr,
86537
+ {
86538
+ headers: N,
86539
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
86540
+ rows: j,
86541
+ loading: y,
86542
+ errorStateMessage: "",
86543
+ sortable: A,
86544
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
86545
+ renderCell: O,
86546
+ className: ei.serviceRequestTableBody,
86547
+ dataTestId: `generic-service-request-table-${$}`
86548
+ }
86549
+ )
86550
+ },
86551
+ $
86552
+ );
86553
+ }) })
86554
+ }
86555
+ );
86547
86556
  }, mht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
86548
86557
  __proto__: null,
86549
86558
  default: fht,
@@ -87502,7 +87511,7 @@ const ipt = [
87502
87511
  },
87503
87512
  {
87504
87513
  type: "patientDocuments",
87505
- component: Br(() => import("./DocumentsTable-Ddj98VqX.js"))
87514
+ component: Br(() => import("./DocumentsTable-25Tv9RFh.js"))
87506
87515
  },
87507
87516
  {
87508
87517
  type: "flowSheet",
@@ -87510,7 +87519,7 @@ const ipt = [
87510
87519
  },
87511
87520
  {
87512
87521
  type: "forms",
87513
- component: Br(() => import("./FormsTable-CLewAjcq.js"))
87522
+ component: Br(() => import("./FormsTable-DyNaylFb.js"))
87514
87523
  },
87515
87524
  {
87516
87525
  type: "labOrders",
@@ -87518,7 +87527,7 @@ const ipt = [
87518
87527
  },
87519
87528
  {
87520
87529
  type: "observations",
87521
- component: Br(() => import("./Observations-DsWHnOt2.js"))
87530
+ component: Br(() => import("./Observations-Cv2dOey8.js"))
87522
87531
  },
87523
87532
  {
87524
87533
  type: "ordersControl",
@@ -87690,34 +87699,34 @@ const a6t = (t) => {
87690
87699
  ) });
87691
87700
  };
87692
87701
  export {
87693
- xo as $,
87694
- ZXe as A,
87695
- e3t as B,
87702
+ Rr as $,
87703
+ xo as A,
87704
+ ZXe as B,
87696
87705
  ypt as C,
87697
- z3t as D,
87698
- o4t as E,
87699
- u4t as F,
87700
- Jme as G,
87701
- fht as H,
87702
- Hht as I,
87703
- Bht as J,
87704
- e6t as K,
87706
+ e3t as D,
87707
+ z3t as E,
87708
+ o4t as F,
87709
+ u4t as G,
87710
+ Xdt as H,
87711
+ Jme as I,
87712
+ Xpt as J,
87713
+ fht as K,
87705
87714
  Tut as L,
87706
87715
  X4t as M,
87707
- Zct as N,
87708
- Gme as O,
87716
+ Hht as N,
87717
+ Fpt as O,
87709
87718
  qpt as P,
87710
- Wpt as Q,
87711
- Xdt as R,
87712
- Xpt as S,
87713
- Rr as T,
87714
- Upt as U,
87719
+ Bht as Q,
87720
+ Zpt as R,
87721
+ Ppt as S,
87722
+ e6t as T,
87723
+ Zct as U,
87715
87724
  oht as V,
87716
- Gu as W,
87717
- Ju as X,
87718
- ept as Y,
87719
- t6t as Z,
87720
- Ppt as _,
87725
+ Wpt as W,
87726
+ Gu as X,
87727
+ Ju as Y,
87728
+ ept as Z,
87729
+ t6t as _,
87721
87730
  u1 as a,
87722
87731
  tpt as a0,
87723
87732
  rpt as a1,
@@ -87736,29 +87745,29 @@ export {
87736
87745
  spt as ae,
87737
87746
  h6t as af,
87738
87747
  p6t as ag,
87739
- jpt as b,
87740
- Ao as c,
87741
- Kpt as d,
87742
- mt as e,
87748
+ ml as b,
87749
+ jpt as c,
87750
+ Bpt as d,
87751
+ Ao as e,
87743
87752
  ui as f,
87744
- Ypt as g,
87745
- RXe as h,
87746
- KQe as i,
87747
- Ipt as j,
87748
- X1 as k,
87749
- kpt as l,
87753
+ Gme as g,
87754
+ Kpt as h,
87755
+ Ypt as i,
87756
+ Ert as j,
87757
+ KQe as k,
87758
+ RXe as l,
87750
87759
  cr as m,
87751
- Ert as n,
87752
- ml as o,
87753
- Gpt as p,
87754
- Jpt as q,
87755
- Qpt as r,
87756
- Bpt as s,
87760
+ zXe as n,
87761
+ Ipt as o,
87762
+ kpt as p,
87763
+ X1 as q,
87764
+ Gpt as r,
87765
+ mt as s,
87757
87766
  _o as t,
87758
87767
  d1 as u,
87759
- Fpt as v,
87760
- Zpt as w,
87768
+ Jpt as v,
87769
+ Qpt as w,
87761
87770
  bXe as x,
87762
87771
  r1 as y,
87763
- zXe as z
87772
+ Upt as z
87764
87773
  };