@bahmni/widgets 0.0.1-dev.186 → 0.0.1-dev.188
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-CvuLG_h7.js → DocumentsTable-DCRhOR7h.js} +2193 -2082
- package/dist/{FormsTable-B4YN4flO.js → FormsTable-BwcfrE7A.js} +47 -47
- package/dist/{Observations-o12chqhF.js → Observations-Dp94a95V.js} +26 -26
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts +2 -3
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/genericServiceRequest/utils.d.ts.map +1 -1
- package/dist/{index-BpiNllc0.js → index-CjV0jHQ6.js} +40066 -54310
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -26
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts +2 -3
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
- package/dist/userPrivileges/consultationPadPrivileges.d.ts +15 -0
- package/dist/userPrivileges/consultationPadPrivileges.d.ts.map +1 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts +2 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export { ProgramDetails } from './programDetails';
|
|
|
15
15
|
export { useNotification, NotificationProvider, NotificationServiceComponent, } from './notification';
|
|
16
16
|
export { usePatientUUID } from './hooks/usePatientUUID';
|
|
17
17
|
export { useUserPrivilege } from './userPrivileges/useUserPrivilege';
|
|
18
|
+
export { useHasPrivilege } from './userPrivileges/useHasPrivilege';
|
|
18
19
|
export { UserPrivilegeProvider } from './userPrivileges/UserPrivilegeProvider';
|
|
20
|
+
export { CONSULTATION_PAD_PRIVILEGES } from './userPrivileges/consultationPadPrivileges';
|
|
19
21
|
export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
|
|
20
22
|
export { createConfigProvider, createConfigHook } from './configProvider';
|
|
21
23
|
export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EA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1B,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EACL,cAAc,EACd,SAAS,EACT,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as s, a1 as t, A as o, y as r, a0 as n, C as g, D as l, H as P, L as c, z as d, O as v, U as T, w as b, I as A, K as C, F as f, E as I, S as W, $ as p, V as u, a5 as S, a4 as m, ab as D, aa as R, a7 as U, a8 as y, a9 as N, a6 as L, ac as h, a2 as E, Y as H, a as O, u as V, W as w } from "./index-CjV0jHQ6.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as ActivePractitionerContext,
|
|
5
|
+
t as ActivePractitionerProvider,
|
|
6
6
|
o as AllergiesTable,
|
|
7
7
|
r as AppointmentsTable,
|
|
8
|
-
n as
|
|
9
|
-
g as
|
|
10
|
-
l as
|
|
8
|
+
n as CONSULTATION_PAD_PRIVILEGES,
|
|
9
|
+
g as ConditionsTable,
|
|
10
|
+
l as DiagnosesTable,
|
|
11
|
+
P as GenericServiceRequestTable,
|
|
11
12
|
c as LabInvestigation,
|
|
12
13
|
d as MedicationsTable,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
v as NotificationProvider,
|
|
15
|
+
T as NotificationServiceComponent,
|
|
15
16
|
b as PatientDetails,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
A as PatientProgramsTable,
|
|
18
|
+
C as ProgramDetails,
|
|
19
|
+
f as RadiologyInvestigationReport,
|
|
20
|
+
I as RadiologyInvestigationTable,
|
|
20
21
|
W as SearchPatient,
|
|
21
22
|
p as UserPrivilegeProvider,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
u as VitalFlowSheet,
|
|
24
|
+
S as createConfigHook,
|
|
25
|
+
m as createConfigProvider,
|
|
26
|
+
D as getAllWidgetConfigs,
|
|
27
|
+
R as getAllWidgetTypes,
|
|
28
|
+
U as getWidget,
|
|
29
|
+
y as getWidgetConfig,
|
|
30
|
+
N as hasWidget,
|
|
31
|
+
L as registerWidget,
|
|
32
|
+
h as resetWidgetRegistry,
|
|
33
|
+
E as useActivePractitioner,
|
|
34
|
+
H as useHasPrivilege,
|
|
35
|
+
O as useNotification,
|
|
36
|
+
V as usePatientUUID,
|
|
37
|
+
w as useUserPrivilege
|
|
36
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuM3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -2,9 +2,8 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { WidgetProps } from '../registry/model';
|
|
3
3
|
export declare const radiologyInvestigationQueryKeys: (patientUUID: string) => readonly ["radiologyInvestigation", string];
|
|
4
4
|
/**
|
|
5
|
-
* Component to display patient radiology investigations
|
|
6
|
-
*
|
|
7
|
-
* (stat before routine) as a tiebreaker for items with the same orderedDate.
|
|
5
|
+
* Component to display patient radiology investigations grouped by date in accordion format
|
|
6
|
+
* Each accordion item contains an SortableDataTable with radiology investigations for that date
|
|
8
7
|
*/
|
|
9
8
|
declare const RadiologyInvestigationTable: React.FC<WidgetProps>;
|
|
10
9
|
export default RadiologyInvestigationTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,gDACjB,CAAC;AAiBnD;;;GAGG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+YtD,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Privilege configuration for consultation pad controls
|
|
3
|
+
* Each privilege key maps to an array of required OpenMRS privilege names
|
|
4
|
+
* This array-based structure allows multiple privileges per feature and easy extensibility
|
|
5
|
+
*/
|
|
6
|
+
export declare const CONSULTATION_PAD_PRIVILEGES: {
|
|
7
|
+
ENCOUNTER: string[];
|
|
8
|
+
ALLERGIES: string[];
|
|
9
|
+
CONDITIONS_AND_DIAGNOSES: string[];
|
|
10
|
+
INVESTIGATIONS: string[];
|
|
11
|
+
MEDICATIONS: string[];
|
|
12
|
+
OBSERVATIONS: string[];
|
|
13
|
+
VACCINATIONS: string[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=consultationPadPrivileges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consultationPadPrivileges.d.ts","sourceRoot":"","sources":["../../src/userPrivileges/consultationPadPrivileges.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;CAQvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHasPrivilege.d.ts","sourceRoot":"","sources":["../../src/userPrivileges/useHasPrivilege.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,GAAG,MAAM,EAAE,KAAG,OAG9D,CAAC"}
|