@bahmni/clinical-app 0.0.1-dev.396 → 0.0.1-dev.397

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.
Files changed (25) hide show
  1. package/dist/{ConsultationPage-Bk6FTsz0.js → ConsultationPage-Dzvkm4mR.js} +7958 -7908
  2. package/dist/{DocumentsTable-BACwpRCF-MhFnZkg0.js → DocumentsTable-CyCmTrjB-DY8J4Lae.js} +1 -1
  3. package/dist/{FormsTable-CnCVkY6d-BJs5BBSW.js → FormsTable-CMtT3i5o-BDw5pw6q.js} +12 -12
  4. package/dist/{LNWAZHJI-Dw0N1Vfo.js → LNWAZHJI-BFap1j6S.js} +2 -2
  5. package/dist/{MWZ6AO7Z-DlBNxWAC.js → MWZ6AO7Z-CifPGyH-.js} +2 -2
  6. package/dist/{Observations-ZyRGglZf-BIVLX_Q7.js → Observations-Cco2HyR_-EXZuSbFR.js} +16 -16
  7. package/dist/{YPM2AS64-lw60K60Y.js → YPM2AS64-BIEW8lXA.js} +1 -1
  8. package/dist/components/consultationPad/index.d.ts.map +1 -1
  9. package/dist/components/consultationPad/utils.d.ts +9 -0
  10. package/dist/components/consultationPad/utils.d.ts.map +1 -1
  11. package/dist/components/consultationPadContainer/index.d.ts.map +1 -1
  12. package/dist/components/forms/observations/ObservationFormsContainer.d.ts +0 -1
  13. package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
  14. package/dist/components/forms/observations/ObservationFormsPanel.d.ts.map +1 -1
  15. package/dist/events/startConsultation/models.d.ts +4 -2
  16. package/dist/events/startConsultation/models.d.ts.map +1 -1
  17. package/dist/{hook-Bx5EDOAt.js → hook-A1_aCTdq.js} +1 -1
  18. package/dist/{index-DMShB_zr.js → index-D0FIR-wI.js} +1 -1
  19. package/dist/{index-DfzFIkDh.js → index-Dwt8W_hk.js} +3 -3
  20. package/dist/{index-B3eiHMXv.js → index-KKjsUkCr.js} +7640 -7623
  21. package/dist/index.css +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/locales/locale_en.json +1 -0
  24. package/dist/locales/locale_es.json +1 -0
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as p, Fragment as G } from "react/jsx-runtime";
2
- import { g as Q, u as Y, L as W, B as J, q as X, w as Z, K as ee, p as te } from "./index-B3eiHMXv.js";
2
+ import { g as Q, u as Y, L as W, B as J, q as X, w as Z, K as ee, p as te } from "./index-KKjsUkCr.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as P, Fragment as ye } from "react/jsx-runtime";
2
- import { u as ge, g as be, A as Ne, e as Oe, a as Te, k as Ee, o as Ie, Z as Ae, F as _e, m as ve, Y as Fe, G as Se, b as $, w as Be, N as x, E as G, q as Me, K as Y, c as Re, P as Ce, p as Le, d as Ue, n as ke } from "./index-B3eiHMXv.js";
2
+ import { u as ge, g as be, _ as Ne, e as Oe, v as Te, k as Ee, o as Ie, Z as _e, F as ve, m as Ae, Y as Fe, G as Se, a as $, w as Be, N as x, E as G, q as Me, K as Y, b as Re, P as Ce, p as Le, c as Ue, n as ke } from "./index-KKjsUkCr.js";
3
3
  import { useQueryClient as De, useQuery as O } from "@tanstack/react-query";
4
4
  import { useState as Q, useMemo as d, useCallback as c } from "react";
5
5
  const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", T = {
@@ -66,28 +66,28 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
66
66
  data: l,
67
67
  isLoading: te,
68
68
  isError: se,
69
- error: A
69
+ error: _
70
70
  } = O({
71
71
  queryKey: ["formMetadata", I],
72
- queryFn: () => Ae(I),
72
+ queryFn: () => _e(I),
73
73
  enabled: !!I && y
74
74
  }), {
75
- data: _,
75
+ data: v,
76
76
  isLoading: ne,
77
77
  isError: ie,
78
- error: v
78
+ error: A
79
79
  } = O({
80
80
  queryKey: ["formsEncounterFHIR", s?.encounterUuid],
81
- queryFn: () => _e(s.encounterUuid),
81
+ queryFn: () => ve(s.encounterUuid),
82
82
  enabled: !!s?.encounterUuid && y
83
83
  });
