@bahmni/services 0.0.1-dev.108 → 0.0.1-dev.109

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { initReactI18next as bi } from "react-i18next";
2
- import { useTranslation as Dw } from "react-i18next";
2
+ import { useTranslation as qw } from "react-i18next";
3
3
  import { useRef as _n, useCallback as Xr, useEffect as Sn } from "react";
4
4
  function uo(e, t) {
5
5
  return function() {
@@ -9,11 +9,11 @@ function uo(e, t) {
9
9
  const { toString: Ei } = Object.prototype, { getPrototypeOf: Ln } = Object, { iterator: Cr, toStringTag: lo } = Symbol, kr = /* @__PURE__ */ ((e) => (t) => {
10
10
  const r = Ei.call(t);
11
11
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
12
- })(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => kr(t) === e), Lr = (e) => (t) => typeof t === e, { isArray: dt } = Array, it = Lr("undefined");
12
+ })(/* @__PURE__ */ Object.create(null)), De = (e) => (e = e.toLowerCase(), (t) => kr(t) === e), Lr = (e) => (t) => typeof t === e, { isArray: dt } = Array, it = Lr("undefined");
13
13
  function Pt(e) {
14
14
  return e !== null && !it(e) && e.constructor !== null && !it(e.constructor) && _e(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
15
  }
16
- const fo = Ne("ArrayBuffer");
16
+ const fo = De("ArrayBuffer");
17
17
  function _i(e) {
18
18
  let t;
19
19
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && fo(e.buffer), t;
@@ -31,11 +31,11 @@ const Si = Lr("string"), _e = Lr("function"), ho = Lr("number"), At = (e) => e !
31
31
  } catch {
32
32
  return !1;
33
33
  }
34
- }, Pi = Ne("Date"), Ai = Ne("File"), Oi = Ne("Blob"), $i = Ne("FileList"), Ni = (e) => At(e) && _e(e.pipe), Di = (e) => {
34
+ }, Pi = De("Date"), Ai = De("File"), Oi = De("Blob"), $i = De("FileList"), Ni = (e) => At(e) && _e(e.pipe), Di = (e) => {
35
35
  let t;
36
36
  return e && (typeof FormData == "function" && e instanceof FormData || _e(e.append) && ((t = kr(e)) === "formdata" || // detect form-data instance
37
37
  t === "object" && _e(e.toString) && e.toString() === "[object FormData]"));
38
- }, Ii = Ne("URLSearchParams"), [Ci, ki, Li, Mi] = ["ReadableStream", "Request", "Response", "Headers"].map(Ne), xi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ }, Ii = De("URLSearchParams"), [Ci, ki, Li, Mi] = ["ReadableStream", "Request", "Response", "Headers"].map(De), xi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
39
  function Ot(e, t, { allOwnKeys: r = !1 } = {}) {
40
40
  if (e === null || typeof e > "u")
41
41
  return;
@@ -115,12 +115,12 @@ const qi = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (s, a) => {
115
115
  for (; (r = e.exec(t)) !== null; )
116
116
  n.push(r);
117
117
  return n;
118
- }, Gi = Ne("HTMLFormElement"), Ki = (e) => e.toLowerCase().replace(
118
+ }, Gi = De("HTMLFormElement"), Ki = (e) => e.toLowerCase().replace(
119
119
  /[-_\s]([a-z\d])(\w*)/g,
120
120
  function(r, n, s) {
121
121
  return n.toUpperCase() + s;
122
122
  }
123
- ), Jn = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Yi = Ne("RegExp"), go = (e, t) => {
123
+ ), Jn = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Yi = De("RegExp"), go = (e, t) => {
124
124
  const r = Object.getOwnPropertyDescriptors(e), n = {};
125
125
  Ot(r, (s, a) => {
126
126
  let o;
@@ -172,7 +172,7 @@ const tc = (e) => {
172
172
  return n;
173
173
  };
174
174
  return r(e, 0);
175
- }, rc = Ne("AsyncFunction"), nc = (e) => e && (At(e) || _e(e)) && _e(e.then) && _e(e.catch), yo = ((e, t) => e ? setImmediate : t ? ((r, n) => (Ge.addEventListener("message", ({ source: s, data: a }) => {
175
+ }, rc = De("AsyncFunction"), nc = (e) => e && (At(e) || _e(e)) && _e(e.then) && _e(e.catch), yo = ((e, t) => e ? setImmediate : t ? ((r, n) => (Ge.addEventListener("message", ({ source: s, data: a }) => {
176
176
  s === Ge && a === r && n.length && n.shift()();
177
177
  }, !1), (s) => {
178
178
  n.push(s), Ge.postMessage(r, "*");
@@ -213,7 +213,7 @@ const tc = (e) => {
213
213
  inherits: Ui,
214
214
  toFlatObject: Fi,
215
215
  kindOf: kr,
216
- kindOfTest: Ne,
216
+ kindOfTest: De,
217
217
  endsWith: Vi,
218
218
  toArray: Hi,
219
219
  forEachEntry: zi,
@@ -239,10 +239,10 @@ const tc = (e) => {
239
239
  asap: sc,
240
240
  isIterable: ac
241
241
  };
242
- function G(e, t, r, n, s) {
242
+ function K(e, t, r, n, s) {
243
243
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
244
244
  }
245
- D.inherits(G, Error, {
245
+ D.inherits(K, Error, {
246
246
  toJSON: function() {
247
247
  return {
248
248
  // Standard
@@ -263,7 +263,7 @@ D.inherits(G, Error, {
263
263
  };
264
264
  }
265
265
  });
266
- const vo = G.prototype, wo = {};
266
+ const vo = K.prototype, wo = {};
267
267
  [
268
268
  "ERR_BAD_OPTION_VALUE",
269
269
  "ERR_BAD_OPTION",
@@ -281,15 +281,15 @@ const vo = G.prototype, wo = {};
281
281
  ].forEach((e) => {
282
282
  wo[e] = { value: e };
283
283
  });
284
- Object.defineProperties(G, wo);
284
+ Object.defineProperties(K, wo);
285
285
  Object.defineProperty(vo, "isAxiosError", { value: !0 });
286
- G.from = (e, t, r, n, s, a) => {
286
+ K.from = (e, t, r, n, s, a) => {
287
287
  const o = Object.create(vo);
288
288
  D.toFlatObject(e, o, function(l) {
289
289
  return l !== Error.prototype;
290
290
  }, (d) => d !== "isAxiosError");
291
291
  const i = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
292
- return G.call(o, i, c, r, n, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
292
+ return K.call(o, i, c, r, n, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
293
293
  };
294
294
  const oc = null;
295
295
  function Tn(e) {
@@ -329,7 +329,7 @@ function Mr(e, t, r) {
329
329
  if (D.isBoolean(v))
330
330
  return v.toString();
331
331
  if (!c && D.isBlob(v))
332
- throw new G("Blob is not supported. Use a Buffer instead.");
332
+ throw new K("Blob is not supported. Use a Buffer instead.");
333
333
  return D.isArrayBuffer(v) || D.isTypedArray(v) ? c && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
334
334
  }
335
335
  function l(v, g, f) {
@@ -580,7 +580,7 @@ const $t = {
580
580
  return JSON.parse(t, this.parseReviver);
581
581
  } catch (i) {
582
582
  if (o)
583
- throw i.name === "SyntaxError" ? G.from(i, G.ERR_BAD_RESPONSE, this, null, this.response) : i;
583
+ throw i.name === "SyntaxError" ? K.from(i, K.ERR_BAD_RESPONSE, this, null, this.response) : i;
584
584
  }
585
585
  }
586
586
  return t;
@@ -823,16 +823,16 @@ function To(e) {
823
823
  return !!(e && e.__CANCEL__);
824
824
  }
825
825
  function ft(e, t, r) {
826
- G.call(this, e ?? "canceled", G.ERR_CANCELED, t, r), this.name = "CanceledError";
826
+ K.call(this, e ?? "canceled", K.ERR_CANCELED, t, r), this.name = "CanceledError";
827
827
  }
828
- D.inherits(ft, G, {
828
+ D.inherits(ft, K, {
829
829
  __CANCEL__: !0
830
830
  });
831
831
  function Po(e, t, r) {
832
832
  const n = r.config.validateStatus;
833
- !r.status || !n || n(r.status) ? e(r) : t(new G(
833
+ !r.status || !n || n(r.status) ? e(r) : t(new K(
834
834
  "Request failed with status code " + r.status,
835
- [G.ERR_BAD_REQUEST, G.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
835
+ [K.ERR_BAD_REQUEST, K.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
836
836
  r.config,
837
837
  r.request,
838
838
  r
@@ -1055,16 +1055,16 @@ const Oo = (e) => {
1055
1055
  "onloadend" in f ? f.onloadend = h : f.onreadystatechange = function() {
1056
1056
  !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(h);
1057
1057
  }, f.onabort = function() {
1058
- f && (n(new G("Request aborted", G.ECONNABORTED, e, f)), f = null);
1058
+ f && (n(new K("Request aborted", K.ECONNABORTED, e, f)), f = null);
1059
1059
  }, f.onerror = function(b) {
1060
- const _ = b && b.message ? b.message : "Network Error", E = new G(_, G.ERR_NETWORK, e, f);
1060
+ const _ = b && b.message ? b.message : "Network Error", E = new K(_, K.ERR_NETWORK, e, f);
1061
1061
  E.event = b || null, n(E), f = null;
1062
1062
  }, f.ontimeout = function() {
1063
1063
  let b = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
1064
  const _ = s.transitional || So;
1065
- s.timeoutErrorMessage && (b = s.timeoutErrorMessage), n(new G(
1065
+ s.timeoutErrorMessage && (b = s.timeoutErrorMessage), n(new K(
1066
1066
  b,
1067
- _.clarifyTimeoutError ? G.ETIMEDOUT : G.ECONNABORTED,
1067
+ _.clarifyTimeoutError ? K.ETIMEDOUT : K.ECONNABORTED,
1068
1068
  e,
1069
1069
  f
1070
1070
  )), f = null;
@@ -1075,7 +1075,7 @@ const Oo = (e) => {
1075
1075
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
1076
  const u = Oc(s.url);
1077
1077
  if (u && ye.protocols.indexOf(u) === -1) {
1078
- n(new G("Unsupported protocol " + u + ":", G.ERR_BAD_REQUEST, e));
1078
+ n(new K("Unsupported protocol " + u + ":", K.ERR_BAD_REQUEST, e));
1079
1079
  return;
1080
1080
  }
1081
1081
  f.send(a || null);
@@ -1088,11 +1088,11 @@ const Oo = (e) => {
1088
1088
  if (!s) {
1089
1089
  s = !0, i();
1090
1090
  const l = d instanceof Error ? d : this.reason;
1091
- n.abort(l instanceof G ? l : new ft(l instanceof Error ? l.message : l));
1091
+ n.abort(l instanceof K ? l : new ft(l instanceof Error ? l.message : l));
1092
1092
  }
1093
1093
  };
1094
1094
  let o = t && setTimeout(() => {
1095
- o = null, a(new G(`timeout ${t} of ms exceeded`, G.ETIMEDOUT));
1095
+ o = null, a(new K(`timeout ${t} of ms exceeded`, K.ETIMEDOUT));
1096
1096
  }, t);
1097
1097
  const i = () => {
1098
1098
  e && (o && clearTimeout(o), o = null, e.forEach((d) => {
@@ -1195,7 +1195,7 @@ const Oo = (e) => {
1195
1195
  let h = g && g[v];
1196
1196
  if (h)
1197
1197
  return h.call(g);
1198
- throw new G(`Response type '${v}' is not supported`, G.ERR_NOT_SUPPORT, f);
1198
+ throw new K(`Response type '${v}' is not supported`, K.ERR_NOT_SUPPORT, f);
1199
1199
  });
1200
1200
  });
1201
1201
  const y = async (v) => {
@@ -1295,11 +1295,11 @@ const Oo = (e) => {
1295
1295
  });
1296
1296
  } catch (Y) {
1297
1297
  throw F && F(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1298
- new G("Network Error", G.ERR_NETWORK, v, U),
1298
+ new K("Network Error", K.ERR_NETWORK, v, U),
1299
1299
  {
1300
1300
  cause: Y.cause || Y
1301
1301
  }
1302
- ) : G.from(Y, Y && Y.code, v, U);
1302
+ ) : K.from(Y, Y && Y.code, v, U);
1303
1303
  }
1304
1304
  };
1305
1305
  }, Vc = /* @__PURE__ */ new Map(), No = (e) => {
@@ -1343,7 +1343,7 @@ const us = (e) => `- ${e}`, Hc = (e) => D.isFunction(e) || e === null || e === !
1343
1343
  n = e[o];
1344
1344
  let i;
1345
1345
  if (s = n, !Hc(n) && (s = An[(i = String(n)).toLowerCase()], s === void 0))
1346
- throw new G(`Unknown adapter '${i}'`);
1346
+ throw new K(`Unknown adapter '${i}'`);
1347
1347
  if (s && (D.isFunction(s) || (s = s.get(t))))
1348
1348
  break;
1349
1349
  a[i || "#" + o] = s;
@@ -1355,7 +1355,7 @@ const us = (e) => `- ${e}`, Hc = (e) => D.isFunction(e) || e === null || e === !
1355
1355
  let i = r ? o.length > 1 ? `since :
1356
1356
  ` + o.map(us).join(`
1357
1357
  `) : " " + us(o[0]) : "as no adapter specified";
1358
- throw new G(
1358
+ throw new K(
1359
1359
  "There is no suitable adapter to dispatch the request " + i,
1360
1360
  "ERR_NOT_SUPPORT"
1361
1361
  );
@@ -1399,9 +1399,9 @@ xr.transitional = function(t, r, n) {
1399
1399
  }
1400
1400
  return (a, o, i) => {
1401
1401
  if (t === !1)
1402
- throw new G(
1402
+ throw new K(
1403
1403
  s(o, " has been removed" + (r ? " in " + r : "")),
1404
- G.ERR_DEPRECATED
1404
+ K.ERR_DEPRECATED
1405
1405
  );
1406
1406
  return r && !ds[o] && (ds[o] = !0, console.warn(
1407
1407
  s(
@@ -1416,7 +1416,7 @@ xr.spelling = function(t) {
1416
1416
  };
1417
1417
  function Bc(e, t, r) {
1418
1418
  if (typeof e != "object")
1419
- throw new G("options must be an object", G.ERR_BAD_OPTION_VALUE);
1419
+ throw new K("options must be an object", K.ERR_BAD_OPTION_VALUE);
1420
1420
  const n = Object.keys(e);
1421
1421
  let s = n.length;
1422
1422
  for (; s-- > 0; ) {
@@ -1424,11 +1424,11 @@ function Bc(e, t, r) {
1424
1424
  if (o) {
1425
1425
  const i = e[a], c = i === void 0 || o(i, a, e);
1426
1426
  if (c !== !0)
1427
- throw new G("option " + a + " must be " + c, G.ERR_BAD_OPTION_VALUE);
1427
+ throw new K("option " + a + " must be " + c, K.ERR_BAD_OPTION_VALUE);
1428
1428
  continue;
1429
1429
  }
1430
1430
  if (r !== !0)
1431
- throw new G("Unknown option " + a, G.ERR_BAD_OPTION);
1431
+ throw new K("Unknown option " + a, K.ERR_BAD_OPTION);
1432
1432
  }
1433
1433
  }
1434
1434
  const Er = {
@@ -1721,7 +1721,7 @@ ue.CancelToken = zc;
1721
1721
  ue.isCancel = To;
1722
1722
  ue.VERSION = Io;
1723
1723
  ue.toFormData = Mr;
1724
- ue.AxiosError = G;
1724
+ ue.AxiosError = K;
1725
1725
  ue.Cancel = ue.CanceledError;
1726
1726
  ue.all = function(t) {
1727
1727
  return Promise.all(t);
@@ -1735,22 +1735,22 @@ ue.getAdapter = Do.getAdapter;
1735
1735
  ue.HttpStatusCode = On;
1736
1736
  ue.default = ue;
1737
1737
  const {
1738
- Axios: my,
1739
- AxiosError: gy,
1740
- CanceledError: yy,
1741
- isCancel: vy,
1742
- CancelToken: wy,
1743
- VERSION: by,
1744
- all: Ey,
1745
- Cancel: _y,
1746
- isAxiosError: Sy,
1747
- spread: Ry,
1748
- toFormData: Ty,
1749
- AxiosHeaders: Py,
1750
- HttpStatusCode: Ay,
1751
- formToJSON: Oy,
1752
- getAdapter: $y,
1753
- mergeConfig: Ny
1738
+ Axios: wy,
1739
+ AxiosError: by,
1740
+ CanceledError: Ey,
1741
+ isCancel: _y,
1742
+ CancelToken: Sy,
1743
+ VERSION: Ry,
1744
+ all: Ty,
1745
+ Cancel: Py,
1746
+ isAxiosError: Ay,
1747
+ spread: Oy,
1748
+ toFormData: $y,
1749
+ AxiosHeaders: Ny,
1750
+ HttpStatusCode: Dy,
1751
+ formToJSON: Iy,
1752
+ getAdapter: Cy,
1753
+ mergeConfig: ky
1754
1754
  } = ue, ct = (e) => {
1755
1755
  let t = "Error", r = "An unexpected error occurred";
1756
1756
  if (!e)
@@ -1941,7 +1941,7 @@ Fe.interceptors.response.use(
1941
1941
  return Promise.reject(`${t}: ${r}`);
1942
1942
  }
1943
1943
  );
1944
- const K = async (e) => (await Fe.get(e)).data, ht = async (e, t) => (await Fe.post(e, t)).data, Dy = async (e, t) => (await Fe.put(e, t)).data, Iy = async (e, t) => (await Fe.patch(e, t)).data, Cy = async (e) => (await Fe.delete(e)).data, W = (e) => typeof e == "string", yt = () => {
1944
+ const G = async (e) => (await Fe.get(e)).data, ht = async (e, t) => (await Fe.post(e, t)).data, Ly = async (e, t) => (await Fe.put(e, t)).data, My = async (e, t) => (await Fe.patch(e, t)).data, xy = async (e) => (await Fe.delete(e)).data, W = (e) => typeof e == "string", yt = () => {
1945
1945
  let e, t;
1946
1946
  const r = new Promise((n, s) => {
1947
1947
  e = n, t = s;
@@ -3615,9 +3615,9 @@ class Uo {
3615
3615
  }
3616
3616
  }
3617
3617
  Uo.type = "languageDetector";
3618
- const Uu = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ne = "/openmrs/ws/rest/v1", Fu = "/openmrs/ws/rest/v2", Vu = "bahmni.user", ky = "/bahmni/home/index.html", Hu = ne + "/bahmnicore/whoami", Bu = (e) => `${ne}/bahmniprogramenrollment?patient=${e}&v=full`, zu = "en", Fo = "NG_TRANSLATE_LANG_KEY", Wu = (e, t) => Uu + `${e}/locales/locale_${t}.json`, Gu = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, Nt = () => localStorage.getItem(Fo) ?? zu, Ns = async (e) => {
3618
+ const Uu = process.env.PUBLIC_URL ?? "/", Te = "/openmrs/ws/fhir2/R4", re = "/openmrs/ws/rest/v1", Fu = "/openmrs/ws/rest/v2", Vu = "bahmni.user", qy = "/bahmni/home/index.html", Hu = re + "/bahmnicore/whoami", Bu = (e) => `${re}/bahmniprogramenrollment?patient=${e}&v=full`, zu = "en", Fo = "NG_TRANSLATE_LANG_KEY", Wu = (e, t) => Uu + `${e}/locales/locale_${t}.json`, Gu = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, Nt = () => localStorage.getItem(Fo) ?? zu, Ns = async (e) => {
3619
3619
  try {
3620
- const t = await K(e);
3620
+ const t = await G(e);
3621
3621
  return t || (console.error(`Invalid response from ${e}`), {});
3622
3622
  } catch (t) {
3623
3623
  return console.error(`Failed to load translations from ${e}:`, t), {};
@@ -3639,7 +3639,7 @@ const Uu = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ne = "/op
3639
3639
  }, e !== "en" && (r.en = {
3640
3640
  [t]: await Ds(t, "en")
3641
3641
  }), r;
3642
- }, Ly = (e, t) => {
3642
+ }, jy = (e, t) => {
3643
3643
  const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
3644
3644
  return `${r}_${n}`;
3645
3645
  }, Yu = (e, t) => {
@@ -3656,7 +3656,7 @@ const Uu = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ne = "/op
3656
3656
  labels: n.labels ?? {},
3657
3657
  concepts: n.concepts ?? {}
3658
3658
  };
3659
- }, My = async (e) => {
3659
+ }, Uy = async (e) => {
3660
3660
  const t = Nt(), r = await Ku(t, e);
3661
3661
  return await oe.use(Uo).use(bi).init({
3662
3662
  fallbackLng: "en",
@@ -3675,7 +3675,7 @@ const Uu = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ne = "/op
3675
3675
  }
3676
3676
  }), oe;
3677
3677
  };
3678
- function xy() {
3678
+ function Fy() {
3679
3679
  const e = _n(null), t = _n(null), r = Xr(async () => {
3680
3680
  t.current && (t.current.getTracks().forEach((o) => o.stop()), t.current = null);
3681
3681
  const a = await navigator.mediaDevices.getUserMedia({
@@ -3698,23 +3698,23 @@ function xy() {
3698
3698
  }, []);
3699
3699
  return Sn(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
3700
3700
  }
3701
- const Ju = "bahmni.enableAuditLog", Vo = (e) => `${ne}/bahmnicore/sql/globalproperty?property=${e}`, Ho = 6048e5, Xu = 864e5, Bo = 6e4, zo = 36e5, Is = /* @__PURE__ */ Symbol.for("constructDateFrom");
3702
- function Ae(e, t) {
3701
+ const Ju = "bahmni.enableAuditLog", Vo = (e) => `${re}/bahmnicore/sql/globalproperty?property=${e}`, Ho = 6048e5, Xu = 864e5, Bo = 6e4, zo = 36e5, Is = /* @__PURE__ */ Symbol.for("constructDateFrom");
3702
+ function Oe(e, t) {
3703
3703
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Is in e ? e[Is](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
3704
3704
  }
3705
3705
  function fe(e, t) {
3706
- return Ae(t || e, e);
3706
+ return Oe(t || e, e);
3707
3707
  }
3708
3708
  function Qu(e, t, r) {
3709
3709
  const n = fe(e, r?.in);
3710
- return isNaN(t) ? Ae(e, NaN) : (t && n.setDate(n.getDate() + t), n);
3710
+ return isNaN(t) ? Oe(e, NaN) : (t && n.setDate(n.getDate() + t), n);
3711
3711
  }
3712
3712
  function jr(e, t, r) {
3713
3713
  const n = fe(e, r?.in);
3714
- if (isNaN(t)) return Ae(e, NaN);
3714
+ if (isNaN(t)) return Oe(e, NaN);
3715
3715
  if (!t)
3716
3716
  return n;
3717
- const s = n.getDate(), a = Ae(e, n.getTime());
3717
+ const s = n.getDate(), a = Oe(e, n.getTime());
3718
3718
  a.setMonth(n.getMonth() + t + 1, 0);
3719
3719
  const o = a.getDate();
3720
3720
  return s >= o ? a : (n.setFullYear(
@@ -3735,9 +3735,9 @@ function Nr(e, t) {
3735
3735
  return Tt(e, { ...t, weekStartsOn: 1 });
3736
3736
  }
3737
3737
  function Wo(e, t) {
3738
- const r = fe(e, t?.in), n = r.getFullYear(), s = Ae(r, 0);
3738
+ const r = fe(e, t?.in), n = r.getFullYear(), s = Oe(r, 0);
3739
3739
  s.setFullYear(n + 1, 0, 4), s.setHours(0, 0, 0, 0);
3740
- const a = Nr(s), o = Ae(r, 0);
3740
+ const a = Nr(s), o = Oe(r, 0);
3741
3741
  o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
3742
3742
  const i = Nr(o);
3743
3743
  return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= i.getTime() ? n : n - 1;
@@ -3757,7 +3757,7 @@ function Cs(e) {
3757
3757
  return r.setUTCFullYear(t.getFullYear()), +e - +r;
3758
3758
  }
3759
3759
  function pt(e, ...t) {
3760
- const r = Ae.bind(
3760
+ const r = Oe.bind(
3761
3761
  null,
3762
3762
  t.find((n) => typeof n == "object")
3763
3763
  );
@@ -3776,7 +3776,7 @@ function Go(e, t, r) {
3776
3776
  return Math.round((i - c) / Xu);
3777
3777
  }
3778
3778
  function el(e, t) {
3779
- const r = Wo(e, t), n = Ae(e, 0);
3779
+ const r = Wo(e, t), n = Oe(e, 0);
3780
3780
  return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), Nr(n);
3781
3781
  }
3782
3782
  function jn(e, t, r) {
@@ -4306,15 +4306,15 @@ function Ml(e, t) {
4306
4306
  return Math.round(n / Ho) + 1;
4307
4307
  }
4308
4308
  function Zo(e, t) {
4309
- const r = fe(e, t?.in), n = r.getFullYear(), s = Ur(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = Ae(t?.in || e, 0);
4309
+ const r = fe(e, t?.in), n = r.getFullYear(), s = Ur(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = Oe(t?.in || e, 0);
4310
4310
  o.setFullYear(n + 1, 0, a), o.setHours(0, 0, 0, 0);
4311
- const i = Tt(o, t), c = Ae(t?.in || e, 0);
4311
+ const i = Tt(o, t), c = Oe(t?.in || e, 0);
4312
4312
  c.setFullYear(n, 0, a), c.setHours(0, 0, 0, 0);
4313
4313
  const d = Tt(c, t);
4314
4314
  return +r >= +i ? n + 1 : +r >= +d ? n : n - 1;
4315
4315
  }
4316
4316
  function xl(e, t) {
4317
- const r = Ur(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Zo(e, t), a = Ae(t?.in || e, 0);
4317
+ const r = Ur(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Zo(e, t), a = Oe(t?.in || e, 0);
4318
4318
  return a.setFullYear(s, 0, n), a.setHours(0, 0, 0, 0), Tt(a, t);
4319
4319
  }
4320
4320
  function ql(e, t) {
@@ -5024,7 +5024,7 @@ function td(e, t, r) {
5024
5024
  return Qu(e, -t, r);
5025
5025
  }
5026
5026
  function ti(e, t) {
5027
- const r = () => Ae(t?.in, NaN), s = ad(e);
5027
+ const r = () => Oe(t?.in, NaN), s = ad(e);
5028
5028
  let a;
5029
5029
  if (s.date) {
5030
5030
  const d = od(s.date, 2);
@@ -6353,7 +6353,7 @@ const Us = {
6353
6353
  weekStartsOn: 1,
6354
6354
  firstWeekContainsDate: 4
6355
6355
  }
6356
- }, nh = "dd/MM/yyyy", qy = "MMMM dd, yyyy", jy = "do MMM, yyyy", sh = "dd/MM/yyyy HH:mm", Uy = "yyyy-MM-dd", Fy = "d/m/Y", Pe = {
6356
+ }, nh = "dd/MM/yyyy", Vy = "MMMM dd, yyyy", Hy = "do MMM, yyyy", sh = "dd/MM/yyyy HH:mm", By = "yyyy-MM-dd", zy = "d/m/Y", Ae = {
6357
6357
  PARSE_ERROR: "DATE_ERROR_PARSE",
6358
6358
  FORMAT_ERROR: "DATE_ERROR_FORMAT",
6359
6359
  EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
@@ -6389,16 +6389,16 @@ function ni(e, t) {
6389
6389
  return {
6390
6390
  date: null,
6391
6391
  error: {
6392
- title: t(Pe.PARSE_ERROR),
6393
- message: t(Pe.EMPTY_OR_INVALID)
6392
+ title: t(Ae.PARSE_ERROR),
6393
+ message: t(Ae.EMPTY_OR_INVALID)
6394
6394
  }
6395
6395
  };
6396
6396
  const r = ti(e);
6397
6397
  return Dt(r) ? { date: r } : {
6398
6398
  date: null,
6399
6399
  error: {
6400
- title: t(Pe.PARSE_ERROR),
6401
- message: t(Pe.INVALID_FORMAT)
6400
+ title: t(Ae.PARSE_ERROR),
6401
+ message: t(Ae.INVALID_FORMAT)
6402
6402
  }
6403
6403
  };
6404
6404
  }
@@ -6407,8 +6407,8 @@ function si(e, t, r) {
6407
6407
  return {
6408
6408
  formattedResult: "",
6409
6409
  error: {
6410
- title: r(Pe.FORMAT_ERROR),
6411
- message: r(Pe.NULL_OR_UNDEFINED)
6410
+ title: r(Ae.FORMAT_ERROR),
6411
+ message: r(Ae.NULL_OR_UNDEFINED)
6412
6412
  }
6413
6413
  };
6414
6414
  let n;
@@ -6426,20 +6426,20 @@ function si(e, t, r) {
6426
6426
  return {
6427
6427
  formattedResult: "",
6428
6428
  error: {
6429
- title: r(Pe.PARSE_ERROR),
6430
- message: r(Pe.INVALID_FORMAT)
6429
+ title: r(Ae.PARSE_ERROR),
6430
+ message: r(Ae.INVALID_FORMAT)
6431
6431
  }
6432
6432
  };
6433
6433
  const s = ah();
6434
6434
  return { formattedResult: Zl(n, t, { locale: s }) };
6435
6435
  }
6436
- function Vy(e, t) {
6436
+ function Wy(e, t) {
6437
6437
  return si(e, sh, t);
6438
6438
  }
6439
6439
  function ih(e, t, r = nh) {
6440
6440
  return si(e, r, t);
6441
6441
  }
6442
- function Hy(e, t, r) {
6442
+ function Gy(e, t, r) {
6443
6443
  if (!e || !Dt(e) || t === null || t === void 0 || !r || typeof t != "number")
6444
6444
  return;
6445
6445
  const n = new Date(e);
@@ -6454,21 +6454,21 @@ function Hy(e, t, r) {
6454
6454
  return;
6455
6455
  }
6456
6456
  }
6457
- function By(e, t) {
6457
+ function Ky(e, t) {
6458
6458
  if (e == null)
6459
6459
  return {
6460
6460
  formattedResult: "",
6461
6461
  error: {
6462
- title: t(Pe.FORMAT_ERROR),
6463
- message: t(Pe.NULL_OR_UNDEFINED)
6462
+ title: t(Ae.FORMAT_ERROR),
6463
+ message: t(Ae.NULL_OR_UNDEFINED)
6464
6464
  }
6465
6465
  };
6466
6466
  if (typeof e != "string")
6467
6467
  return {
6468
6468
  formattedResult: "",
6469
6469
  error: {
6470
- title: t(Pe.FORMAT_ERROR),
6471
- message: t(Pe.INVALID_FORMAT)
6470
+ title: t(Ae.FORMAT_ERROR),
6471
+ message: t(Ae.INVALID_FORMAT)
6472
6472
  }
6473
6473
  };
6474
6474
  const r = ni(e, t);
@@ -6506,11 +6506,11 @@ function By(e, t) {
6506
6506
  }
6507
6507
  return { formattedResult: c };
6508
6508
  }
6509
- const zy = () => {
6509
+ const Yy = () => {
6510
6510
  const e = /* @__PURE__ */ new Date();
6511
6511
  return e.setHours(0, 0, 0, 0), e;
6512
6512
  };
6513
- function Wy(e, t) {
6513
+ function Jy(e, t) {
6514
6514
  const r = new Date(e), s = new Intl.DateTimeFormat("en-US", {
6515
6515
  day: "2-digit",
6516
6516
  month: "short",
@@ -6526,7 +6526,7 @@ function Wy(e, t) {
6526
6526
  }
6527
6527
  return c;
6528
6528
  }
6529
- function Gy(e, t) {
6529
+ function Xy(e, t) {
6530
6530
  const r = new Date(e), n = /* @__PURE__ */ new Date(), s = Fn(n, r), a = jn(r, s), o = Un(n, a), i = jr(a, o), c = Dn(n, i);
6531
6531
  if (s === 0 && o < 3) {
6532
6532
  const m = Dn(n, r);
@@ -6541,7 +6541,7 @@ function Gy(e, t) {
6541
6541
  [c, "REGISTRATION_DAYS_SHORT"]
6542
6542
  ].filter(([m]) => m > 0).map(([m, y]) => `${m}${t(y, { count: m })}`).join(" ") || "0d" : `${s} years ${o} months ${c} days`;
6543
6543
  }
6544
- function Ky(e, t, r = !1) {
6544
+ function Qy(e, t, r = !1) {
6545
6545
  return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
6546
6546
  const a = new Date(n[t]), o = new Date(s[t]);
6547
6547
  if (isNaN(a.getTime()) && isNaN(o.getTime())) return 0;
@@ -6551,11 +6551,11 @@ function Ky(e, t, r = !1) {
6551
6551
  return r ? i : -i;
6552
6552
  });
6553
6553
  }
6554
- const Yy = async (e, t, r) => {
6554
+ const Zy = async (e, t, r) => {
6555
6555
  const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
6556
6556
  await e.cancelQueries({ queryKey: t, exact: n }), await e.removeQueries({ queryKey: t, exact: n }), await e.invalidateQueries({ queryKey: t, exact: n }), s && await e.refetchQueries({ queryKey: t, exact: n, type: "active" });
6557
6557
  }, ch = () => Math.random().toString(36).substring(2, 9);
6558
- function Jy(e, t = " -") {
6558
+ function ev(e, t = " -") {
6559
6559
  return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
6560
6560
  }
6561
6561
  function ai(e) {
@@ -6567,7 +6567,7 @@ function ai(e) {
6567
6567
  }
6568
6568
  return "";
6569
6569
  }
6570
- const Xy = (e) => !e || e.trim().length === 0, Qy = (e, t) => {
6570
+ const tv = (e) => !e || e.trim().length === 0, rv = (e, t) => {
6571
6571
  if (!e || !t || t.length === 0)
6572
6572
  return 999;
6573
6573
  const r = t.findIndex(
@@ -6575,7 +6575,7 @@ const Xy = (e) => !e || e.trim().length === 0, Qy = (e, t) => {
6575
6575
  );
6576
6576
  return r === -1 ? 999 : r;
6577
6577
  };
6578
- function Zy(e, t) {
6578
+ function nv(e, t) {
6579
6579
  if (!e || e.length === 0)
6580
6580
  return [];
6581
6581
  const r = /* @__PURE__ */ new Map();
@@ -6587,7 +6587,7 @@ function Zy(e, t) {
6587
6587
  items: s
6588
6588
  }));
6589
6589
  }
6590
- function ev(e, t, r) {
6590
+ function sv(e, t, r) {
6591
6591
  if (!e || e.length === 0)
6592
6592
  return [];
6593
6593
  const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
@@ -6608,7 +6608,7 @@ function uh(e) {
6608
6608
  a[n(o[1])] = n(o[2]);
6609
6609
  return a;
6610
6610
  }
6611
- function tv(e, t, r) {
6611
+ function av(e, t, r) {
6612
6612
  const n = /{{([^}]*)}}/g, s = e.match(n);
6613
6613
  let a = e;
6614
6614
  const o = r ?? !1, i = o ? uh() : {};
@@ -6621,8 +6621,8 @@ function tv(e, t, r) {
6621
6621
  const lh = (e) => new Promise((t, r) => {
6622
6622
  const n = new FileReader();
6623
6623
  n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
6624
- }), dh = (e) => ne + `/user?username=${e}&v=custom:(username,uuid)`, fh = "bahmni.user.location";
6625
- async function rv() {
6624
+ }), dh = (e) => re + `/user?username=${e}&v=custom:(username,uuid)`, fh = "bahmni.user.location";
6625
+ async function ov() {
6626
6626
  const e = ai(Vu);
6627
6627
  if (!e)
6628
6628
  return null;
@@ -6630,7 +6630,7 @@ async function rv() {
6630
6630
  const t = decodeURIComponent(e).replace(
6631
6631
  /^"(.*)"$/,
6632
6632
  "$1"
6633
- ), r = await K(dh(t));
6633
+ ), r = await G(dh(t));
6634
6634
  return !r.results || r.results.length === 0 ? null : r.results[0];
6635
6635
  } catch {
6636
6636
  throw new Error(oe.t("ERROR_FETCHING_USER_DETAILS"));
@@ -6664,7 +6664,7 @@ const Vn = () => {
6664
6664
  e.append(n.resultParam, s);
6665
6665
  });
6666
6666
  });
6667
- }, ph = (e) => De + `/Patient/${e}`, mh = (e, t, r) => {
6667
+ }, ph = (e) => Te + `/Patient/${e}`, mh = (e, t, r) => {
6668
6668
  const n = new URLSearchParams({
6669
6669
  filterOnAllIdentifiers: "false",
6670
6670
  identifier: e,
@@ -6678,7 +6678,7 @@ const Vn = () => {
6678
6678
  a && s.fields.forEach((o) => {
6679
6679
  n.append(a.searchFieldParam, o), n.append(a.resultParam, o);
6680
6680
  });
6681
- }), `${ne}/bahmni/search/patient/lucene?${n.toString()}`;
6681
+ }), `${re}/bahmni/search/patient/lucene?${n.toString()}`;
6682
6682
  }, gh = (e, t, r, n, s) => {
6683
6683
  const a = e.trim(), o = new URLSearchParams({
6684
6684
  loginLocationUuid: s,
@@ -6688,16 +6688,16 @@ const Vn = () => {
6688
6688
  }), i = Hn[t];
6689
6689
  return i && (o.set(i.searchParam, a), r.forEach((c) => {
6690
6690
  o.append(i.searchFieldParam, c);
6691
- })), hh(o, n), ne + `/bahmni/search/patient?${o.toString()}`;
6692
- }, oi = ne + "/idgen/identifiertype", yh = (e) => ne + `/bahmni/app/setting?module=${e}`, vh = "bahmni.primaryIdentifierType", wh = ne + "/bahmnicore/patientprofile", bh = (e) => ne + `/bahmnicore/patientprofile/${e}`, Eh = (e) => ne + `/patientprofile/${e}?v=full`, _h = (e, t, r = 20, n) => {
6691
+ })), hh(o, n), re + `/bahmni/search/patient?${o.toString()}`;
6692
+ }, oi = re + "/idgen/identifiertype", yh = (e) => re + `/bahmni/app/setting?module=${e}`, vh = "bahmni.primaryIdentifierType", wh = re + "/bahmnicore/patientprofile", bh = (e) => re + `/bahmnicore/patientprofile/${e}`, Eh = (e) => re + `/patientprofile/${e}?v=full`, _h = (e, t, r = 20, n) => {
6693
6693
  let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
6694
6694
  return n && (s += `&parent=${n}`), s;
6695
- }, Sh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Rh = ne + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Th = 20, Ph = 2, nv = 120, sv = 50, av = 15, Ah = /^[a-f0-9-]{36}$/i, Oh = (e) => Fu + `/patientImage?patientUuid=${e}`, $h = ne + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Nh = async (e) => {
6695
+ }, Sh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Rh = re + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Th = 20, Ph = 2, iv = 120, cv = 50, uv = 15, Ah = /^[a-f0-9-]{36}$/i, Oh = (e) => Fu + `/patientImage?patientUuid=${e}`, $h = re + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Nh = async (e) => {
6696
6696
  if (!e || e.trim() === "")
6697
6697
  throw new Error("Invalid patient UUID: UUID cannot be empty");
6698
6698
  if (!Ah.test(e))
6699
6699
  throw new Error(`Invalid patient UUID format: ${e}`);
6700
- return K(ph(e));
6700
+ return G(ph(e));
6701
6701
  }, Dh = (e) => !e.extension || !Array.isArray(e.extension) ? [] : e.extension.flatMap((t) => t.extension && Array.isArray(t.extension) ? t.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), Ih = (e) => {
6702
6702
  if (!e.name || e.name.length === 0)
6703
6703
  return null;
@@ -6728,22 +6728,22 @@ const Vn = () => {
6728
6728
  identifiers: s,
6729
6729
  age: a
6730
6730
  };
6731
- }, ov = async (e) => {
6731
+ }, lv = async (e) => {
6732
6732
  const t = await Nh(e);
6733
6733
  return Lh(t);
6734
- }, iv = async (e) => {
6734
+ }, dv = async (e) => {
6735
6735
  const t = await fetch(Oh(e));
6736
6736
  if (!t.ok) return null;
6737
6737
  const r = await t.blob();
6738
6738
  return await lh(r);
6739
- }, cv = async (e, t) => {
6739
+ }, fv = async (e, t) => {
6740
6740
  const r = Vn();
6741
- return await K(
6741
+ return await G(
6742
6742
  mh(e, r.uuid, t)
6743
6743
  );
6744
- }, uv = async (e, t, r, n, s) => {
6744
+ }, hv = async (e, t, r, n, s) => {
6745
6745
  const a = Vn();
6746
- return await K(
6746
+ return await G(
6747
6747
  gh(
6748
6748
  e,
6749
6749
  t,
@@ -6752,11 +6752,11 @@ const Vn = () => {
6752
6752
  a.uuid
6753
6753
  )
6754
6754
  );
6755
- }, lv = async () => K(oi), Mh = async () => (await K(yh("core"))).find(
6755
+ }, pv = async () => G(oi), Mh = async () => (await G(yh("core"))).find(
6756
6756
  (r) => r.property === vh
6757
- )?.value ?? null, dv = async () => {
6757
+ )?.value ?? null, mv = async () => {
6758
6758
  const [e, t] = await Promise.all([
6759
- K(oi),
6759
+ G(oi),
6760
6760
  Mh()
6761
6761
  ]), r = [], n = /* @__PURE__ */ new Map();
6762
6762
  if (!t)
@@ -6771,14 +6771,14 @@ const Vn = () => {
6771
6771
  sourcesByPrefix: n,
6772
6772
  primaryIdentifierTypeUuid: t
6773
6773
  }) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
6774
- }, fv = async (e) => ht(wh, e), hv = async (e, t) => ht(
6774
+ }, gv = async (e) => ht(wh, e), yv = async (e, t) => ht(
6775
6775
  bh(e),
6776
6776
  t
6777
- ), pv = async () => K(Vo("mrs.genders")), mv = async (e, t, r = Th, n) => {
6777
+ ), vv = async () => G(Vo("mrs.genders")), wv = async (e, t, r = Th, n) => {
6778
6778
  if (!t || t.length < Ph)
6779
6779
  return [];
6780
6780
  try {
6781
- return await K(
6781
+ return await G(
6782
6782
  _h(e, t, r, n)
6783
6783
  );
6784
6784
  } catch (s) {
@@ -6786,9 +6786,9 @@ const Vn = () => {
6786
6786
  `Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
6787
6787
  );
6788
6788
  }
6789
- }, gv = async () => K(Sh), yv = async (e) => K(Eh(e)), vv = async () => {
6789
+ }, bv = async () => G(Sh), Ev = async (e) => G(Eh(e)), _v = async () => {
6790
6790
  try {
6791
- return (await K(
6791
+ return (await G(
6792
6792
  Rh
6793
6793
  )).results.map((t) => ({
6794
6794
  uuid: t.uuid,
@@ -6800,9 +6800,9 @@ const Vn = () => {
6800
6800
  `Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
6801
6801
  );
6802
6802
  }
6803
- }, wv = async () => K($h);
6803
+ }, Sv = async () => G($h);
6804
6804
  var xh = /* @__PURE__ */ ((e) => (e.BOOLEAN = "java.lang.Boolean", e.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", e.CONCEPT = "org.openmrs.Concept", e.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", e.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", e.STRING = "java.lang.String", e.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", e.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", e.INTEGER = "java.lang.Integer", e.FLOAT = "java.lang.Float", e.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", e.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", e))(xh || {}), qh = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(qh || {});
6805
- const bv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", Ev = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", _v = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Sv = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Rv = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", Tv = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", jh = (e) => {
6805
+ const Rv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", Tv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", Pv = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Av = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Ov = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", $v = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", jh = (e) => {
6806
6806
  const t = new CustomEvent("bahmni-audit-log", { detail: e });
6807
6807
  window.dispatchEvent(t);
6808
6808
  }, Uh = (e) => {
@@ -6853,12 +6853,12 @@ const bv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
6853
6853
  eventType: "VIEWED_RADIOLOGY_RESULTS",
6854
6854
  message: "VIEWED_RADIOLOGY_RESULTS_MESSAGE"
6855
6855
  }
6856
- }, Fh = ne + "/auditlog", Vh = {
6856
+ }, Fh = re + "/auditlog", Vh = {
6857
6857
  UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
6858
- }, Hh = () => ne + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Bh = ne + "/visit", zh = (e) => ne + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Wh = (e) => ne + `/bahmnicore/visitLocation/${e}`, Pv = async () => K(Hh()), Gh = async (e) => K(zh(e)), Kh = async (e) => K(Wh(e)), Yh = async (e) => ht(Bh, e), Av = async (e) => {
6858
+ }, Hh = () => re + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Bh = re + "/visit", zh = (e) => re + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Wh = (e) => re + `/bahmnicore/visitLocation/${e}`, Nv = async () => G(Hh()), Gh = async (e) => G(zh(e)), Kh = async (e) => G(Wh(e)), Yh = async (e) => ht(Bh, e), Dv = async (e) => {
6859
6859
  const t = await Gh(e);
6860
6860
  return t?.results && t.results.length > 0;
6861
- }, Ov = async (e, t) => {
6861
+ }, Iv = async (e, t) => {
6862
6862
  const r = await Kh(
6863
6863
  Vn().uuid
6864
6864
  ), n = {
@@ -6872,15 +6872,15 @@ const bv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
6872
6872
  messageParams: { visitType: t.name },
6873
6873
  module: Cn.OPEN_VISIT.module
6874
6874
  }), s;
6875
- }, Jh = ne + "/appointments/search", ii = ne + "/appointments", $v = async (e) => await ht(
6875
+ }, Jh = re + "/appointments/search", ii = re + "/appointments", Cv = async (e) => await ht(
6876
6876
  Jh,
6877
6877
  e
6878
- ), Nv = async (e, t, r) => await ht(
6878
+ ), kv = async (e, t, r) => await ht(
6879
6879
  `${ii}/${e}/status-change`,
6880
6880
  { toStatus: t, onDate: r }
6881
6881
  );
6882
- async function Dv(e) {
6883
- return await K(`${ii}/${e}`);
6882
+ async function Lv(e) {
6883
+ return await G(`${ii}/${e}`);
6884
6884
  }
6885
6885
  const Xh = () => {
6886
6886
  let e = null;
@@ -6911,20 +6911,20 @@ const Xh = () => {
6911
6911
  );
6912
6912
  }
6913
6913
  };
6914
- }, on = Xh(), Qh = (e) => De + `/ValueSet/${e}/$expand`, Zh = (e) => De + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, ep = (e, t, r) => ne + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, tp = (e) => ne + `/concept/${e}`, Iv = async (e, t = 20) => {
6914
+ }, on = Xh(), Qh = (e) => Te + `/ValueSet/${e}/$expand`, Zh = (e) => Te + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, ep = (e, t, r) => re + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, tp = (e) => re + `/concept/${e}`, Mv = async (e, t = 20) => {
6915
6915
  const r = Nt(), n = ep(e, t, r);
6916
- return K(n);
6916
+ return G(n);
6917
6917
  }, _r = async (e) => {
6918
6918
  const t = Qh(e);
6919
- return K(t);
6919
+ return G(t);
6920
6920
  }, rp = async (e) => {
6921
6921
  const t = `${Zh(e)}`;
6922
- return K(t);
6922
+ return G(t);
6923
6923
  };
6924
- async function Cv(e) {
6925
- return await K(tp(e));
6924
+ async function xv(e) {
6925
+ return await G(tp(e));
6926
6926
  }
6927
- const np = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, rt = {
6927
+ const np = (e) => Te + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, rt = {
6928
6928
  FOOD: {
6929
6929
  code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
6930
6930
  display: "food"
@@ -6946,7 +6946,7 @@ const np = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
6946
6946
  }), cn = (e, t) => {
6947
6947
  const r = e.expansion?.contains ?? [];
6948
6948
  return ap(r).map((s) => op(s, t));
6949
- }, kv = async (e, t, r) => {
6949
+ }, qv = async (e, t, r) => {
6950
6950
  const n = e ?? rt.MEDICATION.code, s = t ?? rt.FOOD.code, a = r ?? rt.ENVIRONMENT.code, [o, i, c] = await Promise.all([
6951
6951
  _r(n),
6952
6952
  _r(s),
@@ -6966,12 +6966,12 @@ const np = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
6966
6966
  rt.ENVIRONMENT.display
6967
6967
  )
6968
6968
  ];
6969
- }, Lv = async (e) => {
6969
+ }, jv = async (e) => {
6970
6970
  const t = e ?? sp.code;
6971
6971
  return (await _r(t)).compose?.include[0]?.concept ?? [];
6972
6972
  };
6973
6973
  async function ip(e) {
6974
- return await K(`${np(e)}`);
6974
+ return await G(`${np(e)}`);
6975
6975
  }
6976
6976
  async function cp(e) {
6977
6977
  return (await ip(e)).entry?.map(
@@ -7000,22 +7000,22 @@ function up(e) {
7000
7000
  };
7001
7001
  });
7002
7002
  }
7003
- async function Mv(e) {
7003
+ async function Uv(e) {
7004
7004
  const t = await cp(e);
7005
7005
  return up(t);
7006
7006
  }
7007
7007
  var lp = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(lp || {}), dp = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(dp || {});
7008
- const xv = "http://fhir.openmrs.org/code-system/encounter-type", fp = "problem-list-item", qv = "http://terminology.hl7.org/CodeSystem/condition-ver-status", hp = "encounter-diagnosis", jv = "http://terminology.hl7.org/CodeSystem/condition-clinical", Uv = "http://terminology.hl7.org/CodeSystem/condition-category", Fv = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Vv = "http://fhir.bahmni.org/ext/observation/form-namespace-path", Hv = "http://fhir.bahmni.org/ext/observation/complex-data", Bv = "Numeric", zv = "Complex", Wv = "final", Gv = "Observation", Kv = /^\d{4}-\d{2}-\d{2}/, pp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, Yv = {
7008
+ const Fv = "http://fhir.openmrs.org/code-system/encounter-type", fp = "problem-list-item", Vv = "http://terminology.hl7.org/CodeSystem/condition-ver-status", hp = "encounter-diagnosis", Hv = "http://terminology.hl7.org/CodeSystem/condition-clinical", Bv = "http://terminology.hl7.org/CodeSystem/condition-category", zv = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Wv = "http://fhir.bahmni.org/ext/observation/form-namespace-path", Gv = "http://fhir.bahmni.org/ext/observation/complex-data", Kv = "Numeric", Yv = "Complex", Jv = "final", Xv = "Observation", Qv = /^\d{4}-\d{2}-\d{2}/, pp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, Zv = {
7009
7009
  ABNORMAL: { code: "A", display: "Abnormal" },
7010
7010
  NORMAL: { code: "N", display: "Normal" }
7011
- }, mp = (e) => De + `/Condition?category=${fp}&patient=${e}&_count=100&_sort=-_lastUpdated`;
7011
+ }, mp = (e) => Te + `/Condition?category=${fp}&patient=${e}&_count=100&_sort=-_lastUpdated`;
7012
7012
  async function gp(e) {
7013
- return await K(`${mp(e)}`);
7013
+ return await G(`${mp(e)}`);
7014
7014
  }
7015
- async function Jv(e) {
7015
+ async function ew(e) {
7016
7016
  return (await gp(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
7017
7017
  }
7018
- const yp = (e) => De + `/Condition?category=${hp}&patient=${e}&_count=100&_sort=-_lastUpdated`, un = [
7018
+ const yp = (e) => Te + `/Condition?category=${hp}&patient=${e}&_count=100&_sort=-_lastUpdated`, un = [
7019
7019
  {
7020
7020
  code: "confirmed",
7021
7021
  display: "CERTAINITY_CONFIRMED",
@@ -7029,7 +7029,7 @@ const yp = (e) => De + `/Condition?category=${hp}&patient=${e}&_count=100&_sort=
7029
7029
  ], vp = "confirmed", wp = "provisional";
7030
7030
  async function bp(e) {
7031
7031
  const t = yp(e);
7032
- return await K(t);
7032
+ return await G(t);
7033
7033
  }
7034
7034
  const Ep = (e) => {
7035
7035
  switch (e.verificationStatus?.coding?.[0]?.code) {
@@ -7055,12 +7055,15 @@ function Sp(e) {
7055
7055
  };
7056
7056
  });
7057
7057
  }
7058
- async function Xv(e) {
7058
+ async function tw(e) {
7059
7059
  const t = await bp(e);
7060
7060
  return Sp(t);
7061
7061
  }
7062
7062
  var qe = /* @__PURE__ */ ((e) => (e.Active = "active", e.OnHold = "on-hold", e.Completed = "completed", e.Stopped = "stopped", e.Cancelled = "cancelled", e.EnteredInError = "entered-in-error", e.Draft = "draft", e.Unknown = "unknown", e))(qe || {});
7063
- const Rp = (e) => De + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastUpdated`, Tp = (e) => {
7063
+ const Rp = (e, t, r) => {
7064
+ let s = `${Te + "/MedicationRequest?_sort=-_lastUpdated&_count=100"}&patient=${e}`;
7065
+ return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
7066
+ }, Tp = re + "/bahmnicore/config/drugOrders", Pp = (e, t) => Te + `/Medication?name=${encodeURIComponent(e)}&_count=${t}`, Ap = Te + "/Medication?code=http://hl7.org/fhir/sid/cvx|", Op = (e) => {
7064
7067
  switch (e.status) {
7065
7068
  case "active":
7066
7069
  return qe.Active;
@@ -7080,32 +7083,40 @@ const Rp = (e) => De + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastU
7080
7083
  return qe.Unknown;
7081
7084
  }
7082
7085
  };
7083
- async function Pp(e) {
7084
- const t = Rp(e);
7085
- return await K(t);
7086
+ async function $p(e, t, r) {
7087
+ let n;
7088
+ r && r.length > 0 && (n = r.join(","));
7089
+ let s;
7090
+ t && t.length > 0 && (s = t.join(","));
7091
+ const a = Rp(
7092
+ e,
7093
+ s,
7094
+ n
7095
+ );
7096
+ return await G(a);
7086
7097
  }
7087
- function Ap(e) {
7098
+ function Np(e) {
7088
7099
  const t = e?.[0]?.doseAndRate?.[0]?.doseQuantity;
7089
7100
  return {
7090
7101
  value: t?.value ?? 0,
7091
7102
  unit: t?.unit ?? ""
7092
7103
  };
7093
7104
  }
7094
- function Op(e) {
7105
+ function Dp(e) {
7095
7106
  return e?.[0]?.timing?.code?.coding?.[0]?.display ?? "";
7096
7107
  }
7097
- function $p(e) {
7108
+ function Ip(e) {
7098
7109
  const t = e?.[0]?.route;
7099
7110
  return t && Array.isArray(t.coding) && t.coding[0]?.display ? t.coding[0].display : "";
7100
7111
  }
7101
- function Np(e) {
7112
+ function Cp(e) {
7102
7113
  const t = e?.[0]?.timing?.repeat, r = t?.durationUnit;
7103
7114
  return {
7104
7115
  duration: t?.duration ?? 0,
7105
7116
  durationUnit: r ?? ""
7106
7117
  };
7107
7118
  }
7108
- function Dp(e) {
7119
+ function kp(e) {
7109
7120
  try {
7110
7121
  const t = e?.[0]?.text;
7111
7122
  return t ? JSON.parse(t).additionalInstructions ?? "" : "";
@@ -7113,7 +7124,7 @@ function Dp(e) {
7113
7124
  return "";
7114
7125
  }
7115
7126
  }
7116
- function Ip(e) {
7127
+ function Lp(e) {
7117
7128
  try {
7118
7129
  const t = e?.[0]?.text;
7119
7130
  return t ? JSON.parse(t).instructions ?? "" : "";
@@ -7121,51 +7132,72 @@ function Ip(e) {
7121
7132
  return "";
7122
7133
  }
7123
7134
  }
7124
- function Cp(e) {
7135
+ function Mp(e) {
7125
7136
  const t = e?.quantity;
7126
7137
  return {
7127
7138
  value: t?.value ?? 0,
7128
7139
  unit: t?.unit ?? ""
7129
7140
  };
7130
7141
  }
7131
- function kp(e) {
7142
+ function xp(e) {
7143
+ return !e || e.length === 0 ? "" : e.map((t) => t.text).filter(Boolean).join(" ");
7144
+ }
7145
+ function qp(e) {
7132
7146
  return (e.entry?.map((r) => r.resource) ?? []).map((r) => {
7133
- const n = r.medicationReference, s = r.requester, a = Tp(r);
7147
+ const n = r.medicationReference, s = r.requester, a = Op(r);
7134
7148
  return {
7135
7149
  id: r.id,
7136
7150
  name: n.display,
7137
- dose: Ap(r.dosageInstruction),
7151
+ dose: Np(r.dosageInstruction),
7138
7152
  asNeeded: r.dosageInstruction?.[0]?.asNeededBoolean ?? !1,
7139
- frequency: Op(r.dosageInstruction),
7140
- route: $p(r.dosageInstruction),
7141
- duration: Np(r.dosageInstruction),
7153
+ frequency: Dp(r.dosageInstruction),
7154
+ route: Ip(r.dosageInstruction),
7155
+ duration: Cp(r.dosageInstruction),
7142
7156
  status: a,
7143
7157
  priority: r.priority ?? "",
7144
7158
  isImmediate: Ws(r),
7145
- quantity: Cp(r.dispenseRequest),
7146
- startDate: Ws(r) ? r.authoredOn : r.dosageInstruction?.[0]?.timing?.event?.[0],
7159
+ quantity: Mp(r.dispenseRequest),
7160
+ startDate: Ws(r) ? r.authoredOn : r.dosageInstruction?.[0]?.timing?.event?.[0] ?? "",
7147
7161
  orderDate: r.authoredOn,
7148
7162
  orderedBy: s.display,
7149
- instructions: Ip(r.dosageInstruction),
7150
- additionalInstructions: Dp(
7163
+ instructions: Lp(r.dosageInstruction),
7164
+ additionalInstructions: kp(
7151
7165
  r.dosageInstruction
7152
- )
7166
+ ),
7167
+ note: xp(r.note)
7153
7168
  };
7154
7169
  });
7155
7170
  }
7156
7171
  const Ws = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
7157
- async function Qv(e) {
7158
- const t = await Pp(e);
7159
- return kp(t);
7172
+ async function rw(e, t, r) {
7173
+ const n = await $p(
7174
+ e,
7175
+ t,
7176
+ r
7177
+ );
7178
+ return qp(n);
7160
7179
  }
7161
- const Lp = (e, t, r, n, s) => {
7162
- let o = `${De + "/ServiceRequest?_sort=-_lastUpdated"}&category=${e}&patient=${t}`;
7180
+ async function nw() {
7181
+ return await G(
7182
+ Tp
7183
+ );
7184
+ }
7185
+ async function sw(e, t = 20) {
7186
+ return await G(
7187
+ Pp(e, t)
7188
+ );
7189
+ }
7190
+ async function aw() {
7191
+ return await G(Ap);
7192
+ }
7193
+ const jp = (e, t, r, n, s) => {
7194
+ let o = `${Te + "/ServiceRequest?_sort=-_lastUpdated"}&category=${e}&patient=${t}`;
7163
7195
  return s && (o += `&_revinclude=${s}`), r ? o += `&encounter=${r}` : n && (o += `&numberOfVisits=${n}`), o;
7164
7196
  };
7165
7197
  async function Vr(e, t, r, n, s) {
7166
7198
  let a;
7167
- return r && r.length > 0 && (a = r.join(",")), await K(
7168
- Lp(
7199
+ return r && r.length > 0 && (a = r.join(",")), await G(
7200
+ jp(
7169
7201
  e,
7170
7202
  t,
7171
7203
  a,
@@ -7174,7 +7206,7 @@ async function Vr(e, t, r, n, s) {
7174
7206
  )
7175
7207
  );
7176
7208
  }
7177
- async function Zv(e, t, r, n) {
7209
+ async function ow(e, t, r, n) {
7178
7210
  return await Vr(
7179
7211
  t,
7180
7212
  e,
@@ -7182,7 +7214,7 @@ async function Zv(e, t, r, n) {
7182
7214
  n
7183
7215
  );
7184
7216
  }
7185
- async function ew(e, t, r, n) {
7217
+ async function iw(e, t, r, n) {
7186
7218
  return await Vr(
7187
7219
  t,
7188
7220
  e,
@@ -7191,7 +7223,7 @@ async function ew(e, t, r, n) {
7191
7223
  "ImagingStudy:basedon"
7192
7224
  );
7193
7225
  }
7194
- async function tw(e, t, r, n) {
7226
+ async function cw(e, t, r, n) {
7195
7227
  return (await Vr(
7196
7228
  t,
7197
7229
  e,
@@ -7199,9 +7231,9 @@ async function tw(e, t, r, n) {
7199
7231
  n
7200
7232
  )).entry?.filter((o) => o.resource?.resourceType === "ServiceRequest").map((o) => o.resource) ?? [];
7201
7233
  }
7202
- const Mp = "http://fhir.bahmni.org/ext/lab-order-concept-type";
7234
+ const Up = "http://fhir.bahmni.org/ext/lab-order-concept-type";
7203
7235
  var Sr = /* @__PURE__ */ ((e) => (e.stat = "Urgent", e.routine = "Routine", e))(Sr || {});
7204
- const xp = (e) => {
7236
+ const Fp = (e) => {
7205
7237
  switch (e.priority) {
7206
7238
  case "routine":
7207
7239
  return Sr.routine;
@@ -7211,7 +7243,7 @@ const xp = (e) => {
7211
7243
  return Sr.routine;
7212
7244
  }
7213
7245
  };
7214
- function qp(e) {
7246
+ function Vp(e) {
7215
7247
  if (!e.entry) return [];
7216
7248
  const t = new Set(
7217
7249
  e.entry.flatMap((a) => a.resource?.replaces ?? []).map((a) => a.reference?.split("/").pop()).filter(Boolean)
@@ -7225,17 +7257,17 @@ function qp(e) {
7225
7257
  entry: r
7226
7258
  }.entry?.map((a) => a.resource).filter((a) => a !== void 0) ?? [];
7227
7259
  }
7228
- const jp = (e) => e.extension?.find(
7229
- (r) => r.url === Mp && r.valueString === "Panel"
7260
+ const Hp = (e) => e.extension?.find(
7261
+ (r) => r.url === Up && r.valueString === "Panel"
7230
7262
  ) ? "Panel" : "Single Test";
7231
- function Up(e, t) {
7263
+ function Bp(e, t) {
7232
7264
  return e.filter(
7233
7265
  (r) => !!r.id
7234
7266
  ).map((r) => {
7235
- const n = xp(r), s = r.occurrencePeriod?.start;
7267
+ const n = Fp(r), s = r.occurrencePeriod?.start;
7236
7268
  let a;
7237
7269
  s && (a = ih(s, t, "MMMM d, yyyy").formattedResult || s.split("T")[0]);
7238
- const o = jp(r), i = r.note?.[0]?.text;
7270
+ const o = Hp(r), i = r.note?.[0]?.text;
7239
7271
  return {
7240
7272
  id: r.id,
7241
7273
  testName: r.code?.text ?? "",
@@ -7250,7 +7282,7 @@ function Up(e, t) {
7250
7282
  };
7251
7283
  });
7252
7284
  }
7253
- function rw(e) {
7285
+ function uw(e) {
7254
7286
  const t = /* @__PURE__ */ new Map();
7255
7287
  return e.forEach((r) => {
7256
7288
  const n = r.orderedDate.split("T")[0];
@@ -7263,19 +7295,19 @@ function rw(e) {
7263
7295
  (r, n) => new Date(n.rawDate).getTime() - new Date(r.rawDate).getTime()
7264
7296
  );
7265
7297
  }
7266
- async function nw(e, t, r, n, s) {
7298
+ async function lw(e, t, r, n, s) {
7267
7299
  const a = await Vr(
7268
7300
  t,
7269
7301
  e,
7270
7302
  n,
7271
7303
  s
7272
- ), o = qp(a);
7273
- return Up(o, r);
7304
+ ), o = Vp(a);
7305
+ return Bp(o, r);
7274
7306
  }
7275
- const Fp = "All Orderables", Vp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Hp = "LabSet", Bp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", sw = ["orderTypes"], zp = async () => await rp(Fp), ci = async () => await K(Vp), Wp = (e) => {
7307
+ const zp = "All Orderables", Wp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Gp = "LabSet", Kp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", dw = ["orderTypes"], Yp = async () => await rp(zp), ci = async () => await G(Wp), Jp = (e) => {
7276
7308
  let t = e.display ?? "Unknown investigation";
7277
- return ui(e) === Hp && (t += ` (${oe.t("INVESTIGATION_PANEL")})`), t;
7278
- }, Gp = (e) => {
7309
+ return ui(e) === Gp && (t += ` (${oe.t("INVESTIGATION_PANEL")})`), t;
7310
+ }, Xp = (e) => {
7279
7311
  const t = /* @__PURE__ */ new Map();
7280
7312
  return e.results.forEach((r) => {
7281
7313
  r.conceptClasses.forEach((n) => {
@@ -7284,10 +7316,10 @@ const Fp = "All Orderables", Vp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
7284
7316
  }), t;
7285
7317
  }, ui = (e) => {
7286
7318
  const t = e.extension?.find(
7287
- (r) => r.url === Bp
7319
+ (r) => r.url === Kp
7288
7320
  );
7289
7321
  return t ? t.valueString ?? "" : "";
7290
- }, Kp = (e, t) => {
7322
+ }, Qp = (e, t) => {
7291
7323
  const r = [];
7292
7324
  return !e.expansion?.contains || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((n) => {
7293
7325
  n.contains?.forEach((s) => {
@@ -7297,20 +7329,20 @@ const Fp = "All Orderables", Vp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
7297
7329
  return;
7298
7330
  r.filter((d) => d.code === a.code && d.categoryCode === i.uuid).length > 0 || r.push({
7299
7331
  code: a.code ?? "",
7300
- display: Wp(a),
7332
+ display: Jp(a),
7301
7333
  category: i.display,
7302
7334
  categoryCode: i.uuid
7303
7335
  });
7304
7336
  });
7305
7337
  });
7306
7338
  }), r;
7307
- }, aw = async () => {
7308
- const e = await zp(), t = await ci();
7309
- return Kp(e, Gp(t));
7310
- }, ow = async (e) => e ? (await ci()).results.find(
7339
+ }, fw = async () => {
7340
+ const e = await Yp(), t = await ci();
7341
+ return Qp(e, Xp(t));
7342
+ }, hw = async (e) => e ? (await ci()).results.find(
7311
7343
  (n) => n.display.toLowerCase() === e.toLowerCase()
7312
7344
  )?.uuid : void 0;
7313
- function Yp(e) {
7345
+ function Zp(e) {
7314
7346
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7315
7347
  }
7316
7348
  var Lt = { exports: {} }, ln = {}, Le = {}, He = {}, dn = {}, fn = {}, hn = {}, Gs;
@@ -7960,16 +7992,16 @@ function Q() {
7960
7992
  }
7961
7993
  // `for` statement for a range of values
7962
7994
  forRange(w, T, I, V, B = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
7963
- const re = this._scope.toName(w);
7964
- return this._for(new b(B, re, T, I), () => V(re));
7995
+ const ne = this._scope.toName(w);
7996
+ return this._for(new b(B, ne, T, I), () => V(ne));
7965
7997
  }
7966
7998
  // `for-of` statement (in es5 mode replace with a normal for loop)
7967
7999
  forOf(w, T, I, V = r.varKinds.const) {
7968
8000
  const B = this._scope.toName(w);
7969
8001
  if (this.opts.es5) {
7970
- const re = T instanceof t.Name ? T : this.var("_arr", T);
7971
- return this.forRange("_i", 0, (0, t._)`${re}.length`, (Z) => {
7972
- this.var(B, (0, t._)`${re}[${Z}]`), I(B);
8002
+ const ne = T instanceof t.Name ? T : this.var("_arr", T);
8003
+ return this.forRange("_i", 0, (0, t._)`${ne}.length`, (Z) => {
8004
+ this.var(B, (0, t._)`${ne}[${Z}]`), I(B);
7973
8005
  });
7974
8006
  }
7975
8007
  return this._for(new _("of", V, B, T), () => I(B));
@@ -8086,13 +8118,13 @@ function Q() {
8086
8118
  return I(N);
8087
8119
  if (!V(N))
8088
8120
  return N;
8089
- return new t._Code(N._items.reduce((B, re) => (re instanceof t.Name && (re = I(re)), re instanceof t._Code ? B.push(...re._items) : B.push(re), B), []));
8121
+ return new t._Code(N._items.reduce((B, ne) => (ne instanceof t.Name && (ne = I(ne)), ne instanceof t._Code ? B.push(...ne._items) : B.push(ne), B), []));
8090
8122
  function I(B) {
8091
- const re = T[B.str];
8092
- return re === void 0 || w[B.str] !== 1 ? B : (delete w[B.str], re);
8123
+ const ne = T[B.str];
8124
+ return ne === void 0 || w[B.str] !== 1 ? B : (delete w[B.str], ne);
8093
8125
  }
8094
8126
  function V(B) {
8095
- return B instanceof t._Code && B._items.some((re) => re instanceof t.Name && w[re.str] === 1 && T[re.str] !== void 0);
8127
+ return B instanceof t._Code && B._items.some((ne) => ne instanceof t.Name && w[ne.str] === 1 && T[ne.str] !== void 0);
8096
8128
  }
8097
8129
  }
8098
8130
  function Y(N, w) {
@@ -8374,7 +8406,7 @@ function Hr() {
8374
8406
  })(dn)), dn;
8375
8407
  }
8376
8408
  var ea;
8377
- function Jp() {
8409
+ function em() {
8378
8410
  if (ea) return He;
8379
8411
  ea = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.boolOrEmptySchema = He.topBoolOrEmptySchema = void 0;
8380
8412
  const e = Hr(), t = Q(), r = Ve(), n = {
@@ -8599,7 +8631,7 @@ function Ir() {
8599
8631
  return ge;
8600
8632
  }
8601
8633
  var wt = {}, sa;
8602
- function Xp() {
8634
+ function tm() {
8603
8635
  if (sa) return wt;
8604
8636
  sa = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.assignDefaults = void 0;
8605
8637
  const e = Q(), t = te();
@@ -8625,7 +8657,7 @@ function Xp() {
8625
8657
  }
8626
8658
  return wt;
8627
8659
  }
8628
- var $e = {}, se = {}, aa;
8660
+ var Ne = {}, se = {}, aa;
8629
8661
  function Ie() {
8630
8662
  if (aa) return se;
8631
8663
  aa = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.validateUnion = se.validateArray = se.usePattern = se.callValidateCode = se.schemaProperties = se.allSchemaProperties = se.noPropertyInData = se.propertyInData = se.isOwnProperty = se.hasPropFunc = se.reportMissingProp = se.checkMissingProp = se.checkReportMissingProp = void 0;
@@ -8735,9 +8767,9 @@ function Ie() {
8735
8767
  return se.validateUnion = h, se;
8736
8768
  }
8737
8769
  var oa;
8738
- function Qp() {
8739
- if (oa) return $e;
8740
- oa = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.validateKeywordUsage = $e.validSchemaType = $e.funcKeywordCode = $e.macroKeywordCode = void 0;
8770
+ function rm() {
8771
+ if (oa) return Ne;
8772
+ oa = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.validateKeywordUsage = Ne.validSchemaType = Ne.funcKeywordCode = Ne.macroKeywordCode = void 0;
8741
8773
  const e = Q(), t = Ve(), r = Ie(), n = Hr();
8742
8774
  function s(y, R) {
8743
8775
  const { gen: v, keyword: g, schema: f, parentSchema: h, it: u } = y, p = R.macro.call(u.self, f, h, u), b = d(v, g, p);
@@ -8751,7 +8783,7 @@ function Qp() {
8751
8783
  compositeRule: !0
8752
8784
  }, _), y.pass(_, () => y.error(!0));
8753
8785
  }
8754
- $e.macroKeywordCode = s;
8786
+ Ne.macroKeywordCode = s;
8755
8787
  function a(y, R) {
8756
8788
  var v;
8757
8789
  const { gen: g, keyword: f, schema: h, parentSchema: u, $data: p, it: b } = y;
@@ -8783,7 +8815,7 @@ function Qp() {
8783
8815
  g.if((0, e.not)((z = R.valid) !== null && z !== void 0 ? z : S), F);
8784
8816
  }
8785
8817
  }
8786
- $e.funcKeywordCode = a;
8818
+ Ne.funcKeywordCode = a;
8787
8819
  function o(y) {
8788
8820
  const { gen: R, data: v, it: g } = y;
8789
8821
  R.if(g.parentData, () => R.assign(v, (0, e._)`${g.parentData}[${g.parentDataProperty}]`));
@@ -8806,7 +8838,7 @@ function Qp() {
8806
8838
  function l(y, R, v = !1) {
8807
8839
  return !R.length || R.some((g) => g === "array" ? Array.isArray(y) : g === "object" ? y && typeof y == "object" && !Array.isArray(y) : typeof y == g || v && typeof y > "u");
8808
8840
  }
8809
- $e.validSchemaType = l;
8841
+ Ne.validSchemaType = l;
8810
8842
  function m({ schema: y, opts: R, self: v, errSchemaPath: g }, f, h) {
8811
8843
  if (Array.isArray(f.keyword) ? !f.keyword.includes(h) : f.keyword !== h)
8812
8844
  throw new Error("ajv implementation error");
@@ -8821,10 +8853,10 @@ function Qp() {
8821
8853
  throw new Error(b);
8822
8854
  }
8823
8855
  }
8824
- return $e.validateKeywordUsage = m, $e;
8856
+ return Ne.validateKeywordUsage = m, Ne;
8825
8857
  }
8826
8858
  var xe = {}, ia;
8827
- function Zp() {
8859
+ function nm() {
8828
8860
  if (ia) return xe;
8829
8861
  ia = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.extendSubschemaMode = xe.extendSubschemaData = xe.getSubschema = void 0;
8830
8862
  const e = Q(), t = te();
@@ -8908,7 +8940,7 @@ function fi() {
8908
8940
  }), mn;
8909
8941
  }
8910
8942
  var gn = { exports: {} }, ua;
8911
- function em() {
8943
+ function sm() {
8912
8944
  if (ua) return gn.exports;
8913
8945
  ua = 1;
8914
8946
  var e = gn.exports = function(n, s, a) {
@@ -8986,7 +9018,7 @@ var la;
8986
9018
  function Br() {
8987
9019
  if (la) return ve;
8988
9020
  la = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.getSchemaRefs = ve.resolveUrl = ve.normalizeId = ve._getFullPath = ve.getFullPath = ve.inlineRef = void 0;
8989
- const e = te(), t = fi(), r = em(), n = /* @__PURE__ */ new Set([
9021
+ const e = te(), t = fi(), r = sm(), n = /* @__PURE__ */ new Set([
8990
9022
  "type",
8991
9023
  "format",
8992
9024
  "pattern",
@@ -9095,7 +9127,7 @@ var da;
9095
9127
  function zr() {
9096
9128
  if (da) return Le;
9097
9129
  da = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.getData = Le.KeywordCxt = Le.validateFunctionCode = void 0;
9098
- const e = Jp(), t = Ir(), r = di(), n = Ir(), s = Xp(), a = Qp(), o = Zp(), i = Q(), c = Ve(), d = Br(), l = te(), m = Hr();
9130
+ const e = em(), t = Ir(), r = di(), n = Ir(), s = tm(), a = rm(), o = nm(), i = Q(), c = Ve(), d = Br(), l = te(), m = Hr();
9099
9131
  function y(P) {
9100
9132
  if (_(P) && (S(P), b(P))) {
9101
9133
  f(P);
@@ -9187,8 +9219,8 @@ function zr() {
9187
9219
  if (H.$comment === !0)
9188
9220
  P.code((0, i._)`${c.default.self}.logger.log(${X})`);
9189
9221
  else if (typeof H.$comment == "function") {
9190
- const pe = (0, i.str)`${x}/$comment`, Oe = P.scopeValue("root", { ref: $.root });
9191
- P.code((0, i._)`${c.default.self}.opts.$comment(${X}, ${pe}, ${Oe}.schema)`);
9222
+ const pe = (0, i.str)`${x}/$comment`, $e = P.scopeValue("root", { ref: $.root });
9223
+ P.code((0, i._)`${c.default.self}.opts.$comment(${X}, ${pe}, ${$e}.schema)`);
9192
9224
  }
9193
9225
  }
9194
9226
  function z(P) {
@@ -9199,18 +9231,18 @@ function zr() {
9199
9231
  k instanceof i.Name && P.assign((0, i._)`${$}.props`, k), x instanceof i.Name && P.assign((0, i._)`${$}.items`, x);
9200
9232
  }
9201
9233
  function he(P, $, k, x) {
9202
- const { gen: H, schema: X, data: pe, allErrors: Oe, opts: be, self: Ee } = P, { RULES: me } = Ee;
9234
+ const { gen: H, schema: X, data: pe, allErrors: $e, opts: be, self: Ee } = P, { RULES: me } = Ee;
9203
9235
  if (X.$ref && (be.ignoreKeywordsWithRef || !(0, l.schemaHasRulesButRef)(X, me))) {
9204
9236
  H.block(() => V(P, "$ref", me.all.$ref.definition));
9205
9237
  return;
9206
9238
  }
9207
9239
  be.jtd || ee(P, $), H.block(() => {
9208
- for (const Te of me.rules)
9209
- Je(Te);
9240
+ for (const Pe of me.rules)
9241
+ Je(Pe);
9210
9242
  Je(me.post);
9211
9243
  });
9212
- function Je(Te) {
9213
- (0, r.shouldUseGroup)(X, Te) && (Te.type ? (H.if((0, n.checkDataType)(Te.type, pe, be.strictNumbers)), ce(P, Te), $.length === 1 && $[0] === Te.type && k && (H.else(), (0, n.reportTypeError)(P)), H.endIf()) : ce(P, Te), Oe || H.if((0, i._)`${c.default.errors} === ${x || 0}`));
9244
+ function Je(Pe) {
9245
+ (0, r.shouldUseGroup)(X, Pe) && (Pe.type ? (H.if((0, n.checkDataType)(Pe.type, pe, be.strictNumbers)), ce(P, Pe), $.length === 1 && $[0] === Pe.type && k && (H.else(), (0, n.reportTypeError)(P)), H.endIf()) : ce(P, Pe), $e || H.if((0, i._)`${c.default.errors} === ${x || 0}`));
9214
9246
  }
9215
9247
  }
9216
9248
  function ce(P, $) {
@@ -9330,7 +9362,7 @@ function zr() {
9330
9362
  }
9331
9363
  invalid$data() {
9332
9364
  const { gen: $, schemaCode: k, schemaType: x, def: H, it: X } = this;
9333
- return (0, i.or)(pe(), Oe());
9365
+ return (0, i.or)(pe(), $e());
9334
9366
  function pe() {
9335
9367
  if (x.length) {
9336
9368
  if (!(k instanceof i.Name))
@@ -9340,7 +9372,7 @@ function zr() {
9340
9372
  }
9341
9373
  return i.nil;
9342
9374
  }
9343
- function Oe() {
9375
+ function $e() {
9344
9376
  if (H.validateSchema) {
9345
9377
  const be = $.scopeValue("validate$data", { ref: H.validateSchema });
9346
9378
  return (0, i._)`!${be}(${k})`;
@@ -9369,7 +9401,7 @@ function zr() {
9369
9401
  const H = new I(P, k, $);
9370
9402
  "code" in k ? k.code(H, x) : H.$data && k.validate ? (0, a.funcKeywordCode)(H, k) : "macro" in k ? (0, a.macroKeywordCode)(H, k) : (k.compile || k.validate) && (0, a.funcKeywordCode)(H, k);
9371
9403
  }
9372
- const B = /^\/(?:[^~]|~0|~1)*$/, re = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
9404
+ const B = /^\/(?:[^~]|~0|~1)*$/, ne = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
9373
9405
  function Z(P, { dataLevel: $, dataNames: k, dataPathArr: x }) {
9374
9406
  let H, X;
9375
9407
  if (P === "")
@@ -9379,7 +9411,7 @@ function zr() {
9379
9411
  throw new Error(`Invalid JSON-pointer: ${P}`);
9380
9412
  H = P, X = c.default.rootData;
9381
9413
  } else {
9382
- const Ee = re.exec(P);
9414
+ const Ee = ne.exec(P);
9383
9415
  if (!Ee)
9384
9416
  throw new Error(`Invalid JSON-pointer: ${P}`);
9385
9417
  const me = +Ee[1];
@@ -9394,8 +9426,8 @@ function zr() {
9394
9426
  return X;
9395
9427
  }
9396
9428
  let pe = X;
9397
- const Oe = H.split("/");
9398
- for (const Ee of Oe)
9429
+ const $e = H.split("/");
9430
+ for (const Ee of $e)
9399
9431
  Ee && (X = (0, i._)`${X}${(0, i.getProperty)((0, l.unescapeJsonPointer)(Ee))}`, pe = (0, i._)`${pe} && ${X}`);
9400
9432
  return pe;
9401
9433
  function be(Ee, me) {
@@ -9585,16 +9617,16 @@ function zn() {
9585
9617
  }
9586
9618
  return Re;
9587
9619
  }
9588
- const tm = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", rm = "Meta-schema for $data reference (JSON AnySchema extension proposal)", nm = "object", sm = ["$data"], am = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, om = !1, im = {
9589
- $id: tm,
9590
- description: rm,
9591
- type: nm,
9592
- required: sm,
9593
- properties: am,
9594
- additionalProperties: om
9620
+ const am = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", om = "Meta-schema for $data reference (JSON AnySchema extension proposal)", im = "object", cm = ["$data"], um = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, lm = !1, dm = {
9621
+ $id: am,
9622
+ description: om,
9623
+ type: im,
9624
+ required: cm,
9625
+ properties: um,
9626
+ additionalProperties: lm
9595
9627
  };
9596
9628
  var jt = {}, bt = { exports: {} }, yn, ma;
9597
- function cm() {
9629
+ function fm() {
9598
9630
  return ma || (ma = 1, yn = {
9599
9631
  HEX: {
9600
9632
  0: 0,
@@ -9623,10 +9655,10 @@ function cm() {
9623
9655
  }), yn;
9624
9656
  }
9625
9657
  var vn, ga;
9626
- function um() {
9658
+ function hm() {
9627
9659
  if (ga) return vn;
9628
9660
  ga = 1;
9629
- const { HEX: e } = cm(), t = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
9661
+ const { HEX: e } = fm(), t = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
9630
9662
  function r(g) {
9631
9663
  if (i(g, ".") < 3)
9632
9664
  return { host: g, isIPV4: !1 };
@@ -9758,7 +9790,7 @@ function um() {
9758
9790
  }, vn;
9759
9791
  }
9760
9792
  var wn, ya;
9761
- function lm() {
9793
+ function pm() {
9762
9794
  if (ya) return wn;
9763
9795
  ya = 1;
9764
9796
  const e = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu, t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -9850,10 +9882,10 @@ function lm() {
9850
9882
  return wn = h, wn;
9851
9883
  }
9852
9884
  var va;
9853
- function dm() {
9885
+ function mm() {
9854
9886
  if (va) return bt.exports;
9855
9887
  va = 1;
9856
- const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = um(), a = lm();
9888
+ const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = hm(), a = pm();
9857
9889
  function o(f, h) {
9858
9890
  return typeof f == "string" ? f = l(v(f, h), h) : typeof f == "object" && (f = v(l(f, h), h)), f;
9859
9891
  }
@@ -9949,14 +9981,14 @@ function dm() {
9949
9981
  return bt.exports = g, bt.exports.default = g, bt.exports.fastUri = g, bt.exports;
9950
9982
  }
9951
9983
  var wa;
9952
- function fm() {
9984
+ function gm() {
9953
9985
  if (wa) return jt;
9954
9986
  wa = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
9955
- const e = dm();
9987
+ const e = mm();
9956
9988
  return e.code = 'require("ajv/dist/runtime/uri").default', jt.default = e, jt;
9957
9989
  }
9958
9990
  var ba;
9959
- function hm() {
9991
+ function ym() {
9960
9992
  return ba || (ba = 1, (function(e) {
9961
9993
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
9962
9994
  var t = zr();
@@ -9977,7 +10009,7 @@ function hm() {
9977
10009
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
9978
10010
  return r.CodeGen;
9979
10011
  } });
9980
- const n = Bn(), s = Wr(), a = li(), o = zn(), i = Q(), c = Br(), d = Ir(), l = te(), m = im, y = fm(), R = (M, A) => new RegExp(M, A);
10012
+ const n = Bn(), s = Wr(), a = li(), o = zn(), i = Q(), c = Br(), d = Ir(), l = te(), m = dm, y = gm(), R = (M, A) => new RegExp(M, A);
9981
10013
  R.code = "new RegExp";
9982
10014
  const v = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
9983
10015
  "validate",
@@ -10015,24 +10047,24 @@ function hm() {
10015
10047
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
10016
10048
  }, u = 200;
10017
10049
  function p(M) {
10018
- var A, C, N, w, T, I, V, B, re, Z, P, $, k, x, H, X, pe, Oe, be, Ee, me, Je, Te, Kr, Yr;
10050
+ var A, C, N, w, T, I, V, B, ne, Z, P, $, k, x, H, X, pe, $e, be, Ee, me, Je, Pe, Kr, Yr;
10019
10051
  const mt = M.strict, Jr = (A = M.code) === null || A === void 0 ? void 0 : A.optimize, Kn = Jr === !0 || Jr === void 0 ? 1 : Jr || 0, Yn = (N = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && N !== void 0 ? N : R, wi = (w = M.uriResolver) !== null && w !== void 0 ? w : y.default;
10020
10052
  return {
10021
10053
  strictSchema: (I = (T = M.strictSchema) !== null && T !== void 0 ? T : mt) !== null && I !== void 0 ? I : !0,
10022
10054
  strictNumbers: (B = (V = M.strictNumbers) !== null && V !== void 0 ? V : mt) !== null && B !== void 0 ? B : !0,
10023
- strictTypes: (Z = (re = M.strictTypes) !== null && re !== void 0 ? re : mt) !== null && Z !== void 0 ? Z : "log",
10055
+ strictTypes: (Z = (ne = M.strictTypes) !== null && ne !== void 0 ? ne : mt) !== null && Z !== void 0 ? Z : "log",
10024
10056
  strictTuples: ($ = (P = M.strictTuples) !== null && P !== void 0 ? P : mt) !== null && $ !== void 0 ? $ : "log",
10025
10057
  strictRequired: (x = (k = M.strictRequired) !== null && k !== void 0 ? k : mt) !== null && x !== void 0 ? x : !1,
10026
10058
  code: M.code ? { ...M.code, optimize: Kn, regExp: Yn } : { optimize: Kn, regExp: Yn },
10027
10059
  loopRequired: (H = M.loopRequired) !== null && H !== void 0 ? H : u,
10028
10060
  loopEnum: (X = M.loopEnum) !== null && X !== void 0 ? X : u,
10029
10061
  meta: (pe = M.meta) !== null && pe !== void 0 ? pe : !0,
10030
- messages: (Oe = M.messages) !== null && Oe !== void 0 ? Oe : !0,
10062
+ messages: ($e = M.messages) !== null && $e !== void 0 ? $e : !0,
10031
10063
  inlineRefs: (be = M.inlineRefs) !== null && be !== void 0 ? be : !0,
10032
10064
  schemaId: (Ee = M.schemaId) !== null && Ee !== void 0 ? Ee : "$id",
10033
10065
  addUsedSchema: (me = M.addUsedSchema) !== null && me !== void 0 ? me : !0,
10034
10066
  validateSchema: (Je = M.validateSchema) !== null && Je !== void 0 ? Je : !0,
10035
- validateFormats: (Te = M.validateFormats) !== null && Te !== void 0 ? Te : !0,
10067
+ validateFormats: (Pe = M.validateFormats) !== null && Pe !== void 0 ? Pe : !0,
10036
10068
  unicodeRegExp: (Kr = M.unicodeRegExp) !== null && Kr !== void 0 ? Kr : !0,
10037
10069
  int32range: (Yr = M.int32range) !== null && Yr !== void 0 ? Yr : !0,
10038
10070
  uriResolver: wi
@@ -10099,10 +10131,10 @@ function hm() {
10099
10131
  throw new Error(`AnySchema ${Z} is loaded but ${P} cannot be resolved`);
10100
10132
  }
10101
10133
  async function B(Z) {
10102
- const P = await re.call(this, Z);
10134
+ const P = await ne.call(this, Z);
10103
10135
  this.refs[Z] || await T.call(this, P.$schema), this.refs[Z] || this.addSchema(P, Z, C);
10104
10136
  }
10105
- async function re(Z) {
10137
+ async function ne(Z) {
10106
10138
  const P = this._loading[Z];
10107
10139
  if (P)
10108
10140
  return P;
@@ -10248,8 +10280,8 @@ function hm() {
10248
10280
  const B = N[V];
10249
10281
  if (typeof B != "object")
10250
10282
  continue;
10251
- const { $data: re } = B.definition, Z = I[V];
10252
- re && Z && (I[V] = ie(Z));
10283
+ const { $data: ne } = B.definition, Z = I[V];
10284
+ ne && Z && (I[V] = ie(Z));
10253
10285
  }
10254
10286
  }
10255
10287
  return A;
@@ -10275,8 +10307,8 @@ function hm() {
10275
10307
  if (B !== void 0)
10276
10308
  return B;
10277
10309
  N = (0, c.normalizeId)(I || N);
10278
- const re = c.getSchemaRefs.call(this, A, N);
10279
- return B = new o.SchemaEnv({ schema: A, schemaId: V, meta: C, baseId: N, localRefs: re }), this._cache.set(B.schema, B), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = B), w && this.validateSchema(A, !0), B;
10310
+ const ne = c.getSchemaRefs.call(this, A, N);
10311
+ return B = new o.SchemaEnv({ schema: A, schemaId: V, meta: C, baseId: N, localRefs: ne }), this._cache.set(B.schema, B), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = B), w && this.validateSchema(A, !0), B;
10280
10312
  }
10281
10313
  _checkUnique(A) {
10282
10314
  if (this.schemas[A] || this.refs[A])
@@ -10399,7 +10431,7 @@ function hm() {
10399
10431
  })(ln)), ln;
10400
10432
  }
10401
10433
  var Ut = {}, Ft = {}, Vt = {}, Ea;
10402
- function pm() {
10434
+ function vm() {
10403
10435
  if (Ea) return Vt;
10404
10436
  Ea = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
10405
10437
  const e = {
@@ -10411,7 +10443,7 @@ function pm() {
10411
10443
  return Vt.default = e, Vt;
10412
10444
  }
10413
10445
  var Ue = {}, _a;
10414
- function mm() {
10446
+ function wm() {
10415
10447
  if (_a) return Ue;
10416
10448
  _a = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.callRef = Ue.getValidate = void 0;
10417
10449
  const e = Wr(), t = Ie(), r = Q(), n = Ve(), s = zn(), a = te(), o = {
@@ -10498,10 +10530,10 @@ function mm() {
10498
10530
  return Ue.callRef = c, Ue.default = o, Ue;
10499
10531
  }
10500
10532
  var Sa;
10501
- function gm() {
10533
+ function bm() {
10502
10534
  if (Sa) return Ft;
10503
10535
  Sa = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
10504
- const e = pm(), t = mm(), r = [
10536
+ const e = vm(), t = wm(), r = [
10505
10537
  "$schema",
10506
10538
  "$id",
10507
10539
  "$defs",
@@ -10514,7 +10546,7 @@ function gm() {
10514
10546
  return Ft.default = r, Ft;
10515
10547
  }
10516
10548
  var Ht = {}, Bt = {}, Ra;
10517
- function ym() {
10549
+ function Em() {
10518
10550
  if (Ra) return Bt;
10519
10551
  Ra = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
10520
10552
  const e = Q(), t = e.operators, r = {
@@ -10539,7 +10571,7 @@ function ym() {
10539
10571
  return Bt.default = s, Bt;
10540
10572
  }
10541
10573
  var zt = {}, Ta;
10542
- function vm() {
10574
+ function _m() {
10543
10575
  if (Ta) return zt;
10544
10576
  Ta = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
10545
10577
  const e = Q(), r = {
@@ -10559,7 +10591,7 @@ function vm() {
10559
10591
  return zt.default = r, zt;
10560
10592
  }
10561
10593
  var Wt = {}, Gt = {}, Pa;
10562
- function wm() {
10594
+ function Sm() {
10563
10595
  if (Pa) return Gt;
10564
10596
  Pa = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
10565
10597
  function e(t) {
@@ -10572,10 +10604,10 @@ function wm() {
10572
10604
  return Gt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Gt;
10573
10605
  }
10574
10606
  var Aa;
10575
- function bm() {
10607
+ function Rm() {
10576
10608
  if (Aa) return Wt;
10577
10609
  Aa = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
10578
- const e = Q(), t = te(), r = wm(), s = {
10610
+ const e = Q(), t = te(), r = Sm(), s = {
10579
10611
  keyword: ["maxLength", "minLength"],
10580
10612
  type: "string",
10581
10613
  schemaType: "number",
@@ -10595,7 +10627,7 @@ function bm() {
10595
10627
  return Wt.default = s, Wt;
10596
10628
  }
10597
10629
  var Kt = {}, Oa;
10598
- function Em() {
10630
+ function Tm() {
10599
10631
  if (Oa) return Kt;
10600
10632
  Oa = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
10601
10633
  const e = Ie(), t = Q(), n = {
@@ -10615,7 +10647,7 @@ function Em() {
10615
10647
  return Kt.default = n, Kt;
10616
10648
  }
10617
10649
  var Yt = {}, $a;
10618
- function _m() {
10650
+ function Pm() {
10619
10651
  if ($a) return Yt;
10620
10652
  $a = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
10621
10653
  const e = Q(), r = {
@@ -10638,7 +10670,7 @@ function _m() {
10638
10670
  return Yt.default = r, Yt;
10639
10671
  }
10640
10672
  var Jt = {}, Na;
10641
- function Sm() {
10673
+ function Am() {
10642
10674
  if (Na) return Jt;
10643
10675
  Na = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
10644
10676
  const e = Ie(), t = Q(), r = te(), s = {
@@ -10695,7 +10727,7 @@ function Sm() {
10695
10727
  return Jt.default = s, Jt;
10696
10728
  }
10697
10729
  var Xt = {}, Da;
10698
- function Rm() {
10730
+ function Om() {
10699
10731
  if (Da) return Xt;
10700
10732
  Da = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
10701
10733
  const e = Q(), r = {
@@ -10725,7 +10757,7 @@ function Wn() {
10725
10757
  return e.code = 'require("ajv/dist/runtime/equal").default', Zt.default = e, Zt;
10726
10758
  }
10727
10759
  var Ca;
10728
- function Tm() {
10760
+ function $m() {
10729
10761
  if (Ca) return Qt;
10730
10762
  Ca = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
10731
10763
  const e = Ir(), t = Q(), r = te(), n = Wn(), a = {
@@ -10769,7 +10801,7 @@ function Tm() {
10769
10801
  return Qt.default = a, Qt;
10770
10802
  }
10771
10803
  var er = {}, ka;
10772
- function Pm() {
10804
+ function Nm() {
10773
10805
  if (ka) return er;
10774
10806
  ka = 1, Object.defineProperty(er, "__esModule", { value: !0 });
10775
10807
  const e = Q(), t = te(), r = Wn(), s = {
@@ -10787,7 +10819,7 @@ function Pm() {
10787
10819
  return er.default = s, er;
10788
10820
  }
10789
10821
  var tr = {}, La;
10790
- function Am() {
10822
+ function Dm() {
10791
10823
  if (La) return tr;
10792
10824
  La = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
10793
10825
  const e = Q(), t = te(), r = Wn(), s = {
@@ -10827,10 +10859,10 @@ function Am() {
10827
10859
  return tr.default = s, tr;
10828
10860
  }
10829
10861
  var Ma;
10830
- function Om() {
10862
+ function Im() {
10831
10863
  if (Ma) return Ht;
10832
10864
  Ma = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
10833
- const e = ym(), t = vm(), r = bm(), n = Em(), s = _m(), a = Sm(), o = Rm(), i = Tm(), c = Pm(), d = Am(), l = [
10865
+ const e = Em(), t = _m(), r = Rm(), n = Tm(), s = Pm(), a = Am(), o = Om(), i = $m(), c = Nm(), d = Dm(), l = [
10834
10866
  // number
10835
10867
  e.default,
10836
10868
  t.default,
@@ -10929,7 +10961,7 @@ function pi() {
10929
10961
  return st.validateTuple = s, st.default = n, st;
10930
10962
  }
10931
10963
  var ja;
10932
- function $m() {
10964
+ function Cm() {
10933
10965
  if (ja) return nr;
10934
10966
  ja = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
10935
10967
  const e = pi(), t = {
@@ -10942,7 +10974,7 @@ function $m() {
10942
10974
  return nr.default = t, nr;
10943
10975
  }
10944
10976
  var sr = {}, Ua;
10945
- function Nm() {
10977
+ function km() {
10946
10978
  if (Ua) return sr;
10947
10979
  Ua = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
10948
10980
  const e = Q(), t = te(), r = Ie(), n = hi(), a = {
@@ -10962,7 +10994,7 @@ function Nm() {
10962
10994
  return sr.default = a, sr;
10963
10995
  }
10964
10996
  var ar = {}, Fa;
10965
- function Dm() {
10997
+ function Lm() {
10966
10998
  if (Fa) return ar;
10967
10999
  Fa = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
10968
11000
  const e = Q(), t = te(), n = {
@@ -11019,7 +11051,7 @@ function Dm() {
11019
11051
  return ar.default = n, ar;
11020
11052
  }
11021
11053
  var bn = {}, Va;
11022
- function Im() {
11054
+ function Mm() {
11023
11055
  return Va || (Va = 1, (function(e) {
11024
11056
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
11025
11057
  const t = Q(), r = te(), n = Ie();
@@ -11092,7 +11124,7 @@ function Im() {
11092
11124
  })(bn)), bn;
11093
11125
  }
11094
11126
  var or = {}, Ha;
11095
- function Cm() {
11127
+ function xm() {
11096
11128
  if (Ha) return or;
11097
11129
  Ha = 1, Object.defineProperty(or, "__esModule", { value: !0 });
11098
11130
  const e = Q(), t = te(), n = {
@@ -11195,7 +11227,7 @@ function mi() {
11195
11227
  return ir.default = a, ir;
11196
11228
  }
11197
11229
  var cr = {}, za;
11198
- function km() {
11230
+ function qm() {
11199
11231
  if (za) return cr;
11200
11232
  za = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
11201
11233
  const e = zr(), t = Ie(), r = te(), n = mi(), s = {
@@ -11230,7 +11262,7 @@ function km() {
11230
11262
  return cr.default = s, cr;
11231
11263
  }
11232
11264
  var ur = {}, Wa;
11233
- function Lm() {
11265
+ function jm() {
11234
11266
  if (Wa) return ur;
11235
11267
  Wa = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
11236
11268
  const e = Ie(), t = Q(), r = te(), n = te(), s = {
@@ -11271,7 +11303,7 @@ function Lm() {
11271
11303
  return ur.default = s, ur;
11272
11304
  }
11273
11305
  var lr = {}, Ga;
11274
- function Mm() {
11306
+ function Um() {
11275
11307
  if (Ga) return lr;
11276
11308
  Ga = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
11277
11309
  const e = te(), t = {
@@ -11297,7 +11329,7 @@ function Mm() {
11297
11329
  return lr.default = t, lr;
11298
11330
  }
11299
11331
  var dr = {}, Ka;
11300
- function xm() {
11332
+ function Fm() {
11301
11333
  if (Ka) return dr;
11302
11334
  Ka = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
11303
11335
  const t = {
@@ -11310,7 +11342,7 @@ function xm() {
11310
11342
  return dr.default = t, dr;
11311
11343
  }
11312
11344
  var fr = {}, Ya;
11313
- function qm() {
11345
+ function Vm() {
11314
11346
  if (Ya) return fr;
11315
11347
  Ya = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
11316
11348
  const e = Q(), t = te(), n = {
@@ -11346,7 +11378,7 @@ function qm() {
11346
11378
  return fr.default = n, fr;
11347
11379
  }
11348
11380
  var hr = {}, Ja;
11349
- function jm() {
11381
+ function Hm() {
11350
11382
  if (Ja) return hr;
11351
11383
  Ja = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
11352
11384
  const e = te(), t = {
@@ -11368,7 +11400,7 @@ function jm() {
11368
11400
  return hr.default = t, hr;
11369
11401
  }
11370
11402
  var pr = {}, Xa;
11371
- function Um() {
11403
+ function Bm() {
11372
11404
  if (Xa) return pr;
11373
11405
  Xa = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
11374
11406
  const e = Q(), t = te(), n = {
@@ -11415,7 +11447,7 @@ function Um() {
11415
11447
  return pr.default = n, pr;
11416
11448
  }
11417
11449
  var mr = {}, Qa;
11418
- function Fm() {
11450
+ function zm() {
11419
11451
  if (Qa) return mr;
11420
11452
  Qa = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
11421
11453
  const e = te(), t = {
@@ -11428,10 +11460,10 @@ function Fm() {
11428
11460
  return mr.default = t, mr;
11429
11461
  }
11430
11462
  var Za;
11431
- function Vm() {
11463
+ function Wm() {
11432
11464
  if (Za) return rr;
11433
11465
  Za = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
11434
- const e = hi(), t = $m(), r = pi(), n = Nm(), s = Dm(), a = Im(), o = Cm(), i = mi(), c = km(), d = Lm(), l = Mm(), m = xm(), y = qm(), R = jm(), v = Um(), g = Fm();
11466
+ const e = hi(), t = Cm(), r = pi(), n = km(), s = Lm(), a = Mm(), o = xm(), i = mi(), c = qm(), d = jm(), l = Um(), m = Fm(), y = Vm(), R = Hm(), v = Bm(), g = zm();
11435
11467
  function f(h = !1) {
11436
11468
  const u = [
11437
11469
  // any
@@ -11453,7 +11485,7 @@ function Vm() {
11453
11485
  return rr.default = f, rr;
11454
11486
  }
11455
11487
  var gr = {}, yr = {}, eo;
11456
- function Hm() {
11488
+ function Gm() {
11457
11489
  if (eo) return yr;
11458
11490
  eo = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
11459
11491
  const e = Q(), r = {
@@ -11522,14 +11554,14 @@ function Hm() {
11522
11554
  return yr.default = r, yr;
11523
11555
  }
11524
11556
  var to;
11525
- function Bm() {
11557
+ function Km() {
11526
11558
  if (to) return gr;
11527
11559
  to = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
11528
- const t = [Hm().default];
11560
+ const t = [Gm().default];
11529
11561
  return gr.default = t, gr;
11530
11562
  }
11531
11563
  var ze = {}, ro;
11532
- function zm() {
11564
+ function Ym() {
11533
11565
  return ro || (ro = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.contentVocabulary = ze.metadataVocabulary = void 0, ze.metadataVocabulary = [
11534
11566
  "title",
11535
11567
  "description",
@@ -11545,10 +11577,10 @@ function zm() {
11545
11577
  ]), ze;
11546
11578
  }
11547
11579
  var no;
11548
- function Wm() {
11580
+ function Jm() {
11549
11581
  if (no) return Ut;
11550
11582
  no = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
11551
- const e = gm(), t = Om(), r = Vm(), n = Bm(), s = zm(), a = [
11583
+ const e = bm(), t = Im(), r = Wm(), n = Km(), s = Ym(), a = [
11552
11584
  e.default,
11553
11585
  t.default,
11554
11586
  (0, r.default)(),
@@ -11559,7 +11591,7 @@ function Wm() {
11559
11591
  return Ut.default = a, Ut;
11560
11592
  }
11561
11593
  var vr = {}, Et = {}, so;
11562
- function Gm() {
11594
+ function Xm() {
11563
11595
  if (so) return Et;
11564
11596
  so = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.DiscrError = void 0;
11565
11597
  var e;
@@ -11568,10 +11600,10 @@ function Gm() {
11568
11600
  })(e || (Et.DiscrError = e = {})), Et;
11569
11601
  }
11570
11602
  var ao;
11571
- function Km() {
11603
+ function Qm() {
11572
11604
  if (ao) return vr;
11573
11605
  ao = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
11574
- const e = Q(), t = Gm(), r = zn(), n = Wr(), s = te(), o = {
11606
+ const e = Q(), t = Xm(), r = zn(), n = Wr(), s = te(), o = {
11575
11607
  keyword: "discriminator",
11576
11608
  type: "object",
11577
11609
  schemaType: "object",
@@ -11644,20 +11676,20 @@ function Km() {
11644
11676
  };
11645
11677
  return vr.default = o, vr;
11646
11678
  }
11647
- const Ym = "http://json-schema.org/draft-07/schema#", Jm = "http://json-schema.org/draft-07/schema#", Xm = "Core schema meta-schema", Qm = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Zm = ["object", "boolean"], eg = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, tg = {
11648
- $schema: Ym,
11649
- $id: Jm,
11650
- title: Xm,
11651
- definitions: Qm,
11652
- type: Zm,
11653
- properties: eg,
11679
+ const Zm = "http://json-schema.org/draft-07/schema#", eg = "http://json-schema.org/draft-07/schema#", tg = "Core schema meta-schema", rg = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, ng = ["object", "boolean"], sg = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, ag = {
11680
+ $schema: Zm,
11681
+ $id: eg,
11682
+ title: tg,
11683
+ definitions: rg,
11684
+ type: ng,
11685
+ properties: sg,
11654
11686
  default: !0
11655
11687
  };
11656
11688
  var oo;
11657
- function rg() {
11689
+ function og() {
11658
11690
  return oo || (oo = 1, (function(e, t) {
11659
11691
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
11660
- const r = hm(), n = Wm(), s = Km(), a = tg, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
11692
+ const r = ym(), n = Jm(), s = Qm(), a = ag, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
11661
11693
  class c extends r.default {
11662
11694
  _addVocabularies() {
11663
11695
  super._addVocabularies(), n.default.forEach((v) => this.addVocabulary(v)), this.opts.discriminator && this.addKeyword(s.default);
@@ -11701,8 +11733,8 @@ function rg() {
11701
11733
  } });
11702
11734
  })(Lt, Lt.exports)), Lt.exports;
11703
11735
  }
11704
- var ng = rg();
11705
- const sg = /* @__PURE__ */ Yp(ng), Gn = "/bahmni_config/openmrs/apps/clinical/v2", ag = "/bahmni_config/openmrs/apps/registration/v2", og = Gn + "/app.json", ig = ag + "/app.json", cg = Gn + "/medication.json", ug = (e) => `${Gn}/dashboards/${e}`, io = {
11736
+ var ig = og();
11737
+ const cg = /* @__PURE__ */ Zp(ig), Gn = "/bahmni_config/openmrs/apps/clinical/v2", ug = "/bahmni_config/openmrs/apps/registration/v2", lg = Gn + "/app.json", dg = ug + "/app.json", fg = Gn + "/medication.json", hg = (e) => `${Gn}/dashboards/${e}`, io = {
11706
11738
  CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
11707
11739
  VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED",
11708
11740
  SCHEMA_VALIDATION_FAILED: "CONFIG_ERROR_SCHEMA_VALIDATION_FAILED"
@@ -11710,54 +11742,54 @@ const sg = /* @__PURE__ */ Yp(ng), Gn = "/bahmni_config/openmrs/apps/clinical/v2
11710
11742
  CONFIG_ERROR: "ERROR_CONFIG_TITLE",
11711
11743
  VALIDATION_ERROR: "ERROR_VALIDATION_TITLE",
11712
11744
  DASHBOARD_ERROR: "ERROR_DASHBOARD_CONFIG_TITLE"
11713
- }, lg = "http://json-schema.org/draft-07/schema#", dg = "Clinical App Configuration Schema", fg = "Schema for global clinical app configuration including patient information, actions and available dashboards", hg = "object", pg = ["patientInformation", "actions", "dashboards", "consultationPad"], mg = !1, gg = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap"], additionalProperties: !1, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } } } } }, yg = {
11714
- $schema: lg,
11715
- title: dg,
11716
- description: fg,
11717
- type: hg,
11718
- required: pg,
11719
- additionalProperties: mg,
11720
- properties: gg
11721
- }, vg = "http://json-schema.org/draft-07/schema#", wg = "Clinical Dashboard Configuration Schema", bg = "Schema for dashboards in clinical app which contains sections and associated controls", Eg = "object", _g = !1, Sg = ["sections"], Rg = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: [{ type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, config: { type: "object", description: "Configuration for the control" } } }] } } } } }, Tg = {
11722
- $schema: vg,
11723
- title: wg,
11724
- description: bg,
11725
- type: Eg,
11726
- additionalProperties: _g,
11727
- required: Sg,
11728
- properties: Rg
11729
- }, Pg = "http://json-schema.org/draft-07/schema#", Ag = "Medication Configuration Schema", Og = "object", $g = !1, Ng = { defaultDurationUnit: { type: "string", enum: ["min", "h", "d", "wk", "mo"], description: "Default unit for medication duration" }, defaultInstructions: { type: "string", description: "Default instructions for medication" }, drugFormDefaults: { type: "object", description: "Default dose units and routes for different drug forms", patternProperties: { "^.*$": { type: "object", additionalProperties: !1, properties: { doseUnits: { type: "string", description: "Default dose units for this drug form" }, route: { type: "string", description: "Default route of administration for this drug form" } } } } } }, Dg = {
11730
- $schema: Pg,
11731
- title: Ag,
11732
- type: Og,
11733
- additionalProperties: $g,
11734
- properties: Ng
11735
- }, Ig = "http://json-schema.org/draft-07/schema#", Cg = "Registration Configuration Schema", kg = "Schema for validating registration app configuration", Lg = "object", Mg = !1, xg = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } }, extensionPoints: { type: "array", description: "Array of extension point definitions that extensions can attach to", items: { type: "object", required: ["id"], additionalProperties: !1, properties: { id: { type: "string", description: "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')" }, description: { type: "string", description: "Human-readable description of what this extension point is for" } } } }, registrationAppExtensions: { type: "array", description: "Array of app extension configurations for registration", items: { type: "object", description: "Extension configuration", additionalProperties: !1, required: ["id", "extensionPointId", "type", "requiredPrivilege"], properties: { id: { type: "string", description: "Unique identifier for the extension" }, extensionPointId: { type: "string", description: "Extension point identifier this extension attaches to" }, type: { type: "string", enum: ["link", "startVisit"], description: "Type of extension (e.g., 'link', 'startVisit')" }, translationKey: { type: "string", description: "Translation key for the extension label" }, url: { type: "string", description: "URL path for the extension" }, shortcutKey: { type: "string", description: "Keyboard shortcut key for the extension" }, icon: { type: "string", description: "Icon class name (e.g., FontAwesome class like 'fa-search')" }, order: { type: "number", description: "Display order of the extension" }, kind: { type: "string", enum: ["primary", "secondary", "tertiary", "ghost", "danger"], description: "Button kind/variant (defaults to 'primary' if not specified)" }, requiredPrivilege: { type: "string", description: "Required privilege to access this extension" } } } } }, qg = {
11736
- $schema: Ig,
11737
- title: Cg,
11738
- description: kg,
11739
- type: Lg,
11740
- additionalProperties: Mg,
11741
- properties: xg
11742
- }, iw = async () => Gr(og, yg), cw = async (e) => {
11745
+ }, pg = "http://json-schema.org/draft-07/schema#", mg = "Clinical App Configuration Schema", gg = "Schema for global clinical app configuration including patient information, actions and available dashboards", yg = "object", vg = ["patientInformation", "actions", "dashboards", "consultationPad"], wg = !1, bg = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap"], additionalProperties: !1, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } } } } }, Eg = {
11746
+ $schema: pg,
11747
+ title: mg,
11748
+ description: gg,
11749
+ type: yg,
11750
+ required: vg,
11751
+ additionalProperties: wg,
11752
+ properties: bg
11753
+ }, _g = "http://json-schema.org/draft-07/schema#", Sg = "Clinical Dashboard Configuration Schema", Rg = "Schema for dashboards in clinical app which contains sections and associated controls", Tg = "object", Pg = !1, Ag = ["sections"], Og = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: [{ type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, config: { type: "object", description: "Configuration for the control" } } }] } } } } }, $g = {
11754
+ $schema: _g,
11755
+ title: Sg,
11756
+ description: Rg,
11757
+ type: Tg,
11758
+ additionalProperties: Pg,
11759
+ required: Ag,
11760
+ properties: Og
11761
+ }, Ng = "http://json-schema.org/draft-07/schema#", Dg = "Medication Configuration Schema", Ig = "object", Cg = !1, kg = { defaultDurationUnit: { type: "string", enum: ["min", "h", "d", "wk", "mo"], description: "Default unit for medication duration" }, defaultInstructions: { type: "string", description: "Default instructions for medication" }, drugFormDefaults: { type: "object", description: "Default dose units and routes for different drug forms", patternProperties: { "^.*$": { type: "object", additionalProperties: !1, properties: { doseUnits: { type: "string", description: "Default dose units for this drug form" }, route: { type: "string", description: "Default route of administration for this drug form" } } } } } }, Lg = {
11762
+ $schema: Ng,
11763
+ title: Dg,
11764
+ type: Ig,
11765
+ additionalProperties: Cg,
11766
+ properties: kg
11767
+ }, Mg = "http://json-schema.org/draft-07/schema#", xg = "Registration Configuration Schema", qg = "Schema for validating registration app configuration", jg = "object", Ug = !1, Fg = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } }, extensionPoints: { type: "array", description: "Array of extension point definitions that extensions can attach to", items: { type: "object", required: ["id"], additionalProperties: !1, properties: { id: { type: "string", description: "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')" }, description: { type: "string", description: "Human-readable description of what this extension point is for" } } } }, registrationAppExtensions: { type: "array", description: "Array of app extension configurations for registration", items: { type: "object", description: "Extension configuration", additionalProperties: !1, required: ["id", "extensionPointId", "type", "requiredPrivilege"], properties: { id: { type: "string", description: "Unique identifier for the extension" }, extensionPointId: { type: "string", description: "Extension point identifier this extension attaches to" }, type: { type: "string", enum: ["link", "startVisit"], description: "Type of extension (e.g., 'link', 'startVisit')" }, translationKey: { type: "string", description: "Translation key for the extension label" }, url: { type: "string", description: "URL path for the extension" }, shortcutKey: { type: "string", description: "Keyboard shortcut key for the extension" }, icon: { type: "string", description: "Icon class name (e.g., FontAwesome class like 'fa-search')" }, order: { type: "number", description: "Display order of the extension" }, kind: { type: "string", enum: ["primary", "secondary", "tertiary", "ghost", "danger"], description: "Button kind/variant (defaults to 'primary' if not specified)" }, requiredPrivilege: { type: "string", description: "Required privilege to access this extension" } } } } }, Vg = {
11768
+ $schema: Mg,
11769
+ title: xg,
11770
+ description: qg,
11771
+ type: jg,
11772
+ additionalProperties: Ug,
11773
+ properties: Fg
11774
+ }, pw = async () => Gr(lg, Eg), mw = async (e) => {
11743
11775
  const t = await Gr(
11744
- ug(e),
11745
- Tg
11776
+ hg(e),
11777
+ $g
11746
11778
  );
11747
11779
  return t && t.sections && t.sections.length > 0 && (t.sections = t.sections.map((r) => r.id ? r : {
11748
11780
  ...r,
11749
11781
  id: ch()
11750
11782
  })), t;
11751
- }, uw = async () => Gr(
11752
- cg,
11753
- Dg
11754
- ), lw = async () => Gr(
11755
- ig,
11756
- qg
11783
+ }, gw = async () => Gr(
11784
+ fg,
11785
+ Lg
11786
+ ), yw = async () => Gr(
11787
+ dg,
11788
+ Vg
11757
11789
  ), Gr = async (e, t) => {
11758
11790
  try {
11759
- const r = await jg(e);
11760
- return r ? await Ug(r, t) ? r : (on.showError(
11791
+ const r = await Hg(e);
11792
+ return r ? await Bg(r, t) ? r : (on.showError(
11761
11793
  oe.t(co.VALIDATION_ERROR),
11762
11794
  oe.t(io.VALIDATION_FAILED)
11763
11795
  ), null) : (on.showError(
@@ -11768,61 +11800,61 @@ const sg = /* @__PURE__ */ Yp(ng), Gn = "/bahmni_config/openmrs/apps/clinical/v2
11768
11800
  const { title: n, message: s } = ct(r);
11769
11801
  return on.showError(n, s), null;
11770
11802
  }
11771
- }, jg = async (e) => {
11803
+ }, Hg = async (e) => {
11772
11804
  try {
11773
- return await K(e);
11805
+ return await G(e);
11774
11806
  } catch (t) {
11775
11807
  const { message: r } = ct(t);
11776
11808
  throw new Error(r);
11777
11809
  }
11778
- }, Ug = async (e, t) => new sg().compile(t)(e), Fg = (e) => ne + `/form/${e}?v=custom:(resources:(value))`, Vg = ne + "/bahmniie/form/latestPublishedForms", dw = (e) => ne + `/user/${e}?v=full`, Hg = (e, t, r, n) => ne + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, Rr = "Bahmni", Bg = (e, t, r) => {
11779
- let s = ne + "/bahmnicore/patient/" + e + "/forms";
11810
+ }, Bg = async (e, t) => new cg().compile(t)(e), zg = (e) => re + `/form/${e}?v=custom:(resources:(value))`, Wg = re + "/bahmniie/form/latestPublishedForms", vw = (e) => re + `/user/${e}?v=full`, Gg = (e, t, r, n) => re + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, Rr = "Bahmni", Kg = (e, t, r) => {
11811
+ let s = re + "/bahmnicore/patient/" + e + "/forms";
11780
11812
  return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
11781
- }, zg = (e) => ne + `/provider?user=${e}&v=custom:(uuid,display,person)`;
11782
- async function fw(e) {
11783
- const t = await K(
11784
- zg(e)
11813
+ }, Yg = (e) => re + `/provider?user=${e}&v=custom:(uuid,display,person)`;
11814
+ async function ww(e) {
11815
+ const t = await G(
11816
+ Yg(e)
11785
11817
  );
11786
11818
  return !t.results || t.results.length === 0 ? null : t.results[0];
11787
11819
  }
11788
- const Wg = (e) => De + `/Encounter?subject:Patient=${e}&_tag=visit`, Gg = (e, t = !1) => `${ne}/bahmnicore/bahmniencounter/${e}?includeAll=${t}`;
11789
- async function Kg(e) {
11790
- return await K(Wg(e));
11820
+ const Jg = (e) => Te + `/Encounter?subject:Patient=${e}&_tag=visit`, Xg = (e, t = !1) => `${re}/bahmnicore/bahmniencounter/${e}?includeAll=${t}`;
11821
+ async function Qg(e) {
11822
+ return await G(Jg(e));
11791
11823
  }
11792
- async function Yg(e) {
11793
- return (await Kg(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
11824
+ async function Zg(e) {
11825
+ return (await Qg(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
11794
11826
  }
11795
- async function Jg(e) {
11796
- return (await Yg(e)).find((r) => !r.period?.end) ?? null;
11827
+ async function ey(e) {
11828
+ return (await Zg(e)).find((r) => !r.period?.end) ?? null;
11797
11829
  }
11798
- async function hw(e, t = !1) {
11799
- return await K(
11800
- Gg(e, t)
11830
+ async function bw(e, t = !1) {
11831
+ return await G(
11832
+ Xg(e, t)
11801
11833
  );
11802
11834
  }
11803
- const pw = (e, t) => e?.length === 0 ? !1 : t?.length === 0, Xg = De + "/Encounter", Qg = ne + "/systemsetting/bahmni.encountersession.duration", Zg = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
11804
- async function ey(e) {
11835
+ const Ew = (e, t) => e?.length === 0 ? !1 : t?.length === 0, ty = Te + "/Encounter", ry = re + "/systemsetting/bahmni.encountersession.duration", ny = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
11836
+ async function sy(e) {
11805
11837
  const t = new URLSearchParams();
11806
11838
  Object.entries(e).forEach(([s, a]) => {
11807
11839
  a && t.append(s, a);
11808
11840
  });
11809
- const r = `${Xg}?${t.toString()}`;
11810
- return (await K(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
11841
+ const r = `${ty}?${t.toString()}`;
11842
+ return (await G(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
11811
11843
  }
11812
- async function ty() {
11844
+ async function ay() {
11813
11845
  try {
11814
- const e = await K(
11815
- Qg
11846
+ const e = await G(
11847
+ ry
11816
11848
  ), t = Number(e.value);
11817
11849
  return !isNaN(t) && t > 0 ? t : 60;
11818
11850
  } catch {
11819
11851
  return 30;
11820
11852
  }
11821
11853
  }
11822
- async function ry(e, t) {
11854
+ async function oy(e, t) {
11823
11855
  if (!e.length) return null;
11824
11856
  try {
11825
- const r = await Jg(t);
11857
+ const r = await ey(t);
11826
11858
  return r ? e.find((n) => {
11827
11859
  const s = n.partOf?.reference?.split("/")[1];
11828
11860
  return r.id === s;
@@ -11831,25 +11863,25 @@ async function ry(e, t) {
11831
11863
  return null;
11832
11864
  }
11833
11865
  }
11834
- async function mw(e, t, r) {
11866
+ async function _w(e, t, r) {
11835
11867
  try {
11836
11868
  if (!e) return null;
11837
- const n = r ?? await ty(), a = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, o = {
11869
+ const n = r ?? await ay(), a = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, o = {
11838
11870
  patient: e,
11839
11871
  _tag: "encounter",
11840
11872
  _lastUpdated: a,
11841
- type: Zg
11873
+ type: ny
11842
11874
  };
11843
11875
  t && (o.participant = t);
11844
- const i = await ey(o);
11845
- return i.length === 0 ? null : await ry(i, e);
11876
+ const i = await sy(o);
11877
+ return i.length === 0 ? null : await oy(i, e);
11846
11878
  } catch {
11847
11879
  return null;
11848
11880
  }
11849
11881
  }
11850
- const ny = (e) => De + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
11851
- async function gw(e) {
11852
- const t = e.join(","), r = await K(ny(t));
11882
+ const iy = (e) => Te + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
11883
+ async function Sw(e) {
11884
+ const t = e.join(","), r = await G(iy(t));
11853
11885
  if (r.total === 0)
11854
11886
  throw new Error(
11855
11887
  "No episode of care found for the provided UUIDs: " + e.join(", ")
@@ -11861,13 +11893,13 @@ async function gw(e) {
11861
11893
  c && s.add(c);
11862
11894
  }), { visitUuids: Array.from(s), encounterUuids: a };
11863
11895
  }
11864
- const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11896
+ const En = /* @__PURE__ */ new Map(), cy = async (e) => {
11865
11897
  if (En.has(e))
11866
11898
  return En.get(e) ?? null;
11867
- const t = await K(Vo(e)), r = t ? String(t) : null;
11899
+ const t = await G(Vo(e)), r = t ? String(t) : null;
11868
11900
  return En.set(e, r), r;
11869
- }, ay = async () => await sy(Ju) === "true", oy = async (e, t, r, n = at.CLINICAL) => {
11870
- if (!await ay())
11901
+ }, uy = async () => await cy(Ju) === "true", ly = async (e, t, r, n = at.CLINICAL) => {
11902
+ if (!await uy())
11871
11903
  return { logged: !1 };
11872
11904
  const a = Cn[t];
11873
11905
  if (!a)
@@ -11884,29 +11916,29 @@ const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11884
11916
  module: n
11885
11917
  };
11886
11918
  return await ht(Fh, o), { logged: !0 };
11887
- }, yw = () => Uh(async (t) => {
11888
- await oy(
11919
+ }, Rw = () => Uh(async (t) => {
11920
+ await ly(
11889
11921
  t.patientUuid,
11890
11922
  t.eventType,
11891
11923
  t.messageParams,
11892
11924
  t.module
11893
11925
  );
11894
- }), vw = async () => {
11926
+ }), Tw = async () => {
11895
11927
  try {
11896
- return await K(Hu);
11928
+ return await G(Hu);
11897
11929
  } catch (e) {
11898
11930
  const { message: t } = ct(e);
11899
11931
  throw new Error(t);
11900
11932
  }
11901
- }, ww = (e, t) => !e || e.length === 0 ? !1 : e.some((r) => r.name === t), iy = async () => {
11902
- const e = await fetch(Vg);
11933
+ }, Pw = (e, t) => !e || e.length === 0 ? !1 : e.some((r) => r.name === t), dy = async () => {
11934
+ const e = await fetch(Wg);
11903
11935
  if (!e.ok)
11904
11936
  throw new Error(
11905
11937
  `HTTP error! status for latestPublishedForms: ${e.status}`
11906
11938
  );
11907
11939
  const t = await e.json();
11908
11940
  return Array.isArray(t) ? t : [];
11909
- }, cy = (e, t) => {
11941
+ }, fy = (e, t) => {
11910
11942
  const r = JSON.parse(e.nameTranslation);
11911
11943
  if (Array.isArray(r) && r.length > 0) {
11912
11944
  const n = r.find(
@@ -11916,8 +11948,8 @@ const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11916
11948
  return n.display;
11917
11949
  }
11918
11950
  return e.name;
11919
- }, uy = (e, t) => {
11920
- const r = cy(e, t);
11951
+ }, hy = (e, t) => {
11952
+ const r = fy(e, t);
11921
11953
  return {
11922
11954
  uuid: e.uuid,
11923
11955
  name: r,
@@ -11927,13 +11959,13 @@ const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11927
11959
  editable: n.editable
11928
11960
  }))
11929
11961
  };
11930
- }, bw = async () => {
11931
- const e = await iy(), t = Nt();
11962
+ }, Aw = async () => {
11963
+ const e = await dy(), t = Nt();
11932
11964
  return e.map(
11933
- (r) => uy(r, t)
11965
+ (r) => hy(r, t)
11934
11966
  );
11935
- }, Ew = async (e) => {
11936
- const t = await fetch(Fg(e));
11967
+ }, Ow = async (e) => {
11968
+ const t = await fetch(zg(e));
11937
11969
  if (!t.ok)
11938
11970
  throw new Error(
11939
11971
  `Failed to fetch form metadata for ${e}: ${t.status}`
@@ -11945,7 +11977,7 @@ const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11945
11977
  let a = { labels: {}, concepts: {} };
11946
11978
  if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string")
11947
11979
  try {
11948
- const o = n.name ?? r.name, i = r.uuid ?? n.uuid, c = n.version ?? r.version ?? "1", d = Hg(
11980
+ const o = n.name ?? r.name, i = r.uuid ?? n.uuid, c = n.version ?? r.version ?? "1", d = Gg(
11949
11981
  o,
11950
11982
  i,
11951
11983
  c,
@@ -11968,10 +12000,10 @@ const En = /* @__PURE__ */ new Map(), sy = async (e) => {
11968
12000
  schema: n,
11969
12001
  translations: a
11970
12002
  };
11971
- }, _w = async (e, t, r) => {
12003
+ }, $w = async (e, t, r) => {
11972
12004
  let n;
11973
12005
  t && t.length > 0 && (n = t.join(","));
11974
- const s = Bg(e, r, n), a = await K(s);
12006
+ const s = Kg(e, r, n), a = await G(s);
11975
12007
  return Array.isArray(a) ? a : [];
11976
12008
  };
11977
12009
  function gi(e) {
@@ -12014,7 +12046,7 @@ function vi(e, t) {
12014
12046
  };
12015
12047
  return n(r.controls);
12016
12048
  }
12017
- function Sw(e, t) {
12049
+ function Nw(e, t) {
12018
12050
  if (!e.controls || e.controls.length === 0)
12019
12051
  return [];
12020
12052
  const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
@@ -12058,7 +12090,7 @@ function Sw(e, t) {
12058
12090
  s.interpretation && (o.interpretation = s.interpretation), r.push(o);
12059
12091
  }), r;
12060
12092
  }
12061
- function Rw(e, t) {
12093
+ function Dw(e, t) {
12062
12094
  if (!e || e.length === 0)
12063
12095
  return {
12064
12096
  controls: [],
@@ -12091,7 +12123,7 @@ function Rw(e, t) {
12091
12123
  metadata: { formMetadata: t }
12092
12124
  };
12093
12125
  }
12094
- const ly = ne + "/bahmnicore/diseaseSummaryData?", Tw = async (e, t, r, n) => {
12126
+ const py = re + "/bahmnicore/diseaseSummaryData?", Iw = async (e, t, r, n) => {
12095
12127
  const s = new URLSearchParams({
12096
12128
  groupBy: n,
12097
12129
  latestCount: t.toString(),
@@ -12100,16 +12132,16 @@ const ly = ne + "/bahmnicore/diseaseSummaryData?", Tw = async (e, t, r, n) => {
12100
12132
  r.forEach((o) => {
12101
12133
  s.append("obsConcepts", o);
12102
12134
  });
12103
- const a = ly + s.toString();
12104
- return K(a);
12105
- }, Pw = async (e) => await K(Bu(e)), kn = "consultation:saved", Aw = (e) => {
12135
+ const a = py + s.toString();
12136
+ return G(a);
12137
+ }, Cw = async (e) => await G(Bu(e)), kn = "consultation:saved", kw = (e) => {
12106
12138
  setTimeout(() => {
12107
12139
  const t = new CustomEvent(kn, {
12108
12140
  detail: e
12109
12141
  });
12110
12142
  window.dispatchEvent(t);
12111
12143
  }, 0);
12112
- }, Ow = (e, t = []) => {
12144
+ }, Lw = (e, t = []) => {
12113
12145
  const r = _n(e);
12114
12146
  Sn(() => {
12115
12147
  r.current = e;
@@ -12129,145 +12161,148 @@ export {
12129
12161
  lp as AllergyStatus,
12130
12162
  xh as AttributeFormat,
12131
12163
  qh as AttributeInputType,
12132
- ky as BAHMNI_HOME_PATH,
12133
- zv as CONCEPT_DATATYPE_COMPLEX,
12134
- Bv as CONCEPT_DATATYPE_NUMERIC,
12164
+ qy as BAHMNI_HOME_PATH,
12165
+ Yv as CONCEPT_DATATYPE_COMPLEX,
12166
+ Kv as CONCEPT_DATATYPE_NUMERIC,
12135
12167
  kn as CONSULTATION_SAVED_EVENT,
12136
12168
  pp as DATETIME_REGEX_PATTERN,
12137
12169
  nh as DATE_FORMAT,
12138
- Fy as DATE_PICKER_INPUT_FORMAT,
12139
- Kv as DATE_REGEX_PATTERN,
12170
+ zy as DATE_PICKER_INPUT_FORMAT,
12171
+ Qv as DATE_REGEX_PATTERN,
12140
12172
  sh as DATE_TIME_FORMAT,
12141
- xv as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
12142
- Hv as FHIR_OBSERVATION_COMPLEX_DATA_URL,
12143
- Vv as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
12144
- Fv as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
12145
- Wv as FHIR_OBSERVATION_STATUS_FINAL,
12146
- Gv as FHIR_RESOURCE_TYPE_OBSERVATION,
12147
- qy as FULL_MONTH_DATE_FORMAT,
12148
- Uv as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
12173
+ Fv as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
12174
+ Gv as FHIR_OBSERVATION_COMPLEX_DATA_URL,
12175
+ Wv as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
12176
+ zv as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
12177
+ Jv as FHIR_OBSERVATION_STATUS_FINAL,
12178
+ Xv as FHIR_RESOURCE_TYPE_OBSERVATION,
12179
+ Vy as FULL_MONTH_DATE_FORMAT,
12180
+ Bv as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
12149
12181
  fp as HL7_CONDITION_CATEGORY_CONDITION_CODE,
12150
12182
  hp as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
12151
- jv as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
12152
- qv as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
12153
- Yv as INTERPRETATION_TO_CODE,
12154
- Uy as ISO_DATE_FORMAT,
12183
+ Hv as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
12184
+ Vv as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
12185
+ Zv as INTERPRETATION_TO_CODE,
12186
+ By as ISO_DATE_FORMAT,
12155
12187
  Sr as LabTestPriority,
12156
- sv as MAX_NAME_LENGTH,
12157
- nv as MAX_PATIENT_AGE_YEARS,
12158
- av as MAX_PHONE_NUMBER_LENGTH,
12188
+ cv as MAX_NAME_LENGTH,
12189
+ iv as MAX_PATIENT_AGE_YEARS,
12190
+ uv as MAX_PHONE_NUMBER_LENGTH,
12159
12191
  qe as MedicationStatus,
12160
- De as OPENMRS_FHIR_R4,
12161
- ne as OPENMRS_REST_V1,
12162
- sw as ORDER_TYPE_QUERY_KEY,
12163
- jy as REGISTRATION_DATE_FORMAT,
12164
- dw as USER_PINNED_PREFERENCE_URL,
12192
+ Te as OPENMRS_FHIR_R4,
12193
+ re as OPENMRS_REST_V1,
12194
+ dw as ORDER_TYPE_QUERY_KEY,
12195
+ Hy as REGISTRATION_DATE_FORMAT,
12196
+ vw as USER_PINNED_PREFERENCE_URL,
12165
12197
  oh as calculateAge,
12166
- Gy as calculateAgeinYearsAndMonths,
12167
- Hy as calculateOnsetDate,
12168
- Jy as capitalize,
12169
- Av as checkIfActiveVisitExists,
12170
- fv as createPatient,
12171
- Ov as createVisitForPatient,
12172
- Cy as del,
12198
+ Xy as calculateAgeinYearsAndMonths,
12199
+ Gy as calculateOnsetDate,
12200
+ ev as capitalize,
12201
+ Dv as checkIfActiveVisitExists,
12202
+ gv as createPatient,
12203
+ Iv as createVisitForPatient,
12204
+ xy as del,
12173
12205
  jh as dispatchAuditEvent,
12174
- Aw as dispatchConsultationSaved,
12175
- kv as fetchAndFormatAllergenConcepts,
12176
- Ew as fetchFormMetadata,
12177
- bw as fetchObservationForms,
12178
- Lv as fetchReactionConcepts,
12179
- ev as filterReplacementEntries,
12180
- mw as findActiveEncounterInSession,
12206
+ kw as dispatchConsultationSaved,
12207
+ qv as fetchAndFormatAllergenConcepts,
12208
+ Ow as fetchFormMetadata,
12209
+ nw as fetchMedicationOrdersMetadata,
12210
+ Aw as fetchObservationForms,
12211
+ jv as fetchReactionConcepts,
12212
+ sv as filterReplacementEntries,
12213
+ _w as findActiveEncounterInSession,
12181
12214
  ih as formatDate,
12182
- Wy as formatDateAndTime,
12183
- By as formatDateDistance,
12184
- Vy as formatDateTime,
12185
- Up as formatLabTests,
12186
- tv as formatUrl,
12215
+ Jy as formatDateAndTime,
12216
+ Ky as formatDateDistance,
12217
+ Wy as formatDateTime,
12218
+ Bp as formatLabTests,
12219
+ av as formatUrl,
12187
12220
  ch as generateId,
12188
- K as get,
12189
- Jg as getActiveVisit,
12221
+ G as get,
12222
+ ey as getActiveVisit,
12190
12223
  Gh as getActiveVisitByPatient,
12191
- mv as getAddressHierarchyEntries,
12224
+ wv as getAddressHierarchyEntries,
12192
12225
  cp as getAllergies,
12193
- Dv as getAppointmentById,
12194
- ow as getCategoryUuidFromOrderTypes,
12195
- iw as getClinicalConfig,
12196
- Cv as getConceptById,
12197
- Jv as getConditions,
12226
+ Lv as getAppointmentById,
12227
+ hw as getCategoryUuidFromOrderTypes,
12228
+ pw as getClinicalConfig,
12229
+ xv as getConceptById,
12230
+ ew as getConditions,
12198
12231
  ai as getCookieByName,
12199
- fw as getCurrentProvider,
12200
- rv as getCurrentUser,
12201
- vw as getCurrentUserPrivileges,
12202
- cw as getDashboardConfig,
12203
- gw as getEncountersAndVisitsForEOC,
12204
- aw as getFlattenedInvestigations,
12205
- Mv as getFormattedAllergies,
12232
+ ww as getCurrentProvider,
12233
+ ov as getCurrentUser,
12234
+ Tw as getCurrentUserPrivileges,
12235
+ mw as getDashboardConfig,
12236
+ Sw as getEncountersAndVisitsForEOC,
12237
+ fw as getFlattenedInvestigations,
12238
+ Uv as getFormattedAllergies,
12206
12239
  ct as getFormattedError,
12207
- ov as getFormattedPatientById,
12208
- hw as getFormsDataByEncounterUuid,
12209
- pv as getGenders,
12210
- dv as getIdentifierData,
12211
- lv as getIdentifierTypes,
12212
- bv as getInputTypeForFormat,
12213
- uw as getMedicationConfig,
12240
+ lv as getFormattedPatientById,
12241
+ bw as getFormsDataByEncounterUuid,
12242
+ vv as getGenders,
12243
+ mv as getIdentifierData,
12244
+ pv as getIdentifierTypes,
12245
+ Rv as getInputTypeForFormat,
12246
+ gw as getMedicationConfig,
12214
12247
  ci as getOrderTypes,
12215
- gv as getOrderedAddressHierarchyLevels,
12248
+ bv as getOrderedAddressHierarchyLevels,
12216
12249
  Nh as getPatientById,
12217
- Xv as getPatientDiagnoses,
12218
- _w as getPatientFormData,
12219
- iv as getPatientImageAsDataUrl,
12220
- nw as getPatientLabInvestigations,
12221
- Pp as getPatientMedicationBundle,
12222
- Qv as getPatientMedications,
12223
- yv as getPatientProfile,
12224
- Pw as getPatientPrograms,
12225
- Zv as getPatientRadiologyInvestigationBundle,
12226
- ew as getPatientRadiologyInvestigationBundleWithImagingStudy,
12227
- tw as getPatientRadiologyInvestigations,
12228
- wv as getPersonAttributeTypes,
12250
+ tw as getPatientDiagnoses,
12251
+ $w as getPatientFormData,
12252
+ dv as getPatientImageAsDataUrl,
12253
+ lw as getPatientLabInvestigations,
12254
+ $p as getPatientMedicationBundle,
12255
+ rw as getPatientMedications,
12256
+ Ev as getPatientProfile,
12257
+ Cw as getPatientPrograms,
12258
+ ow as getPatientRadiologyInvestigationBundle,
12259
+ iw as getPatientRadiologyInvestigationBundleWithImagingStudy,
12260
+ cw as getPatientRadiologyInvestigations,
12261
+ Sv as getPersonAttributeTypes,
12229
12262
  Mh as getPrimaryIdentifierType,
12230
- Qy as getPriorityByOrder,
12231
- lw as getRegistrationConfig,
12232
- vv as getRelationshipTypes,
12263
+ rv as getPriorityByOrder,
12264
+ yw as getRegistrationConfig,
12265
+ _v as getRelationshipTypes,
12233
12266
  Vr as getServiceRequests,
12234
- zy as getTodayDate,
12267
+ Yy as getTodayDate,
12235
12268
  Vn as getUserLoginLocation,
12236
12269
  Nt as getUserPreferredLocale,
12237
- Pv as getVisitTypes,
12238
- Tw as getVitalFlowSheetData,
12239
- Zy as groupByDate,
12240
- rw as groupLabTestsByDate,
12241
- ww as hasPrivilege,
12242
- My as initAppI18n,
12243
- yw as initializeAuditListener,
12244
- Ev as isBooleanFormat,
12245
- _v as isConceptFormat,
12246
- Rv as isDateFormat,
12247
- Sv as isNumberFormat,
12248
- Xy as isStringEmpty,
12249
- Tv as isTextFormat,
12250
- oy as logAuditEvent,
12251
- Ly as normalizeTranslationKey,
12270
+ aw as getVaccinations,
12271
+ Nv as getVisitTypes,
12272
+ Iw as getVitalFlowSheetData,
12273
+ nv as groupByDate,
12274
+ uw as groupLabTestsByDate,
12275
+ Pw as hasPrivilege,
12276
+ Uy as initAppI18n,
12277
+ Rw as initializeAuditListener,
12278
+ Tv as isBooleanFormat,
12279
+ Pv as isConceptFormat,
12280
+ Ov as isDateFormat,
12281
+ Av as isNumberFormat,
12282
+ tv as isStringEmpty,
12283
+ $v as isTextFormat,
12284
+ ly as logAuditEvent,
12285
+ jy as normalizeTranslationKey,
12252
12286
  on as notificationService,
12253
12287
  uh as parseQueryParams,
12254
- Iy as patch,
12288
+ My as patch,
12255
12289
  ht as post,
12256
- Dy as put,
12257
- Yy as refreshQueries,
12258
- $v as searchAppointmentsByAttribute,
12259
- Iv as searchConcepts,
12290
+ Ly as put,
12291
+ Zy as refreshQueries,
12292
+ Cv as searchAppointmentsByAttribute,
12293
+ Mv as searchConcepts,
12260
12294
  _r as searchFHIRConcepts,
12261
12295
  rp as searchFHIRConceptsByName,
12262
- uv as searchPatientByCustomAttribute,
12263
- cv as searchPatientByNameOrId,
12264
- pw as shouldEnableEncounterFilter,
12265
- Ky as sortByDate,
12266
- Sw as transformFormDataToObservations,
12267
- Rw as transformObservationsToFormData,
12268
- Nv as updateAppointmentStatus,
12269
- hv as updatePatient,
12270
- xy as useCamera,
12271
- Ow as useConsultationSaved,
12272
- Dw as useTranslation
12296
+ sw as searchMedications,
12297
+ hv as searchPatientByCustomAttribute,
12298
+ fv as searchPatientByNameOrId,
12299
+ Ew as shouldEnableEncounterFilter,
12300
+ Qy as sortByDate,
12301
+ Nw as transformFormDataToObservations,
12302
+ Dw as transformObservationsToFormData,
12303
+ kv as updateAppointmentStatus,
12304
+ yv as updatePatient,
12305
+ Fy as useCamera,
12306
+ Lw as useConsultationSaved,
12307
+ qw as useTranslation
12273
12308
  };