@bahmni/clinical-app 0.0.1-dev.373 → 0.0.1-dev.375
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/{ConsultationPage-BGYw1Lyi.js → ConsultationPage-BJdDuabm.js} +10990 -10939
- package/dist/{DocumentsTable-DvzP4zA0-SCplv32I.js → DocumentsTable-Dcy-W7Gb-BBod44B9.js} +15 -15
- package/dist/{FormsTable-BexiFTEe-B2rMaDDD.js → FormsTable-BncKn8RO-D-CNrY1B.js} +115 -103
- package/dist/{LNWAZHJI-DS5U3Oud.js → LNWAZHJI-z7bxb-kD.js} +2 -2
- package/dist/{MWZ6AO7Z-CnnAEK95.js → MWZ6AO7Z-XbsAnhjO.js} +2 -2
- package/dist/{Observations-DIntvvSw-BtjJonqG.js → Observations-BNztTkr8-B0J8o4w5.js} +40 -40
- package/dist/{YPM2AS64-5oAqPQDc.js → YPM2AS64-BKGejflS.js} +138 -138
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +0 -85
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/{hook-CgKQ6WAl.js → hook-BmX5jWNq.js} +1 -1
- package/dist/{index-p757R1Oj.js → index-CFQLhNb5.js} +23500 -23430
- package/dist/{index-DzbMZloO.js → index-CZlG_e17.js} +4 -4
- package/dist/{index-Db-dpLuX.js → index-husEFyYF.js} +11 -11
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +4 -0
- package/dist/locales/locale_es.json +4 -0
- package/dist/utils/fhir/observationReconciliation.d.ts +14 -0
- package/dist/utils/fhir/observationReconciliation.d.ts.map +1 -0
- package/dist/utils/fhir/observationResourceCreator.d.ts +1 -17
- package/dist/utils/fhir/observationResourceCreator.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
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-CFQLhNb5.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
const
|
|
6
|
-
loading:
|
|
7
|
-
message:
|
|
5
|
+
const E = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", H = "index-module_panel__j5vTu", s = {
|
|
6
|
+
loading: E,
|
|
7
|
+
message: $,
|
|
8
8
|
panel: H
|
|
9
9
|
}, w = ({ extensions: i }) => {
|
|
10
10
|
const { t: n } = r();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g, Q as u,
|
|
3
|
-
import { lazy as
|
|
2
|
+
import { u as g, Q as u, bG as b, bQ as f, bR as p, bS as x, aG as _, bM as N } from "./index-CFQLhNb5.js";
|
|
3
|
+
import { lazy as h, useMemo as n, Suspense as E } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
7
|
-
"org.bahmni.clinical.v2.search":
|
|
8
|
-
() => import("./index-
|
|
5
|
+
import { u as L } from "./hook-BmX5jWNq.js";
|
|
6
|
+
const C = {
|
|
7
|
+
"org.bahmni.clinical.v2.search": h(
|
|
8
|
+
() => import("./index-CZlG_e17.js")
|
|
9
9
|
)
|
|
10
10
|
}, v = "index-module_page__16xxw", H = "index-module_loading__wNI-4", I = "index-module_message__Ib5Iw", t = {
|
|
11
11
|
page: v,
|
|
12
12
|
loading: H,
|
|
13
13
|
message: I
|
|
14
14
|
}, Q = () => {
|
|
15
|
-
const { t: a } = g(), { clinicalConfig: l } =
|
|
15
|
+
const { t: a } = g(), { clinicalConfig: l } = L(), { userPrivileges: o } = u(), d = n(
|
|
16
16
|
() => [
|
|
17
17
|
{ id: "home", label: a("HOME_LABEL"), href: b },
|
|
18
18
|
{ id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
@@ -24,13 +24,13 @@ const L = {
|
|
|
24
24
|
), c = n(
|
|
25
25
|
() => Array.from(r.entries()).map(([e, i]) => ({
|
|
26
26
|
pointId: e,
|
|
27
|
-
Handler:
|
|
27
|
+
Handler: C[e],
|
|
28
28
|
filtered: p(i, o)
|
|
29
29
|
})).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
|
|
30
30
|
[r, o]
|
|
31
31
|
);
|
|
32
32
|
return /* @__PURE__ */ s(
|
|
33
|
-
|
|
33
|
+
x,
|
|
34
34
|
{
|
|
35
35
|
header: /* @__PURE__ */ s(N, { breadcrumbItems: d }),
|
|
36
36
|
main: /* @__PURE__ */ s(
|
|
@@ -46,10 +46,10 @@ const L = {
|
|
|
46
46
|
id: e,
|
|
47
47
|
"data-testid": `${e}-test-id`,
|
|
48
48
|
children: /* @__PURE__ */ s(
|
|
49
|
-
|
|
49
|
+
E,
|
|
50
50
|
{
|
|
51
51
|
fallback: /* @__PURE__ */ s(
|
|
52
|
-
|
|
52
|
+
_,
|
|
53
53
|
{
|
|
54
54
|
type: "multi",
|
|
55
55
|
className: t.loading
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
"COMMON_SEARCH_INVALID_EXPRESSION": "Invalid expression in search configuration. Please contact your administrator.",
|
|
80
80
|
"COMMON_SEARCH_INVALID_FORMAT": "Invalid format",
|
|
81
81
|
"COMMON_SEARCH_LABEL": "Common Search",
|
|
82
|
+
"COMMON_SEARCH_LOOKUP_EMPTY": "No matching services",
|
|
83
|
+
"COMMON_SEARCH_LOOKUP_ERROR": "Error occurred",
|
|
84
|
+
"COMMON_SEARCH_LOOKUP_LOADING": "Loading services",
|
|
85
|
+
"COMMON_SEARCH_LOOKUP_UNSUPPORTED_SOURCE": "Unsupported lookup source",
|
|
82
86
|
"COMMON_SEARCH_MODIFY_SEARCH_BUTTON": "Modify search criteria",
|
|
83
87
|
"COMMON_SEARCH_NO_LOCATION_ERROR": "No location selected. Please log in with a location to use search.",
|
|
84
88
|
"COMMON_SEARCH_NO_PRIVILEGE_ERROR": "No search context configured for the current user's role / privileges.",
|
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
"COMMON_SEARCH_INVALID_EXPRESSION": "Expresión inválida en la configuración de búsqueda. Por favor contacte a su administrador.",
|
|
80
80
|
"COMMON_SEARCH_INVALID_FORMAT": "Formato no válido",
|
|
81
81
|
"COMMON_SEARCH_LABEL": "Búsqueda Común",
|
|
82
|
+
"COMMON_SEARCH_LOOKUP_EMPTY": "No hay servicios coincidentes",
|
|
83
|
+
"COMMON_SEARCH_LOOKUP_ERROR": "Se produjo un error",
|
|
84
|
+
"COMMON_SEARCH_LOOKUP_LOADING": "Cargando servicios",
|
|
85
|
+
"COMMON_SEARCH_LOOKUP_UNSUPPORTED_SOURCE": "Fuente de búsqueda no soportada",
|
|
82
86
|
"COMMON_SEARCH_MODIFY_SEARCH_BUTTON": "Modificar criterios de búsqueda",
|
|
83
87
|
"COMMON_SEARCH_NO_LOCATION_ERROR": "No se ha seleccionado ninguna ubicación. Inicie sesión con una ubicación para usar la búsqueda.",
|
|
84
88
|
"COMMON_SEARCH_NO_PRIVILEGE_ERROR": "Ningún contexto de búsqueda configurado para el rol / privilegios del usuario actual.",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Form2Observation } from '@bahmni/services';
|
|
2
|
+
/** Injects a synthetic voided DELETE entry for any obs present in `original` but missing from `transformed`. */
|
|
3
|
+
export declare const injectMissingDeleteObs: (transformed: Form2Observation[], original: Form2Observation[]) => void;
|
|
4
|
+
/** Restores the original ComplexValue object (with fileName) from `source` for values CarbonContainer flattened to plain URL strings. */
|
|
5
|
+
export declare const restoreComplexValues: (transformed: Form2Observation[], source: Form2Observation[]) => void;
|
|
6
|
+
/** Copies FHIR status (uuid-matched) from `existing` onto `transformed` — CarbonContainer's getValue() drops it, but PUT requires it. */
|
|
7
|
+
export declare const mergeObservationStatuses: (transformed: Form2Observation[], existing: Form2Observation[]) => void;
|
|
8
|
+
/** Marks leaf observations matching the original snapshot as `unchanged`, so the bundle builder skips PUT-ing them. */
|
|
9
|
+
export declare const markUnchangedObservations: (transformed: Form2Observation[], original: Form2Observation[]) => void;
|
|
10
|
+
/** Converts a single observation value to a stable, comparable string (coded/complex/date-aware). */
|
|
11
|
+
export declare const valueFingerprint: (v: unknown) => string;
|
|
12
|
+
/** Extracts the form version from a formFieldPath ("FormName.version/controlId-instance"). */
|
|
13
|
+
export declare function extractVersionFromFormFieldPath(formFieldPath: string | undefined): string | null;
|
|
14
|
+
//# sourceMappingURL=observationReconciliation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observationReconciliation.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/observationReconciliation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAElE,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,GACjC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAiCF,CAAC;AAEF,yIAAyI;AACzI,eAAO,MAAM,oBAAoB,GAC/B,aAAa,gBAAgB,EAAE,EAC/B,QAAQ,gBAAgB,EAAE,KACzB,IAyBF,CAAC;AAEF,yIAAyI;AACzI,eAAO,MAAM,wBAAwB,GACnC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAWF,CAAC;AAEF,uHAAuH;AACvH,eAAO,MAAM,yBAAyB,GACpC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAmCF,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,gBAAgB,GAAI,GAAG,OAAO,KAAG,MAuB7C,CAAC;AAEF,8FAA8F;AAC9F,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,GAAG,IAAI,CAQf"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import { Form2Observation } from '@bahmni/services';
|
|
2
2
|
import { BundleEntry, Reference } from 'fhir/r4';
|
|
3
|
-
/**
|
|
4
|
-
* Creates FHIR bundle entries for a list of Form2Observations, using the
|
|
5
|
-
* correct HTTP verb for each observation based on its uuid and voided state:
|
|
6
|
-
*
|
|
7
|
-
* uuid present + voided:true → DELETE Observation/{uuid}
|
|
8
|
-
* uuid present + has value → PUT Observation/{uuid}
|
|
9
|
-
* no uuid + has value → POST urn:uuid:{newUUID}
|
|
10
|
-
* no uuid + voided (never saved) → skipped
|
|
11
|
-
*
|
|
12
|
-
* For grouped observations (groupMembers):
|
|
13
|
-
* - Children are processed first with the rules above.
|
|
14
|
-
* - If the parent has a uuid and ALL children are deleted → parent is also DELETE.
|
|
15
|
-
* - If the parent has a uuid and some children remain → parent is POST with
|
|
16
|
-
* resource.id set to the existing uuid. OpenMRS recognises the id and updates
|
|
17
|
-
* the obsGroup in place; new child entries are linked via hasMember.
|
|
18
|
-
* - If the parent has no uuid → parent is POST.
|
|
19
|
-
*/
|
|
3
|
+
/** Creates FHIR bundle entries for a list of Form2Observations, choosing POST/PUT/DELETE/skip per obs's uuid/voided/unchanged state. */
|
|
20
4
|
export declare function createObservationEntries(observations: Form2Observation[], subjectReference: Reference, encounterReference: Reference, performerReference: Reference, basedOn?: Reference): BundleEntry[];
|
|
21
5
|
//# sourceMappingURL=observationResourceCreator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observationResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/observationResourceCreator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAe,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"observationResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/observationResourceCreator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAe,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9D,wIAAwI;AACxI,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,gBAAgB,EAAE,EAChC,gBAAgB,EAAE,SAAS,EAC3B,kBAAkB,EAAE,SAAS,EAC7B,kBAAkB,EAAE,SAAS,EAC7B,OAAO,CAAC,EAAE,SAAS,GAClB,WAAW,EAAE,CA2Bf"}
|