84
- ve(
84
+ Ae(
85
85
  (e) => {
86
86
  e.patientUUID === u && (ae(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
87
87
  },
88
88
  [u]
89
89
  );
90
- const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Fe(e) ? Se(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [_, s?.formName]), le = d(() => {
90
+ const de = d(() => !v?.entry || !s?.formName ? [] : v.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Fe(e) ? Se(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [v, s?.formName]), le = d(() => {
91
91
  if (!l?.schema) return;
92
92
  const e = [], r = (o) => {
93
93
  (o ?? []).forEach((t) => {
@@ -124,11 +124,11 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
124
124
  l.schema.controls ?? []
125
125
  ), Object.keys(e).length > 0 ? e : void 0;
126
126
  }, [l]), ue = d(() => {
127
+ if (_)
128
+ return $(_).message;
127
129
  if (A)
128
130
  return $(A).message;
129
- if (v)
130
- return $(v).message;
131
- }, [A, v]), p = d(
131
+ }, [_, A]), p = d(
132
132
  () => [
133
133
  { key: "recordedOn", header: n("RECORDED_ON") },
134
134
  { key: "recordedBy", header: n("RECORDED_BY") }
@@ -181,7 +181,7 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
181
181
  detail: {
182
182
  editOnly: "observationForms",
183
183
  editTitle: "EDIT_OBSERVATION_FORM_TITLE",
184
- editEncounterUuid: e.encounterUuid,
184
+ sourceEncounterUuid: e.encounterUuid,
185
185
  formName: e.formName,
186
186
  directFormMode: !0
187
187
  }
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-lw60K60Y.js";
2
- import { bX as d, bY as f, bZ as e } from "./index-B3eiHMXv.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BIEW8lXA.js";
2
+ import { bX as d, bY as f, bZ as e } from "./index-KKjsUkCr.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = 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-lw60K60Y.js";
2
- import { bX as v, bY as C, bZ as e } from "./index-B3eiHMXv.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-BIEW8lXA.js";
2
+ import { bX as v, bY as C, bZ as e } from "./index-KKjsUkCr.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,8 +1,8 @@
1
1
  import { jsxs as S, jsx as u } from "react/jsx-runtime";
2
- import { g as q, L as k, u as N, $ as G, I as Q, m as j, f as w, h as x, J as H, i as J, K as M, j as z, v as L, l as P, _ as Y, y as W, r as X, V as Z, s as ee } from "./index-B3eiHMXv.js";
2
+ import { g as q, L as k, u as N, $ as G, I as Q, m as j, d as w, f as x, J as H, h as J, K as M, i as z, j as L, l as P, C as Y, y as W, r as X, V as Z, s as ee } from "./index-KKjsUkCr.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
- import { useRef as se, useEffect as _, useMemo as g } from "react";
5
- const D = (a, n, d, l, b, r) => {
4
+ import { useRef as se, useEffect as $, useMemo as g } from "react";
5
+ const C = (a, n, d, l, b, r) => {
6
6
  const t = P(a, n, b), s = t.value, i = Y(s);
7
7
  let o = s;
8
8
  i === "Image" && (o = /* @__PURE__ */ u(
@@ -43,7 +43,7 @@ const D = (a, n, d, l, b, r) => {
43
43
  id: `grouped-obs-${a.display}-${l}`,
44
44
  open: d,
45
45
  children: a.members?.map(
46
- (s, i) => D(
46
+ (s, i) => C(
47
47
  s,
48
48
  i,
49
49
  b,
@@ -69,7 +69,7 @@ const D = (a, n, d, l, b, r) => {
69
69
  open: t,
70
70
  children: [
71
71
  r.observations.map(
72
- (o, m) => D(
72
+ (o, m) => C(
73
73
  o,
74
74
  m,
75
75
  s,
@@ -105,7 +105,7 @@ const D = (a, n, d, l, b, r) => {
105
105
  )
106
106
  }
107
107
  );
108
- }, oe = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", $ = {
108
+ }, oe = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", _ = {
109
109
  observations: oe,
110
110
  title: ne
111
111
  }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
@@ -120,7 +120,7 @@ const D = (a, n, d, l, b, r) => {
120
120
  enabled: !!e
121
121
  }))
122
122
  });
123
- _(() => {
123
+ $(() => {
124
124
  o.forEach((e, y) => {
125
125
  if (e.isError && !r.current.has(y)) {
126
126
  const B = d[y];
@@ -134,7 +134,7 @@ const D = (a, n, d, l, b, r) => {
134
134
  }, [o, d]);
135
135
  const m = g(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = g(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), h = g(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
136
136
  data: c,
137
- isLoading: F,
137
+ isLoading: D,
138
138
  isError: R,
139
139
  refetch: T
140
140
  } = te({
@@ -149,7 +149,7 @@ const D = (a, n, d, l, b, r) => {
149
149
  ) && T();
150
150
  },
151
151
  [t, T]
152
- ), _(() => {
152
+ ), $(() => {
153
153
  R && s({
154
154
  title: i("ERROR_DEFAULT_TITLE"),
155
155
  message: i("ERROR_FETCHING_OBSERVATIONS"),
@@ -160,18 +160,18 @@ const D = (a, n, d, l, b, r) => {
160
160
  if (!c) return [];
161
161
  const e = w(c), y = x(e);
162
162
  return H(y);
163
- }, [c]), K = [
163
+ }, [c]), F = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], I = F || !h, O = R && h, V = (!c || c.entry?.length === 0 || p.length === 0) && h, A = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, C = V ? i("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !I && !O, E = n.titleTranslationKey, v = E ? i(E) : "";
167
+ ], I = D || !h, O = R && h, K = (!c || c.entry?.length === 0 || p.length === 0) && h, V = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, A = K ? i("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !I && !O, E = n.titleTranslationKey, v = E ? i(E) : "";
168
168
  return /* @__PURE__ */ S(
169
169
  "div",
170
170
  {
171
171
  id: "observations",
172
172
  "data-testid": E ? `observations-${v}` : "observations",
173
173
  "aria-label": "observations-aria-label",
174
- className: $.observations,
174
+ className: _.observations,
175
175
  children: [
176
176
  /* @__PURE__ */ u(
177
177
  J,
@@ -179,7 +179,7 @@ const D = (a, n, d, l, b, r) => {
179
179
  id: "observations-title",
180
180
  testId: E ? `observations-title-${v}` : "observations-title",
181
181
  title: v,
182
- className: $.title,
182
+ className: _.title,
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
@@ -193,12 +193,12 @@ const D = (a, n, d, l, b, r) => {
193
193
  ) : /* @__PURE__ */ u(
194
194
  M,
195
195
  {
196
- headers: K,
196
+ headers: F,
197
197
  rows: [],
198
198
  ariaLabel: i("OBSERVATIONS"),
199
199
  loading: I,
200
- errorStateMessage: A,
201
- emptyStateMessage: C,
200
+ errorStateMessage: V,
201
+ emptyStateMessage: A,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { b_ as we, b$ as z, c0 as xt, c1 as B, bY as q, bZ as y, c2 as Ro, c3 as ye, c4 as R, c5 as _, c6 as k, c7 as N, c8 as A, c9 as bs, ca as ir, cb as $e, cc as G, cd as Hn, ce as Vn, cf as dt, cg as D, ch as xs, ci as cn, cj as Be, ck as ws, cl as qt, cm as zt, cn as $s, co as Cs, cp as $n, cq as Ss, cr as Nr, cs as Bt, ct as zo, cu as ks, cv as Es, cw as j, cx as Gr, cy as Ms, cz as Ds, cA as sr, cB as As, cC as Ts, cD as zn, cE as Fs, cF as Is, cG as Z, cH as Ps, cI as Ls } from "./index-B3eiHMXv.js";
1
+ import { b_ as we, b$ as z, c0 as xt, c1 as B, bY as q, bZ as y, c2 as Ro, c3 as ye, c4 as R, c5 as _, c6 as k, c7 as N, c8 as A, c9 as bs, ca as ir, cb as $e, cc as G, cd as Hn, ce as Vn, cf as dt, cg as D, ch as xs, ci as cn, cj as Be, ck as ws, cl as qt, cm as zt, cn as $s, co as Cs, cp as $n, cq as Ss, cr as Nr, cs as Bt, ct as zo, cu as ks, cv as Es, cw as j, cx as Gr, cy as Ms, cz as Ds, cA as sr, cB as As, cC as Ts, cD as zn, cE as Fs, cF as Is, cG as Z, cH as Ps, cI as Ls } from "./index-KKjsUkCr.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAsBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+hBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAuBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqiBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,5 +1,13 @@
1
+ import { Encounter } from 'fhir/r4';
1
2
  import { ConsultationPad } from '../../providers/clinicalConfig/models';
2
3
  import { InputControl } from '../forms';
4
+ type QueryStatus = 'pending' | 'error' | 'success';
5
+ export declare function getActiveEncounter(args: {
6
+ sourceEncounterUuid: string | undefined;
7
+ sourceEncounter: Encounter | null | undefined;
8
+ sessionEncounter: Encounter | null | undefined;
9
+ sessionEncounterStatus: QueryStatus;
10
+ }): Encounter | null | undefined;
3
11
  export declare function loadEncounterInputControls(config: ConsultationPad | undefined): InputControl[];
4
12
  export declare function getActiveEntries(registry: InputControl[], encounterType: string, editOnlyKey?: string): InputControl[];
5
13
  export declare function captureUpdatedResources(entries: InputControl[]): {
@@ -10,4 +18,5 @@ export declare function captureUpdatedResources(entries: InputControl[]): {
10
18
  serviceRequests: Record<string, boolean>;
11
19
  observationFormsWithBasedOn: string | undefined;
12
20
  };
21
+ export {};
13
22
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,YAAY,EAAE,CA6BhB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EAAE,EACxB,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,YAAY,EAAE,CAiBhB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE;;;;;;;EAkC9D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,KAAK,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,eAAe,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,gBAAgB,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,sBAAsB,EAAE,WAAW,CAAC;CACrC,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAe/B;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,YAAY,EAAE,CA6BhB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EAAE,EACxB,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,YAAY,EAAE,CAiBhB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE;;;;;;;EAkC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPadContainer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAYnF,UAAU,6BAA6B;IACrC,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAgPrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPadContainer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAYnF,UAAU,6BAA6B;IACrC,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAoPrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -9,7 +9,6 @@ interface ObservationFormsContainerProps {
9
9
  onRemoveForm?: (formUuid: string) => void;
10
10
  onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationErrorType?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR, basedOn?: Reference) => void;
11
11
  existingObservations?: Form2Observation[];
12
- activeEncounterUuid?: string | null;
13
12
  directMode?: boolean;
14
13
  onDirectModeSubmit?: () => void | Promise<void>;
15
14
  onDirectModeCancel?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAajB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAyBtF,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAomBvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAajB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAa,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAyBtF,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6nBvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ObservationFormsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAStF,UAAU,0BAA0B;IAClC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqQ/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ObservationFormsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAStF,UAAU,0BAA0B;IAClC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAiS/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Encounter } from 'fhir/r4';
1
2
  import { AllergyInputEntry } from '../../models/allergy';
2
3
  export interface EncounterSessionStartContext {
3
4
  encounterType?: string;
@@ -6,8 +7,9 @@ export interface EncounterSessionStartContext {
6
7
  editOnly?: string;
7
8
  /** Translation key for the ConsultationPad panel title when in edit mode. */
8
9
  editTitle?: string;
9
- /** UUID of the encounter being edited (used by edit flows for all input controls). */
10
- editEncounterUuid?: string;
10
+ /** Source encounter UUID for edit or copyover flows. */
11
+ sourceEncounterUuid?: string;
12
+ activeEncounter?: Encounter | null;
11
13
  [key: string]: unknown;
12
14
  }
13
15
  //# sourceMappingURL=models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import { bV as i, bW as o } from "./index-B3eiHMXv.js";
1
+ import { bV as i, bW as o } from "./index-KKjsUkCr.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cJ as l, cK as o, cL as c, b8 as m, b9 as g, cM as h, cN as p, cO as b, aG as u } from "./index-B3eiHMXv.js";
2
+ import { u as r, cJ as l, cK as o, cL as c, b8 as m, b9 as g, cM as h, cN as p, cO as b, aG as u } from "./index-KKjsUkCr.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ = "index-module_panel__8VJh2", s = {
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, e as u, bI as b, bS as f, bT as p, bU as x, aG as _, bO as N } from "./index-B3eiHMXv.js";
2
+ import { u as g, e as u, bI as b, bS as f, bT as p, bU as x, aG as _, bO as N } from "./index-KKjsUkCr.js";
3
3
  import { lazy as h, useMemo as t, Suspense as C } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-Bx5EDOAt.js";
5
+ import { u as E } from "./hook-A1_aCTdq.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-DMShB_zr.js")
8
+ () => import("./index-D0FIR-wI.js")
9
9
  )
10
10
  }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", O = "index-module_message__Ib5Iw", l = {
11
11
  page: v,