@bahmni/widgets 0.0.1-dev.222 → 0.0.1-dev.226

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 s, jsxs as _, Fragment as K } from "react/jsx-runtime";
2
- import { u as Q, a as X, W as J, r as Z, b as x, c as ee, y as te } from "./index-Bjn1f4Rq.js";
2
+ import { u as Q, a as X, W as J, r as Z, b as x, c as ee, y as te } from "./index-DblSwW7B.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as p, useEffect as N, useMemo as f } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as X, Fragment as Z } from "react/jsx-runtime";
2
- import { V as ee, u as re, $ as te, D as oe, I as ae, C as se, R as ne, K as de, d as q, b as ie, r as me, c as U, Q as ce, e as le, y as ue, O as fe } from "./index-Bjn1f4Rq.js";
2
+ import { V as ee, u as re, $ as te, D as oe, I as ae, C as se, R as ne, K as de, d as q, b as ie, r as me, c as U, Q as ce, e as le, y as ue, O as fe } from "./index-DblSwW7B.js";
3
3
  import { useQueryClient as ye, useQuery as f } from "@tanstack/react-query";
4
4
  import { useState as x, useMemo as d, useCallback as y } from "react";
5
5
  import { useTranslation as pe } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as S } from "react/jsx-runtime";
2
- import { f as V, g as D, t as k, A as q, l as Q, M as w, h as G, E as P, u as j, a as H, i as z, j as Y, K as J, k as W, m as X, s as Z, n as x, c as ee } from "./index-Bjn1f4Rq.js";
2
+ import { f as V, g as D, t as k, A as q, l as Q, M as w, h as G, E as P, u as j, a as H, i as z, j as Y, K as J, k as W, m as X, s as Z, n as x, c as ee } from "./index-DblSwW7B.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";
@@ -1,5 +1,5 @@
1
1
  export declare const FHIR_EXT_IMMUNIZATION_DRUG = "http://fhir.bahmni.org/ext/immunization/administeredProduct";
2
- export declare const ADMINISTERING_PROVIDER_CODE = "AP";
2
+ export declare const ENTERING_PROVIDER_CODE = "EP";
3
3
  export declare const ORDERING_PROVIDER_CODE = "OP";
4
4
  export declare const ADD_IMMUNIZATIONS_PRIVILEGE = "Add Immunizations";
5
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,gEACwB,CAAC;AAChE,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAChD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,2BAA2B,sBAAsB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,gEACwB,CAAC;AAChE,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,2BAA2B,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACrC,MAAM,SAAS,CAAC;AA2BjB,wBAAgB,uCAAuC,CACrD,YAAY,EAAE,YAAY,GACzB,iCAAiC,CAmCnC;AAED,wBAAgB,0CAA0C,CACxD,YAAY,EAAE,YAAY,GACzB,oCAAoC,CAQtC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACrC,MAAM,SAAS,CAAC;AA2BjB,wBAAgB,uCAAuC,CACrD,YAAY,EAAE,YAAY,GACzB,iCAAiC,CAgCnC;AAED,wBAAgB,0CAA0C,CACxD,YAAY,EAAE,YAAY,GACzB,oCAAoC,CAQtC"}
@@ -68705,7 +68705,7 @@ const GJe = [
68705
68705
  "appended"
68706
68706
  ], JJe = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", QJe = async () => await Dt(JJe), nd = async (t) => t ? (await QJe()).results.find(
68707
68707
  (e) => e.display.toLowerCase() === t.toLowerCase()
68708
- )?.uuid : void 0;
68708
+ )?.uuid ?? null : null;
68709
68709
  var Hl = { exports: {} }, bie = {}, B1 = {}, Hn = {}, Mie = {}, xie = {}, Nie = {}, zie;
