@bahmni/widgets 0.0.1-dev.246 → 0.0.1-dev.247

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a2 as s, a0 as t, A as o, _ as r, r as n, Y as g, v as l, D as P, G as v, J as d, L as c, w as T, N as b, Q as A, h as p, P as C, I, K as f, E as m, R as u, S as R, X as S, F as W, a4 as D, a3 as N, aa as U, a9 as y, a6 as h, a7 as L, a8 as x, a5 as E, ab as G, a1 as H, U as O, a as _, u as w, T as F } from "./index-B8Sjdo3W.js";
1
+ import { a2 as s, a0 as t, A as o, _ as r, v as n, Z as g, w as l, D as P, I as v, N as d, L as c, M as T, T as b, U as A, h as p, P as C, K as I, Q as f, G as m, R as u, S as R, Y as W, V as S, a4 as D, a3 as N, aa as U, a9 as y, a6 as h, a7 as L, a8 as x, a5 as G, ab as H, a1 as O, X as V, a as _, u as w, W as E } from "./index-B9vjxIp3.js";
2
2
  import "react";
3
3
  export {
4
4
  s as ActivePractitionerContext,
@@ -22,8 +22,8 @@ export {
22
22
  m as RadiologyInvestigationReport,
23
23
  u as RadiologyInvestigationTable,
24
24
  R as SearchPatient,
25
- S as UserPrivilegeProvider,
26
- W as VitalFlowSheet,
25
+ W as UserPrivilegeProvider,
26
+ S as VitalFlowSheet,
27
27
  D as createConfigHook,
28
28
  N as createConfigProvider,
29
29
  U as getAllWidgetConfigs,
@@ -31,11 +31,11 @@ export {
31
31
  h as getWidget,
32
32
  L as getWidgetConfig,
33
33
  x as hasWidget,
34
- E as registerWidget,
35
- G as resetWidgetRegistry,
36
- H as useActivePractitioner,
37
- O as useHasPrivilege,
34
+ G as registerWidget,
35
+ H as resetWidgetRegistry,
36
+ O as useActivePractitioner,
37
+ V as useHasPrivilege,
38
38
  _ as useNotification,
39
39
  w as usePatientUUID,
40
- F as useUserPrivilege
40
+ E as useUserPrivilege
41
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PatientDetails.d.ts","sourceRoot":"","sources":["../../src/patientDetails/PatientDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EA6E3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"PatientDetails.d.ts","sourceRoot":"","sources":["../../src/patientDetails/PatientDetails.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EA0E3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FormattedPatientData } from '@bahmni/services';
2
+ export declare const mockFullPatient: FormattedPatientData;
3
+ export declare const mockMinimalPatient: FormattedPatientData;
4
+ //# sourceMappingURL=patientDetailsMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patientDetailsMocks.d.ts","sourceRoot":"","sources":["../../../../src/patientDetails/__tests__/__mocks__/patientDetailsMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,eAAe,EAAE,oBAW7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,oBAQhC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface PatientDetailsViewModel {
2
+ fullName: string;
3
+ gender: string;
4
+ formattedIdentifiers: string;
5
+ ageDetails: string;
6
+ }
7
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/patientDetails/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ import { FormattedPatientData } from '@bahmni/services';
2
+ import { PatientDetailsViewModel } from './models';
3
+ export declare function createPatientDetailsViewModel(patient: FormattedPatientData, t: (key: string) => string): PatientDetailsViewModel;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/patientDetails/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAGrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAsBnD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,uBAAuB,CAOzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.246",
3
+ "version": "0.0.1-dev.247",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,14 +0,0 @@
1
- import { FormattedPatientData } from '@bahmni/services';
2
- interface UsePatientResult {
3
- patient: FormattedPatientData | null;
4
- loading: boolean;
5
- error: Error | null;
6
- refetch: () => void;
7
- }
8
- /**
9
- * Custom hook to fetch and manage patient data
10
- * @returns Object containing patient, loading state, error state, and refetch function
11
- */
12
- export declare const usePatient: () => UsePatientResult;
13
- export {};
14
- //# sourceMappingURL=usePatient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePatient.d.ts","sourceRoot":"","sources":["../../src/patientDetails/usePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAGrB,MAAM,kBAAkB,CAAC;AAI1B,UAAU,gBAAgB;IACxB,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAO,gBA8B7B,CAAC"}