@bahmni/clinical-app 0.0.1-dev.108 → 0.0.1-dev.109

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 (33) hide show
  1. package/dist/{FormsTable-BhgvFijg-DpVuvYKa.js → FormsTable-BanYzo5c-KsdVVSMe.js} +39 -39
  2. package/dist/{LNWAZHJI-CSzbmhBu.js → LNWAZHJI-De-LKNGb.js} +6 -6
  3. package/dist/{MWZ6AO7Z-BHBRGSOE.js → MWZ6AO7Z-DYIVGZga.js} +4 -4
  4. package/dist/{YPM2AS64--kUlzXUl.js → YPM2AS64-CIVqaRmV.js} +1 -1
  5. package/dist/components/consultationPad/ConsultationPad.d.ts.map +1 -1
  6. package/dist/components/forms/medications/MedicationsForm.d.ts.map +1 -1
  7. package/dist/components/forms/medications/SelectedMedicationItem.d.ts +1 -0
  8. package/dist/components/forms/medications/SelectedMedicationItem.d.ts.map +1 -1
  9. package/dist/components/forms/vaccinations/SelectedVaccinationItem.d.ts +23 -0
  10. package/dist/components/forms/vaccinations/SelectedVaccinationItem.d.ts.map +1 -0
  11. package/dist/components/forms/vaccinations/VaccinationForm.d.ts +10 -0
  12. package/dist/components/forms/vaccinations/VaccinationForm.d.ts.map +1 -0
  13. package/dist/constants/app.d.ts +0 -2
  14. package/dist/constants/app.d.ts.map +1 -1
  15. package/dist/hooks/useMedicationConfig.d.ts.map +1 -1
  16. package/dist/hooks/useMedicationSearch.d.ts.map +1 -1
  17. package/dist/{index-jQa2f6J7.js → index-BK9tPWzE.js} +19429 -18620
  18. package/dist/index.css +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/locales/locale_en.json +14 -1
  21. package/dist/locales/locale_es.json +14 -1
  22. package/dist/models/medication.d.ts +1 -0
  23. package/dist/models/medication.d.ts.map +1 -1
  24. package/dist/models/medicationConfig.d.ts +1 -29
  25. package/dist/models/medicationConfig.d.ts.map +1 -1
  26. package/dist/services/medicationService.d.ts +1 -3
  27. package/dist/services/medicationService.d.ts.map +1 -1
  28. package/dist/stores/medicationsStore.d.ts +1 -0
  29. package/dist/stores/medicationsStore.d.ts.map +1 -1
  30. package/dist/stores/vaccinationsStore.d.ts +28 -0
  31. package/dist/stores/vaccinationsStore.d.ts.map +1 -0
  32. package/dist/utils/fhir/medicationRequestResourceCreator.d.ts.map +1 -1
  33. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, jsxs as p, Fragment as z } from "react/jsx-runtime";
2
- import { u as X, C as Y, _ as W, a as f, b as Z, V as ee, Q as $, A as re, c as ae, l as oe, E as ne, t as I, G as te, N, e as se, X as de, d as ie, J as me } from "./index-jQa2f6J7.js";
2
+ import { u as X, C as Y, F as W, a as f, b as Z, V as ee, Q as G, _ as re, c as ae, d as oe, E as ne, t as I, X as te, N, r as se, e as de, f as ie, g as me } from "./index-BK9tPWzE.js";
3
3
  import { useState as U, useMemo as b, useCallback as g } from "react";
4
4
  import { createPortal as le } from "react-dom";
