@bahmni/clinical-app 0.0.1-dev.381 → 0.0.1-dev.382

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { u as useTranslation, r as B, t as ENCOUNTER_CONCEPTS_URL, D as Yr, F as Ci, I as BAHMNI_USER_LOCATION_COOKIE_NAME, M as Lm, O as e8, g as g0, P as hb2, Q as ub2, R as sb2, T as Bx2, U as ol1, W as ab2, X as AE, $ as Di, a0 as Dd, a1 as dE, a2 as Id, a3 as vs, a4 as dist, a5 as yt, a6 as ge, a7 as ss, a8 as Mb, a9 as Kb, aa as Wb, ab as mb2, ac as Cb2, ad as Nz2, Z as Z1, b as b3, ae as Jb, af as Oy2, ag as Ky2, ah as Bb2, ai as _b2, aj as xb2, S as S01, ak as R_, al as fb2, am as Y_, an as Ps, ao as P_, ap as mv, aq as Yb, ar as Yy2, as as n_, at as a_, au as CLINICAL_V2_CONFIG_BASE_URL, av as d_, aw as CE, ax as Qr, ay as c_, az as qb, aA as gv, aB as aL2, aC as $_, aD as l_, aE as f_, aF as Ev, aG as ib2, aH as Dv, aI as kb, aJ as p_, aK as Rt, aL as jr, aM as Rv, aN as Nv, J as Jr, aO as Q_, aP as I_, aQ as L_, x as x01, aR as Rb2, aS as Ob2, aT as ev, aU as Z_, aV as STOP_REASON_VALUESET_URL, aW as STOP_REASON_VALUESET_EXPAND_URL, aX as STOP_MEDICATION_URL, aY as Jy2, aZ as mf, a_ as es$2, a$ as Tb2, b0 as X_, b1 as rv, b2 as YE, b3 as Lb, b4 as zE, b5 as an, b6 as N4, b7 as c3, b8 as Ab2, b9 as _E, ba as tv, bb as sv, bc as ov, bd as av, be as Ii, bf as ns, bg as F_, bh as Zb, bi as Iv, bj as yv, bk as wv, bl as hv, bm as CDSS_SERVER_CONFIG_URL, bn as t_, bo as Mi, bp as wb, bq as Ze, br as Hb2, bs as k01, bt as Eb2, bu as Xy, bv as j_, bw as V_, bx as ob2, by as Hs1, bz as z_, bA as B_, bB as H_, bC as b01, bD as y01, bE as KE, bF as G_, bG as aE, bH as BAHMNI_CLINICAL_PATH, bI as RE, bJ as sw, bK as Vb2, bL as vb2, bM as Cz2, bN as R11, bO as SE, bP as L01 } from "./index-Drqj9Ait.js";
2
+ import { u as useTranslation, r as B, t as ENCOUNTER_CONCEPTS_URL, D as Yr, F as Ci, I as BAHMNI_USER_LOCATION_COOKIE_NAME, M as Lm, O as e8, g as g0, P as hb2, Q as ub2, R as sb2, T as Bx2, U as ol1, W as ab2, X as AE, $ as Di, a0 as Dd, a1 as dE, a2 as Id, a3 as vs, a4 as dist, a5 as yt, a6 as ge, a7 as ss, a8 as Mb, a9 as Kb, aa as Wb, ab as mb2, ac as Cb2, ad as Nz2, Z as Z1, b as b3, ae as Jb, af as Oy2, ag as Ky2, ah as Bb2, ai as _b2, aj as xb2, S as S01, ak as R_, al as fb2, am as Y_, an as Ps, ao as P_, ap as mv, aq as Yb, ar as Yy2, as as n_, at as a_, au as CLINICAL_V2_CONFIG_BASE_URL, av as d_, aw as CE, ax as Qr, ay as c_, az as qb, aA as gv, aB as aL2, aC as $_, aD as l_, aE as f_, aF as Ev, aG as ib2, aH as Dv, aI as kb, aJ as p_, aK as Rt, aL as jr, aM as Rv, aN as Nv, J as Jr, aO as Q_, aP as I_, aQ as L_, x as x01, aR as Rb2, aS as Ob2, aT as ev, aU as Z_, aV as STOP_REASON_VALUESET_URL, aW as STOP_REASON_VALUESET_EXPAND_URL, aX as STOP_MEDICATION_URL, aY as Jy2, aZ as mf, a_ as es$2, a$ as Tb2, b0 as X_, b1 as rv, b2 as YE, b3 as Lb, b4 as zE, b5 as an, b6 as N4, b7 as c3, b8 as Ab2, b9 as _E, ba as tv, bb as sv, bc as ov, bd as av, be as Ii, bf as ns, bg as F_, bh as Zb, bi as Iv, bj as yv, bk as wv, bl as hv, bm as CDSS_SERVER_CONFIG_URL, bn as t_, bo as Mi, bp as wb, bq as Ze, br as Hb2, bs as k01, bt as Eb2, bu as Xy, bv as j_, bw as V_, bx as ob2, by as Hs1, bz as z_, bA as B_, bB as H_, bC as b01, bD as y01, bE as KE, bF as G_, bG as aE, bH as BAHMNI_CLINICAL_PATH, bI as RE, bJ as sw, bK as Vb2, bL as vb2, bM as Cz2, bN as R11, bO as SE, bP as L01 } from "./index-ABQG5GNh.js";
3
3
  import * as React from "react";
