@bahmni/widgets 0.0.1-dev.110 → 0.0.1-dev.112
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-CR2jqbXz.js → FormsTable-C8nOQyg5.js} +28 -28
- package/dist/{Observations-D-slruOf.js → Observations-CczoywE0.js} +19 -19
- package/dist/activePractitioner/ActivePractitionerContext.d.ts +10 -0
- package/dist/activePractitioner/ActivePractitionerContext.d.ts.map +1 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts +7 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts.map +1 -0
- package/dist/activePractitioner/index.d.ts +5 -0
- package/dist/activePractitioner/index.d.ts.map +1 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts +7 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts.map +1 -0
- package/dist/allergies/AllergiesTable.d.ts +0 -1
- package/dist/allergies/AllergiesTable.d.ts.map +1 -1
- package/dist/conditions/ConditionsTable.d.ts +0 -1
- package/dist/conditions/ConditionsTable.d.ts.map +1 -1
- package/dist/conditions/index.d.ts +1 -1
- package/dist/conditions/index.d.ts.map +1 -1
- package/dist/diagnoses/DiagnosesTable.d.ts.map +1 -1
- package/dist/{index-DnRlH7sS.js → index-CZm_w54A.js} +12927 -12897
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -25
- package/dist/medications/MedicationsTable.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/diagnoses/useDiagnoses.d.ts +0 -14
- package/dist/diagnoses/useDiagnoses.d.ts.map +0 -1
- package/dist/hooks/useActivePractitioner.d.ts +0 -15
- package/dist/hooks/useActivePractitioner.d.ts.map +0 -1
- package/dist/medications/useMedicationRequest.d.ts +0 -14
- package/dist/medications/useMedicationRequest.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PatientDetails } from './patientDetails';
|
|
2
2
|
export { AllergiesTable } from './allergies';
|
|
3
|
-
export { ConditionsTable
|
|
3
|
+
export { ConditionsTable } from './conditions';
|
|
4
4
|
export { DiagnosesTable } from './diagnoses';
|
|
5
5
|
export { MedicationsTable } from './medications';
|
|
6
6
|
export { RadiologyInvestigationTable } from './radiologyInvestigation';
|
|
@@ -11,8 +11,8 @@ export { GenericServiceRequestTable } from './genericServiceRequest';
|
|
|
11
11
|
export { PatientProgramsTable } from './patientPrograms';
|
|
12
12
|
export { useNotification, NotificationProvider, NotificationServiceComponent, } from './notification';
|
|
13
13
|
export { usePatientUUID } from './hooks/usePatientUUID';
|
|
14
|
-
export { useActivePractitioner } from './hooks/useActivePractitioner';
|
|
15
14
|
export { useUserPrivilege } from './userPrivileges/useUserPrivilege';
|
|
16
15
|
export { UserPrivilegeProvider } from './userPrivileges/UserPrivilegeProvider';
|
|
16
|
+
export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
|
|
17
17
|
export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
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,eAAe,EAAE,
|
|
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,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,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;AAGzD,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAG/E,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC;AAG9B,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,30 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as t, x as s, g as r, k as o, l as n, G as g, n as l, M as c, N as P, r as d, P as v, p as T, m as b, S as f, w as W, V as u, T as A, Q as m, F as p, H as C, O as S, E as y, X as N, y as U, f as h, u as x, v as D } from "./index-CZm_w54A.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
n as
|
|
9
|
-
g as
|
|
10
|
-
l as
|
|
4
|
+
t as ActivePractitionerContext,
|
|
5
|
+
s as ActivePractitionerProvider,
|
|
6
|
+
r as AllergiesTable,
|
|
7
|
+
o as ConditionsTable,
|
|
8
|
+
n as DiagnosesTable,
|
|
9
|
+
g as GenericServiceRequestTable,
|
|
10
|
+
l as LabInvestigation,
|
|
11
|
+
c as MedicationsTable,
|
|
12
|
+
P as NotificationProvider,
|
|
11
13
|
d as NotificationServiceComponent,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
p as getWidgetConfig,
|
|
14
|
+
v as PatientDetails,
|
|
15
|
+
T as PatientProgramsTable,
|
|
16
|
+
b as RadiologyInvestigationTable,
|
|
17
|
+
f as SearchPatient,
|
|
18
|
+
W as UserPrivilegeProvider,
|
|
19
|
+
u as VitalFlowSheet,
|
|
20
|
+
A as getAllWidgetConfigs,
|
|
21
|
+
m as getAllWidgetTypes,
|
|
22
|
+
p as getWidget,
|
|
23
|
+
C as getWidgetConfig,
|
|
23
24
|
S as hasWidget,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
y as registerWidget,
|
|
26
|
+
N as resetWidgetRegistry,
|
|
27
|
+
U as useActivePractitioner,
|
|
28
|
+
h as useNotification,
|
|
29
|
+
x as usePatientUUID,
|
|
30
|
+
D as useUserPrivilege
|
|
30
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicationsTable.d.ts","sourceRoot":"","sources":["../../src/medications/MedicationsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MedicationsTable.d.ts","sourceRoot":"","sources":["../../src/medications/MedicationsTable.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkDhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+S3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Diagnosis } from '@bahmni/services';
|
|
2
|
-
interface UseDiagnosesResult {
|
|
3
|
-
diagnoses: Diagnosis[];
|
|
4
|
-
loading: boolean;
|
|
5
|
-
error: Error | null;
|
|
6
|
-
refetch: () => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Custom hook to fetch and manage diagnoses for the current patient
|
|
10
|
-
* @returns Object containing diagnoses, loading state, error state, and refetch function
|
|
11
|
-
*/
|
|
12
|
-
export declare const useDiagnoses: () => UseDiagnosesResult;
|
|
13
|
-
export default useDiagnoses;
|
|
14
|
-
//# sourceMappingURL=useDiagnoses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDiagnoses.d.ts","sourceRoot":"","sources":["../../src/diagnoses/useDiagnoses.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,kBAoC/B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Provider, User } from '@bahmni/services';
|
|
2
|
-
interface useActivePractitionerResult {
|
|
3
|
-
practitioner: Provider | null;
|
|
4
|
-
user: User | null;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
error: Error | null;
|
|
7
|
-
refetch: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Custom hook to fetch and manage the active practitioner's details
|
|
11
|
-
* @returns Object containing practitioner, loading state, error state, and refetch function
|
|
12
|
-
*/
|
|
13
|
-
export declare const useActivePractitioner: () => useActivePractitionerResult;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=useActivePractitioner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActivePractitioner.d.ts","sourceRoot":"","sources":["../../src/hooks/useActivePractitioner.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,IAAI,EAGL,MAAM,kBAAkB,CAAC;AAG1B,UAAU,2BAA2B;IACnC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,2BA4CxC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MedicationRequest } from '@bahmni/services';
|
|
2
|
-
interface MedicationRequestResult {
|
|
3
|
-
medications: MedicationRequest[];
|
|
4
|
-
loading: boolean;
|
|
5
|
-
error: Error | null;
|
|
6
|
-
refetch: () => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Custom hook to fetch and manage medications for the current patient
|
|
10
|
-
* @returns Object containing medications, loading state, error state, and refetch function
|
|
11
|
-
*/
|
|
12
|
-
export declare const useMedicationRequest: (code?: string[], encounterUuids?: string[]) => MedicationRequestResult;
|
|
13
|
-
export default useMedicationRequest;
|
|
14
|
-
//# sourceMappingURL=useMedicationRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMedicationRequest.d.ts","sourceRoot":"","sources":["../../src/medications/useMedicationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGlB,MAAM,kBAAkB,CAAC;AAI1B,UAAU,uBAAuB;IAC/B,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,MAAM,EAAE,EACf,iBAAiB,MAAM,EAAE,KACxB,uBAwCF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|