@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.
Files changed (29) hide show
  1. package/dist/{FormsTable-CR2jqbXz.js → FormsTable-C8nOQyg5.js} +28 -28
  2. package/dist/{Observations-D-slruOf.js → Observations-CczoywE0.js} +19 -19
  3. package/dist/activePractitioner/ActivePractitionerContext.d.ts +10 -0
  4. package/dist/activePractitioner/ActivePractitionerContext.d.ts.map +1 -0
  5. package/dist/activePractitioner/ActivePractitionerProvider.d.ts +7 -0
  6. package/dist/activePractitioner/ActivePractitionerProvider.d.ts.map +1 -0
  7. package/dist/activePractitioner/index.d.ts +5 -0
  8. package/dist/activePractitioner/index.d.ts.map +1 -0
  9. package/dist/activePractitioner/useActivePractitioner.d.ts +7 -0
  10. package/dist/activePractitioner/useActivePractitioner.d.ts.map +1 -0
  11. package/dist/allergies/AllergiesTable.d.ts +0 -1
  12. package/dist/allergies/AllergiesTable.d.ts.map +1 -1
  13. package/dist/conditions/ConditionsTable.d.ts +0 -1
  14. package/dist/conditions/ConditionsTable.d.ts.map +1 -1
  15. package/dist/conditions/index.d.ts +1 -1
  16. package/dist/conditions/index.d.ts.map +1 -1
  17. package/dist/diagnoses/DiagnosesTable.d.ts.map +1 -1
  18. package/dist/{index-DnRlH7sS.js → index-CZm_w54A.js} +12927 -12897
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +26 -25
  22. package/dist/medications/MedicationsTable.d.ts.map +1 -1
  23. package/package.json +1 -1
  24. package/dist/diagnoses/useDiagnoses.d.ts +0 -14
  25. package/dist/diagnoses/useDiagnoses.d.ts.map +0 -1
  26. package/dist/hooks/useActivePractitioner.d.ts +0 -15
  27. package/dist/hooks/useActivePractitioner.d.ts.map +0 -1
  28. package/dist/medications/useMedicationRequest.d.ts +0 -14
  29. 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, conditionsQueryKeys } from './conditions';
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
@@ -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,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACpE,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,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AAC;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 { m as s, n as t, D as o, G as r, r as n, p as g, N as l, w as d, P as c, v as P, q as v, S as T, U as b, V as W, o as u, W as f, T as y, F as m, I as p, Q as S, E as U, X as A, y as C, j as D, u as I, B as N } from "./index-DnRlH7sS.js";
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
- s as AllergiesTable,
5
- t as ConditionsTable,
6
- o as DiagnosesTable,
7
- r as GenericServiceRequestTable,
8
- n as LabInvestigation,
9
- g as MedicationsTable,
10
- l as NotificationProvider,
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
- c as PatientDetails,
13
- P as PatientProgramsTable,
14
- v as RadiologyInvestigationTable,
15
- T as SearchPatient,
16
- b as UserPrivilegeProvider,
17
- W as VitalFlowSheet,
18
- u as conditionsQueryKeys,
19
- f as getAllWidgetConfigs,
20
- y as getAllWidgetTypes,
21
- m as getWidget,
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
- U as registerWidget,
25
- A as resetWidgetRegistry,
26
- C as useActivePractitioner,
27
- D as useNotification,
28
- I as usePatientUUID,
29
- N as useUserPrivilege
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":"AAyBA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAmDhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuP3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.110",
3
+ "version": "0.0.1-dev.112",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -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"}