4
4
  import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
5
5
  import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
6
6
  import { useNavigate, useSearchParams } from "react-router-dom";
7
- import { u as useClinicalConfig } from "./hook-YKsGTiIP.js";
7
+ import { u as useClinicalConfig } from "./hook-D69Bc-8p.js";
8
8
  import * as ReactDOM from "react-dom";
9
9
  import ReactDOM__default, { createPortal } from "react-dom";
10
10
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as p, Fragment as x } from "react/jsx-runtime";
2
- import { g as G, u as W, Z as Y, E as Z, m as J, a as X, K as ee, p as te } from "./index-Drqj9Ait.js";
2
+ import { g as G, u as W, Z as Y, E as Z, m as J, a as X, K as ee, p as te } from "./index-ABQG5GNh.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as z, Fragment as ge } from "react/jsx-runtime";
2
- import { u as ye, g as be, b as Oe, J as Ne, c as Te, v as Ie, G as Ee, d as ve, L as Ae, f as _e, e as Fe, x as Se, s as G, a as Be, h as $, i as P, m as Le, K as Q, k as Me, B as Re, p as Ce, j as Ue, S as ke } from "./index-Drqj9Ait.js";
2
+ import { u as ye, g as be, b as Oe, J as Ne, c as Te, v as Ie, G as Ee, d as ve, L as Ae, f as _e, e as Fe, x as Se, s as G, a as Be, h as $, i as P, m as Le, K as Q, k as Me, B as Re, p as Ce, j as Ue, S as ke } from "./index-ABQG5GNh.js";
3
3
  import { useQueryClient as De, useQuery as N } from "@tanstack/react-query";
4
4
  import { useState as J, useMemo as d, useCallback as c } from "react";
5
5
  const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", T = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D4-akifd.js";
