@bahmni/widgets 0.0.1-dev.312 → 0.0.1-dev.315

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.
@@ -57654,7 +57654,7 @@ const lve = {
57654
57654
  }
57655
57655
  }
57656
57656
  };
57657
- let d3 = class {
57657
+ class d3 {
57658
57658
  /** Formats a number value as a string, according to the locale and options provided to the constructor. */
57659
57659
  format(e) {
57660
57660
  let r = "";
@@ -57714,7 +57714,7 @@ let d3 = class {
57714
57714
  constructor(e, r = {}) {
57715
57715
  this.numberFormatter = o0t(e, r), this.options = r;
57716
57716
  }
57717
- };
57717
+ }
57718
57718
  function o0t(t, e = {}) {
57719
57719
  let { numberingSystem: r } = e;
57720
57720
  if (r && t.includes("-nu-") && (t.includes("-u-") || (t += "-u-"), t += `-nu-${r}`), e.style === "unit" && !Ks) {
@@ -68227,7 +68227,7 @@ const mlt = ({
68227
68227
  container: glt,
68228
68228
  accordion: wlt,
68229
68229
  rows: vlt
68230
- }, yMt = ({
68230
+ }, EMt = ({
68231
68231
  title: t,
68232
68232
  rows: e,
68233
68233
  children: r,
@@ -70663,23 +70663,23 @@ er.getAdapter = cye.getAdapter;
70663
70663
  er.HttpStatusCode = B3;
70664
70664
  er.default = er;
70665
70665
  const {
70666
- Axios: bMt,
70667
- AxiosError: HMt,
70668
- CanceledError: MMt,
70669
- isCancel: xMt,
70670
- CancelToken: NMt,
70671
- VERSION: AMt,
70672
- all: zMt,
70673
- Cancel: _Mt,
70674
- isAxiosError: CMt,
70675
- spread: TMt,
70676
- toFormData: OMt,
70677
- AxiosHeaders: RMt,
70678
- HttpStatusCode: LMt,
70679
- formToJSON: DMt,
70680
- getAdapter: SMt,
70681
- mergeConfig: IMt,
70682
- create: $Mt
70666
+ Axios: VMt,
70667
+ AxiosError: bMt,
70668
+ CanceledError: HMt,
70669
+ isCancel: MMt,
70670
+ CancelToken: xMt,
70671
+ VERSION: NMt,
70672
+ all: AMt,
70673
+ Cancel: zMt,
70674
+ isAxiosError: _Mt,
70675
+ spread: CMt,
70676
+ toFormData: TMt,
70677
+ AxiosHeaders: OMt,
70678
+ HttpStatusCode: RMt,
70679
+ formToJSON: LMt,
70680
+ getAdapter: DMt,
70681
+ mergeConfig: SMt,
70682
+ create: IMt
70683
70683
  } = er, Cdt = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Tdt = (t) => {
70684
70684
  if (!t.issue || !Array.isArray(t.issue))
70685
70685
  return null;
@@ -74165,7 +74165,7 @@ const x4t = () => {
74165
74165
  }
74166
74166
  };
74167
74167
  }, Wo = x4t(), N4t = (t) => `${mr}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, A4t = "SHORT", z4t = "FULLY_SPECIFIED";
74168
- async function kMt(t) {
74168
+ async function $Mt(t) {
74169
74169
  const e = N4t(t), r = await Tt(e);
74170
74170
  return !r.results || r.results.length === 0 ? null : r.results[0];
74171
74171
  }
@@ -74240,7 +74240,7 @@ function L4t(t) {
74240
74240
  hasBeenValidated: !1
74241
74241
  };
74242
74242
  }
74243
- const D4t = "problem-list-item", S4t = "encounter-diagnosis", I4t = "http://terminology.hl7.org/CodeSystem/condition-clinical", $4t = "http://fhir.bahmni.org/ext/lab-order-concept-type", ZMt = "http://fhir.bahmni.org/ext/observation/form-namespace-path", k4t = Mr + "/Condition", Z4t = (t, e = 10, r = 0, n) => {
74243
+ const D4t = "problem-list-item", S4t = "encounter-diagnosis", I4t = "http://terminology.hl7.org/CodeSystem/condition-clinical", $4t = "http://fhir.bahmni.org/ext/lab-order-concept-type", kMt = "http://fhir.bahmni.org/ext/observation/form-namespace-path", k4t = Mr + "/Condition", Z4t = (t, e = 10, r = 0, n) => {
74244
74244
  const a = Mr + `/Condition?category=${D4t}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
74245
74245
  return n ? `${a}&clinical-status=${n}` : a;
74246
74246
  };
@@ -79089,7 +79089,7 @@ const Cpt = (t) => mr + `/form/${t}?v=custom:(resources:(value))`, Tpt = (t) =>
79089
79089
  const r = e.join(",");
79090
79090
  return `${Mr}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
79091
79091
  };
79092
- async function PMt(t, e) {
79092
+ async function ZMt(t, e) {
79093
79093
  const r = Lpt(t, e);
79094
79094
  return await Tt(r);
79095
79095
  }
@@ -79101,7 +79101,7 @@ async function Spt(t) {
79101
79101
  return !e.results || e.results.length === 0 ? null : e.results[0];
79102
79102
  }
79103
79103
  const Ipt = (t) => `${Mr}/Observation/$fetch-all?encounter=${t}`;
79104
- async function BMt(t) {
79104
+ async function PMt(t) {
79105
79105
  return await Tt(
79106
79106
  Ipt(t)
79107
79107
  );
@@ -79152,12 +79152,12 @@ const xa = (t, e) => t?.length === 0 ? !1 : e?.length === 0, $pt = async () => {
79152
79152
  editable: n.editable
79153
79153
  }))
79154
79154
  };
79155
- }, FMt = async (t) => {
79155
+ }, BMt = async (t) => {
79156
79156
  const e = await kpt(), r = Ep();
79157
79157
  return e.map(
79158
79158
  (n) => Ppt(n, r)
79159
79159
  );
79160
- }, jMt = async (t) => {
79160
+ }, FMt = async (t) => {
79161
79161
  const e = await fetch(Cpt(t));
79162
79162
  if (!e.ok)
79163
79163
  throw new Error(
@@ -79191,7 +79191,7 @@ const xa = (t, e) => t?.length === 0 ? !1 : e?.length === 0, $pt = async () => {
79191
79191
  schema: n,
79192
79192
  translations: d
79193
79193
  };
79194
- }, UMt = async (t, e, r) => {
79194
+ }, jMt = async (t, e, r) => {
79195
79195
  const n = Rpt(t, r), a = await Tt(n);
79196
79196
  return Array.isArray(a) ? a : [];
79197
79197
  }, Bpt = mr + "/bahmnicore/diseaseSummaryData?", Fpt = async (t, e, r, n) => {
@@ -79287,7 +79287,7 @@ function Ypt(t) {
79287
79287
  };
79288
79288
  });
79289
79289
  }
79290
- async function qMt(t, e, r = 10, n = 1) {
79290
+ async function UMt(t, e, r = 10, n = 1) {
79291
79291
  const a = (n - 1) * r, i = Gpt(
79292
79292
  t,
79293
79293
  e,
@@ -79387,7 +79387,7 @@ async function u5t(t) {
79387
79387
  const l = setTimeout(s, a5t);
79388
79388
  a.focus(), a.print();
79389
79389
  }
79390
- const WMt = ({
79390
+ const qMt = ({
79391
79391
  printOptions: t,
79392
79392
  renderContext: e,
79393
79393
  renderData: r,
@@ -86979,7 +86979,7 @@ function Gmt(t, e) {
86979
86979
  ageDetails: Kmt(t.birthDate, e)
86980
86980
  };
86981
86981
  }
86982
- const KMt = () => {
86982
+ const WMt = () => {
86983
86983
  const { t } = yt(), e = n1(), r = Zc($mt), {
86984
86984
  data: n,
86985
86985
  isLoading: a,
@@ -87052,7 +87052,7 @@ const KMt = () => {
87052
87052
  "useNotification must be used within a NotificationProvider"
87053
87053
  );
87054
87054
  return t;
87055
- }, GMt = () => {
87055
+ }, KMt = () => {
87056
87056
  const { addNotification: t } = o1();
87057
87057
  return de(() => {
87058
87058
  Wo.register((e) => {
@@ -90163,7 +90163,7 @@ function Twt(t) {
90163
90163
  a.push(l);
90164
90164
  }), a;
90165
90165
  }
90166
- const YMt = (t, e) => t?.date ? gt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), Gp = (t, e) => {
90166
+ const GMt = (t, e) => t?.date ? gt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), Gp = (t, e) => {
90167
90167
  if (t.observationValue?.value == null)
90168
90168
  return "";
90169
90169
  const { value: r, unit: n, type: a } = t.observationValue;
@@ -90195,7 +90195,7 @@ const YMt = (t, e) => t?.date ? gt(t.date, e).formattedResult : e("DATE_ERROR_PA
90195
90195
  return `${e} (<${s})`;
90196
90196
  }
90197
90197
  return e;
90198
- }, JMt = (t, e, r) => ({
90198
+ }, YMt = (t, e, r) => ({
90199
90199
  index: e,
90200
90200
  header: Owt(t),
90201
90201
  value: Gp(t, r),
@@ -90229,7 +90229,7 @@ function QVe(t, e, r) {
90229
90229
  // conceptId is required to group the multiselect obs
90230
90230
  };
90231
90231
  }
90232
- function XMt(t) {
90232
+ function JMt(t) {
90233
90233
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
90234
90234
  t.entry?.forEach(({ resource: s }) => {
90235
90235
  s?.id && (s.resourceType === "Encounter" ? e.set(s.id, s) : s.resourceType === "Observation" && (r.set(s.id, s), s.hasMember?.forEach((l) => {
@@ -90248,7 +90248,7 @@ function XMt(t) {
90248
90248
  c.members ? i.push(c) : a.push(c);
90249
90249
  }), { observations: a, groupedObservations: i };
90250
90250
  }
90251
- function QMt(t) {
90251
+ function XMt(t) {
90252
90252
  const e = /* @__PURE__ */ new Map();
90253
90253
  return t.observations.forEach((r) => {
90254
90254
  if (!r.encounter?.id) return;
@@ -90274,7 +90274,7 @@ function QMt(t) {
90274
90274
  };
90275
90275
  });
90276
90276
  }
90277
- function ext(t) {
90277
+ function QMt(t) {
90278
90278
  return [...t].sort((e, r) => {
90279
90279
  const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
90280
90280
  return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
@@ -91884,7 +91884,7 @@ const uEt = "SearchPatient-module_searchPatientContainer__uqWDm", hEt = "SearchP
91884
91884
  advanceInputWrapper: gEt,
91885
91885
  errorMessage: wEt,
91886
91886
  searchTypeDropdown: vEt
91887
- }, txt = ({
91887
+ }, ext = ({
91888
91888
  buttonTitle: t,
91889
91889
  searchBarPlaceholder: e,
91890
91890
  patientSearch: r,
@@ -93350,7 +93350,7 @@ function Pyt(t, e) {
93350
93350
  const Byt = (t) => ["programs", t], Fyt = async (t, e) => {
93351
93351
  const r = await Wpt(t);
93352
93352
  return Pyt(r, e);
93353
- }, rxt = ({
93353
+ }, txt = ({
93354
93354
  programUUID: t,
93355
93355
  config: e
93356
93356
  }) => {
@@ -94800,7 +94800,7 @@ _bt.displayName = kbe;
94800
94800
  function e5(t) {
94801
94801
  return t ? "open" : "closed";
94802
94802
  }
94803
- var Zbe = "DialogTitleWarning", [nxt, Pbe] = Qyt(Zbe, {
94803
+ var Zbe = "DialogTitleWarning", [rxt, Pbe] = Qyt(Zbe, {
94804
94804
  contentName: Z0,
94805
94805
  titleName: Qp,
94806
94806
  docsSlug: "dialog"
@@ -95759,7 +95759,7 @@ const QHt = ({
95759
95759
  return /* @__PURE__ */ $(IVe.Provider, { value: l, children: t });
95760
95760
  };
95761
95761
  QHt.displayName = "UserPrivilegeProvider";
95762
- const oxt = {
95762
+ const nxt = {
95763
95763
  ENCOUNTER: ["Add Encounters"],
95764
95764
  ALLERGIES: ["Add Allergies"],
95765
95765
  EDIT_ALLERGIES: ["Edit Allergies"],
@@ -95819,7 +95819,7 @@ const Ybe = Hr(void 0), tMt = ({ children: t }) => {
95819
95819
  return /* @__PURE__ */ $(Ybe.Provider, { value: u, children: t });
95820
95820
  };
95821
95821
  tMt.displayName = "ActivePractitionerProvider";
95822
- const axt = () => {
95822
+ const oxt = () => {
95823
95823
  const t = dt(Ybe);
95824
95824
  if (t === void 0)
95825
95825
  throw new Error(
@@ -95831,7 +95831,7 @@ const axt = () => {
95831
95831
  errorStateTitle: nMt,
95832
95832
  errorStateBody: oMt
95833
95833
  };
95834
- function ixt(t) {
95834
+ function axt(t) {
95835
95835
  const {
95836
95836
  context: e,
95837
95837
  queryKey: r,
@@ -95895,7 +95895,7 @@ function ixt(t) {
95895
95895
  };
95896
95896
  return c.displayName = l, c;
95897
95897
  }
95898
- function sxt(t, e, r) {
95898
+ function ixt(t, e, r) {
95899
95899
  return () => {
95900
95900
  const n = dt(t);
95901
95901
  if (!n)
@@ -95922,7 +95922,7 @@ const aMt = [
95922
95922
  },
95923
95923
  {
95924
95924
  type: "patientDocuments",
95925
- component: Ir(() => import("./DocumentsTable-CQX3VBx9.js"))
95925
+ component: Ir(() => import("./DocumentsTable-eqNPIVdU.js"))
95926
95926
  },
95927
95927
  {
95928
95928
  type: "flowSheet",
@@ -95930,7 +95930,7 @@ const aMt = [
95930
95930
  },
95931
95931
  {
95932
95932
  type: "forms",
95933
- component: Ir(() => import("./FormsTable-CTCi2T2q.js"))
95933
+ component: Ir(() => import("./FormsTable-BNmDNczP.js"))
95934
95934
  },
95935
95935
  {
95936
95936
  type: "labOrders",
@@ -95938,7 +95938,7 @@ const aMt = [
95938
95938
  },
95939
95939
  {
95940
95940
  type: "observations",
95941
- component: Ir(() => import("./Observations-CkBi-I0o.js"))
95941
+ component: Ir(() => import("./Observations-BStzZ886.js"))
95942
95942
  },
95943
95943
  {
95944
95944
  type: "ordersControl",
@@ -96012,16 +96012,16 @@ class N1 {
96012
96012
  this.registry.clear(), this.registerBuiltInWidgets();
96013
96013
  }
96014
96014
  }
96015
- const lxt = (t) => {
96015
+ const sxt = (t) => {
96016
96016
  N1.getInstance().register(t);
96017
- }, cxt = (t) => N1.getInstance().get(t), dxt = (t) => N1.getInstance().getConfig(t), uxt = (t) => N1.getInstance().has(t), hxt = () => N1.getInstance().getAll(), pxt = () => N1.getInstance().getAllConfigs(), fxt = () => {
96017
+ }, lxt = (t) => N1.getInstance().get(t), cxt = (t) => N1.getInstance().getConfig(t), dxt = (t) => N1.getInstance().has(t), uxt = () => N1.getInstance().getAll(), hxt = () => N1.getInstance().getAllConfigs(), pxt = () => {
96018
96018
  N1.getInstance().reset();
96019
96019
  }, Jbe = o.createContext(void 0), iMt = () => {
96020
96020
  const t = o.useContext(Jbe);
96021
96021
  if (!t)
96022
96022
  throw new Error("useLocation must be used within LocationProvider");
96023
96023
  return t;
96024
- }, mxt = ({
96024
+ }, fxt = ({
96025
96025
  children: t
96026
96026
  }) => {
96027
96027
  const [e, r] = ce(null), [n, a] = ce(
@@ -96086,7 +96086,7 @@ const lxt = (t) => {
96086
96086
  skeleton: lMt,
96087
96087
  error: cMt,
96088
96088
  noLocation: dMt
96089
- }, gxt = () => {
96089
+ }, mxt = () => {
96090
96090
  const { t } = yt(), { location: e, setLocation: r, availableLocations: n, loading: a, error: i } = iMt(), s = (c) => {
96091
96091
  !c || c.uuid === e?.uuid || r(c);
96092
96092
  };
@@ -96114,81 +96114,81 @@ const lxt = (t) => {
96114
96114
  ) });
96115
96115
  };
96116
96116
  export {
96117
- gt as $,
96117
+ xhe as $,
96118
96118
  p7t as A,
96119
- txt as B,
96119
+ xa as B,
96120
96120
  Blt as C,
96121
- WMt as D,
96122
- lbe as E,
96123
- BMt as F,
96121
+ qMt as D,
96122
+ hn as E,
96123
+ tit as F,
96124
96124
  oyt as G,
96125
- xa as H,
96126
- hyt as I,
96127
- yMt as J,
96128
- Tyt as K,
96129
- PMt as L,
96130
- Dr as M,
96131
- rxt as N,
96125
+ hyt as H,
96126
+ Tyt as I,
96127
+ EMt as J,
96128
+ txt as K,
96129
+ aEt as L,
96130
+ vwt as M,
96131
+ gt as N,
96132
96132
  ebe as O,
96133
96133
  h1 as P,
96134
96134
  _lt as Q,
96135
- va as R,
96136
- qMt as S,
96135
+ UMt as R,
96136
+ ext as S,
96137
96137
  wa as T,
96138
96138
  XHt as U,
96139
96139
  OEt as V,
96140
96140
  UHt as W,
96141
- ZMt as X,
96141
+ xlt as X,
96142
96142
  Ymt as Y,
96143
96143
  us as Z,
96144
- GMt as _,
96144
+ KMt as _,
96145
96145
  o1 as a,
96146
96146
  qHt as a0,
96147
96147
  kc as a1,
96148
96148
  Zc as a2,
96149
96149
  QHt as a3,
96150
- oxt as a4,
96150
+ nxt as a4,
96151
96151
  $mt as a5,
96152
96152
  eMt as a6,
96153
96153
  tMt as a7,
96154
- axt as a8,
96154
+ oxt as a8,
96155
96155
  Ybe as a9,
96156
- ixt as aa,
96157
- sxt as ab,
96158
- lxt as ac,
96159
- cxt as ad,
96160
- dxt as ae,
96161
- uxt as af,
96162
- hxt as ag,
96163
- pxt as ah,
96164
- fxt as ai,
96156
+ axt as aa,
96157
+ ixt as ab,
96158
+ sxt as ac,
96159
+ lxt as ad,
96160
+ cxt as ae,
96161
+ dxt as af,
96162
+ uxt as ag,
96163
+ hxt as ah,
96164
+ pxt as ai,
96165
96165
  Jbe as aj,
96166
96166
  iMt as ak,
96167
- mxt as al,
96168
- gxt as am,
96169
- xhe as b,
96170
- tit as c,
96171
- xlt as d,
96167
+ fxt as al,
96168
+ mxt as am,
96169
+ kMt as b,
96170
+ PMt as c,
96171
+ va as d,
96172
96172
  Ilt as e,
96173
- YMt as f,
96174
- kMt as g,
96175
- XMt as h,
96176
- QMt as i,
96173
+ GMt as f,
96174
+ $Mt as g,
96175
+ JMt as h,
96176
+ XMt as i,
96177
96177
  Or as j,
96178
- ext as k,
96179
- KMt as l,
96180
- Z7t as m,
96181
- jMt as n,
96182
- oc as o,
96183
- vgt as p,
96184
- xgt as q,
96185
- FMt as r,
96186
- UMt as s,
96187
- JMt as t,
96178
+ QMt as k,
96179
+ oc as l,
96180
+ WMt as m,
96181
+ BMt as n,
96182
+ jMt as o,
96183
+ Z7t as p,
96184
+ Dr as q,
96185
+ vgt as r,
96186
+ FMt as s,
96187
+ YMt as t,
96188
96188
  n1 as u,
96189
- vwt as v,
96190
- hn as w,
96191
- Avt as x,
96189
+ xgt as v,
96190
+ Avt as w,
96191
+ ZMt as x,
96192
96192
  tbe as y,
96193
- aEt as z
96193
+ lbe as z
96194
96194
  };