@bahmni/registration-app 0.0.1-dev.247 → 0.0.1-dev.256

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 { c as K, u as Q, d as W, E as J, l as X, m as Z, a as ee, w as te } from "./index-BrajMZw_.js";
2
+ import { c as K, u as Q, d as W, y as J, l as X, m as Z, a as ee, w as te } from "./index-BuWaqG5L.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, 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", le = "_documentImage_1voj8_50", d = {
@@ -21,10 +21,10 @@ const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11",
21
21
  function j(a) {
22
22
  return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
23
23
  }
24
- function ue(a, E) {
24
+ function ue(a, g) {
25
25
  return a.map((s) => ({
26
26
  key: s,
27
- header: E(me[s])
27
+ header: g(me[s])
28
28
  }));
29
29
  }
30
30
  const _e = [
@@ -33,12 +33,12 @@ const _e = [
33
33
  "uploadedOn",
34
34
  "uploadedBy",
35
35
  "action"
36
- ], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], fe = ({ config: a, encounterUuids: E }) => {
36
+ ], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], fe = ({ config: a, encounterUuids: g }) => {
37
37
  const [s, S] = l(!1), [o, L] = l(
38
38
  null
39
39
  ), [R, I] = l(
40
40
  /* @__PURE__ */ new Set()
41
- ), g = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C, A] = l(1), [m, k] = l($), [V, y] = l(void 0), M = h((e) => {
41
+ ), E = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C, y] = l(1), [m, k] = l($), [V, A] = l(void 0), M = h((e) => {
42
42
  L(e), S(!0);
43
43
  }, []), F = h(() => {
44
44
  S(!1), L(null), I(/* @__PURE__ */ new Set());
@@ -47,24 +47,24 @@ const _e = [
47
47
  }, []), { data: u, isLoading: H, isError: D, error: v } = ae({
48
48
  queryKey: [
49
49
  "documents",
50
- g,
51
50
  E,
51
+ g,
52
52
  C,
53
53
  m
54
54
  ],
55
- enabled: !!g,
55
+ enabled: !!E,
56
56
  queryFn: () => J(
57
- g,
58
57
  E,
58
+ g,
59
59
  m,
60
60
  C
61
61
  )
62
62
  });
63
63
  O(() => {
64
- u && y(u.total);
64
+ u && A(u.total);
65
65
  }, [u]), O(() => {
66
- A(1), y(void 0);
67
- }, [g]), O(() => {
66
+ y(1), A(void 0);
67
+ }, [E]), O(() => {
68
68
  D && U({
69
69
  title: n("ERROR_DEFAULT_TITLE"),
70
70
  message: v?.message ?? "",
@@ -91,7 +91,7 @@ const _e = [
91
91
  }, [s, o]);
92
92
  const q = h(
93
93
  (e, t) => {
94
- t !== m ? (k(t), A(1), y(void 0)) : A(e);
94
+ t !== m ? (k(t), y(1), A(void 0)) : y(e);
95
95
  },
96
96
  [m]
97
97
  ), f = T(
@@ -1,5 +1,5 @@
1
- import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
- import { u as Z, c as ee, b as re, v as ae, e as te, g as oe, f as se, X as ne, L as U, m as de, l as ie, a as S, x as me, N as ue, w as le, $ as ce, p as fe } from "./index-BrajMZw_.js";
1
+ import { jsx as s, jsxs as W, Fragment as J } from "react/jsx-runtime";
2
+ import { u as Z, c as ee, b as re, E as ae, g as te, v as oe, e as se, X as ne, L as U, m as de, l as ie, a as S, x as me, N as ue, w as le, $ as ce, f as fe } from "./index-BuWaqG5L.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", O = {
@@ -12,20 +12,20 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
12
12
  encounterUuids: n,
13
13
  config: C
14
14
  }) => {
15
- const { t: o } = Z(), u = ee(), [l, A] = q(!1), [t, I] = q(null), { numberOfVisits: k, hideThumbnail: w = !1 } = C ?? {}, L = re(
15
+ const { t: o } = Z(), u = ee(), [l, A] = q(!1), [t, I] = q(null), { numberOfVisits: k, hideThumbnail: w = !1 } = C ?? {}, E = re(
16
16
  m,
17
17
  n
18
18
  ), x = ye(), {
19
19
  data: y = [],
20
- isLoading: T,
21
- isError: B,
20
+ isLoading: B,
21
+ isError: L,
22
22
  error: $,
23
23
  refetch: H
24
24
  } = c({
25
25
  queryKey: ["forms", u, m],
26
26
  queryFn: () => ae(u, void 0, k),
27
- enabled: !!u && !L
28
- }), E = d(() => !n || n.length === 0 ? y : y.filter(
27
+ enabled: !!u && !E
28
+ }), T = d(() => !n || n.length === 0 ? y : y.filter(
29
29
  (e) => n.includes(e.encounterUuid)
30
30
  ), [y, n]), { data: _ = [] } = c({
31
31
  queryKey: ["observationForms"],
@@ -68,7 +68,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
68
68
  return U(b).message;
69
69
  if (N)
70
70
  return U(N).message;
71
- }, [b, N]), D = d(
71
+ }, [b, N]), F = d(
72
72
  () => [
73
73
  { key: "recordedOn", header: o("RECORDED_ON") },
74
74
  { key: "recordedBy", header: o("RECORDED_BY") }
@@ -80,8 +80,8 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
80
80
  { key: "recordedBy", sortable: !0 }
81
81
  ],
82
82
  []
83
- ), F = d(() => {
84
- const e = E.reduce(
83
+ ), M = d(() => {
84
+ const e = T.reduce(
85
85
  (r, a) => {
86
86
  const i = a.formName;
87
87
  r[i] ??= [];
@@ -105,7 +105,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
105
105
  )
106
106
  })
107
107
  ).sort((r, a) => r.formName.localeCompare(a.formName));
108
- }, [E, o]), M = f((e) => {
108
+ }, [T, o]), D = f((e) => {
109
109
  I(e), A(!0);
110
110
  }, []), X = f(() => {
111
111
  A(!1), I(null);
@@ -113,30 +113,30 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
113
113
  (e, r) => {
114
114
  switch (r) {
115
115
  case "recordedOn":
116
- return /* @__PURE__ */ s(ie, { onClick: () => M(e), children: e.recordedOn });
116
+ return /* @__PURE__ */ s(ie, { onClick: () => D(e), children: e.recordedOn });
117
117
  case "recordedBy":
118
118
  return e.recordedBy;
119
119
  default:
120
120
  return null;
121
121
  }
122
122
  },
123
- [M]
123
+ [D]
124
124
  );
125
- return /* @__PURE__ */ J(W, { children: [
126
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || B || F.length === 0 || L ? /* @__PURE__ */ s(
125
+ return /* @__PURE__ */ W(J, { children: [
126
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || L || M.length === 0 || E ? /* @__PURE__ */ s(
127
127
  S,
128
128
  {
129
- headers: D,
129
+ headers: F,
130
130
  ariaLabel: o("FORMS_HEADING"),
131
131
  rows: [],
132
- loading: T,
133
- errorStateMessage: B ? $?.message : void 0,
132
+ loading: B,
133
+ errorStateMessage: L ? $?.message : void 0,
134
134
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
135
135
  renderCell: R,
136
136
  className: O.formsTableBody,
137
137
  dataTestId: "forms-table"
138
138
  }
139
- ) : /* @__PURE__ */ s(me, { align: "start", children: F.map((e, r) => {
139
+ ) : /* @__PURE__ */ s(me, { align: "start", children: M.map((e, r) => {
140
140
  const { formName: a, records: i } = e;
141
141
  return /* @__PURE__ */ s(
142
142
  ue,
@@ -148,7 +148,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
148
148
  children: /* @__PURE__ */ s(
149
149
  S,
150
150
  {
151
- headers: D,
151
+ headers: F,
152
152
  ariaLabel: o("FORMS_HEADING"),
153
153
  rows: i,
154
154
  loading: !1,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D42YfhZD.js";
2
- import { y as d, z as f, A as e } from "./index-BrajMZw_.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C1IfqwdX.js";
2
+ import { s as d, t as f, A as e } from "./index-BuWaqG5L.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,9 +1,9 @@
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-D42YfhZD.js";
2
- import { y as v, z as C, A as e } from "./index-BrajMZw_.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-C1IfqwdX.js";
2
+ import { s as v, t as C, A as e } from "./index-BuWaqG5L.js";
3
3
  var h = (t) => {
4
- const [r, o] = s({
4
+ const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = v(), l = C(() => {
6
+ }), a = v(), s = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -16,7 +16,7 @@ var h = (t) => {
16
16
  setLocalStore: o,
17
17
  get children() {
18
18
  return e(i.Provider, {
19
- value: l,
19
+ value: s,
20
20
  get children() {
21
21
  return e(m, {
22
22
  get children() {
@@ -1,9 +1,9 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { c as H, d as K, u as S, h as V, i as M, X as Q, M as X, j as x, k as j, H as w, a as G, n as P, K as D, o as z, q as Y, R as J, r as W, s as Z, t as ee } from "./index-BrajMZw_.js";
2
+ import { c as V, d as H, u as S, p as K, h as M, X as Q, i as X, j as x, z as j, H as w, a as z, k as G, Y as D, M as Y, o as P, R as J, n as W, q as Z, r as ee } from "./index-BuWaqG5L.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 F = (a, n, d, l, b, r) => {
6
- const t = z(a, n, b), s = t.value, o = Y(s);
6
+ const t = Y(a, n, b), s = t.value, o = P(s);
7
7
  let i = s;
8
8
  o === "Image" && (i = /* @__PURE__ */ u(
9
9
  W,
@@ -60,7 +60,7 @@ const F = (a, n, d, l, b, r) => {
60
60
  hideThumbnail: d
61
61
  }) => {
62
62
  const { t: l } = S(), b = (r, t, s) => {
63
- const o = P(r.encounterDetails, l);
63
+ const o = G(r.encounterDetails, l);
64
64
  return /* @__PURE__ */ N(
65
65
  D,
66
66
  {
@@ -113,10 +113,10 @@ const F = (a, n, d, l, b, r) => {
113
113
  conceptNames: d = [],
114
114
  conceptUuid: l = [],
115
115
  hideThumbnail: b = !1
116
- } = n, r = se(/* @__PURE__ */ new Set()), t = H(), { addNotification: s } = K(), { t: o } = S(), i = ae({
116
+ } = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = H(), { t: o } = S(), i = ae({
117
117
  queries: d.map((e) => ({
118
118
  queryKey: de(e),
119
- queryFn: () => V(e),
119
+ queryFn: () => K(e),
120
120
  enabled: !!e
121
121
  }))
122
122
  });
@@ -134,7 +134,7 @@ const F = (a, n, d, l, b, r) => {
134
134
  }, [i, d]);
135
135
  const p = R(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), m = R(() => [.../* @__PURE__ */ new Set([...p, ...l])], [p, l]), y = R(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
136
136
  data: c,
137
- isLoading: A,
137
+ isLoading: q,
138
138
  isError: f,
139
139
  refetch: T
140
140
  } = te({
@@ -160,11 +160,11 @@ const F = (a, n, d, l, b, r) => {
160
160
  if (!c) return [];
161
161
  const e = X(c), h = x(e);
162
162
  return j(h);
163
- }, [c]), L = [
163
+ }, [c]), A = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], O = A || !y, _ = f && y, k = (!c || c.entry?.length === 0 || m.length === 0) && y, q = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = k ? o("NO_OBSERVATIONS_FOUND") : void 0, U = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
167
+ ], O = q || !y, _ = f && y, L = (!c || c.entry?.length === 0 || m.length === 0) && y, k = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = L ? o("NO_OBSERVATIONS_FOUND") : void 0, U = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
168
168
  return /* @__PURE__ */ N(
169
169
  "div",
170
170
  {
@@ -191,13 +191,13 @@ const F = (a, n, d, l, b, r) => {
191
191
  hideThumbnail: b
192
192
  }
193
193
  ) : /* @__PURE__ */ u(
194
- G,
194
+ z,
195
195
  {
196
- headers: L,
196
+ headers: A,
197
197
  rows: [],
198
198
  ariaLabel: o("OBSERVATIONS"),
199
199
  loading: O,
200
- errorStateMessage: q,
200
+ errorStateMessage: k,
201
201
  emptyStateMessage: C,
202
202
  dataTestId: "observations-table"
203
203
  }
@@ -1,4 +1,4 @@
1
- import { B as we, C as z, D as xt, F as B, z as q, A as y, P as Ro, G as ye, S as R, I as _, J as k, O as N, Q as A, T as bs, U as ir, V 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 Os } from "./index-BrajMZw_.js";
1
+ import { B as we, C as z, D as xt, F as B, t as q, A as y, P as Ro, G as ye, S as R, I as _, J as k, K as N, O as A, Q as bs, T as ir, U as $e, V as U, W 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 Os } from "./index-BuWaqG5L.js";
2
2
  var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/profile/Profile.tsx"],"names":[],"mappings":"AAQA,OAAO,EAIL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,aAAa,GAAG;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,aAAa,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE;AAED,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO;kFAMjB,YAAY;;CAwpBd,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/profile/Profile.tsx"],"names":[],"mappings":"AAQA,OAAO,EAIL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,aAAa,GAAG;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,aAAa,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE;AAED,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO;kFAMjB,YAAY;;CA6pBd,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { PatientIdentifier, PatientAddress } from '@bahmni/services';
2
+ import { Patient } from 'fhir/r4';
2
3
  import { RelationshipData } from '../components/forms/patientRelationships/PatientRelationships';
3
4
  import { BasicInfoData, PersonAttributesData, AdditionalIdentifiersData } from '../models/patient';
4
5
  interface CreatePatientFormData {
@@ -13,6 +14,6 @@ interface CreatePatientFormData {
13
14
  additionalIdentifiers: AdditionalIdentifiersData;
14
15
  relationships: RelationshipData[];
15
16
  }
16
- export declare const useCreatePatient: () => import('@tanstack/react-query').UseMutationResult<import('@bahmni/services').CreatePatientResponse, Error, CreatePatientFormData, unknown>;
17
+ export declare const useCreatePatient: () => import('@tanstack/react-query').UseMutationResult<Patient, Error, CreatePatientFormData, unknown>;
17
18
  export {};
18
19
  //# sourceMappingURL=useCreatePatient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EACjB,cAAc,EAOf,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAEtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAI3B,UAAU,qBAAqB;IAC7B,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,kJAkD5B,CAAC"}
1
+ {"version":3,"file":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,cAAc,EAMf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAK3B,UAAU,qBAAqB;IAC7B,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACnC;AAYD,eAAO,MAAM,gBAAgB,yGA+E5B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { PatientIdentifier, PatientAddress } from '@bahmni/services';
2
+ import { Patient } from 'fhir/r4';
2
3
  import { RelationshipData } from '../components/forms/patientRelationships/PatientRelationships';
3
4
  import { BasicInfoData, PersonAttributesData, AdditionalIdentifiersData } from '../models/patient';
4
5
  interface UpdatePatientFormData {
@@ -15,6 +16,6 @@ interface UpdatePatientFormData {
15
16
  additionalIdentifiersInitialData?: AdditionalIdentifiersData;
16
17
  relationships?: RelationshipData[];
17
18
  }
18
- export declare const useUpdatePatient: () => import('@tanstack/react-query').UseMutationResult<import('@bahmni/services').CreatePatientResponse, Error, UpdatePatientFormData, unknown>;
19
+ export declare const useUpdatePatient: () => import('@tanstack/react-query').UseMutationResult<Patient, Error, UpdatePatientFormData, unknown>;
19
20
  export {};
20
21
  //# sourceMappingURL=useUpdatePatient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUpdatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useUpdatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EACjB,cAAc,EAOf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAEtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAM3B,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,gCAAgC,CAAC,EAAE,yBAAyB,CAAC;IAC7D,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB,kJA+C5B,CAAC"}
1
+ {"version":3,"file":"useUpdatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useUpdatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,cAAc,EAMf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAO3B,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,gCAAgC,CAAC,EAAE,yBAAyB,CAAC;IAC7D,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAYD,eAAO,MAAM,gBAAgB,yGA4D5B,CAAC"}