@bahmni/widgets 0.0.1-dev.375 → 0.0.1-dev.376
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-ByMt-J_k.js → DocumentsTable-D7SsafU9.js} +4 -4
- package/dist/{FormsTable-BaBa6xv8.js → FormsTable-BQrmyOQB.js} +69 -69
- package/dist/{Observations-C8HEAJY4.js → Observations-CFwo78dR.js} +24 -24
- package/dist/{index-BuzazPX_.js → index-D6eQA2wz.js} +9036 -8990
- package/dist/index.js +15 -15
- package/dist/patientPrograms/PatientProgramsTable.d.ts.map +1 -1
- package/dist/patientPrograms/constants.d.ts +1 -0
- package/dist/patientPrograms/constants.d.ts.map +1 -1
- package/dist/patientPrograms/model.d.ts +1 -0
- package/dist/patientPrograms/model.d.ts.map +1 -1
- package/dist/patientPrograms/utils.d.ts +3 -2
- package/dist/patientPrograms/utils.d.ts.map +1 -1
- package/dist/programDetails/ProgramDetails.d.ts.map +1 -1
- package/dist/programDetails/constants.d.ts +1 -0
- package/dist/programDetails/constants.d.ts.map +1 -1
- package/dist/programDetails/model.d.ts +1 -0
- package/dist/programDetails/model.d.ts.map +1 -1
- package/dist/programDetails/utils.d.ts +2 -1
- package/dist/programDetails/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ae as o, ac as r,
|
|
1
|
+
import { ae as o, ac as r, H as n, ab as g, I as c, C as l, a4 as d, ak as P, J as m, z as v, K as u, A as T, B as A, aa as C, _ as b, a2 as p, U as I, av as S, ax as f, ay as W, M as R, a6 as U, a7 as D, O as L, G as h, a1 as y, a3 as N, S as E, N as x, V as G, a0 as O, at as _, as as H, a9 as V, Z as k, aj as M, ag as q, af as w, f as z, aq as B, ap as F, ai as j, am as J, an as K, ao as Z, ah as Q, al as X, E as Y, ar as $, ad as aa, a5 as ea, a8 as sa, b as ta, aw as ia, a as oa, u as ra, au as na, c as ga } from "./index-D6eQA2wz.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "@tanstack/react-query";
|
|
@@ -16,17 +16,17 @@ export {
|
|
|
16
16
|
u as DiagnosesTable,
|
|
17
17
|
T as DocumentPrintButton,
|
|
18
18
|
A as DocumentUpload,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
C as GET_PATIENT_PHOTO_PRIVILEGE,
|
|
20
|
+
b as GenericServiceRequestTable,
|
|
21
21
|
p as ImmunizationHistory,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
I as LabInvestigation,
|
|
23
|
+
S as LocationContext,
|
|
24
|
+
f as LocationProvider,
|
|
25
25
|
W as LocationSelector,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
R as MedicationsTable,
|
|
27
|
+
U as NotificationProvider,
|
|
28
|
+
D as NotificationServiceComponent,
|
|
29
|
+
L as ObservationsRenderer,
|
|
30
30
|
h as PatientDetails,
|
|
31
31
|
y as PatientProgramsTable,
|
|
32
32
|
N as ProgramDetails,
|
|
@@ -34,8 +34,8 @@ export {
|
|
|
34
34
|
x as RadiologyInvestigationTable,
|
|
35
35
|
G as SearchPatient,
|
|
36
36
|
O as TaskList,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_ as UserActionProvider,
|
|
38
|
+
H as UserGlobalAction,
|
|
39
39
|
V as UserPrivilegeProvider,
|
|
40
40
|
k as VitalFlowSheet,
|
|
41
41
|
M as clearSearchWidgetRegistry,
|
|
@@ -45,10 +45,10 @@ export {
|
|
|
45
45
|
B as getAllWidgetConfigs,
|
|
46
46
|
F as getAllWidgetTypes,
|
|
47
47
|
j as getSearchWidget,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
J as getWidget,
|
|
49
|
+
K as getWidgetConfig,
|
|
50
50
|
Z as hasWidget,
|
|
51
|
-
|
|
51
|
+
Q as registerSearchWidget,
|
|
52
52
|
X as registerWidget,
|
|
53
53
|
Y as renderDocumentTile,
|
|
54
54
|
$ as resetWidgetRegistry,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientProgramsTable.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/PatientProgramsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PatientProgramsTable.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/PatientProgramsTable.tsx"],"names":[],"mappings":"AASA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD;;GAEG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiO/C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAAoB,CAAC"}
|
|
@@ -11,6 +11,7 @@ export interface PatientProgramViewModel {
|
|
|
11
11
|
readonly outcomeDetails: string | null;
|
|
12
12
|
readonly currentStateName: string | null;
|
|
13
13
|
readonly attributes: Record<string, string | null>;
|
|
14
|
+
readonly careManagerDisplay?: string | null;
|
|
14
15
|
}
|
|
15
16
|
export interface ProgramField {
|
|
16
17
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/model.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CA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CAAC;CAC7B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgramEnrollment } from '@bahmni/services';
|
|
2
|
+
import { EpisodeOfCare } from 'fhir/r4';
|
|
2
3
|
import { PatientProgramViewModel, ProgramField } from './model';
|
|
3
4
|
export declare function extractProgramAttributeNames(fields?: ProgramField[]): string[];
|
|
4
5
|
export declare function createProgramHeaders(fields: ProgramField[], t: (key: string) => string): Array<{
|
|
5
6
|
key: string;
|
|
6
7
|
header: string;
|
|
7
8
|
}>;
|
|
8
|
-
export declare
|
|
9
|
+
export declare const createPatientProgramViewModal: (program: ProgramEnrollment, programAttributes: string[], episodeOfCare?: EpisodeOfCare) => PatientProgramViewModel;
|
|
9
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,4BAA4B,CAC1C,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,MAAM,EAAE,CAKV;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EAAE,EACtB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAKxC;AAED,eAAO,MAAM,6BAA6B,GACxC,SAAS,iBAAiB,EAC1B,mBAAmB,MAAM,EAAE,EAC3B,gBAAgB,aAAa,KAC5B,uBAmBD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgramDetails.d.ts","sourceRoot":"","sources":["../../src/programDetails/ProgramDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgramDetails.d.ts","sourceRoot":"","sources":["../../src/programDetails/ProgramDetails.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAOhE,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,kCACjB,CAAC;AAmBrC,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,MAAM,EAAE,YAAY,EAAE,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiQjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/programDetails/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/programDetails/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAAoB,CAAC;AAEhE,eAAO,MAAM,+BAA+B,0BAA0B,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface ProgramDetailsViewModel {
|
|
|
8
8
|
readonly outcomeDetails: string | null;
|
|
9
9
|
readonly currentStateName: string | null;
|
|
10
10
|
readonly attributes: Record<string, string | null>;
|
|
11
|
+
readonly careManagerDisplay?: string | null;
|
|
11
12
|
readonly allowedStates: {
|
|
12
13
|
uuid: string;
|
|
13
14
|
display: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/programDetails/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,QAAQ,CAAC,aAAa,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/programDetails/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ProgramEnrollment } from '@bahmni/services';
|
|
2
|
+
import { EpisodeOfCare } from 'fhir/r4';
|
|
2
3
|
import { ProgramDetailsViewModel, ProgramField } from './model';
|
|
3
4
|
export declare function extractProgramAttributeNames(fields?: ProgramField[]): string[];
|
|
4
|
-
export declare function createProgramDetailsViewModel(enrollment: ProgramEnrollment, programAttributes: string[]): ProgramDetailsViewModel;
|
|
5
|
+
export declare function createProgramDetailsViewModel(enrollment: ProgramEnrollment, programAttributes: string[], episodeOfCare?: EpisodeOfCare): ProgramDetailsViewModel;
|
|
5
6
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/programDetails/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/programDetails/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,4BAA4B,CAC1C,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,MAAM,EAAE,CAKV;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,iBAAiB,EAC7B,iBAAiB,EAAE,MAAM,EAAE,EAC3B,aAAa,CAAC,EAAE,aAAa,GAC5B,uBAAuB,CA0BzB"}
|