@bahmni/clinical-app 0.0.1-dev.248 → 0.0.1-dev.249
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/{DocumentsTable-BEZ6qDeD-GKge8ctv.js → DocumentsTable-BEZ6qDeD-BSj63dTr.js} +1 -1
- package/dist/{FormsTable-BPfzdJxV-ZWcVx8we.js → FormsTable-BPfzdJxV-DBlvr4-y.js} +1 -1
- package/dist/{LNWAZHJI-DkF1xKrJ.js → LNWAZHJI-DZWv40MF.js} +2 -2
- package/dist/{MWZ6AO7Z-BHj8r4XC.js → MWZ6AO7Z-CnbSvpXb.js} +2 -2
- package/dist/{Observations-Dx_xD9ba-CrzZSYd_.js → Observations-Dx_xD9ba-D1B4hjtg.js} +1 -1
- package/dist/{YPM2AS64-DNV5iEmv.js → YPM2AS64-miIdNYUE.js} +1 -1
- package/dist/{index-C02RzwNR.js → index-QWMbbpmK.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/providers/clinicalConfig/models.d.ts +3 -1
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, E as ae } from "./index-
|
|
2
|
+
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, E as ae } from "./index-QWMbbpmK.js";
|
|
3
3
|
import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
4
4
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: ne,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, c as ee, e as re, f as ae, a as c, X as te, L as U, m as oe, l as se, b as S, x as ne, N as de, w as ie, $ as ue, p as me, v as le, g as ce, h as fe, i as ye } from "./index-
|
|
2
|
+
import { u as Z, c as ee, e as re, f as ae, a as c, X as te, L as U, m as oe, l as se, b as S, x as ne, N as de, w as ie, $ as ue, p as me, v as le, g as ce, h as fe, i as ye } from "./index-QWMbbpmK.js";
|
|
3
3
|
import { useState as q, useMemo as d, useCallback as f } from "react";
|
|
4
4
|
const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
|
|
5
5
|
formsTableBody: pe,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { B as d, C as f, D as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-miIdNYUE.js";
|
|
2
|
+
import { B as d, C as f, D as e } from "./index-QWMbbpmK.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-
|
|
2
|
-
import { B as C, C as v, D as e } from "./index-
|
|
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-miIdNYUE.js";
|
|
2
|
+
import { B as C, C as v, D as e } from "./index-QWMbbpmK.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 { c as H, d as K, u as S, j as V, k as M, a as Q, X, M as x, n as j, o as w, H as G, b as z, q as P, K as A, r as Y, s as J, R as W, t as Z, y as ee, z as ae, A as te } from "./index-
|
|
2
|
+
import { c as H, d as K, u as S, j as V, k as M, a as Q, X, M as x, n as j, o as w, H as G, b as z, q as P, K as A, r as Y, s as J, R as W, t as Z, y as ee, z as ae, A as te } from "./index-QWMbbpmK.js";
|
|
3
3
|
import { useRef as se, useEffect as $, useMemo as R } from "react";
|
|
4
4
|
const D = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = Y(a, n, b), s = t.value, o = J(s);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as we, G as z, I as xt, J as B, C as q, D as y, P as Ro, O as ye, S as R, Q as _, T as k, U as N, V as A, W as bs, Y as ir, Z as $e, _ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Os } from "./index-
|
|
1
|
+
import { F as we, G as z, I as xt, J as B, C as q, D as y, P as Ro, O as ye, S as R, Q as _, T as k, U as N, V as A, W as bs, Y as ir, Z as $e, _ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Os } from "./index-QWMbbpmK.js";
|
|
2
2
|
var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -171204,7 +171204,7 @@ const Zht = [
|
|
|
171204
171204
|
},
|
|
171205
171205
|
{
|
|
171206
171206
|
type: "patientDocuments",
|
|
171207
|
-
component: lazy$1(() => import("./DocumentsTable-BEZ6qDeD-
|
|
171207
|
+
component: lazy$1(() => import("./DocumentsTable-BEZ6qDeD-BSj63dTr.js"))
|
|
171208
171208
|
},
|
|
171209
171209
|
{
|
|
171210
171210
|
type: "flowSheet",
|
|
@@ -171212,7 +171212,7 @@ const Zht = [
|
|
|
171212
171212
|
},
|
|
171213
171213
|
{
|
|
171214
171214
|
type: "forms",
|
|
171215
|
-
component: lazy$1(() => import("./FormsTable-BPfzdJxV-
|
|
171215
|
+
component: lazy$1(() => import("./FormsTable-BPfzdJxV-DBlvr4-y.js"))
|
|
171216
171216
|
},
|
|
171217
171217
|
{
|
|
171218
171218
|
type: "labOrders",
|
|
@@ -171220,7 +171220,7 @@ const Zht = [
|
|
|
171220
171220
|
},
|
|
171221
171221
|
{
|
|
171222
171222
|
type: "observations",
|
|
171223
|
-
component: lazy$1(() => import("./Observations-Dx_xD9ba-
|
|
171223
|
+
component: lazy$1(() => import("./Observations-Dx_xD9ba-D1B4hjtg.js"))
|
|
171224
171224
|
},
|
|
171225
171225
|
{
|
|
171226
171226
|
type: "ordersControl",
|
|
@@ -173125,7 +173125,7 @@ var displayValue = (t, e = !1) => {
|
|
|
173125
173125
|
const e = render(() => {
|
|
173126
173126
|
const n = this, [r] = this.#o, [a] = this.#d, [l] = this.#f, [c] = this.#u, [g] = this.#h, [A] = this.#t;
|
|
173127
173127
|
let w;
|
|
173128
|
-
return this.#s ? w = this.#s : (w = lazy(() => import("./LNWAZHJI-
|
|
173128
|
+
return this.#s ? w = this.#s : (w = lazy(() => import("./LNWAZHJI-DZWv40MF.js")), this.#s = w), setupStyleSheet(this.#i, this.#l), createComponent(w, mergeProps({
|
|
173129
173129
|
get queryFlavor() {
|
|
173130
173130
|
return n.#n;
|
|
173131
173131
|
},
|
|
@@ -173223,7 +173223,7 @@ var displayValue = (t, e = !1) => {
|
|
|
173223
173223
|
const e = render(() => {
|
|
173224
173224
|
const n = this, [r] = this.#o, [a] = this.#d, [l] = this.#f, [c] = this.#u, [g] = this.#h, [A] = this.#t, [w] = this.#s;
|
|
173225
173225
|
let _;
|
|
173226
|
-
return this.#c ? _ = this.#c : (_ = lazy(() => import("./MWZ6AO7Z-
|
|
173226
|
+
return this.#c ? _ = this.#c : (_ = lazy(() => import("./MWZ6AO7Z-CnbSvpXb.js")), this.#c = _), setupStyleSheet(this.#i, this.#l), createComponent(_, mergeProps({
|
|
173227
173227
|
get queryFlavor() {
|
|
173228
173228
|
return n.#n;
|
|
173229
173229
|
},
|
|
@@ -174843,7 +174843,7 @@ function useEncounterSession(t) {
|
|
|
174843
174843
|
refetch: () => D({ ignored: !1 })
|
|
174844
174844
|
};
|
|
174845
174845
|
}
|
|
174846
|
-
const CLINICAL_CONFIG_URL = CLINICAL_V2_CONFIG_BASE_URL + "/app.json", ClinicalConfigContext = createContext$1(void 0), $schema$2 = "http://json-schema.org/draft-07/schema#", title$3 = "Clinical App Configuration Schema", description$1 = "Schema for global clinical app configuration including patient information, actions and available dashboards", type$2 = "object", required$1 = ["patientInformation", "actions", "dashboards", "consultationPad"], additionalProperties$2 = !1, definitions = { inputControl: { type: "object", required: ["type", "metadata", "encounterTypes", "privileges", "attributes"], additionalProperties: !0, properties: { type: { type: "string", description: "Identifier matching the registered form key (e.g. encounterDetails, allergies)" }, label: { type: "string", description: "Display label for the input control" }, metadata: { type: "object", description: "Additional metadata for the input control" }, encounterTypes: { type: "array", description: "Encounter types for which this control is shown", items: { type: "string" } }, privileges: { type: "array", description: "Privileges required to view this control", items: { type: "string" } }, attributes: { type: "array", description: "Form attributes configuration", items: { type: "object", required: ["name"
|
|
174846
|
+
const CLINICAL_CONFIG_URL = CLINICAL_V2_CONFIG_BASE_URL + "/app.json", ClinicalConfigContext = createContext$1(void 0), $schema$2 = "http://json-schema.org/draft-07/schema#", title$3 = "Clinical App Configuration Schema", description$1 = "Schema for global clinical app configuration including patient information, actions and available dashboards", type$2 = "object", required$1 = ["patientInformation", "actions", "dashboards", "consultationPad"], additionalProperties$2 = !1, definitions = { inputControl: { type: "object", required: ["type", "metadata", "encounterTypes", "privileges", "attributes"], additionalProperties: !0, properties: { type: { type: "string", description: "Identifier matching the registered form key (e.g. encounterDetails, allergies)" }, label: { type: "string", description: "Display label for the input control" }, metadata: { type: "object", description: "Additional metadata for the input control" }, encounterTypes: { type: "array", description: "Encounter types for which this control is shown", items: { type: "string" } }, privileges: { type: "array", description: "Privileges required to view this control", items: { type: "string" } }, attributes: { type: "array", description: "Form attributes configuration", items: { type: "object", required: ["name"], additionalProperties: !1, properties: { name: { type: "string", description: "Attribute name" }, required: { type: "boolean", description: "Whether this attribute is required" }, default: { type: ["string", "number", "boolean"], description: "Default value to pre-populate the field with" }, readOnly: { type: "boolean", description: "Whether this field is non-editable by the user" } } } } } } }, properties$2 = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, contextInformation: { type: "object", description: "Context information configuration for displaying additional patient context", additionalProperties: !1, properties: { program: { type: "object", description: "Program details configuration", required: ["fields"], additionalProperties: !1, properties: { fields: { type: "array", description: "List of fields to display in program details", items: { type: "string" } } } } } }, patientSearch: { type: "object", description: "Configuration for patient search dropdown display", additionalProperties: !1, properties: { displayFields: { type: "array", description: "Fields to display in patient search dropdown results. Each entry maps to a PatientSearchResult field.", items: { type: "object", required: ["field"], additionalProperties: !1, properties: { field: { type: "string", enum: ["name", "identifier", "gender", "age"], description: "Field name from PatientSearchResult" }, bold: { type: "boolean", description: "Whether to render this field in bold" } } } } } }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap", "inputControls"], additionalProperties: !0, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } }, statDurationInMilliseconds: { type: "number", description: "Duration in milliseconds for which a STAT order is valid" }, inputControls: { type: "array", description: "Ordered list of input controls to display in the consultation pad", items: { $ref: "#/definitions/inputControl" } } } } }, clinicalConfigSchema = {
|
|
174847
174847
|
$schema: $schema$2,
|
|
174848
174848
|
title: title$3,
|
|
174849
174849
|
description: description$1,
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,9 @@ export interface AllergyConceptMap {
|
|
|
6
6
|
}
|
|
7
7
|
export interface InputControlAttributes {
|
|
8
8
|
name: string;
|
|
9
|
-
required
|
|
9
|
+
required?: boolean;
|
|
10
|
+
default?: string | number | boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface InputControl<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
12
14
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAs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EAAE,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB"}
|
|
@@ -47,7 +47,7 @@ declare const _default: {
|
|
|
47
47
|
"description": "Form attributes configuration",
|
|
48
48
|
"items": {
|
|
49
49
|
"type": "object",
|
|
50
|
-
"required": ["name"
|
|
50
|
+
"required": ["name"],
|
|
51
51
|
"additionalProperties": false,
|
|
52
52
|
"properties": {
|
|
53
53
|
"name": {
|
|
@@ -57,6 +57,14 @@ declare const _default: {
|
|
|
57
57
|
"required": {
|
|
58
58
|
"type": "boolean",
|
|
59
59
|
"description": "Whether this attribute is required"
|
|
60
|
+
},
|
|
61
|
+
"default": {
|
|
62
|
+
"type": ["string", "number", "boolean"],
|
|
63
|
+
"description": "Default value to pre-populate the field with"
|
|
64
|
+
},
|
|
65
|
+
"readOnly": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "Whether this field is non-editable by the user"
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
}
|