@bahmni/registration-app 0.0.1-dev.262 → 0.0.1-dev.263

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 p, Fragment as Y } from "react/jsx-runtime";
2
- import { d as K, u as Q, a as W, A as J, b as X, m as Z, l as ee, r as te } from "./index-DzuJDCSb.js";
2
+ import { d as K, u as Q, a as W, A as J, b as X, m as Z, l as ee, r as te } from "./index-D1-b232k.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as m, useCallback as h, useEffect as O, useMemo as T } from "react";
5
5
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
- import { u as Z, d as ee, h as re, z as ae, x as te, N as oe, M as se, X as ne, D as U, m as de, b as ie, l as S, c as me, _ as ue, r as le, j as ce, H as fe } from "./index-DzuJDCSb.js";
2
+ import { u as Z, d as ee, h as re, z as ae, x as te, N as oe, M as se, X as ne, D as U, m as de, b as ie, l as S, c as me, _ as ue, r as le, j as ce, H as fe } from "./index-D1-b232k.js";
3
3
  import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
4
4
  import { useState as q, useMemo as d, useCallback as f } from "react";
5
5
  const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D6maZ4ez.js";
2
- import { q as d, s as f, t as e } from "./index-DzuJDCSb.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-MwrxBN6h.js";
2
+ import { q as d, s as f, t as e } from "./index-D1-b232k.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-D6maZ4ez.js";
2
- import { q as v, s as C, t as e } from "./index-DzuJDCSb.js";
1
+ import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-MwrxBN6h.js";
2
+ import { q as v, s as C, t as e } from "./index-D1-b232k.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { d as B, a as K, u as S, V as Q, e as X, X as x, L as w, f as G, R as H, g as M, l as j, T as z, n as D, O as P, i as Y, k as J, o as W, p as Z, E as ee } from "./index-DzuJDCSb.js";
2
+ import { d as B, a as K, u as S, V as Q, e as X, X as x, L as w, f as G, R as H, g as M, l as j, T as z, n as D, O as P, i as Y, k as J, o as W, p as Z, E as ee } from "./index-D1-b232k.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as R } from "react";
5
5
  const L = (a, n, d, l, b, r) => {
@@ -1,4 +1,4 @@
1
- import { v as we, w as z, y as xt, B, s as q, t as y, P as Ro, C as ye, S as R, F as _, G as k, I as N, J as A, K as bs, Q as ir, U as $e, W as U, Y as Hn, Z 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-DzuJDCSb.js";
1
+ import { v as we, w as z, y as xt, B, s as q, t as y, P as Ro, C as ye, S as R, F as _, G as k, I as N, J as A, K as bs, Q as ir, U as $e, W as U, Y as Hn, Z 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-D1-b232k.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -167193,7 +167193,7 @@ function EU0(t, e, r) {
167193
167193
  return n;
167194
167194
  };
167195
167195
  }
167196
- mt(() => Promise.resolve().then(() => xB0)), mt(() => Promise.resolve().then(() => QB0)), mt(() => Promise.resolve().then(() => AP0)), mt(() => Promise.resolve().then(() => SP0)), mt(() => import("./DocumentsTable-BlVU4V60-Ak31L8Y7.js")), mt(() => Promise.resolve().then(() => _q0)), mt(() => import("./FormsTable-CkewSseV-BfBN5xKM.js")), mt(() => Promise.resolve().then(() => nq0)), mt(() => import("./Observations-D0J6XB64-D_DhJGo7.js")), mt(
167196
+ mt(() => Promise.resolve().then(() => xB0)), mt(() => Promise.resolve().then(() => QB0)), mt(() => Promise.resolve().then(() => AP0)), mt(() => Promise.resolve().then(() => SP0)), mt(() => import("./DocumentsTable-BlVU4V60-BBAhnbG5.js")), mt(() => Promise.resolve().then(() => _q0)), mt(() => import("./FormsTable-CkewSseV-5wBuIzQo.js")), mt(() => Promise.resolve().then(() => nq0)), mt(() => import("./Observations-D0J6XB64-Bs_tPfXP.js")), mt(
167197
167197
  () => Promise.resolve().then(() => Bq0)
167198
167198
  ), mt(
167199
167199
  () => Promise.resolve().then(() => bj0)
@@ -169032,7 +169032,7 @@ var U2t = (t, e = !1) => {
169032
169032
  const e = mj1(() => {
169033
169033
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
169034
169034
  let u;
169035
- return this.#i ? u = this.#i : (u = pj1(() => import("./LNWAZHJI-DPI77yyc.js")), this.#i = u), Oj1(this.#h, this.#r), uj1(u, hj1({
169035
+ return this.#i ? u = this.#i : (u = pj1(() => import("./LNWAZHJI-CgTTTsz0.js")), this.#i = u), Oj1(this.#h, this.#r), uj1(u, hj1({
169036
169036
  get queryFlavor() {
169037
169037
  return r.#d;
169038
169038
  },
@@ -169130,7 +169130,7 @@ var U2t = (t, e = !1) => {
169130
169130
  const e = mj1(() => {
169131
169131
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [u] = this.#i;
169132
169132
  let d;
169133
- return this.#l ? d = this.#l : (d = pj1(() => import("./MWZ6AO7Z-ZdPnLyfW.js")), this.#l = d), Oj1(this.#h, this.#r), uj1(d, hj1({
169133
+ return this.#l ? d = this.#l : (d = pj1(() => import("./MWZ6AO7Z-Cv-bIkai.js")), this.#l = d), Oj1(this.#h, this.#r), uj1(d, hj1({
169134
169134
  get queryFlavor() {
169135
169135
  return r.#d;
169136
169136
  },
@@ -169349,16 +169349,19 @@ const WW0 = {
169349
169349
  queryFn: cJ2,
169350
169350
  staleTime: 3e5,
169351
169351
  gcTime: 6e5
169352
- });
169353
- return { genders: Be(() => Object.values(e).map((a) => {
169352
+ }), r = Be(() => Object.values(e).map((a) => {
169354
169353
  const i = `CREATE_PATIENT_GENDER_${String(a || "").toUpperCase()}`;
169355
169354
  return t(i);
169356
- }), [e, t]), getGenderDisplay: (a) => {
169357
- const c = e[a];
169358
- if (!c) return a;
169359
- const l = `CREATE_PATIENT_GENDER_${String(c).toUpperCase()}`;
169360
- return t(l);
169361
- } };
169355
+ }), [e, t]), n = He(
169356
+ (a) => {
169357
+ const c = e[a];
169358
+ if (!c) return a;
169359
+ const l = `CREATE_PATIENT_GENDER_${String(c).toUpperCase()}`;
169360
+ return t(l);
169361
+ },
169362
+ [e, t]
169363
+ );
169364
+ return { genders: r, getGenderDisplay: n };
169362
169365
  };
169363
169366
  function kK0(t, e, r) {
169364
169367
  return (e = BK0(e)) in t ? Object.defineProperty(t, e, {
@@ -177187,7 +177190,13 @@ function sq1(t) {
177187
177190
  resourceType: "Patient",
177188
177191
  ...d && { id: d },
177189
177192
  ...h.length > 0 ? { identifier: h } : {},
177190
- name: [{ given: f, family: e.lastName }],
177193
+ name: [
177194
+ {
177195
+ ...d && e.nameUuid && { id: e.nameUuid },
177196
+ given: f,
177197
+ family: e.lastName
177198
+ }
177199
+ ],
177191
177200
  gender: SQ0(e.gender),
177192
177201
  birthDate: kQ0(e.dateOfBirth, e.dobEstimated),
177193
177202
  ...M && {
@@ -179499,7 +179508,7 @@ const Det = [
179499
179508
  return !1;
179500
179509
  }
179501
179510
  });
179502
- }, Uet = "_main_jml11_1", Wet = "_patientSearchResult_jml11_8", Ket = "_resultsTitle_jml11_13", Get = "_patientSearchTableBody_jml11_22", Yet = "_scheduledStatus_jml11_26", Jet = "_arrivedStatus_jml11_31", Xet = "_checkedInStatus_jml11_36", Qet = "_completedStatus_jml11_41", e1t = "_missedStatus_jml11_46", t1t = "_cancelledStatus_jml11_47", r1t = "_actionButtonsContainer_jml11_57", n1t = "_actionButton_jml11_57", o1t = "_headerButton_jml11_75", oo = {
179511
+ }, Uet = "_main_1vixh_1", Wet = "_patientSearchResult_1vixh_8", Ket = "_resultsTitle_1vixh_13", Get = "_patientSearchTableBody_1vixh_22", Yet = "_scheduledStatus_1vixh_26", Jet = "_arrivedStatus_1vixh_31", Xet = "_checkedInStatus_1vixh_36", Qet = "_completedStatus_1vixh_41", e1t = "_missedStatus_1vixh_46", t1t = "_cancelledStatus_1vixh_47", r1t = "_actionButtonsContainer_1vixh_57", n1t = "_actionButton_1vixh_57", o1t = "_headerButton_1vixh_75", oo = {
179503
179512
  main: Uet,
179504
179513
  patientSearchResult: Wet,
179505
179514
  resultsTitle: Ket,
@@ -179746,27 +179755,27 @@ const Det = [
179746
179755
  a && !e && n(a);
179747
179756
  }, [a, e]), se(() => {
179748
179757
  if (i) {
179749
- const { title: y, message: w } = L5(i);
179750
- sQ2.showError(y, w);
179758
+ const { title: f, message: y } = L5(i);
179759
+ sQ2.showError(f, y);
179751
179760
  }
179752
179761
  }, [i]);
179753
- const s = e ? !1 : c, u = i ? new Error(String(i)) : null, d = () => {
179754
- }, h = () => {
179755
- }, p = async () => {
179762
+ const s = e ? !1 : c, u = () => {
179763
+ }, d = () => {
179764
+ }, h = He(async () => {
179756
179765
  await l();
179757
- }, f = Be(
179766
+ }, [l]), p = Be(
179758
179767
  () => ({
179759
179768
  personAttributes: r,
179760
179769
  setPersonAttributes: n,
179761
179770
  isLoading: s,
179762
- setIsLoading: d,
179763
- error: u,
179764
- setError: h,
179765
- refetch: p
179771
+ setIsLoading: u,
179772
+ error: i == null ? null : i instanceof Error ? i : new Error(String(i)),
179773
+ setError: d,
179774
+ refetch: h
179766
179775
  }),
179767
- [r, s, u, p]
179776
+ [r, s, i, h]
179768
179777
  );
179769
- return /* @__PURE__ */ ce(dq1.Provider, { value: f, children: t });
179778
+ return /* @__PURE__ */ ce(dq1.Provider, { value: p, children: t });
179770
179779
  };
179771
179780
  xq1.displayName = "PersonAttributesProvider";
179772
179781
  const l1t = new Nq1(WW0), J2t = () => {