5
- const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Ae = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ce = "_memberValue_1pd36_94", Le = "_abnormalValue_1pd36_102", Oe = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
5
+ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Me = "_memberRow_1pd36_81", Ae = "_memberLabel_1pd36_86", Ce = "_memberValue_1pd36_94", Le = "_abnormalValue_1pd36_102", Oe = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Fe = "_nestedGroup_1pd36_125", Te = "_nestedGroupLabel_1pd36_132", De = "_nestedGroupMembers_1pd36_141", r = {
6
6
  formsTableBody: ce,
7
7
  customAccordianItem: ue,
8
8
  formContent: pe,
@@ -14,15 +14,15 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
14
14
  rowLabel: he,
15
15
  rowValue: ye,
16
16
  groupMembers: ve,
17
- memberRow: Ae,
18
- memberLabel: Me,
17
+ memberRow: Me,
18
+ memberLabel: Ae,
19
19
  memberValue: Ce,
20
20
  abnormalValue: Le,
21
21
  commentSection: Oe,
22
22
  commentText: Re,
23
- nestedGroup: Te,
24
- nestedGroupLabel: De,
25
- nestedGroupMembers: Fe
23
+ nestedGroup: Fe,
24
+ nestedGroupLabel: Te,
25
+ nestedGroupMembers: De
26
26
  }, Ee = "ABNORMAL", q = (e) => {
27
27
  const i = e.concept?.units, m = e.concept?.lowNormal, a = e.concept?.hiNormal, l = m != null, c = a != null, u = l && c ? ` (${m} - ${a})` : l ? ` (>${m})` : c ? ` (<${a})` : "", t = e.interpretation && e.interpretation.toUpperCase() === Ee;
28
28
  return { units: i, rangeString: u, isAbnormal: t };
@@ -86,7 +86,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
86
86
  ]
87
87
  }
88
88
  );
