@bahmni/services 0.0.1-dev.240 → 0.0.1-dev.241

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 gi } from "react-i18next";
2
- import { useTranslation as gv } from "react-i18next";
2
+ import { useTranslation as wv } from "react-i18next";
3
3
  import { useRef as _n, useCallback as Xr, useEffect as Sn } from "react";
4
4
  function oa(e, t) {
5
5
  return function() {
@@ -2089,23 +2089,23 @@ le.getAdapter = Sa.getAdapter;
2089
2089
  le.HttpStatusCode = Nn;
2090
2090
  le.default = le;
2091
2091
  const {
2092
- Axios: ig,
2093
- AxiosError: cg,
2094
- CanceledError: ug,
2095
- isCancel: lg,
2096
- CancelToken: dg,
2097
- VERSION: fg,
2098
- all: pg,
2099
- Cancel: hg,
2100
- isAxiosError: mg,
2101
- spread: gg,
2102
- toFormData: yg,
2103
- AxiosHeaders: wg,
2104
- HttpStatusCode: vg,
2105
- formToJSON: Eg,
2106
- getAdapter: bg,
2107
- mergeConfig: _g,
2108
- create: Sg
2092
+ Axios: cg,
2093
+ AxiosError: ug,
2094
+ CanceledError: lg,
2095
+ isCancel: dg,
2096
+ CancelToken: fg,
2097
+ VERSION: pg,
2098
+ all: hg,
2099
+ Cancel: mg,
2100
+ isAxiosError: gg,
2101
+ spread: yg,
2102
+ toFormData: wg,
2103
+ AxiosHeaders: vg,
2104
+ HttpStatusCode: Eg,
2105
+ formToJSON: bg,
2106
+ getAdapter: _g,
2107
+ mergeConfig: Sg,
2108
+ create: Rg
2109
2109
  } = le, su = (e) => typeof e == "object" && e !== null && "resourceType" in e && e.resourceType === "OperationOutcome", ou = (e) => {
2110
2110
  if (!e.issue || !Array.isArray(e.issue))
2111
2111
  return null;
@@ -2310,7 +2310,7 @@ qe.interceptors.response.use(
2310
2310
  return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${t}: ${r}`);
2311
2311
  }
2312
2312
  );
2313
- const z = async (e) => (await qe.get(e)).data, $e = async (e, t) => (await qe.post(e, t)).data, Rg = async (e, t) => (await qe.put(e, t)).data, Og = async (e, t) => (await qe.patch(e, t)).data, Aa = async (e) => (await qe.delete(e)).data, Y = (e) => typeof e == "string", pt = () => {
2313
+ const z = async (e) => (await qe.get(e)).data, $e = async (e, t) => (await qe.post(e, t)).data, Og = async (e, t) => (await qe.put(e, t)).data, Tg = async (e, t) => (await qe.patch(e, t)).data, Aa = async (e) => (await qe.delete(e)).data, Y = (e) => typeof e == "string", pt = () => {
2314
2314
  let e, t;
2315
2315
  const r = new Promise((n, s) => {
2316
2316
  e = n, t = s;
@@ -3984,7 +3984,7 @@ class Da {
3984
3984
  }
3985
3985
  }
3986
3986
  Da.type = "languageDetector";
3987
- const Qu = process.env.PUBLIC_URL ?? "/", ue = "/openmrs/ws/fhir2/R4", J = "/openmrs/ws/rest/v1", Zu = "/openmrs/ws/rest/v2", Ca = "bahmni.user", Tg = "/bahmni/home/index.html", Fn = J + "/session", el = "en", La = "NG_TRANSLATE_LANG_KEY", tl = (e, t) => Qu + `${e}/locales/locale_${t}.json`, rl = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, Fr = () => localStorage.getItem(La) ?? el, Cs = async (e) => {
3987
+ const Qu = process.env.PUBLIC_URL ?? "/", ue = "/openmrs/ws/fhir2/R4", J = "/openmrs/ws/rest/v1", Zu = "/openmrs/ws/rest/v2", Ca = "bahmni.user", Ag = "/bahmni/home/index.html", Fn = J + "/session", el = "en", La = "NG_TRANSLATE_LANG_KEY", tl = (e, t) => Qu + `${e}/locales/locale_${t}.json`, rl = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, Fr = () => localStorage.getItem(La) ?? el, Cs = async (e) => {
3988
3988
  try {
3989
3989
  const t = await z(e);
3990
3990
  return t || (console.error(`Invalid response from ${e}`), {});
@@ -4008,7 +4008,7 @@ const Qu = process.env.PUBLIC_URL ?? "/", ue = "/openmrs/ws/fhir2/R4", J = "/ope
4008
4008
  }, e !== "en" && (r.en = {
4009
4009
  [t]: await Ls(t, "en")
4010
4010
  }), r;
4011
- }, Ag = (e, t) => {
4011
+ }, Ng = (e, t) => {
4012
4012
  const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
4013
4013
  return `${r}_${n}`;
4014
4014
  }, sl = (e, t) => {
@@ -4025,7 +4025,7 @@ const Qu = process.env.PUBLIC_URL ?? "/", ue = "/openmrs/ws/fhir2/R4", J = "/ope
4025
4025
  labels: n.labels ?? {},
4026
4026
  concepts: n.concepts ?? {}
4027
4027
  };
4028
- }, Ng = async (e) => {
4028
+ }, Pg = async (e) => {
4029
4029
  const t = Fr(), r = await nl(t, e);
4030
4030
  return ce.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
4031
4031
  Object.entries(s).forEach(([o, a]) => {
@@ -4048,7 +4048,7 @@ const Qu = process.env.PUBLIC_URL ?? "/", ue = "/openmrs/ws/fhir2/R4", J = "/ope
4048
4048
  }
4049
4049
  }), ce;
4050
4050
  };
4051
- function Pg() {
4051
+ function $g() {
4052
4052
  const e = _n(null), t = _n(null), r = Xr(async () => {
4053
4053
  t.current && (t.current.getTracks().forEach((a) => a.stop()), t.current = null);
4054
4054
  const o = await navigator.mediaDevices.getUserMedia({
@@ -4088,10 +4088,10 @@ function Pg() {
4088
4088
  );
4089
4089
  return Sn(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
4090
4090
  }
4091
- const ol = "bahmni.enableAuditLog", ka = (e) => `${J}/bahmnicore/sql/globalproperty?property=${e}`, $g = async (e, t, r) => {
4091
+ const ol = "bahmni.enableAuditLog", ka = (e) => `${J}/bahmnicore/sql/globalproperty?property=${e}`, Ig = async (e, t, r) => {
4092
4092
  const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
4093
4093
  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" });
4094
- }, Ig = () => Math.random().toString(36).substring(2, 9), Dg = () => {
4094
+ }, Dg = () => Math.random().toString(36).substring(2, 9), Cg = () => {
4095
4095
  if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
4096
4096
  return globalThis.crypto.randomUUID();
4097
4097
  const e = globalThis.crypto || globalThis.msCrypto;
@@ -4103,7 +4103,7 @@ const ol = "bahmni.enableAuditLog", ka = (e) => `${J}/bahmnicore/sql/globalprope
4103
4103
  "Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
4104
4104
  );
4105
4105
  };
4106
- function Cg(e, t = " -") {
4106
+ function Lg(e, t = " -") {
4107
4107
  return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
4108
4108
  }
4109
4109
  function xa(e) {
@@ -4118,10 +4118,10 @@ function xa(e) {
4118
4118
  function al(e) {
4119
4119
  document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
4120
4120
  }
4121
- function Lg(e, t) {
4121
+ function kg(e, t) {
4122
4122
  document.cookie = `${e}=${t}; path=/;`;
4123
4123
  }
4124
- const kg = (e) => !e || e.trim().length === 0, xg = (e, t) => {
4124
+ const xg = (e) => !e || e.trim().length === 0, Ug = (e, t) => {
4125
4125
  if (!e || !t || t.length === 0)
4126
4126
  return 999;
4127
4127
  const r = t.findIndex(
@@ -4129,7 +4129,7 @@ const kg = (e) => !e || e.trim().length === 0, xg = (e, t) => {
4129
4129
  );
4130
4130
  return r === -1 ? 999 : r;
4131
4131
  };
4132
- function Ug(e, t) {
4132
+ function Mg(e, t) {
4133
4133
  if (!e || e.length === 0)
4134
4134
  return [];
4135
4135
  const r = /* @__PURE__ */ new Map();
@@ -4141,7 +4141,7 @@ function Ug(e, t) {
4141
4141
  items: s
4142
4142
  }));
4143
4143
  }
4144
- function Mg(e, t, r) {
4144
+ function qg(e, t, r) {
4145
4145
  if (!e || e.length === 0)
4146
4146
  return [];
4147
4147
  const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
@@ -4162,7 +4162,7 @@ function il(e) {
4162
4162
  o[n(a[1])] = n(a[2]);
4163
4163
  return o;
4164
4164
  }
4165
- function qg(e, t, r) {
4165
+ function Fg(e, t, r) {
4166
4166
  const n = /{{([^}]*)}}/g, s = e.match(n);
4167
4167
  let o = e;
4168
4168
  const a = r ?? !1, i = a ? il() : {};
@@ -4175,7 +4175,7 @@ function qg(e, t, r) {
4175
4175
  const cl = (e) => new Promise((t, r) => {
4176
4176
  const n = new FileReader();
4177
4177
  n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
4178
- }), Fg = (e) => {
4178
+ }), jg = (e) => {
4179
4179
  if (typeof e == "number" && !isNaN(e))
4180
4180
  return "number";
4181
4181
  if (typeof e != "string")
@@ -4183,17 +4183,17 @@ const cl = (e) => new Promise((t, r) => {
4183
4183
  const t = e.toLowerCase();
4184
4184
  return t.endsWith(".pdf") ? "PDF" : [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg"].some((s) => t.endsWith(s)) ? "Image" : [".mp4", ".ogg", ".webm", ".mkv", ".flv"].some((s) => t.endsWith(s)) ? "Video" : typeof e == "string" ? "string" : "object";
4185
4185
  };
4186
- function jg(e) {
4186
+ function Vg(e) {
4187
4187
  return e.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
4188
4188
  }
4189
- function Vg(e, t, r, n, s) {
4189
+ function Bg(e, t, r, n, s) {
4190
4190
  const o = (a) => ({
4191
4191
  ...n(a),
4192
4192
  disabled: !0
4193
4193
  });
4194
4194
  return e ? [o(s.loading)] : t ? [o(s.error)] : r.length ? r : [o(s.empty)];
4195
4195
  }
4196
- function Bg(e) {
4196
+ function Hg(e) {
4197
4197
  return e ? e.replaceAll(/[_-]/g, " ").replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-z])(\d)/gi, "$1 $2").replaceAll(/(\d)([a-z])/gi, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()) : "";
4198
4198
  }
4199
4199
  const ul = (e) => J + `/user?username=${e}&v=custom:(display,username,uuid)`, Ua = "bahmni.user.location", ll = `${J}/location?tags=Login Location&v=default`, dl = (e) => J + `/user/${e}?v=full`, fl = (e) => J + `/bahmni/app/setting?module=${e}`, pl = "default_dateFormat", hl = Fn, ml = Fn, gl = [
@@ -4202,7 +4202,7 @@ const ul = (e) => J + `/user?username=${e}&v=custom:(display,username,uuid)`, Ua
4202
4202
  ], yl = {
4203
4203
  LOGOUT_FAILED: "USER_LOGOUT_FAILED"
4204
4204
  };
4205
- async function Hg() {
4205
+ async function zg() {
4206
4206
  const e = xa(Ca);
4207
4207
  if (!e)
4208
4208
  return null;
@@ -4226,9 +4226,9 @@ const jn = () => {
4226
4226
  if (!t.uuid)
4227
4227
  throw new Error(ce.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
4228
4228
  return t;
4229
- }, zg = async () => (await z(fl("commons"))).find(
4229
+ }, Gg = async () => (await z(fl("commons"))).find(
4230
4230
  (r) => r.property === pl
4231
- )?.value ?? null, Gg = async () => (await z(ll)).results ?? [], Kg = async () => {
4231
+ )?.value ?? null, Kg = async () => (await z(ll)).results ?? [], Yg = async () => {
4232
4232
  try {
4233
4233
  await Aa(hl), gl.forEach((e) => {
4234
4234
  al(e);
@@ -4236,11 +4236,11 @@ const jn = () => {
4236
4236
  } catch (e) {
4237
4237
  throw console.error("Logout failed:", e), new Error(ce.t(yl.LOGOUT_FAILED));
4238
4238
  }
4239
- }, Yg = async (e, t) => {
4239
+ }, Wg = async (e, t) => {
4240
4240
  await $e(dl(e), {
4241
4241
  userProperties: { loginLocation: t.uuid }
4242
4242
  });
4243
- }, Wg = async (e) => {
4243
+ }, Jg = async (e) => {
4244
4244
  await $e(ml, { sessionLocation: e });
4245
4245
  }, Vn = {
4246
4246
  person: {
@@ -4288,7 +4288,7 @@ const jn = () => {
4288
4288
  }, Ma = J + "/idgen/identifiertype", _l = (e) => J + `/bahmni/app/setting?module=${e}`, Sl = "bahmni.primaryIdentifierType", Rl = J + "/bahmnicore/patientprofile", Ol = (e) => J + `/bahmnicore/patientprofile/${e}`, Tl = (e) => J + `/patientprofile/${e}?v=full`, Al = (e, t, r = 20, n) => {
4289
4289
  let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
4290
4290
  return n && (s += `&parent=${n}`), s;
4291
- }, Nl = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Pl = J + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", $l = 20, Il = 2, Jg = 120, Xg = 50, Qg = 15, Dl = /^[a-f0-9-]{36}$/i, Cl = (e) => Zu + `/patientImage?patientUuid=${e}`, Ll = J + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", kl = async (e) => {
4291
+ }, Nl = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Pl = J + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", $l = 20, Il = 2, Xg = 120, Qg = 50, Zg = 15, Dl = /^[a-f0-9-]{36}$/i, Cl = (e) => Zu + `/patientImage?patientUuid=${e}`, Ll = J + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", kl = async (e) => {
4292
4292
  if (!e || e.trim() === "")
4293
4293
  throw new Error("Invalid patient UUID: UUID cannot be empty");
4294
4294
  if (!Dl.test(e))
@@ -4321,20 +4321,20 @@ const jn = () => {
4321
4321
  formattedContact: r,
4322
4322
  identifiers: s
4323
4323
  };
4324
- }, Zg = async (e) => {
4324
+ }, ey = async (e) => {
4325
4325
  const t = await kl(e);
4326
4326
  return Fl(t);
4327
- }, ey = async (e) => {
4327
+ }, ty = async (e) => {
4328
4328
  const t = await fetch(Cl(e));
4329
4329
  if (!t.ok) return null;
4330
4330
  const r = await t.blob();
4331
4331
  return await cl(r);
4332
- }, ty = async (e, t) => {
4332
+ }, ry = async (e, t) => {
4333
4333
  const r = jn();
4334
4334
  return await z(
4335
4335
  El(e, r.uuid, t)
4336
4336
  );
4337
- }, ry = async (e, t, r, n, s) => {
4337
+ }, ny = async (e, t, r, n, s) => {
4338
4338
  const o = jn();
4339
4339
  return await z(
4340
4340
  bl(
@@ -4345,9 +4345,9 @@ const jn = () => {
4345
4345
  o.uuid
4346
4346
  )
4347
4347
  );
4348
- }, ny = async () => z(Ma), jl = async () => (await z(_l("core"))).find(
4348
+ }, sy = async () => z(Ma), jl = async () => (await z(_l("core"))).find(
4349
4349
  (r) => r.property === Sl
4350
- )?.value ?? null, sy = async () => {
4350
+ )?.value ?? null, oy = async () => {
4351
4351
  const [e, t] = await Promise.all([
4352
4352
  z(Ma),
4353
4353
  jl()
@@ -4364,10 +4364,10 @@ const jn = () => {
4364
4364
  sourcesByPrefix: n,
4365
4365
  primaryIdentifierTypeUuid: t
4366
4366
  }) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
4367
- }, oy = async (e) => $e(Rl, e), ay = async (e, t) => $e(
4367
+ }, ay = async (e) => $e(Rl, e), iy = async (e, t) => $e(
4368
4368
  Ol(e),
4369
4369
  t
4370
- ), iy = async () => z(ka("mrs.genders")), cy = async (e, t, r = $l, n) => {
4370
+ ), cy = async () => z(ka("mrs.genders")), uy = async (e, t, r = $l, n) => {
4371
4371
  if (!t || t.length < Il)
4372
4372
  return [];
4373
4373
  try {
@@ -4379,7 +4379,7 @@ const jn = () => {
4379
4379
  `Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
4380
4380
  );
4381
4381
  }
4382
- }, uy = async () => z(Nl), ly = async (e) => z(Tl(e)), dy = async () => {
4382
+ }, ly = async () => z(Nl), dy = async (e) => z(Tl(e)), fy = async () => {
4383
4383
  try {
4384
4384
  return (await z(
4385
4385
  Pl
@@ -4393,9 +4393,9 @@ const jn = () => {
4393
4393
  `Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
4394
4394
  );
4395
4395
  }
4396
- }, fy = async () => z(Ll);
4396
+ }, py = async () => z(Ll);
4397
4397
  var Vl = /* @__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))(Vl || {}), Bl = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(Bl || {});
4398
- const py = (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", hy = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", my = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", gy = (e) => e === "java.lang.Integer" || e === "java.lang.Float", yy = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", wy = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Hl = (e) => {
4398
+ const hy = (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", my = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", gy = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", yy = (e) => e === "java.lang.Integer" || e === "java.lang.Float", wy = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", vy = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Hl = (e) => {
4399
4399
  const t = new CustomEvent("bahmni-audit-log", { detail: e });
4400
4400
  window.dispatchEvent(t);
4401
4401
  }, zl = (e) => {
@@ -4448,10 +4448,10 @@ const py = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
4448
4448
  }
4449
4449
  }, Gl = J + "/auditlog", Kl = {
4450
4450
  UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
4451
- }, Yl = () => J + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Wl = J + "/visit", Jl = (e) => J + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Xl = (e) => J + `/bahmnicore/visitLocation/${e}`, vy = async () => z(Yl()), Ql = async (e) => z(Jl(e)), Zl = async (e) => z(Xl(e)), ed = async (e) => $e(Wl, e), Ey = async (e) => {
4451
+ }, Yl = () => J + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Wl = J + "/visit", Jl = (e) => J + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Xl = (e) => J + `/bahmnicore/visitLocation/${e}`, Ey = async () => z(Yl()), Ql = async (e) => z(Jl(e)), Zl = async (e) => z(Xl(e)), ed = async (e) => $e(Wl, e), by = async (e) => {
4452
4452
  const t = await Ql(e);
4453
4453
  return t?.results && t.results.length > 0;
4454
- }, by = async (e, t) => {
4454
+ }, _y = async (e, t) => {
4455
4455
  const r = await Zl(
4456
4456
  jn().uuid
4457
4457
  ), n = {
@@ -5918,7 +5918,7 @@ function Pf(e, t, r) {
5918
5918
  function $f(e, t, r) {
5919
5919
  return Hn(e, -t, r);
5920
5920
  }
5921
- const _y = {
5921
+ const Sy = {
5922
5922
  PROPOSED: "proposed",
5923
5923
  PENDING: "pending",
5924
5924
  BOOKED: "booked",
@@ -5929,36 +5929,36 @@ const _y = {
5929
5929
  CHECKED_IN: "checked-in",
5930
5930
  WAITLIST: "waitlist",
5931
5931
  ENTERED_IN_ERROR: "entered-in-error"
5932
- }, If = J + "/appointments/search", Ka = J + "/appointments", Sy = "http://fhir.bahmni.org/code-system/appointments", Df = (e) => `${Ka}/${e}`, Br = (e, t, r, n) => {
5932
+ }, If = J + "/appointments/search", Ka = J + "/appointments", Ry = "http://fhir.bahmni.org/code-system/appointments", Df = (e) => `${Ka}/${e}`, Br = (e, t, r, n) => {
5933
5933
  const s = t === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : Pf(/* @__PURE__ */ new Date()).toISOString();
5934
5934
  let c = `${ue}/Appointment?patient=${e}&date=${o}${i}&_sort=${a}`;
5935
5935
  return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
5936
- }, Cf = (e) => Br(e, "upcoming"), Lf = (e, t) => Br(e, "past", t), kf = (e) => `${Ka}/${e}/status-change`, xf = J + "/appointmentService/all/full", Uf = (e) => `${J}/appointmentService?uuid=${e}`, Mf = (e, t = 10, r = 0) => Br(e, "upcoming", t, r), qf = (e, t = 10, r = 0) => Br(e, "past", t, r), Ry = async (e) => await $e(If, e);
5937
- async function Oy(e) {
5936
+ }, Cf = (e) => Br(e, "upcoming"), Lf = (e, t) => Br(e, "past", t), kf = (e) => `${Ka}/${e}/status-change`, xf = J + "/appointmentService/all/full", Uf = (e) => `${J}/appointmentService?uuid=${e}`, Mf = (e, t = 10, r = 0) => Br(e, "upcoming", t, r), qf = (e, t = 10, r = 0) => Br(e, "past", t, r), Oy = async (e) => await $e(If, e);
5937
+ async function Ty(e) {
5938
5938
  return await z(Cf(e));
5939
5939
  }
5940
- async function Ty(e, t) {
5940
+ async function Ay(e, t) {
5941
5941
  return await z(
5942
5942
  Lf(e, t)
5943
5943
  );
5944
5944
  }
5945
- const Ay = async (e, t, r) => await $e(kf(e), {
5945
+ const Ny = async (e, t, r) => await $e(kf(e), {
5946
5946
  toStatus: t,
5947
5947
  onDate: r
5948
5948
  });
5949
- async function Ny(e) {
5949
+ async function Py(e) {
5950
5950
  return await z(Df(e));
5951
5951
  }
5952
- const Py = async () => await z(xf), $y = async (e) => {
5952
+ const $y = async () => await z(xf), Iy = async (e) => {
5953
5953
  await Aa(Uf(e));
5954
5954
  };
5955
- async function Iy(e, t = 10, r = 1) {
5955
+ async function Dy(e, t = 10, r = 1) {
5956
5956
  const n = (r - 1) * t, s = await z(
5957
5957
  Mf(e, t, n)
5958
5958
  );
5959
5959
  return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
5960
5960
  }
5961
- async function Dy(e, t = 10, r = 1) {
5961
+ async function Cy(e, t = 10, r = 1) {
5962
5962
  const n = (r - 1) * t, s = await z(
5963
5963
  qf(e, t, n)
5964
5964
  );
@@ -5971,7 +5971,7 @@ const Ya = "dd/MM/yyyy", Ff = "default_dateFormat", jf = "h:mm a", Oe = {
5971
5971
  INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
5972
5972
  NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
5973
5973
  };
5974
- function Cy(e) {
5974
+ function Ly(e) {
5975
5975
  if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e))
5976
5976
  return null;
5977
5977
  const t = Kn(e);
@@ -6039,7 +6039,7 @@ function Bf() {
6039
6039
  return Ya;
6040
6040
  }
6041
6041
  }
6042
- function Ly(e, t, r = !1, n) {
6042
+ function ky(e, t, r = !1, n) {
6043
6043
  const s = t ?? ((a) => a);
6044
6044
  let o;
6045
6045
  try {
@@ -6049,7 +6049,7 @@ function Ly(e, t, r = !1, n) {
6049
6049
  }
6050
6050
  return r && !n && (o = `${o} ${jf}`), Vf(e, o, s);
6051
6051
  }
6052
- function ky(e, t, r) {
6052
+ function xy(e, t, r) {
6053
6053
  if (!e || !$t(e) || t === null || t === void 0 || !r || typeof t != "number")
6054
6054
  return;
6055
6055
  const n = new Date(e);
@@ -6064,7 +6064,7 @@ function ky(e, t, r) {
6064
6064
  return;
6065
6065
  }
6066
6066
  }
6067
- function xy(e, t) {
6067
+ function Uy(e, t) {
6068
6068
  if (e == null)
6069
6069
  return {
6070
6070
  formattedResult: "",
@@ -6116,11 +6116,11 @@ function xy(e, t) {
6116
6116
  }
6117
6117
  return { formattedResult: c };
6118
6118
  }
6119
- const Uy = () => {
6119
+ const My = () => {
6120
6120
  const e = /* @__PURE__ */ new Date();
6121
6121
  return e.setHours(0, 0, 0, 0), e;
6122
6122
  };
6123
- function My(e, t) {
6123
+ function qy(e, t) {
6124
6124
  const r = typeof e == "string" ? Kn(e) : new Date(e), n = /* @__PURE__ */ new Date(), s = Gn(n, r), o = Hn(r, s), a = zn(n, o), i = jr(o, a), c = Dn(n, i), u = {
6125
6125
  years: "YEARS",
6126
6126
  months: "MONTHS",
@@ -6154,14 +6154,14 @@ const Hf = {
6154
6154
  h: 1 / 24,
6155
6155
  min: 1 / 1440,
6156
6156
  s: 1 / 86400
6157
- }, qy = (e, t, r) => {
6157
+ }, Fy = (e, t, r) => {
6158
6158
  const n = typeof e == "string" ? new Date(e) : e;
6159
6159
  if (isNaN(n.getTime()))
6160
6160
  throw new Error(`Invalid date: ${e}`);
6161
6161
  const s = Hf[r] ?? 1, o = t * s;
6162
6162
  return ja(n, o);
6163
- }, Fy = (e, t, r, n) => e <= n && r <= t;
6164
- function jy(e, t, r = !1) {
6163
+ }, jy = (e, t, r, n) => e <= n && r <= t;
6164
+ function Vy(e, t, r = !1) {
6165
6165
  return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
6166
6166
  const o = new Date(n[t]), a = new Date(s[t]);
6167
6167
  if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
@@ -6200,7 +6200,7 @@ const zf = () => {
6200
6200
  );
6201
6201
  }
6202
6202
  };
6203
- }, Vy = zf(), Gf = (e) => ue + `/ValueSet/${e}/$expand`, Kf = (e) => ue + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Yf = (e, t, r) => J + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Wf = (e) => J + `/concept/${e}`, Jf = (e) => `${J}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, Xf = "SHORT", Qf = "FULLY_SPECIFIED", By = async (e, t = 20) => {
6203
+ }, By = zf(), Gf = (e) => ue + `/ValueSet/${e}/$expand`, Kf = (e) => ue + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Yf = (e, t, r) => J + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Wf = (e) => J + `/concept/${e}`, Jf = (e) => `${J}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, Xf = "SHORT", Qf = "FULLY_SPECIFIED", Hy = async (e, t = 20) => {
6204
6204
  const r = Fr(), n = Yf(e, t, r);
6205
6205
  return z(n);
6206
6206
  }, _r = async (e) => {
@@ -6210,10 +6210,10 @@ const zf = () => {
6210
6210
  const t = `${Kf(e)}`;
6211
6211
  return z(t);
6212
6212
  };
6213
- async function Hy(e) {
6213
+ async function zy(e) {
6214
6214
  return await z(Wf(e));
6215
6215
  }
6216
- async function zy(e) {
6216
+ async function Gy(e) {
6217
6217
  const t = Jf(e), r = await z(t);
6218
6218
  return !r.results || r.results.length === 0 ? null : r.results[0];
6219
6219
  }
@@ -6249,7 +6249,7 @@ const tp = (e) => ue + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
6249
6249
  }), un = (e, t) => {
6250
6250
  const r = e.expansion?.contains ?? [];
6251
6251
  return np(r).map((s) => sp(s, t));
6252
- }, Gy = async (e, t, r) => {
6252
+ }, Ky = async (e, t, r) => {
6253
6253
  const n = e ?? tt.MEDICATION.code, s = t ?? tt.FOOD.code, o = r ?? tt.ENVIRONMENT.code, [a, i, c] = await Promise.all([
6254
6254
  _r(n),
6255
6255
  _r(s),
@@ -6269,7 +6269,7 @@ const tp = (e) => ue + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
6269
6269
  tt.ENVIRONMENT.display
6270
6270
  )
6271
6271
  ];
6272
- }, Ky = async (e) => {
6272
+ }, Yy = async (e) => {
6273
6273
  const t = e ?? rp.code;
6274
6274
  return (await _r(t)).compose?.include[0]?.concept ?? [];
6275
6275
  };
@@ -6303,22 +6303,22 @@ function ip(e) {
6303
6303
  };
6304
6304
  });
6305
6305
  }
6306
- async function Yy(e) {
6306
+ async function Wy(e) {
6307
6307
  const t = await ap(e);
6308
6308
  return ip(t);
6309
6309
  }
6310
6310
  var cp = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(cp || {}), up = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(up || {});
6311
- const Wy = "http://fhir.openmrs.org/code-system/encounter-type", Ja = "problem-list-item", Jy = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Xa = "encounter-diagnosis", Xy = "http://terminology.hl7.org/CodeSystem/condition-clinical", Qy = "http://terminology.hl7.org/CodeSystem/condition-category", Zy = "http://fhir.bahmni.org/ext/lab-order-concept-type", ew = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", tw = "http://fhir.bahmni.org/ext/observation/form-namespace-path", rw = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", nw = "Numeric", sw = "Complex", ow = "final", aw = "Observation", iw = /^\d{4}-\d{2}-\d{2}/, lp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, cw = {
6311
+ const Jy = "http://fhir.openmrs.org/code-system/encounter-type", Ja = "problem-list-item", Xy = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Xa = "encounter-diagnosis", Qy = "http://terminology.hl7.org/CodeSystem/condition-clinical", Zy = "http://terminology.hl7.org/CodeSystem/condition-category", ew = "http://fhir.bahmni.org/ext/lab-order-concept-type", tw = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", rw = "http://fhir.bahmni.org/ext/observation/form-namespace-path", nw = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", sw = "Numeric", ow = "Complex", aw = "final", iw = "Observation", cw = /^\d{4}-\d{2}-\d{2}/, lp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, uw = {
6312
6312
  ABNORMAL: { code: "A", display: "Abnormal" },
6313
6313
  NORMAL: { code: "N", display: "Normal" }
6314
6314
  }, dp = (e) => ue + `/Condition?category=${Ja}&patient=${e}&_count=100&_sort=-_lastUpdated`, fp = (e, t = 10, r = 0) => ue + `/Condition?category=${Ja}&patient=${e}&_count=${t}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
6315
6315
  async function pp(e) {
6316
6316
  return await z(`${dp(e)}`);
6317
6317
  }
6318
- async function uw(e) {
6318
+ async function lw(e) {
6319
6319
  return (await pp(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
6320
6320
  }
6321
- async function lw(e, t = 10, r = 1) {
6321
+ async function dw(e, t = 10, r = 1) {
6322
6322
  const n = (r - 1) * t, s = await z(
6323
6323
  fp(e, t, n)
6324
6324
  );
@@ -6384,11 +6384,11 @@ function _p(e) {
6384
6384
  }
6385
6385
  return Array.from(t.values());
6386
6386
  }
6387
- async function dw(e) {
6387
+ async function fw(e) {
6388
6388
  const t = await wp(e), r = Qa(t);
6389
6389
  return _p(r);
6390
6390
  }
6391
- async function fw(e, t = 10, r = 1) {
6391
+ async function pw(e, t = 10, r = 1) {
6392
6392
  const n = (r - 1) * t, s = await vp(
6393
6393
  e,
6394
6394
  t,
@@ -6563,7 +6563,7 @@ function Fp(e) {
6563
6563
  });
6564
6564
  }
6565
6565
  const Bs = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
6566
- async function pw(e, t, r, n = !1) {
6566
+ async function hw(e, t, r, n = !1) {
6567
6567
  const s = await Pp(
6568
6568
  e,
6569
6569
  t,
@@ -6572,21 +6572,21 @@ async function pw(e, t, r, n = !1) {
6572
6572
  );
6573
6573
  return Fp(s);
6574
6574
  }
6575
- async function hw() {
6575
+ async function mw() {
6576
6576
  return await z(
6577
6577
  Op
6578
6578
  );
6579
6579
  }
6580
- async function mw(e, t = 20) {
6580
+ async function gw(e, t = 20) {
6581
6581
  return await z(
6582
6582
  Tp(e, t)
6583
6583
  );
6584
6584
  }
6585
- async function gw() {
6585
+ async function yw() {
6586
6586
  return await z(Ap);
6587
6587
  }
6588
6588
  const jp = (e) => `${ue}/Medication/${e}`;
6589
- async function yw(e) {
6589
+ async function ww(e) {
6590
6590
  return await z(jp(e));
6591
6591
  }
6592
6592
  const Vp = 200, Bp = (e, t, r, n, s) => {
@@ -6606,7 +6606,7 @@ async function It(e, t, r, n, s) {
6606
6606
  );
6607
6607
  }
6608
6608
  const Hp = (e) => `${ue}/ImagingStudy/${e}/$fetch-quality-assessment`;
6609
- async function ww(e, t, r, n) {
6609
+ async function vw(e, t, r, n) {
6610
6610
  return await It(
6611
6611
  t,
6612
6612
  e,
@@ -6614,7 +6614,7 @@ async function ww(e, t, r, n) {
6614
6614
  n
6615
6615
  );
6616
6616
  }
6617
- async function vw(e, t, r, n) {
6617
+ async function Ew(e, t, r, n) {
6618
6618
  return await It(
6619
6619
  t,
6620
6620
  e,
@@ -6623,7 +6623,7 @@ async function vw(e, t, r, n) {
6623
6623
  "ImagingStudy:basedon"
6624
6624
  );
6625
6625
  }
6626
- async function Ew(e, t, r, n) {
6626
+ async function bw(e, t, r, n) {
6627
6627
  return (await It(
6628
6628
  t,
6629
6629
  e,
@@ -6631,10 +6631,10 @@ async function Ew(e, t, r, n) {
6631
6631
  n
6632
6632
  )).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
6633
6633
  }
6634
- async function bw(e) {
6634
+ async function _w(e) {
6635
6635
  return await z(Hp(e));
6636
6636
  }
6637
- async function _w(e, t, r, n) {
6637
+ async function Sw(e, t, r, n) {
6638
6638
  return await It(
6639
6639
  t,
6640
6640
  e,
@@ -6646,29 +6646,29 @@ const zp = (e, t) => {
6646
6646
  const r = `${ue}/DiagnosticReport?patient=${e}`;
6647
6647
  return t ? `${r}&based-on=${t}` : r;
6648
6648
  }, Gp = (e) => `${ue}/DiagnosticReport/${e}/$fetch-bundle`, Kp = (e) => `${ue}/DiagnosticReport/${e}/$update-bundle`;
6649
- async function Sw(e, t = []) {
6649
+ async function Rw(e, t = []) {
6650
6650
  const r = t.length > 0 ? t.join(",") : void 0, n = zp(e, r);
6651
6651
  return await z(n);
6652
6652
  }
6653
- async function Rw(e) {
6653
+ async function Ow(e) {
6654
6654
  const t = Gp(e);
6655
6655
  return await z(t);
6656
6656
  }
6657
- async function Ow(e, t) {
6657
+ async function Tw(e, t) {
6658
6658
  const r = Kp(e);
6659
6659
  return await $e(r, t);
6660
6660
  }
6661
- const Tw = [
6661
+ const Aw = [
6662
6662
  "preliminary",
6663
6663
  "final",
6664
6664
  "amended",
6665
6665
  "corrected",
6666
6666
  "appended"
6667
- ], Aw = [
6667
+ ], Nw = [
6668
6668
  "registered",
6669
6669
  "unknown",
6670
6670
  "partial"
6671
- ], Yp = "All Orderables", Wp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Jp = "LabSet", Xp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Nw = ["orderTypes"], Qp = async () => await Zf(Yp), Yn = async () => await z(Wp), Zp = (e) => {
6671
+ ], Yp = "All Orderables", Wp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Jp = "LabSet", Xp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Pw = ["orderTypes"], Qp = async () => await Zf(Yp), Yn = async () => await z(Wp), Zp = (e) => {
6672
6672
  let t = e.display ?? "Unknown investigation";
6673
6673
  return Za(e) === Jp && (t += ` (${ce.t("INVESTIGATION_PANEL")})`), t;
6674
6674
  }, eh = (e) => {
@@ -6700,12 +6700,12 @@ const Tw = [
6700
6700
  });
6701
6701
  });
6702
6702
  }), r;
6703
- }, Pw = async () => {
6703
+ }, $w = async () => {
6704
6704
  const e = await Qp(), t = await Yn();
6705
6705
  return th(e, eh(t));
6706
- }, $w = async (e) => e ? (await Yn()).results.find(
6706
+ }, Iw = async (e) => e ? (await Yn()).results.find(
6707
6707
  (n) => n.display.toLowerCase() === e.toLowerCase()
6708
- )?.uuid ?? null : null, Iw = async () => (await Yn()).results.map((t) => t.display), Dw = async (e, t, r) => {
6708
+ )?.uuid ?? null : null, Dw = async () => (await Yn()).results.map((t) => t.display), Cw = async (e, t, r) => {
6709
6709
  const n = [];
6710
6710
  for (const s of e) {
6711
6711
  const o = s.uuid;
@@ -11253,7 +11253,7 @@ var cm = im();
11253
11253
  const um = /* @__PURE__ */ rh(cm), sa = {
11254
11254
  CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
11255
11255
  VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
11256
- }, Cw = async (e, t) => {
11256
+ }, Lw = async (e, t) => {
11257
11257
  const r = await lm(e);
11258
11258
  if (!r)
11259
11259
  throw new Error(sa.CONFIG_NOT_FOUND);
@@ -11263,7 +11263,7 @@ const um = /* @__PURE__ */ rh(cm), sa = {
11263
11263
  }, lm = async (e) => await z(e), dm = async (e, t) => new um().compile(t)(e), fm = (e) => J + `/form/${e}?v=custom:(resources:(value))`, pm = (e) => {
11264
11264
  const t = J + "/bahmniie/form/latestPublishedForms";
11265
11265
  return e ? t + `?episodeUuid=${e}` : t;
11266
- }, Lw = (e) => J + `/user/${e}?v=full`, hm = (e, t, r, n) => J + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, Sr = "Bahmni", mm = (e, t, r) => {
11266
+ }, kw = (e) => J + `/user/${e}?v=full`, hm = (e, t, r, n) => J + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, Sr = "Bahmni", mm = (e, t, r) => {
11267
11267
  let s = J + "/bahmnicore/patient/" + e + "/forms";
11268
11268
  return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
11269
11269
  }, gm = (e, t) => {
@@ -11277,15 +11277,15 @@ async function wm(e, t) {
11277
11277
  const r = gm(e, t);
11278
11278
  return await z(r);
11279
11279
  }
11280
- async function kw(e, t) {
11280
+ async function xw(e, t) {
11281
11281
  const r = ym(e, t);
11282
11282
  return await z(r);
11283
11283
  }
11284
- async function xw(e, t) {
11284
+ async function Uw(e, t) {
11285
11285
  return (await wm(e, t)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
11286
11286
  }
11287
11287
  const vm = (e) => J + `/provider?user=${e}&v=custom:(uuid,display,person)`;
11288
- async function Uw(e) {
11288
+ async function Mw(e) {
11289
11289
  const t = await z(
11290
11290
  vm(e)
11291
11291
  );
@@ -11301,12 +11301,12 @@ async function Sm(e) {
11301
11301
  async function Rm(e) {
11302
11302
  return (await Sm(e)).find((r) => !r.period?.end) ?? null;
11303
11303
  }
11304
- async function Mw(e) {
11304
+ async function qw(e) {
11305
11305
  return await z(
11306
11306
  bm(e)
11307
11307
  );
11308
11308
  }
11309
- const qw = (e, t) => e?.length === 0 ? !1 : t?.length === 0, Om = ue + "/Encounter", Tm = J + "/systemsetting/bahmni.encountersession.duration";
11309
+ const Fw = (e, t) => e?.length === 0 ? !1 : t?.length === 0, Om = ue + "/Encounter", Tm = J + "/systemsetting/bahmni.encountersession.duration";
11310
11310
  async function Am(e) {
11311
11311
  const t = new URLSearchParams();
11312
11312
  Object.entries(e).forEach(([s, o]) => {
@@ -11337,7 +11337,7 @@ async function Pm(e, t) {
11337
11337
  return null;
11338
11338
  }
11339
11339
  }
11340
- async function Fw(e, t, r, n) {
11340
+ async function jw(e, t, r, n) {
11341
11341
  try {
11342
11342
  if (!e) return null;
11343
11343
  const s = r ?? await Nm(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
@@ -11354,7 +11354,7 @@ async function Fw(e, t, r, n) {
11354
11354
  }
11355
11355
  }
11356
11356
  const $m = (e) => ue + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
11357
- async function jw(e) {
11357
+ async function Vw(e) {
11358
11358
  const t = e.join(","), r = await z($m(t));
11359
11359
  if (r.total === 0)
11360
11360
  throw new Error(
@@ -11390,21 +11390,21 @@ const bn = /* @__PURE__ */ new Map(), Im = async (e) => {
11390
11390
  module: n
11391
11391
  };
11392
11392
  return await $e(Gl, a), { logged: !0 };
11393
- }, Vw = () => zl(async (t) => {
11393
+ }, Bw = () => zl(async (t) => {
11394
11394
  await Cm(
11395
11395
  t.patientUuid,
11396
11396
  t.eventType,
11397
11397
  t.messageParams,
11398
11398
  t.module
11399
11399
  );
11400
- }), Bw = async () => {
11400
+ }), Hw = async () => {
11401
11401
  try {
11402
11402
  return (await z(Fn)).user.privileges;
11403
11403
  } catch (e) {
11404
11404
  const { message: t } = Or(e);
11405
11405
  throw new Error(t);
11406
11406
  }
11407
- }, Hw = (e, t) => {
11407
+ }, zw = (e, t) => {
11408
11408
  if (!e || e.length === 0)
11409
11409
  return !1;
11410
11410
  if (!t || t.length === 0)
@@ -11444,12 +11444,12 @@ const bn = /* @__PURE__ */ new Map(), Im = async (e) => {
11444
11444
  editable: n.editable
11445
11445
  }))
11446
11446
  };
11447
- }, zw = async (e) => {
11447
+ }, Gw = async (e) => {
11448
11448
  const t = await Lm(e), r = Fr();
11449
11449
  return t.map(
11450
11450
  (n) => xm(n, r)
11451
11451
  );
11452
- }, Gw = async (e) => {
11452
+ }, Kw = async (e) => {
11453
11453
  const t = await fetch(fm(e));
11454
11454
  if (!t.ok)
11455
11455
  throw new Error(
@@ -11483,7 +11483,7 @@ const bn = /* @__PURE__ */ new Map(), Im = async (e) => {
11483
11483
  schema: n,
11484
11484
  translations: u
11485
11485
  };
11486
- }, Kw = async (e, t, r) => {
11486
+ }, Yw = async (e, t, r) => {
11487
11487
  let n;
11488
11488
  t && t.length > 0 && (n = t.join(","));
11489
11489
  const s = mm(e, r, n), o = await z(s);
@@ -11528,7 +11528,7 @@ function ui(e, t) {
11528
11528
  };
11529
11529
  return n(r.controls);
11530
11530
  }
11531
- function Yw(e, t) {
11531
+ function Ww(e, t) {
11532
11532
  if (!e.controls || e.controls.length === 0)
11533
11533
  return [];
11534
11534
  const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
@@ -11573,7 +11573,7 @@ function Yw(e, t) {
11573
11573
  s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
11574
11574
  }), r;
11575
11575
  }
11576
- function Ww(e, t) {
11576
+ function Jw(e, t) {
11577
11577
  if (!e || e.length === 0)
11578
11578
  return {
11579
11579
  controls: [],
@@ -11606,7 +11606,7 @@ function Ww(e, t) {
11606
11606
  metadata: { formMetadata: t }
11607
11607
  };
11608
11608
  }
11609
- function Jw(e) {
11609
+ function Xw(e) {
11610
11610
  const t = (n) => {
11611
11611
  const s = (u) => u == null ? null : typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "object" ? u : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
11612
11612
  concept: {
@@ -11626,11 +11626,11 @@ function Jw(e) {
11626
11626
  };
11627
11627
  return (e?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(t);
11628
11628
  }
11629
- function Xw(e) {
11629
+ function Qw(e) {
11630
11630
  if (!(!e || typeof e != "object"))
11631
11631
  return "toJS" in e && typeof e.toJS == "function" ? e.toJS() : e;
11632
11632
  }
11633
- function Qw(e, t) {
11633
+ function Zw(e, t) {
11634
11634
  !e || !Array.isArray(e.children) || e.children.forEach((r) => {
11635
11635
  r && typeof r == "object" && li(
11636
11636
  r,
@@ -11660,7 +11660,7 @@ function li(e, t) {
11660
11660
  );
11661
11661
  });
11662
11662
  }
11663
- const Um = J + "/bahmnicore/diseaseSummaryData?", Zw = async (e, t, r, n) => {
11663
+ const Um = J + "/bahmnicore/diseaseSummaryData?", ev = async (e, t, r, n) => {
11664
11664
  const s = new URLSearchParams({
11665
11665
  groupBy: n,
11666
11666
  latestCount: t.toString(),
@@ -11671,7 +11671,7 @@ const Um = J + "/bahmnicore/diseaseSummaryData?", Zw = async (e, t, r, n) => {
11671
11671
  });
11672
11672
  const o = Um + s.toString();
11673
11673
  return z(o);
11674
- }, Qn = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", Mm = (e) => `${J}/bahmniprogramenrollment?patient=${e}&v=${Qn}`, qm = (e, t = 15, r = 0) => `${J}/bahmniprogramenrollment?patient=${e}&v=${Qn}&limit=${t}&startIndex=${r}&totalCount=true`, di = (e) => `${J}/bahmniprogramenrollment/${e}`, Fm = (e) => `${di(e)}?v=${Qn}`, ev = async (e) => await z(Mm(e)), tv = async (e, t = 15, r = 1) => {
11674
+ }, Qn = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", Mm = (e) => `${J}/bahmniprogramenrollment?patient=${e}&v=${Qn}`, qm = (e, t = 15, r = 0) => `${J}/bahmniprogramenrollment?patient=${e}&v=${Qn}&limit=${t}&startIndex=${r}&totalCount=true`, di = (e) => `${J}/bahmniprogramenrollment/${e}`, Fm = (e) => `${di(e)}?v=${Qn}`, tv = async (e) => await z(Mm(e)), rv = async (e, t = 15, r = 1) => {
11675
11675
  const n = (r - 1) * t, s = await z(
11676
11676
  qm(e, t, n)
11677
11677
  );
@@ -11679,7 +11679,7 @@ const Um = J + "/bahmnicore/diseaseSummaryData?", Zw = async (e, t, r, n) => {
11679
11679
  programs: s.results,
11680
11680
  total: s.totalCount
11681
11681
  };
11682
- }, rv = async (e) => await z(Fm(e)), nv = async (e, t) => {
11682
+ }, nv = async (e) => await z(Fm(e)), sv = async (e, t) => {
11683
11683
  const r = {
11684
11684
  uuid: e,
11685
11685
  states: [
@@ -11693,7 +11693,7 @@ const Um = J + "/bahmnicore/diseaseSummaryData?", Zw = async (e, t, r, n) => {
11693
11693
  r
11694
11694
  );
11695
11695
  };
11696
- function sv(e) {
11696
+ function ov(e) {
11697
11697
  if (e.states.length === 0)
11698
11698
  return null;
11699
11699
  let t;
@@ -11709,7 +11709,7 @@ function sv(e) {
11709
11709
  t = e.states.find((r) => r.endDate === null);
11710
11710
  return t ? ep(t.state.concept.names) ?? t.state.concept.display : null;
11711
11711
  }
11712
- function ov(e, t) {
11712
+ function av(e, t) {
11713
11713
  if (t.length === 0)
11714
11714
  return {};
11715
11715
  const r = {};
@@ -11721,12 +11721,12 @@ function ov(e, t) {
11721
11721
  }
11722
11722
  return r;
11723
11723
  }
11724
- const Cn = "consultation:saved", av = (e) => {
11724
+ const Cn = "consultation:saved", iv = (e) => {
11725
11725
  const t = new CustomEvent(Cn, {
11726
11726
  detail: e
11727
11727
  });
11728
11728
  window.dispatchEvent(t);
11729
- }, iv = (e, t = []) => {
11729
+ }, cv = (e, t = []) => {
11730
11730
  const r = _n(e);
11731
11731
  Sn(() => {
11732
11732
  r.current = e;
@@ -11762,13 +11762,13 @@ async function jm(e, t) {
11762
11762
  const r = fi(e, t);
11763
11763
  return z(r);
11764
11764
  }
11765
- async function cv(e, t) {
11765
+ async function uv(e, t) {
11766
11766
  const n = ((await jm(e, t)).entry ?? []).filter(
11767
11767
  (s) => !!s.resource
11768
11768
  );
11769
11769
  return pi(n);
11770
11770
  }
11771
- async function uv(e, t, r = 10, n = 1) {
11771
+ async function lv(e, t, r = 10, n = 1) {
11772
11772
  const s = (n - 1) * r, o = fi(
11773
11773
  e,
11774
11774
  t,
@@ -11783,14 +11783,14 @@ async function uv(e, t, r = 10, n = 1) {
11783
11783
  };
11784
11784
  }
11785
11785
  const Vm = (e) => `${J}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(e)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`;
11786
- async function lv(e) {
11786
+ async function dv(e) {
11787
11787
  return (await z(Vm(e))).results ?? [];
11788
11788
  }
11789
11789
  const Bm = ue + "/Immunization", Hm = (e, t) => {
11790
11790
  let r = `${Bm}?patient=${e}&_sort=-date&_count=100`;
11791
11791
  return t && (r += `&status=${t}`), r;
11792
11792
  };
11793
- async function dv(e, t) {
11793
+ async function fv(e, t) {
11794
11794
  return (await zm(e, t)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
11795
11795
  }
11796
11796
  async function zm(e, t) {
@@ -11824,7 +11824,7 @@ async function Ym(e) {
11824
11824
  }, n.readAsDataURL(e);
11825
11825
  });
11826
11826
  }
11827
- async function fv(e, t, r) {
11827
+ async function pv(e, t, r) {
11828
11828
  const n = await Ym(e), s = {
11829
11829
  content: n.content,
11830
11830
  encounterTypeName: t,
@@ -11850,207 +11850,210 @@ const Wm = "/bahmni_config/openmrs/apps", hi = "org.bahmni.home.dashboard", Jm =
11850
11850
  }), Zm = (e, t) => t === void 0 ? e : e.filter((r) => r.requiredPrivilege ? t.includes(r.requiredPrivilege) : !0), eg = (e) => {
11851
11851
  const t = navigator.onLine;
11852
11852
  return e.filter((r) => !(r.exclusiveOnlineModule && !t || r.exclusiveOfflineModule && t));
11853
- }, tg = (e) => [...e].sort((t, r) => (t.order ?? 0) - (r.order ?? 0)), pv = async (e = hi, t) => {
11853
+ }, tg = (e) => [...e].sort((t, r) => (t.order ?? 0) - (r.order ?? 0)), hv = async (e = hi, t) => {
11854
11854
  const r = await Xm("home"), n = Qm(r, e), s = Zm(n, t), o = eg(s);
11855
11855
  return tg(o);
11856
- };
11856
+ }, rg = (e, t) => J + `/availableStocks?productUuid=${e}&locationUuid=${t}`, mv = async (e, t) => await z(
11857
+ rg(e, t)
11858
+ );
11857
11859
  export {
11858
- Sy as APPOINTMENT_IDENTIFIER_SYSTEM,
11859
- _y as APPOINTMENT_STATUSES,
11860
+ Ry as APPOINTMENT_IDENTIFIER_SYSTEM,
11861
+ Sy as APPOINTMENT_STATUSES,
11860
11862
  In as AUDIT_LOG_EVENT_DETAILS,
11861
11863
  up as AllergySeverity,
11862
11864
  cp as AllergyStatus,
11863
11865
  Vl as AttributeFormat,
11864
11866
  Bl as AttributeInputType,
11865
- Tg as BAHMNI_HOME_PATH,
11867
+ Ag as BAHMNI_HOME_PATH,
11866
11868
  Ua as BAHMNI_USER_LOCATION_COOKIE,
11867
- sw as CONCEPT_DATATYPE_COMPLEX,
11868
- nw as CONCEPT_DATATYPE_NUMERIC,
11869
+ ow as CONCEPT_DATATYPE_COMPLEX,
11870
+ sw as CONCEPT_DATATYPE_NUMERIC,
11869
11871
  Cn as CONSULTATION_SAVED_EVENT,
11870
11872
  lp as DATETIME_REGEX_PATTERN,
11871
- iw as DATE_REGEX_PATTERN,
11873
+ cw as DATE_REGEX_PATTERN,
11872
11874
  Ya as DEFAULT_DATE_FORMAT,
11873
11875
  Ff as DEFAULT_DATE_FORMAT_STORAGE_KEY,
11874
11876
  jf as DEFAULT_TIME_FORMAT,
11875
11877
  Hf as DURATION_UNIT_TO_DAYS,
11876
- Wy as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
11877
- Zy as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
11878
- tw as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
11879
- ew as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
11880
- ow as FHIR_OBSERVATION_STATUS_FINAL,
11881
- rw as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
11882
- aw as FHIR_RESOURCE_TYPE_OBSERVATION,
11883
- Qy as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
11878
+ Jy as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
11879
+ ew as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
11880
+ rw as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
11881
+ tw as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
11882
+ aw as FHIR_OBSERVATION_STATUS_FINAL,
11883
+ nw as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
11884
+ iw as FHIR_RESOURCE_TYPE_OBSERVATION,
11885
+ Zy as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
11884
11886
  Ja as HL7_CONDITION_CATEGORY_CONDITION_CODE,
11885
11887
  Xa as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
11886
- Xy as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
11887
- Jy as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
11888
- cw as INTERPRETATION_TO_CODE,
11889
- Xg as MAX_NAME_LENGTH,
11890
- Jg as MAX_PATIENT_AGE_YEARS,
11891
- Qg as MAX_PHONE_NUMBER_LENGTH,
11888
+ Qy as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
11889
+ Xy as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
11890
+ uw as INTERPRETATION_TO_CODE,
11891
+ Qg as MAX_NAME_LENGTH,
11892
+ Xg as MAX_PATIENT_AGE_YEARS,
11893
+ Zg as MAX_PHONE_NUMBER_LENGTH,
11892
11894
  xe as MedicationStatus,
11893
11895
  ue as OPENMRS_FHIR_R4,
11894
11896
  J as OPENMRS_REST_V1,
11895
- Nw as ORDER_TYPE_QUERY_KEY,
11896
- Aw as PENDING_REPORT_STATUSES,
11897
- Tw as PROCESSED_REPORT_STATUSES,
11898
- Lw as USER_PINNED_PREFERENCE_URL,
11899
- Cy as calculateAge,
11900
- qy as calculateEndDate,
11901
- ky as calculateOnsetDate,
11902
- jg as camelToScreamingSnakeCase,
11903
- Cg as capitalize,
11904
- Ey as checkIfActiveVisitExists,
11905
- Xw as convertImmutableToPlainObject,
11906
- Bg as convertToSentenceCase,
11907
- oy as createPatient,
11908
- by as createVisitForPatient,
11897
+ Pw as ORDER_TYPE_QUERY_KEY,
11898
+ Nw as PENDING_REPORT_STATUSES,
11899
+ Aw as PROCESSED_REPORT_STATUSES,
11900
+ kw as USER_PINNED_PREFERENCE_URL,
11901
+ Ly as calculateAge,
11902
+ Fy as calculateEndDate,
11903
+ xy as calculateOnsetDate,
11904
+ Vg as camelToScreamingSnakeCase,
11905
+ Lg as capitalize,
11906
+ by as checkIfActiveVisitExists,
11907
+ Qw as convertImmutableToPlainObject,
11908
+ Hg as convertToSentenceCase,
11909
+ ay as createPatient,
11910
+ _y as createVisitForPatient,
11909
11911
  Aa as del,
11910
- $y as deleteAppointmentService,
11912
+ Iy as deleteAppointmentService,
11911
11913
  al as deleteCookie,
11912
11914
  Hl as dispatchAuditEvent,
11913
- av as dispatchConsultationSaved,
11914
- Fy as doDateRangesOverlap,
11915
- ov as extractAttributes,
11916
- Qw as extractNotesFromFormData,
11917
- Gy as fetchAndFormatAllergenConcepts,
11918
- Gw as fetchFormMetadata,
11919
- hw as fetchMedicationOrdersMetadata,
11915
+ iv as dispatchConsultationSaved,
11916
+ jy as doDateRangesOverlap,
11917
+ av as extractAttributes,
11918
+ Zw as extractNotesFromFormData,
11919
+ Ky as fetchAndFormatAllergenConcepts,
11920
+ Kw as fetchFormMetadata,
11921
+ mw as fetchMedicationOrdersMetadata,
11920
11922
  Xm as fetchModuleExtensions,
11921
- zw as fetchObservationForms,
11922
- bw as fetchQualityAssessment,
11923
- Ky as fetchReactionConcepts,
11923
+ Gw as fetchObservationForms,
11924
+ _w as fetchQualityAssessment,
11925
+ Yy as fetchReactionConcepts,
11924
11926
  eg as filterByOnlineStatus,
11925
11927
  Zm as filterByPrivilege,
11926
- Mg as filterReplacementEntries,
11927
- Fw as findActiveEncounterInSession,
11928
- xy as formatDateDistance,
11929
- Ly as formatDateTime,
11930
- qg as formatUrl,
11931
- Ig as generateId,
11932
- Dg as generateUUID,
11928
+ qg as filterReplacementEntries,
11929
+ jw as findActiveEncounterInSession,
11930
+ Uy as formatDateDistance,
11931
+ ky as formatDateTime,
11932
+ Fg as formatUrl,
11933
+ Dg as generateId,
11934
+ Cg as generateUUID,
11933
11935
  z as get,
11934
11936
  Rm as getActiveVisit,
11935
11937
  Ql as getActiveVisitByPatient,
11936
- cy as getAddressHierarchyEntries,
11937
- Py as getAllAppointmentServices,
11938
+ uy as getAddressHierarchyEntries,
11939
+ $y as getAllAppointmentServices,
11938
11940
  ap as getAllergies,
11939
- Ny as getAppointmentById,
11940
- Gg as getAvailableLocations,
11941
- $w as getCategoryUuidFromOrderTypes,
11942
- Hy as getConceptById,
11943
- lw as getConditionPage,
11944
- uw as getConditions,
11945
- Cw as getConfig,
11941
+ Py as getAppointmentById,
11942
+ Kg as getAvailableLocations,
11943
+ mv as getAvailableStocks,
11944
+ Iw as getCategoryUuidFromOrderTypes,
11945
+ zy as getConceptById,
11946
+ dw as getConditionPage,
11947
+ lw as getConditions,
11948
+ Lw as getConfig,
11946
11949
  xa as getCookieByName,
11947
- Uw as getCurrentProvider,
11948
- sv as getCurrentStateName,
11949
- Hg as getCurrentUser,
11950
- Bw as getCurrentUserPrivileges,
11951
- zg as getDefaultDateFormat,
11952
- fw as getDiagnosesPage,
11953
- Rw as getDiagnosticReportBundle,
11954
- Sw as getDiagnosticReports,
11955
- uv as getDocumentReferencePage,
11950
+ Mw as getCurrentProvider,
11951
+ ov as getCurrentStateName,
11952
+ zg as getCurrentUser,
11953
+ Hw as getCurrentUserPrivileges,
11954
+ Gg as getDefaultDateFormat,
11955
+ pw as getDiagnosesPage,
11956
+ Ow as getDiagnosticReportBundle,
11957
+ Rw as getDiagnosticReports,
11958
+ lv as getDocumentReferencePage,
11956
11959
  jm as getDocumentReferences,
11957
- jw as getEncountersAndVisitsForEOC,
11958
- Dw as getExistingServiceRequestsForAllCategories,
11960
+ Vw as getEncountersAndVisitsForEOC,
11961
+ Cw as getExistingServiceRequestsForAllCategories,
11959
11962
  Qm as getExtensionsByPoint,
11960
- Pw as getFlattenedInvestigations,
11961
- My as getFormattedAge,
11962
- Yy as getFormattedAllergies,
11963
- cv as getFormattedDocumentReferences,
11963
+ $w as getFlattenedInvestigations,
11964
+ qy as getFormattedAge,
11965
+ Wy as getFormattedAllergies,
11966
+ uv as getFormattedDocumentReferences,
11964
11967
  Or as getFormattedError,
11965
- Zg as getFormattedPatientById,
11966
- iy as getGenders,
11967
- sy as getIdentifierData,
11968
- ny as getIdentifierTypes,
11969
- py as getInputTypeForFormat,
11970
- _w as getLabInvestigationsBundle,
11971
- lv as getLocationByTag,
11972
- yw as getMedicationByUuid,
11973
- Mw as getObservationsBundleByEncounterUuid,
11974
- Iw as getOrderTypeNames,
11968
+ ey as getFormattedPatientById,
11969
+ cy as getGenders,
11970
+ oy as getIdentifierData,
11971
+ sy as getIdentifierTypes,
11972
+ hy as getInputTypeForFormat,
11973
+ Sw as getLabInvestigationsBundle,
11974
+ dv as getLocationByTag,
11975
+ ww as getMedicationByUuid,
11976
+ qw as getObservationsBundleByEncounterUuid,
11977
+ Dw as getOrderTypeNames,
11975
11978
  Yn as getOrderTypes,
11976
- uy as getOrderedAddressHierarchyLevels,
11977
- Ty as getPastAppointments,
11978
- Dy as getPastAppointmentsPage,
11979
+ ly as getOrderedAddressHierarchyLevels,
11980
+ Ay as getPastAppointments,
11981
+ Cy as getPastAppointmentsPage,
11979
11982
  kl as getPatientById,
11980
- dw as getPatientDiagnoses,
11981
- Kw as getPatientFormData,
11982
- ey as getPatientImageAsDataUrl,
11983
- dv as getPatientImmunizations,
11983
+ fw as getPatientDiagnoses,
11984
+ Yw as getPatientFormData,
11985
+ ty as getPatientImageAsDataUrl,
11986
+ fv as getPatientImmunizations,
11984
11987
  Pp as getPatientMedicationBundle,
11985
- pw as getPatientMedications,
11986
- xw as getPatientObservations,
11988
+ hw as getPatientMedications,
11989
+ Uw as getPatientObservations,
11987
11990
  wm as getPatientObservationsBundle,
11988
- kw as getPatientObservationsWithEncounterBundle,
11989
- ly as getPatientProfile,
11990
- ev as getPatientPrograms,
11991
- tv as getPatientProgramsPage,
11992
- ww as getPatientRadiologyInvestigationBundle,
11993
- vw as getPatientRadiologyInvestigationBundleWithImagingStudy,
11994
- Ew as getPatientRadiologyInvestigations,
11995
- fy as getPersonAttributeTypes,
11991
+ xw as getPatientObservationsWithEncounterBundle,
11992
+ dy as getPatientProfile,
11993
+ tv as getPatientPrograms,
11994
+ rv as getPatientProgramsPage,
11995
+ vw as getPatientRadiologyInvestigationBundle,
11996
+ Ew as getPatientRadiologyInvestigationBundleWithImagingStudy,
11997
+ bw as getPatientRadiologyInvestigations,
11998
+ py as getPersonAttributeTypes,
11996
11999
  jl as getPrimaryIdentifierType,
11997
- xg as getPriorityByOrder,
11998
- rv as getProgramByUUID,
11999
- dy as getRelationshipTypes,
12000
+ Ug as getPriorityByOrder,
12001
+ nv as getProgramByUUID,
12002
+ fy as getRelationshipTypes,
12000
12003
  It as getServiceRequests,
12001
- Uy as getTodayDate,
12002
- Oy as getUpcomingAppointments,
12003
- Iy as getUpcomingAppointmentsPage,
12004
+ My as getTodayDate,
12005
+ Ty as getUpcomingAppointments,
12006
+ Dy as getUpcomingAppointmentsPage,
12004
12007
  jn as getUserLoginLocation,
12005
12008
  Fr as getUserPreferredLocale,
12006
- gw as getVaccinations,
12007
- Fg as getValueType,
12008
- pv as getVisibleModules,
12009
- vy as getVisitTypes,
12010
- Zw as getVitalFlowSheetData,
12011
- Ug as groupByDate,
12012
- Hw as hasPrivilege,
12013
- Ng as initAppI18n,
12014
- Vw as initializeAuditListener,
12015
- hy as isBooleanFormat,
12016
- my as isConceptFormat,
12017
- yy as isDateFormat,
12018
- gy as isNumberFormat,
12019
- kg as isStringEmpty,
12020
- wy as isTextFormat,
12009
+ yw as getVaccinations,
12010
+ jg as getValueType,
12011
+ hv as getVisibleModules,
12012
+ Ey as getVisitTypes,
12013
+ ev as getVitalFlowSheetData,
12014
+ Mg as groupByDate,
12015
+ zw as hasPrivilege,
12016
+ Pg as initAppI18n,
12017
+ Bw as initializeAuditListener,
12018
+ my as isBooleanFormat,
12019
+ gy as isConceptFormat,
12020
+ wy as isDateFormat,
12021
+ yy as isNumberFormat,
12022
+ xg as isStringEmpty,
12023
+ vy as isTextFormat,
12021
12024
  Cm as logAuditEvent,
12022
- Kg as logout,
12023
- Ag as normalizeTranslationKey,
12024
- Vy as notificationService,
12025
+ Yg as logout,
12026
+ Ng as normalizeTranslationKey,
12027
+ By as notificationService,
12025
12028
  il as parseQueryParams,
12026
- Og as patch,
12029
+ Tg as patch,
12027
12030
  $e as post,
12028
- Rg as put,
12029
- $g as refreshQueries,
12030
- Vg as resolveComboBoxItems,
12031
- Yg as saveUserLocation,
12032
- Ry as searchAppointmentsByAttribute,
12033
- zy as searchConceptByName,
12034
- By as searchConcepts,
12031
+ Og as put,
12032
+ Ig as refreshQueries,
12033
+ Bg as resolveComboBoxItems,
12034
+ Wg as saveUserLocation,
12035
+ Oy as searchAppointmentsByAttribute,
12036
+ Gy as searchConceptByName,
12037
+ Hy as searchConcepts,
12035
12038
  _r as searchFHIRConcepts,
12036
12039
  Zf as searchFHIRConceptsByName,
12037
- mw as searchMedications,
12038
- ry as searchPatientByCustomAttribute,
12039
- ty as searchPatientByNameOrId,
12040
- Lg as setCookie,
12041
- qw as shouldEnableEncounterFilter,
12042
- jy as sortByDate,
12040
+ gw as searchMedications,
12041
+ ny as searchPatientByCustomAttribute,
12042
+ ry as searchPatientByNameOrId,
12043
+ kg as setCookie,
12044
+ Fw as shouldEnableEncounterFilter,
12045
+ Vy as sortByDate,
12043
12046
  tg as sortByOrder,
12044
- Jw as transformContainerObservationsToForm2Observations,
12045
- Yw as transformFormDataToObservations,
12046
- Ww as transformObservationsToFormData,
12047
- Ay as updateAppointmentStatus,
12048
- Ow as updateDiagnosticReportBundle,
12049
- ay as updatePatient,
12050
- nv as updateProgramState,
12051
- Wg as updateSessionLocation,
12052
- fv as uploadDocument,
12053
- Pg as useCamera,
12054
- iv as useSubscribeConsultationSaved,
12055
- gv as useTranslation
12047
+ Xw as transformContainerObservationsToForm2Observations,
12048
+ Ww as transformFormDataToObservations,
12049
+ Jw as transformObservationsToFormData,
12050
+ Ny as updateAppointmentStatus,
12051
+ Tw as updateDiagnosticReportBundle,
12052
+ iy as updatePatient,
12053
+ sv as updateProgramState,
12054
+ Jg as updateSessionLocation,
12055
+ pv as uploadDocument,
12056
+ $g as useCamera,
12057
+ cv as useSubscribeConsultationSaved,
12058
+ wv as useTranslation
12056
12059
  };