@bahmni/clinical-app 0.0.1-dev.115 → 0.0.1-dev.116
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/{FormsTable-CiZfhBOQ-DcE4q7Zl.js → FormsTable-y5jQFkL0-sqvGA-15.js} +1 -1
- package/dist/{LNWAZHJI-edewhEFl.js → LNWAZHJI-N30CJpKQ.js} +2 -2
- package/dist/{MWZ6AO7Z-CBRykmpp.js → MWZ6AO7Z-jJ1-Vwhq.js} +2 -2
- package/dist/{Observations-B37dWUr5-CofwLfu0.js → Observations-Def74VaV-DM6hJSi7.js} +1 -1
- package/dist/{YPM2AS64-DbEbDIYn.js → YPM2AS64-CcHjEAHQ.js} +1 -1
- package/dist/components/consultationPad/ConsultationPad.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +2 -2
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/components/forms/observations/utils/formEventExecutor.d.ts +24 -0
- package/dist/components/forms/observations/utils/formEventExecutor.d.ts.map +1 -0
- package/dist/constants/forms.d.ts +1 -0
- package/dist/constants/forms.d.ts.map +1 -1
- package/dist/{index-CqEP9Ur_.js → index-RlyhVUTx.js} +8534 -8472
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +3 -0
- package/dist/locales/locale_es.json +1 -0
- package/dist/stores/observationFormsStore.d.ts +3 -3
- package/dist/stores/observationFormsStore.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { u as Y, T as W, K as X, a as f, _ as Z, O as ee, Q as I, b as re, c as ae, D as oe, C as ne, w as G, q as te, L as N, S as se, d as de, R as ie, e as me } from "./index-
|
|
2
|
+
import { u as Y, T as W, K as X, a as f, _ as Z, O as ee, Q as I, b as re, c as ae, D as oe, C as ne, w as G, q as te, L as N, S as se, d as de, R as ie, e as me } from "./index-RlyhVUTx.js";
|
|
3
3
|
import { useState as x, useMemo as b, useCallback as g } from "react";
|
|
4
4
|
import { createPortal as le } from "react-dom";
|
|
5
5
|
const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Le = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Oe = "_abnormalValue_1pd36_102", Ce = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
|
|
@@ -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 { H as d, I as f, J as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CcHjEAHQ.js";
|
|
2
|
+
import { H as d, I as f, J as e } from "./index-RlyhVUTx.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 { H as v, I as C, J 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-CcHjEAHQ.js";
|
|
2
|
+
import { H as v, I as C, J as e } from "./index-RlyhVUTx.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 D, jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { f as F, n as w, r as H, g as I, h as J, i as P, j as K, k as z, l as G, m as j, o as W, s as T, p as Q, t as X, v as Y, T as Z, x as ee, u as N, y as te, a as se, U as re, Q as ne, z as ie, A as M, B as oe, V as ae, E as ue, F as ce, G as le } from "./index-
|
|
2
|
+
import { f as F, n as w, r as H, g as I, h as J, i as P, j as K, k as z, l as G, m as j, o as W, s as T, p as Q, t as X, v as Y, T as Z, x as ee, u as N, y as te, a as se, U as re, Q as ne, z as ie, A as M, B as oe, V as ae, E as ue, F as ce, G as le } from "./index-RlyhVUTx.js";
|
|
3
3
|
import * as R from "react";
|
|
4
4
|
import { useRef as de, useEffect as C, useMemo as S } from "react";
|
|
5
5
|
function _(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as we, N as z, P as xt, W as B, I as q, J as y, X as Ro, Y as ye, Z as R, $ as _, a0 as k, a1 as N, a2 as A, a3 as bs, a4 as ir, a5 as $e, a6 as U, a7 as Hn, a8 as Vn, a9 as dt, aa as D, ab as xs, ac as cn, ad as Be, ae as ws, af as qt, ag as zt, ah as $s, ai as Cs, aj as $n, ak as Ss, al as Nr, am as Bt, an as zo, ao as ks, ap as Es, aq as j, ar as Ur, as as Ms, at as Ds, au as sr, av as As, aw as Ts, ax as zn, ay as Fs, az as Is, aA as Z, aB as Ps, aC as Ls } from "./index-
|
|
1
|
+
import { M as we, N as z, P as xt, W as B, I as q, J as y, X as Ro, Y as ye, Z as R, $ as _, a0 as k, a1 as N, a2 as A, a3 as bs, a4 as ir, a5 as $e, a6 as U, a7 as Hn, a8 as Vn, a9 as dt, aa as D, ab as xs, ac as cn, ad as Be, ae as ws, af as qt, ag as zt, ah as $s, ai as Cs, aj as $n, ak as Ss, al as Nr, am as Bt, an as zo, ao as ks, ap as Es, aq as j, ar as Ur, as as Ms, at as Ds, au as sr, av as As, aw as Ts, ax as zn, ay as Fs, az as Is, aA as Z, aB as Ps, aC as Ls } from "./index-RlyhVUTx.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA2CzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyanD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAY9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsRrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ObservationForm, Form2Observation } from '@bahmni/services';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { VALIDATION_STATE_EMPTY, VALIDATION_STATE_MANDATORY, VALIDATION_STATE_INVALID } from '../../../constants/forms';
|
|
3
|
+
import { VALIDATION_STATE_EMPTY, VALIDATION_STATE_MANDATORY, VALIDATION_STATE_INVALID, VALIDATION_STATE_SCRIPT_ERROR } from '../../../constants/forms';
|
|
4
4
|
interface ObservationFormsContainerProps {
|
|
5
5
|
onViewingFormChange: (viewingForm: ObservationForm | null) => void;
|
|
6
6
|
viewingForm?: ObservationForm | null;
|
|
7
7
|
onRemoveForm?: (formUuid: string) => void;
|
|
8
8
|
pinnedForms: ObservationForm[];
|
|
9
9
|
updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
|
|
10
|
-
onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationState?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID) => void;
|
|
10
|
+
onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationState?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR) => void;
|
|
11
11
|
existingObservations?: Form2Observation[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAKlC,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,eAAe,CAAC,EACZ,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,KACrC,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAsTvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Form2Observation, FormMetadata } from '@bahmni/services';
|
|
2
|
+
type FormDataRecord = Record<string, unknown> & {
|
|
3
|
+
control?: Record<string, unknown> & {
|
|
4
|
+
concept?: {
|
|
5
|
+
name?: string;
|
|
6
|
+
uuid?: string;
|
|
7
|
+
};
|
|
8
|
+
label?: {
|
|
9
|
+
value?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
concept?: {
|
|
13
|
+
name?: string;
|
|
14
|
+
};
|
|
15
|
+
label?: {
|
|
16
|
+
value?: string;
|
|
17
|
+
};
|
|
18
|
+
name?: string;
|
|
19
|
+
value?: unknown;
|
|
20
|
+
children?: FormDataRecord[];
|
|
21
|
+
};
|
|
22
|
+
export declare const executeOnFormSaveEvent: (metadata: FormMetadata, observations: Form2Observation[], patientUuid: string, formData?: FormDataRecord) => Form2Observation[];
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=formEventExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formEventExecutor.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/observations/utils/formEventExecutor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUlE,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAClC,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,KAAK,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,CAAC;IACF,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5B,KAAK,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,UAAU,YAAY,EACtB,cAAc,gBAAgB,EAAE,EAChC,aAAa,MAAM,EACnB,WAAW,cAAc,KACxB,gBAAgB,EAkDlB,CAAC"}
|
|
@@ -11,4 +11,5 @@ export declare const FORM_CONTROL_TYPE_MULTISELECT = "multiselect";
|
|
|
11
11
|
export declare const VALIDATION_STATE_EMPTY = "empty";
|
|
12
12
|
export declare const VALIDATION_STATE_MANDATORY = "mandatory";
|
|
13
13
|
export declare const VALIDATION_STATE_INVALID = "invalid";
|
|
14
|
+
export declare const VALIDATION_STATE_SCRIPT_ERROR = "script_error";
|
|
14
15
|
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,0BAA0B,cAAc,CAAC;AACtD,eAAO,MAAM,wBAAwB,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/constants/forms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,0BAA0B,cAAc,CAAC;AACtD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,6BAA6B,iBAAiB,CAAC"}
|