89
- }, Ge = ({
89
+ }, we = ({
90
90
  observation: e,
91
91
  index: i
92
92
  }) => {
@@ -150,7 +150,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
150
150
  encounterUuids: i,
151
151
  config: m
152
152
  }) => {
153
- const { t: a } = X(), l = Y(), [c, u] = U(!1), [t, M] = U(null), k = m?.numberOfVisits, C = W(
153
+ const { t: a } = X(), l = Y(), [c, u] = U(!1), [t, A] = U(null), k = m?.numberOfVisits, C = W(
154
154
  e,
155
155
  i
156
156
  ), {
@@ -164,19 +164,19 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
164
164
  enabled: !!l && !C
165
165
  }), R = b(() => !i || i.length === 0 ? h : h.filter(
166
166
  (n) => i.includes(n.encounterUuid)
167
- ), [h, i]), { data: T = [] } = f({
167
+ ), [h, i]), { data: F = [] } = f({
168
168
  queryKey: ["observationForms"],
169
169
  queryFn: de
170
- }), D = g(
171
- (n) => T.find((s) => s.name === n)?.uuid,
172
- [T]
170
+ }), T = g(
171
+ (n) => F.find((s) => s.name === n)?.uuid,
172
+ [F]
173
173
  ), y = b(() => {
174
174
  if (t)
175
- return D(t.formName);
176
- }, [t, D]), {
177
- data: we,
175
+ return T(t.formName);
176
+ }, [t, T]), {
177
+ data: Be,
178
178
  isLoading: j,
179
- error: F
179
+ error: D
180
180
  } = f({
181
181
  queryKey: ["formMetadata", y],
182
182
  queryFn: () => ie(y),
@@ -189,9 +189,9 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
189
189
  queryKey: ["formsEncounter", t?.encounterUuid],
190
190
  queryFn: () => me(t.encounterUuid, !0),
191
191
  enabled: !!t?.encounterUuid && c
192
- }), G = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
192
+ }), w = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
193
193
  (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(t.formName)
194
- ), [v?.observations, t?.formName]), w = b(
194
+ ), [v?.observations, t?.formName]), B = b(
195
195
  () => [
196
196
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
197
197
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
@@ -203,17 +203,17 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
203
203
  { key: "recordedBy", sortable: !0 }
204
204
  ],
205
205
  []
206
- ), B = b(() => {
206
+ ), V = b(() => {
207
207
  const n = R.reduce(
208
208
  (s, d) => {
209
209
  const _ = d.formName;
210
210
  s[_] ??= [];
211
- const A = d.providers.map((J) => J.providerName).filter(Boolean).join(", ");
211
+ const M = d.providers.map((J) => J.providerName).filter(Boolean).join(", ");
212
212
  return s[_].push({
213
213
  id: d.encounterUuid,
214
214
  formName: d.formName,
215
215
  recordedOn: Z(d.encounterDateTime, a, te).formattedResult,
216
- recordedBy: A ?? "--",
216
+ recordedBy: M ?? "--",
217
217
  encounterDateTime: d.encounterDateTime,
218
218
  encounterUuid: d.encounterUuid
219
219
  }), s;
@@ -224,42 +224,42 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
224
224
  ([s, d]) => ({
225
225
  formName: s,
226
226
  records: d.sort(
227
- (_, A) => A.encounterDateTime - _.encounterDateTime
227
+ (_, M) => M.encounterDateTime - _.encounterDateTime
228
228
  )
229
229
  })
230
230
  ).sort((s, d) => s.formName.localeCompare(d.formName));
231
- }, [R, a]), V = g((n) => {
232
- M(n), u(!0);
231
+ }, [R, a]), S = g((n) => {
232
+ A(n), u(!0);
233
233
  }, []), Q = g(() => {
234
- u(!1), M(null);
235
- }, []), S = g(
234
+ u(!1), A(null);
235
+ }, []), $ = g(
236
236
  (n, s) => {
237
237
  switch (s) {
238
238
  case "recordedOn":
239
- return /* @__PURE__ */ o(ee, { onClick: () => V(n), children: n.recordedOn });
239
+ return /* @__PURE__ */ o(ee, { onClick: () => S(n), children: n.recordedOn });
240
240
  case "recordedBy":
241
241
  return n.recordedBy;
242
242
  default:
243
243
  return null;
244
244
  }
245
245
  },
246
- [V]
246
+ [S]
247
247
  );
248
248
  return /* @__PURE__ */ p(z, { children: [
249
- /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: L || O || B.length === 0 || C ? /* @__PURE__ */ o(
250
- $,
249
+ /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: L || O || V.length === 0 || C ? /* @__PURE__ */ o(
250
+ G,
251
251
  {
252
- headers: w,
252
+ headers: B,
253
253
  ariaLabel: a("FORMS_HEADING"),
254
254
  rows: [],
255
255
  loading: L,
256
256
  errorStateMessage: O ? H?.message : void 0,
257
257
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
258
- renderCell: S,
258
+ renderCell: $,
259
259
  className: r.formsTableBody,
260
260
  "data-testid": "sortable-data-table"
261
261
  }
262
- ) : /* @__PURE__ */ o(re, { align: "start", children: B.map((n, s) => {
262
+ ) : /* @__PURE__ */ o(re, { align: "start", children: V.map((n, s) => {
263
263
  const { formName: d, records: _ } = n;
264
264
  return /* @__PURE__ */ o(
265
265
  ae,
@@ -269,16 +269,16 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
269
269
  testId: `accordian-title-${d}`,
270
270
  open: s === 0,
271
271
  children: /* @__PURE__ */ o(
272
- $,
272
+ G,
273
273
  {
274
- headers: w,
274
+ headers: B,
275
275
  ariaLabel: a("FORMS_HEADING"),
276
276
  rows: _,
277
277
  loading: !1,
278
278
  errorStateMessage: "",
279
279
  sortable: P,
280
280
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
281
- renderCell: S,
281
+ renderCell: $,
282
282
  className: r.formsTableBody,
283
283
  "data-testid": "forms-data-table"
284
284
  }
@@ -299,8 +299,8 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
299
299
  passiveModal: !0,
300
300
  size: "md",
301
301
  testId: "form-details-modal",
302
- children: /* @__PURE__ */ o("div", { className: r.formContent, children: j || K ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: I(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ o("div", { children: I(E).message ?? a("ERROR_FETCHING_FORM_DATA") }) : G.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: G.map((n, s) => /* @__PURE__ */ o(
303
- Ge,
302
+ children: /* @__PURE__ */ o("div", { className: r.formContent, children: j || K ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : D ? /* @__PURE__ */ o("div", { children: I(D).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ o("div", { children: I(E).message ?? a("ERROR_FETCHING_FORM_DATA") }) : w.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: w.map((n, s) => /* @__PURE__ */ o(
303
+ we,
304
304
  {
305
305
  observation: n,
306
306
  index: s
@@ -1,23 +1,23 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64--kUlzXUl.js";
2
- import { g as f, f as d, h as e } from "./index-jQa2f6J7.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CIVqaRmV.js";
2
+ import { h as d, i as f, j as e } from "./index-BK9tPWzE.js";
3
3
  var h = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), n = f(), s = d(() => {
6
+ }), n = d(), s = f(() => {
7
7
  const o = r.theme_preference || l;
8
8
  return o !== "system" ? o : n();
9
9
  });
10
- return e(i.Provider, {
10
+ return e(v.Provider, {
11
11
  value: a,
12
12
  get children() {
13
13
  return e(m, {
14
14
  localStore: r,
15
15
  setLocalStore: t,
16
16
  get children() {
17
- return e(u.Provider, {
17
+ return e(i.Provider, {
18
18
  value: s,
19
19
  get children() {
20
- return e(v, {
20
+ return e(u, {
21
21
  localStore: r,
22
22
  setLocalStore: t
23
23
  });
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64--kUlzXUl.js";
2
- import { g as h, f as v, h as e } from "./index-jQa2f6J7.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CIVqaRmV.js";
2
+ import { h, i as v, j as e } from "./index-BK9tPWzE.js";
3
3
  var C = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -10,12 +10,12 @@ var C = (t) => {
10
10
  return e(d.Provider, {
11
11
  value: t,
12
12
  get children() {
13
- return e(u, {
13
+ return e(i, {
14
14
  disabled: !0,
15
15
  localStore: r,
16
16
  setLocalStore: o,
17
17
  get children() {
18
- return e(i.Provider, {
18
+ return e(u.Provider, {
19
19
  value: l,
20
20
  get children() {
21
21
  return e(m, {
@@ -1,4 +1,4 @@
1
- import { i as we, j as z, o as xt, k as B, f as q, h as y, P as Ro, m as ye, S as R, n as _, p as k, q as N, r as A, s as bs, v as ir, w as $e, x as U, y as Hn, z as Vn, B as dt, D, F as xs, H as cn, I as Be, K as ws, L as qt, M as zt, O as $s, R as Cs, T as $n, U as Ss, W as Nr, Y as Bt, $ as zo, Z as ks, a0 as Es, a1 as j, a2 as Ur, a3 as Ms, a4 as Ds, a5 as sr, a6 as As, a7 as Ts, a8 as zn, a9 as Fs, aa as Is, ab as Z, ac as Ps, ad as Ls } from "./index-jQa2f6J7.js";
1
+ import { k as we, l as z, o as xt, m as B, i as q, j as y, P as Ro, n as ye, S as R, p as _, q as k, s as N, v as A, w as bs, x as ir, y as $e, z as U, A as Hn, B as Vn, D as dt, G as D, H as xs, I as cn, J as Be, K as ws, L as qt, M as zt, O as $s, R as Cs, T as $n, U as Ss, W as Nr, Y as Bt, $ as zo, Z as ks, a0 as Es, a1 as j, a2 as Ur, a3 as Ms, a4 as Ds, a5 as sr, a6 as As, a7 as Ts, a8 as zn, a9 as Fs, aa as Is, ab as Z, ac as Ps, ad as Ls } from "./index-BK9tPWzE.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAuCzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2XnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAyCzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiZnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAsK3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAwK3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
@@ -17,6 +17,7 @@ export interface SelectedMedicationItemProps {
17
17
  updateStartDate: (medicationId: string, date: Date) => void;
18
18
  updateDispenseQuantity: (medicationId: string, quantity: number) => void;
19
19
  updateDispenseUnit: (medicationId: string, unit: Concept) => void;
20
+ updateNote: (medicationId: string, note: string) => void;
20
21
  }
21
22
  declare const SelectedMedicationItem: React.FC<SelectedMedicationItemProps>;
22
23
  export default SelectedMedicationItem;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectedMedicationItem.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/SelectedMedicationItem.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAS/E,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,kBAAkB,GAAG,IAAI,KAC5B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5D,sBAAsB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,kBAAkB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACnE;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAoX/D,CAAC;AAIJ,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"SelectedMedicationItem.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/SelectedMedicationItem.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAS/E,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,kBAAkB,GAAG,IAAI,KAC5B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5D,sBAAsB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,kBAAkB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClE,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAka/D,CAAC;AAIJ,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { Concept } from '../../../models/encounterConcepts';
3
+ import { DurationUnitOption, MedicationInputEntry } from '../../../models/medication';
4
+ import { Frequency, MedicationConfig } from '../../../models/medicationConfig';
5
+ export interface SelectedVaccinationItemProps {
6
+ vaccinationInputEntry: MedicationInputEntry;
7
+ medicationConfig: MedicationConfig;
8
+ updateDosage: (vaccinationId: string, dosage: number) => void;
9
+ updateDosageUnit: (vaccinationId: string, unit: Concept) => void;
10
+ updateFrequency: (vaccinationId: string, frequency: Frequency | null) => void;
11
+ updateRoute: (vaccinationId: string, route: Concept) => void;
12
+ updateDuration: (vaccinationId: string, duration: number) => void;
13
+ updateDurationUnit: (vaccinationId: string, unit: DurationUnitOption | null) => void;
14
+ updateInstruction: (vaccinationId: string, instruction: Concept) => void;
15
+ updateisSTAT: (vaccinationId: string, isSTAT: boolean) => void;
16
+ updateStartDate: (vaccinationId: string, date: Date) => void;
17
+ updateDispenseQuantity: (vaccinationId: string, quantity: number) => void;
18
+ updateDispenseUnit: (vaccinationId: string, unit: Concept) => void;
19
+ updateNote: (vaccinationId: string, note: string) => void;
20
+ }
21
+ declare const SelectedVaccinationItem: React.FC<SelectedVaccinationItemProps>;
22
+ export default SelectedVaccinationItem;
23
+ //# sourceMappingURL=SelectedVaccinationItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectedVaccinationItem.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/vaccinations/SelectedVaccinationItem.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAS/E,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,EAAE,oBAAoB,CAAC;IAC5C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,gBAAgB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9E,WAAW,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,kBAAkB,GAAG,IAAI,KAC5B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/D,eAAe,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7D,sBAAsB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,kBAAkB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnE,UAAU,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAiZjE,CAAC;AAIJ,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * VaccinationForm component
4
+ *
5
+ * A component that displays a search interface for vaccinations and a list of selected vaccinations.
6
+ * It allows users to search for vaccinations, select them, and specify dosage, frequency, route, timing, and duration.
7
+ */
8
+ declare const VaccinationForm: React.FC;
9
+ export default VaccinationForm;
10
+ //# sourceMappingURL=VaccinationForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VaccinationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/vaccinations/VaccinationForm.tsx"],"names":[],"mappings":"AASA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAYzD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA8L3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
@@ -3,8 +3,6 @@ export declare const ENCOUNTER_CONCEPTS_URL: string;
3
3
  export declare const BAHMNI_USER_LOCATION_COOKIE_NAME = "bahmni.user.location";
4
4
  export declare const PROVIDER_RESOURCE_URL: (userUUID: string) => string;
5
5
  export declare const USER_RESOURCE_URL: (username: string) => string;
6
- export declare const MEDICATION_ORDERS_METADATA_URL: string;
7
- export declare const MEDICATIONS_SEARCH_URL: (searchTerm: string, count: number) => string;
8
6
  export declare const CONSULTATION_BUNDLE_URL: string;
9
7
  export declare const ENCOUNTER_SEARCH_URL: string;
10
8
  export declare const OBSERVATION_FORMS_URL: string;
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAClE,eAAO,MAAM,sBAAsB,QAEuC,CAAC;AAE3E,eAAO,MAAM,gCAAgC,yBAAyB,CAAC;AAEvE,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,WACyB,CAAC;AAEhF,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,WACuB,CAAC;AAE1E,eAAO,MAAM,8BAA8B,QACQ,CAAC;AAEpD,eAAO,MAAM,sBAAsB,GAAI,YAAY,MAAM,EAAE,OAAO,MAAM,WAEF,CAAC;AAEvE,eAAO,MAAM,uBAAuB,QAA0C,CAAC;AAC/E,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AACnE,eAAO,MAAM,qBAAqB,QACuB,CAAC;AAC1D,eAAO,MAAM,kBAAkB,aAAa,CAAC"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAClE,eAAO,MAAM,sBAAsB,QAEuC,CAAC;AAE3E,eAAO,MAAM,gCAAgC,yBAAyB,CAAC;AAEvE,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,WACyB,CAAC;AAEhF,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,WACuB,CAAC;AAE1E,eAAO,MAAM,uBAAuB,QAA0C,CAAC;AAC/E,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AACnE,eAAO,MAAM,qBAAqB,QACuB,CAAC;AAC1D,eAAO,MAAM,kBAAkB,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMedicationConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedicationConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,UAAU,yBAAyB;IACjC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,QAAO,yBAmCtC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"useMedicationConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedicationConfig.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,UAAU,yBAAyB;IACjC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAID,eAAO,MAAM,mBAAmB,QAAO,yBAmCtC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMedicationSearch.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedicationSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,UAAU,EAAE,MAAM,SAAS,CAAC;AAK7C,UAAU,sBAAsB;IAC9B,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,EAClB,cAAU,EACV,sBAAmB,KAClB,sBA+CF,CAAC"}
1
+ {"version":3,"file":"useMedicationSearch.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedicationSearch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMrC,UAAU,sBAAsB;IAC9B,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAID,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,EAClB,cAAU,EACV,sBAAmB,KAClB,sBAmCF,CAAC"}