@bahmni/clinical-app 0.0.1-dev.398 → 0.0.1-dev.399

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.
@@ -1,16 +1,16 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, e as u, bI as b, bS as f, bT as p, bU as x, aG as _, bO as N } from "./index-KKjsUkCr.js";
2
+ import { u as g, e as u, bJ as b, bT as f, bU as p, bV as x, aH as _, bP as N } from "./index-50RT9SKg.js";
3
3
  import { lazy as h, useMemo as t, Suspense as C } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-A1_aCTdq.js";
5
+ import { u as E } from "./hook-B3kmrD8y.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-D0FIR-wI.js")
8
+ () => import("./index-KTpoARB4.js")
9
9
  )
10
- }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", O = "index-module_message__Ib5Iw", l = {
10
+ }, v = "index-module_page__16xxw", P = "index-module_loading__wNI-4", H = "index-module_message__Ib5Iw", l = {
11
11
  page: v,
12
- loading: I,
13
- message: O
12
+ loading: P,
13
+ message: H
14
14
  }, T = () => {
15
15
  const { t: a } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
16
16
  () => [
@@ -1,12 +1,12 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cJ as l, cK as o, cL as c, b8 as m, b9 as g, cM as h, cN as p, cO as b, aG as u } from "./index-KKjsUkCr.js";
2
+ import { u as r, cK as l, cL as o, cM as c, b9 as m, ba as g, cN as h, cO as p, cP as b, aH as u } from "./index-50RT9SKg.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ = "index-module_panel__8VJh2", s = {
6
6
  loading: y,
7
7
  message: E,
8
8
  panel: $
9
- }, w = ({ extensions: i }) => {
9
+ }, T = ({ extensions: i }) => {
10
10
  const { t: n } = r();
11
11
  return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
12
12
  /* @__PURE__ */ e(
@@ -77,5 +77,5 @@ const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ =
77
77
  ] });
78
78
  };
79
79
  export {
80
- w as default
80
+ T as default
81
81
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cP as c } from "./index-KKjsUkCr.js";
1
+ import { cQ as c } from "./index-50RT9SKg.js";
2
2
  export {
3
3
  c as ClinicalApp
4
4
  };
@@ -6,14 +6,5 @@ export interface StopReason {
6
6
  display: string;
7
7
  }
8
8
  export declare function fetchStopReasons(conceptSetUuid: string): Promise<StopReason[]>;
9
- interface StopMedicationEntryParams {
10
- medicationRequestId: string;
11
- patientUuid: string;
12
- reason: StopReason;
13
- effectiveDate: Date;
14
- note?: string;
15
- ctx: EncounterContext;
16
- }
17
- export declare function createStopMedicationEntry({ medicationRequestId, patientUuid, reason, effectiveDate, note, ctx, }: StopMedicationEntryParams): BundleEntry;
18
- export {};
9
+ export declare function createStopMedicationEntry(ctx: EncounterContext): BundleEntry[];
19
10
  //# sourceMappingURL=stopMedicationService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stopMedicationService.d.ts","sourceRoot":"","sources":["../../src/services/stopMedicationService.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAuC,MAAM,SAAS,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE,eAAO,MAAM,wCAAwC,6DACO,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAKD,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,EAAE,CAAC,CA2BvB;AAED,UAAU,yBAAyB;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,EAAE,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,gBAAgB,CAAC;CACvB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,mBAAmB,EACnB,WAAW,EACX,MAAM,EACN,aAAa,EACb,IAAI,EACJ,GAAG,GACJ,EAAE,yBAAyB,GAAG,WAAW,CA4CzC"}
1
+ {"version":3,"file":"stopMedicationService.d.ts","sourceRoot":"","sources":["../../src/services/stopMedicationService.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAuC,MAAM,SAAS,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,eAAO,MAAM,wCAAwC,6DACO,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAKD,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,EAAE,CAAC,CA2BvB;AAED,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,gBAAgB,GACpB,WAAW,EAAE,CAsEf"}
@@ -8,12 +8,14 @@ export interface StopMedicationState {
8
8
  medicationToStop: MedicationRequest | null;
9
9
  fieldConfig: StopMedicationConfig;
10
10
  errors: Record<string, string>;
11
+ inputControlKey: string;
11
12
  setStopDate: (date: Date) => void;
12
13
  setStopReason: (reason: StopReason | null) => void;
13
14
  setNote: (note: string) => void;
14
15
  setMedicationToStop: (medication: MedicationRequest | null) => void;
15
16
  setFieldConfig: (config: StopMedicationConfig) => void;
16
- validate: (isCancelVaccination?: boolean) => boolean;
17
+ setInputControlKey: (key: string) => void;
18
+ validate: () => boolean;
17
19
  hasData: () => boolean;
18
20
  reset: () => void;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stopMedicationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/stopMedicationsStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE/B,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mBAAmB,EAAE,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,cAAc,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,mBAAmB,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACrD,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAQD,eAAO,MAAM,sBAAsB,kFA2GlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"stopMedicationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/stopMedicationsStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IAExB,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mBAAmB,EAAE,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,cAAc,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAQD,eAAO,MAAM,sBAAsB,kFAmHlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/clinical-app",
3
- "version": "0.0.1-dev.398",
3
+ "version": "0.0.1-dev.399",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",