2
- import { bV as d, bW as f, bX as e } from "./index-Drqj9Ait.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B08dHWl9.js";
2
+ import { bV as d, bW as f, bX as e } from "./index-ABQG5GNh.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-D4-akifd.js";
2
- import { bV as v, bW as C, bX as e } from "./index-Drqj9Ait.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-B08dHWl9.js";
2
+ import { bV as v, bW as C, bX as e } from "./index-ABQG5GNh.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { g as q, Z as w, u as S, l as H, w as k, f as z, _ as Q, C as x, z as G, n as M, K as Y, N as j, Y as A, A as P, o as Z, q as J, y as W, H as X, V as ee } from "./index-Drqj9Ait.js";
2
+ import { g as q, Z as w, u as S, l as H, w as k, f as z, _ as Q, C as x, z as G, n as M, K as Y, N as j, Y as A, A as P, o as Z, q as J, y as W, H as X, V as ee } from "./index-ABQG5GNh.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as I, useMemo as g } from "react";
5
5
  const C = (a, n, d, l, b, r) => {
@@ -1,4 +1,4 @@
1
- import { bY as we, bZ as z, b_ as xt, b$ as B, bW as q, bX as y, c0 as Ro, c1 as ye, c2 as R, c3 as _, c4 as k, c5 as N, c6 as A, c7 as bs, c8 as ir, c9 as $e, ca as G, cb as Hn, cc as Vn, cd as dt, ce as D, cf as xs, cg as cn, ch as Be, ci as ws, cj as qt, ck as zt, cl as $s, cm as Cs, cn as $n, co as Ss, cp as Nr, cq as Bt, cr as zo, cs as ks, ct as Es, cu as j, cv as Gr, cw as Ms, cx as Ds, cy as sr, cz as As, cA as Ts, cB as zn, cC as Fs, cD as Is, cE as Z, cF as Ps, cG as Ls } from "./index-Drqj9Ait.js";
1
+ import { bY as we, bZ as z, b_ as xt, b$ as B, bW as q, bX as y, c0 as Ro, c1 as ye, c2 as R, c3 as _, c4 as k, c5 as N, c6 as A, c7 as bs, c8 as ir, c9 as $e, ca as G, cb as Hn, cc as Vn, cd as dt, ce as D, cf as xs, cg as cn, ch as Be, ci as ws, cj as qt, ck as zt, cl as $s, cm as Cs, cn as $n, co as Ss, cp as Nr, cq as Bt, cr as zo, cs as ks, ct as Es, cu as j, cv as Gr, cw as Ms, cx as Ds, cy as sr, cz as As, cA as Ts, cB as zn, cC as Fs, cD as Is, cE as Z, cF as Ps, cG as Ls } from "./index-ABQG5GNh.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,4 +1,4 @@
1
- import { bT as i, bU as o } from "./index-Drqj9Ait.js";
1
+ import { bT as i, bU as o } from "./index-ABQG5GNh.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, J as u, bG as b, bQ as f, bR as p, bS as _, aG as x, bM as N } from "./index-Drqj9Ait.js";
2
+ import { u as g, J as u, bG as b, bQ as f, bR as p, bS as _, aG as x, bM as N } from "./index-ABQG5GNh.js";
3
3
  import { lazy as h, useMemo as n, Suspense as C } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-YKsGTiIP.js";
5
+ import { u as E } from "./hook-D69Bc-8p.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-CtA8Gu0E.js")
8
+ () => import("./index-CNcXiEUF.js")
9
9
  )
10
10
  }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", S = "index-module_message__Ib5Iw", t = {
11
11
  page: v,
@@ -112906,7 +112906,13 @@ const wN0 = (t, e) => t.filter(
112906
112906
  operator: "AND",
112907
112907
  conditions: [
112908
112908
  ...t.map(pN0),
112909
- { field: Yx0, comparator: "eq", value: r }
112909
+ ...r ? [
112910
+ {
112911
+ field: Yx0,
112912
+ comparator: "eq",
112913
+ value: r
112914
+ }
112915
+ ] : []
112910
112916
  ]
112911
112917
  }
112912
112918
  }), vN0 = (t, e, r, n, a, l) => t.map((c) => {
@@ -113062,7 +113068,7 @@ const wN0 = (t, e) => t.filter(
113062
113068
  className: T2.dataTable
113063
113069
  }
113064
113070
  );
113065
- }, zN0 = "http://json-schema.org/draft-07/schema#", HN0 = "Common Search Widget Config Schema", bN0 = "Configuration for the common search widget, defining search criteria per context", xN0 = "array", NN0 = 1, CN0 = { $ref: "#/definitions/searchContextConfig" }, AN0 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "locationAware", "url", "pageSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, LN0 = {
113071
+ }, zN0 = "http://json-schema.org/draft-07/schema#", HN0 = "Common Search Widget Config Schema", bN0 = "Configuration for the common search widget, defining search criteria per context", xN0 = "array", NN0 = 1, CN0 = { $ref: "#/definitions/searchContextConfig" }, AN0 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "url", "pageSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, LN0 = {
113066
113072
  $schema: zN0,
113067
113073
  title: HN0,
113068
113074
  description: bN0,
@@ -113577,7 +113583,7 @@ const wN0 = (t, e) => t.filter(
113577
113583
  onChange: h
113578
113584
  }
113579
113585
  ) }),
