@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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ae as o, ac as r, G as n, ab as g, H as c, f as l, a4 as d, ak as P, K as m, z as v, L as u, D as T, A, aa as b, Z as C, a2 as p, S, av as f, ax as I, ay as W, M as D, a6 as L, a7 as R, O as U, E as h, a1 as y, a3 as N, Q as E, N as x, U as G, a0 as O, at as H, as as _, a9 as V, V as k, aj as M, ag as q, af as w, d as z, aq as B, ap as F, ai as j, am as K, an as Q, ao as Z, ah as J, al as X, B 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-BuzazPX_.js";
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
- b as GET_PATIENT_PHOTO_PRIVILEGE,
20
- C as GenericServiceRequestTable,
19
+ C as GET_PATIENT_PHOTO_PRIVILEGE,
20
+ b as GenericServiceRequestTable,
21
21
  p as ImmunizationHistory,
22
- S as LabInvestigation,
23
- f as LocationContext,
24
- I as LocationProvider,
22
+ I as LabInvestigation,
23
+ S as LocationContext,
24
+ f as LocationProvider,
25
25
  W as LocationSelector,
26
- D as MedicationsTable,
27
- L as NotificationProvider,
28
- R as NotificationServiceComponent,
29
- U as ObservationsRenderer,
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
- H as UserActionProvider,
38
- _ as UserGlobalAction,
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
- K as getWidget,
49
- Q as getWidgetConfig,
48
+ J as getWidget,
49
+ K as getWidgetConfig,
50
50
  Z as hasWidget,
51
- J as registerSearchWidget,
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":"AAQA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAShD;;GAEG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqM/C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
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,2 +1,3 @@
1
1
  export declare const KNOWN_FIELDS: string[];
2
+ export declare const EPISODE_OF_CARE_FIELDS: string[];
2
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAMhC,CAAC"}
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,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;CACpD;AAED,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/patientPrograms/model.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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;CAC7C;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
@@ -1,9 +1,10 @@
1
- import { PatientProgramsResponse } from '@bahmni/services';
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 function createPatientProgramViewModal(programs: PatientProgramsResponse, programAttributes: string[]): PatientProgramViewModel[];
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,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAE1B,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,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,uBAAuB,EACjC,iBAAiB,EAAE,MAAM,EAAE,GAC1B,uBAAuB,EAAE,CAyB3B"}
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":"AAqBA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAOhE,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,kCACjB,CAAC;AAUrC,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,CAkPjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
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,3 +1,4 @@
1
1
  export declare const KNOWN_FIELDS: string[];
2
+ export declare const EPISODE_OF_CARE_FIELDS: string[];
2
3
  export declare const EDIT_PATIENT_PROGRAMS_PRIVILEGE = "Edit Patient Programs";
3
4
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/programDetails/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAMhC,CAAC;AAEF,eAAO,MAAM,+BAA+B,0BAA0B,CAAC"}
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,CA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 +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;AAE1B,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,GAC1B,uBAAuB,CAyBzB"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.375",
3
+ "version": "0.0.1-dev.376",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",