@bahmni/registration-app 0.0.1-dev.160 → 0.0.1-dev.161

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 p, Fragment as H } from "react/jsx-runtime";
2
- import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as A, F as fe, N as $e, j as ge, U as ve } from "./index-Dt74mG6I.js";
2
+ import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as A, F as fe, N as $e, j as ge, U as ve } from "./index-DVECTM0z.js";
3
3
  import { useQueryClient as he, useQuery as C } from "@tanstack/react-query";
4
4
  import { useState as K, useMemo as h, useCallback as R } from "react";
5
5
  const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Fe = "_groupContainer_1pd36_39", Le = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Ve = "_rowValue_1pd36_67", Ie = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Ge = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CTvArhLW.js";
2
- import { l as d, m as f, o as e } from "./index-Dt74mG6I.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C4Bn9ZXZ.js";
2
+ import { l as d, m as f, o as e } from "./index-DVECTM0z.js";
3
3
  var p = (a) => {
4
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CTvArhLW.js";
2
- import { l as v, m as C, o as e } from "./index-Dt74mG6I.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-C4Bn9ZXZ.js";
2
+ import { l as v, m as C, o as e } from "./index-DVECTM0z.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as T, jsx as c } from "react/jsx-runtime";
2
- import { h as B, p as V, u as I, q as x, W as K, e as w, d as z, r as G, n as Q, A as j, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-Dt74mG6I.js";
2
+ import { h as B, p as V, u as I, q as x, W as K, e as w, d as z, r as G, n as Q, A as j, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-DVECTM0z.js";
3
3
  import { useQueries as Z, useQuery as ee } from "@tanstack/react-query";
4
4
  import { useRef as te, useEffect as $, useMemo as h } from "react";
5
5
  const A = (t, d, i, l, r) => {
@@ -1,4 +1,4 @@
1
- import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-Dt74mG6I.js";
1
+ import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-DVECTM0z.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -66049,7 +66049,7 @@ const $L2 = () => {
66049
66049
  }) }) }),
66050
66050
  /* @__PURE__ */ ce(H9, { children: p.map((f) => {
66051
66051
  const E = u.get(f.id);
66052
- return /* @__PURE__ */ D3(
66052
+ return E ? /* @__PURE__ */ D3(
66053
66053
  q3,
66054
66054
  {
66055
66055
  ...y({ row: f }),
@@ -66064,7 +66064,7 @@ const $L2 = () => {
66064
66064
  },
66065
66065
  h.id
66066
66066
  ))
66067
- );
66067
+ ) : null;
66068
66068
  }) })
66069
66069
  ] }) })
66070
66070
  }
@@ -136820,7 +136820,7 @@ const O70 = "_bahmniIcon_1cg5e_1", D70 = "_paddingNone_1cg5e_1", S70 = "_padding
136820
136820
  }) }) }),
136821
136821
  /* @__PURE__ */ ce(RE, { children: p.map((f) => {
136822
136822
  const E = u.get(f.id);
136823
- return /* @__PURE__ */ D3(
136823
+ return E ? /* @__PURE__ */ D3(
136824
136824
  E5,
136825
136825
  {
136826
136826
  ...y({ row: f }),
@@ -136835,7 +136835,7 @@ const O70 = "_bahmniIcon_1cg5e_1", D70 = "_paddingNone_1cg5e_1", S70 = "_padding
136835
136835
  },
136836
136836
  h.id
136837
136837
  ))
136838
- );
136838
+ ) : null;
136839
136839
  }) })
136840
136840
  ] }) })
136841
136841
  }
@@ -144908,7 +144908,10 @@ function pg0(t, e, r) {
144908
144908
  return n?.form ? n.form.text ?? n.form.coding?.[0]?.display ?? "" : "";
144909
144909
  }
144910
144910
  function fg0(t) {
144911
- const e = t.entry?.filter((n) => n.resource?.resourceType === "MedicationRequest").map((n) => n.resource) ?? [], r = /* @__PURE__ */ new Map();
144911
+ const e = t.entry?.filter((n) => {
144912
+ const a = n.resource;
144913
+ return a?.resourceType === "MedicationRequest" && !!a?.id;
144914
+ }).map((n) => n.resource) ?? [], r = /* @__PURE__ */ new Map();
144912
144915
  return t.entry?.forEach((n) => {
144913
144916
  const a = n.resource;
144914
144917
  a.resourceType === "Medication" && r.set(a.id, a);
@@ -155743,7 +155746,7 @@ const GC1 = (t, e) => ["programs", t, e], kb0 = async (t, e) => {
155743
155746
  };
155744
155747
  QC1.displayName = "UserPrivilegeProvider";
155745
155748
  U2(void 0);
155746
- or(() => Promise.resolve().then(() => xE0)), or(() => Promise.resolve().then(() => wM0)), or(() => Promise.resolve().then(() => UM0)), or(() => Promise.resolve().then(() => ez0)), or(() => Promise.resolve().then(() => Mb0)), or(() => import("./FormsTable-DV34R0pV-W5bRGUDm.js")), or(() => Promise.resolve().then(() => KV0)), or(() => import("./Observations-T2DSdtPu-DfANxE99.js")), or(
155749
+ or(() => Promise.resolve().then(() => xE0)), or(() => Promise.resolve().then(() => wM0)), or(() => Promise.resolve().then(() => UM0)), or(() => Promise.resolve().then(() => ez0)), or(() => Promise.resolve().then(() => Mb0)), or(() => import("./FormsTable-1Ss9-TNz-ldv2Y47H.js")), or(() => Promise.resolve().then(() => KV0)), or(() => import("./Observations-C0JPS6cs-DQfzGgLD.js")), or(
155747
155750
  () => Promise.resolve().then(() => _b0)
155748
155751
  ), or(
155749
155752
  () => Promise.resolve().then(() => wV0)
@@ -157582,7 +157585,7 @@ var xD0 = (t, e = !1) => {
157582
157585
  const e = wL1(() => {
157583
157586
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
157584
157587
  let d;
157585
- return this.#i ? d = this.#i : (d = fL1(() => import("./LNWAZHJI-ByCYe6z-.js")), this.#i = d), DL1(this.#h, this.#r), hL1(d, pL1({
157588
+ return this.#i ? d = this.#i : (d = fL1(() => import("./LNWAZHJI-3222dqMg.js")), this.#i = d), DL1(this.#h, this.#r), hL1(d, pL1({
157586
157589
  get queryFlavor() {
157587
157590
  return r.#d;
157588
157591
  },
@@ -157680,7 +157683,7 @@ var xD0 = (t, e = !1) => {
157680
157683
  const e = wL1(() => {
157681
157684
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
157682
157685
  let u;
157683
- return this.#l ? u = this.#l : (u = fL1(() => import("./MWZ6AO7Z-BvhC6kNL.js")), this.#l = u), DL1(this.#h, this.#r), hL1(u, pL1({
157686
+ return this.#l ? u = this.#l : (u = fL1(() => import("./MWZ6AO7Z-BH9dSPwk.js")), this.#l = u), DL1(this.#h, this.#r), hL1(u, pL1({
157684
157687
  get queryFlavor() {
157685
157688
  return r.#d;
157686
157689
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-Dt74mG6I.js";
1
+ import { av as s, at as t, au as E } from "./index-DVECTM0z.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  t as RegistrationApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.160",
3
+ "version": "0.0.1-dev.161",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",