68710
68710
  function ui() {
68711
68711
  return zie || (zie = 1, (function(t) {
@@ -79603,12 +79603,12 @@ const Znt = ({ config: t }) => {
79603
79603
  }, Bnt = (t) => {
79604
79604
  const { userPrivileges: e } = Whe();
79605
79605
  return phe(e, t);
79606
- }, Pnt = "_widget_1b9jc_1", jnt = "_header_1b9jc_5", Fnt = "_code_1b9jc_24", qnt = "_expandedRowContent_1b9jc_31", R2 = {
79606
+ }, Pnt = "_widget_10hzg_1", jnt = "_header_10hzg_5", Fnt = "_code_10hzg_27", qnt = "_expandedRowContent_10hzg_34", R2 = {
79607
79607
  widget: Pnt,
79608
79608
  header: jnt,
79609
79609
  code: Fnt,
79610
79610
  expandedRowContent: qnt
79611
- }, Unt = "http://fhir.bahmni.org/ext/immunization/administeredProduct", Khe = "AP", Wnt = "OP", Knt = "Add Immunizations";
79611
+ }, Unt = "http://fhir.bahmni.org/ext/immunization/administeredProduct", Khe = "EP", Wnt = "OP", Knt = "Add Immunizations";
79612
79612
  function qc(t, e) {
79613
79613
  return t.performer?.find(
79614
79614
  (r) => r.function?.coding?.some((n) => n.code === e)
@@ -79622,10 +79622,7 @@ function Gnt(t) {
79622
79622
  return e ? e.toString() : null;
79623
79623
  }
79624
79624
  function Jnt(t) {
79625
- const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = qc(
79626
- t,
79627
- Khe
79628
- ), s = qc(t, Wnt), l = t.note?.[0]?.text ?? null;
79625
+ const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = qc(t, Khe), s = qc(t, Wnt), l = t.note?.[0]?.text ?? null;
79629
79626
  return {
79630
79627
  id: t.id ?? "",
79631
79628
  code: t.vaccineCode?.coding?.[0]?.display ?? null,
@@ -79666,7 +79663,7 @@ const Xnt = [
79666
79663
  });
79667
79664
  k1(
79668
79665
  (h) => {
79669
- h.patientUUID === t && h.updatedResources.immunizations && i();
79666
+ h.patientUUID === t && h.updatedResources.immunizationHistory && i();
79670
79667
  },
79671
79668
  [t, i]
79672
79669
  );
@@ -79791,7 +79788,7 @@ const Xnt = [
79791
79788
  });
79792
79789
  k1(
79793
79790
  (d) => {
79794
- d.patientUUID === t && d.updatedResources.immunizations && i();
79791
+ d.patientUUID === t && d.updatedResources.immunizationHistory && i();
79795
79792
  },
79796
79793
  [t, i]
79797
79794
  );
@@ -80336,7 +80333,7 @@ const b0t = [
80336
80333
  },
80337
80334
  {
80338
80335
  type: "patientDocuments",
80339
- component: Dr(() => import("./DocumentsTable-BquHbPl0.js"))
80336
+ component: Dr(() => import("./DocumentsTable-eBLAkZFJ.js"))
80340
80337
  },
80341
80338
  {
80342
80339
  type: "flowSheet",
@@ -80344,7 +80341,7 @@ const b0t = [
80344
80341
  },
80345
80342
  {
80346
80343
  type: "forms",
80347
- component: Dr(() => import("./FormsTable-DXgIRd8W.js"))
80344
+ component: Dr(() => import("./FormsTable-BoZA1Pi8.js"))
80348
80345
  },
80349
80346
  {
80350
80347
  type: "labOrders",
@@ -80352,7 +80349,7 @@ const b0t = [
80352
80349
  },
80353
80350
  {
80354
80351
  type: "observations",
80355
- component: Dr(() => import("./Observations-iITyjiEP.js"))
80352
+ component: Dr(() => import("./Observations-Bgnts84m.js"))
80356
80353
  },
80357
80354
  {
80358
80355
  type: "ordersControl",