113580
- /* @__PURE__ */ q("div", { className: T2.dropdownCol, children: /* @__PURE__ */ q(
113586
+ s.locationAware && /* @__PURE__ */ q("div", { className: T2.dropdownCol, children: /* @__PURE__ */ q(
113581
113587
  ts,
113582
113588
  {
113583
113589
  id: "location-selector",
@@ -113743,7 +113749,7 @@ const wN0 = (t, e) => t.filter(
113743
113749
  gN0(
113744
113750
  wN0(I, _.criteria),
113745
113751
  _.context,
113746
- c.uuid
113752
+ _.locationAware ? c?.uuid : void 0
113747
113753
  )
113748
113754
  ).then((D) => {
113749
113755
  const Z = D.results;
@@ -113892,7 +113898,7 @@ const qN0 = [
113892
113898
  },
113893
113899
  {
113894
113900
  type: "patientDocuments",
113895
- component: J0(() => import("./DocumentsTable-D61lXj3C-DWPPPvOE.js"))
113901
+ component: J0(() => import("./DocumentsTable-CRgjrXxQ-D8eui3SQ.js"))
113896
113902
  },
113897
113903
  {
113898
113904
  type: "flowSheet",
@@ -113900,7 +113906,7 @@ const qN0 = [
113900
113906
  },
113901
113907
  {
113902
113908
  type: "forms",
113903
- component: J0(() => import("./FormsTable-DSdtlBnm-4D-a6CJ9.js"))
113909
+ component: J0(() => import("./FormsTable-D5ubXLMz-D8DZ6FTP.js"))
113904
113910
  },
113905
113911
  {
113906
113912
  type: "labOrders",
@@ -113908,7 +113914,7 @@ const qN0 = [
113908
113914
  },
113909
113915
  {
113910
113916
  type: "observations",
113911
- component: J0(() => import("./Observations-BiXeD58c-BOamSO4f.js"))
113917
+ component: J0(() => import("./Observations-Dv63uw5H-ZGBbGoWi.js"))
113912
113918
  },
113913
113919
  {
113914
113920
  type: "ordersControl",
@@ -209682,7 +209688,7 @@ var VXt = (t, e = !1) => {
209682
209688
  const e = up2(() => {
209683
209689
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e;
209684
209690
  let d;
209685
- return this.#c ? d = this.#c : (d = sp2(() => import("./LNWAZHJI-DOI1nxWI.js")), this.#c = d), Lp2(this.#h, this.#r), cp2(d, ip2({
209691
+ return this.#c ? d = this.#c : (d = sp2(() => import("./LNWAZHJI-B5EqMkOm.js")), this.#c = d), Lp2(this.#h, this.#r), cp2(d, ip2({
209686
209692
  get queryFlavor() {
209687
209693
  return r.#d;
209688
209694
  },
@@ -209780,7 +209786,7 @@ var VXt = (t, e = !1) => {
209780
209786
  const e = up2(() => {
209781
209787
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e, [d] = this.#c;
209782
209788
  let u;
209783
- return this.#i ? u = this.#i : (u = sp2(() => import("./MWZ6AO7Z-Bh6cUkFj.js")), this.#i = u), Lp2(this.#h, this.#r), cp2(u, ip2({
209789
+ return this.#i ? u = this.#i : (u = sp2(() => import("./MWZ6AO7Z-FewQggj0.js")), this.#i = u), Lp2(this.#h, this.#r), cp2(u, ip2({
209784
209790
  get queryFlavor() {
209785
209791
  return r.#d;
209786
209792
  },
@@ -209936,7 +209942,7 @@ const jGt = {
209936
209942
  id: "clinical-config",
209937
209943
  name: "Clinical Config",
209938
209944
  displayName: "ClinicalConfigProvider"
209939
- }), oKt = J0(() => import("./ConsultationPage-CMxf5uEl.js")), aKt = J0(() => import("./index-BnwmkeeK.js")), lKt = [
209945
+ }), oKt = J0(() => import("./ConsultationPage-C2_3lynA.js")), aKt = J0(() => import("./index-3eQkB66O.js")), lKt = [
209940
209946
  {
209941
209947
  path: ":patientUuid",
209942
209948
  component: oKt
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cH as l, cI as o, cJ as c, b6 as m, b7 as g, cK as p, cL as h, cM as b, aG as u } from "./index-Drqj9Ait.js";
2
+ import { u as r, cH as l, cI as o, cJ as c, b6 as m, b7 as g, cK as p, cL as h, cM as b, aG as u } from "./index-ABQG5GNh.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E = "index-module_panel__j5vTu", s = {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cN as c } from "./index-Drqj9Ait.js";
1
+ import { cN as c } from "./index-ABQG5GNh.js";
2
2
  export {
3
3
  c as ClinicalApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/clinical-app",
3
- "version": "0.0.1-dev.381",
3
+ "version": "0.0.1-dev.382",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",