@bahmni/registration-app 0.0.1-dev.292 → 0.0.1-dev.294
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/{DocumentsTable-CfVupTB9-BI5DZPta.js → DocumentsTable-C4oMzxsp-hePnb_sm.js} +1 -1
- package/dist/{FormsTable-CoYEb-r4-D_laPO5K.js → FormsTable-kg59GYSD-CH6_eJEr.js} +12 -12
- package/dist/{LNWAZHJI-DcVw2lCk.js → LNWAZHJI-BQMu5KV7.js} +2 -2
- package/dist/{MWZ6AO7Z-CFqSjETG.js → MWZ6AO7Z-C8nCymGc.js} +2 -2
- package/dist/{Observations-CXe_EFqX-DRFgO0Wo.js → Observations-CcNBEef4-CrrXpJtJ.js} +8 -8
- package/dist/{YPM2AS64-CRn3uW_E.js → YPM2AS64-cWBzmGHx.js} +1 -1
- package/dist/hooks/useCreatePatient.d.ts.map +1 -1
- package/dist/hooks/useVisit.d.ts.map +1 -1
- package/dist/{index-znR3yci7.js → index-BrtgxmEZ.js} +30574 -30382
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/registrationConfig/models.d.ts +1 -0
- package/dist/providers/registrationConfig/models.d.ts.map +1 -1
- package/dist/providers/registrationConfig/schema.json.d.ts +4 -0
- package/dist/services/registrationEncounterService.d.ts +21 -0
- package/dist/services/registrationEncounterService.d.ts.map +1 -0
- package/dist/utils/fhirEncounterMapper.d.ts +10 -0
- package/dist/utils/fhirEncounterMapper.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-
|
|
2
|
+
import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-BrtgxmEZ.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as s, jsxs as X, Fragment as
|
|
2
|
-
import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as
|
|
1
|
+
import { jsx as s, jsxs as X, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as U, O as ue, L as le, n as ce, q as fe, D as ye } from "./index-BrtgxmEZ.js";
|
|
3
3
|
import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as q, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
6
6
|
formsTableBody: pe,
|
|
7
7
|
customAccordianItem: ge
|
|
@@ -12,7 +12,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
12
12
|
encounterUuids: n,
|
|
13
13
|
config: H
|
|
14
14
|
}) => {
|
|
15
|
-
const { t } = ee(), u = re(), [l, O] =
|
|
15
|
+
const { t } = ee(), u = re(), [l, O] = q(!1), [o, I] = q(null), {
|
|
16
16
|
numberOfVisits: w,
|
|
17
17
|
hideThumbnail: $ = !1,
|
|
18
18
|
forms: c
|
|
@@ -83,7 +83,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
83
83
|
{ key: "recordedBy", header: t("RECORDED_BY") }
|
|
84
84
|
],
|
|
85
85
|
[t]
|
|
86
|
-
),
|
|
86
|
+
), Y = d(
|
|
87
87
|
() => [
|
|
88
88
|
{ key: "recordedOn", sortable: !0 },
|
|
89
89
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -94,7 +94,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
94
94
|
(r, a) => {
|
|
95
95
|
const i = a.formName;
|
|
96
96
|
r[i] ??= [];
|
|
97
|
-
const h = a.providers.map((
|
|
97
|
+
const h = a.providers.map((J) => J.providerName).filter(Boolean).join(", ");
|
|
98
98
|
return r[i].push({
|
|
99
99
|
id: a.encounterUuid,
|
|
100
100
|
formName: a.formName,
|
|
@@ -116,7 +116,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
116
116
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
117
117
|
}, [v, t]), S = y((e) => {
|
|
118
118
|
I(e), O(!0);
|
|
119
|
-
}, []),
|
|
119
|
+
}, []), Z = y(() => {
|
|
120
120
|
O(!1), I(null);
|
|
121
121
|
}, []), C = y(
|
|
122
122
|
(e, r) => {
|
|
@@ -131,9 +131,9 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
131
131
|
},
|
|
132
132
|
[S]
|
|
133
133
|
);
|
|
134
|
-
return /* @__PURE__ */ X(
|
|
134
|
+
return /* @__PURE__ */ X(W, { children: [
|
|
135
135
|
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: F || _ || M.length === 0 || L ? /* @__PURE__ */ s(
|
|
136
|
-
|
|
136
|
+
U,
|
|
137
137
|
{
|
|
138
138
|
headers: E,
|
|
139
139
|
ariaLabel: t("FORMS_HEADING"),
|
|
@@ -155,14 +155,14 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
155
155
|
testId: `accordian-title-${a}`,
|
|
156
156
|
open: r === 0,
|
|
157
157
|
children: /* @__PURE__ */ s(
|
|
158
|
-
|
|
158
|
+
U,
|
|
159
159
|
{
|
|
160
160
|
headers: E,
|
|
161
161
|
ariaLabel: t("FORMS_HEADING"),
|
|
162
162
|
rows: i,
|
|
163
163
|
loading: !1,
|
|
164
164
|
errorStateMessage: "",
|
|
165
|
-
sortable:
|
|
165
|
+
sortable: Y,
|
|
166
166
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
167
167
|
renderCell: C,
|
|
168
168
|
className: A.formsTableBody,
|
|
@@ -179,7 +179,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
179
179
|
id: "modalIdForActionAreaLayout",
|
|
180
180
|
portalId: "main-display-area",
|
|
181
181
|
open: l,
|
|
182
|
-
onRequestClose:
|
|
182
|
+
onRequestClose: Z,
|
|
183
183
|
modalHeading: o.formName,
|
|
184
184
|
modalLabel: `${o.recordedOn} | ${o.recordedBy}`,
|
|
185
185
|
passiveModal: !0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { o as p, p as d, r as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-cWBzmGHx.js";
|
|
2
|
+
import { o as p, p as d, r as e } from "./index-BrtgxmEZ.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -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-
|
|
2
|
-
import { o as v, p as C, r as e } from "./index-
|
|
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-cWBzmGHx.js";
|
|
2
|
+
import { o as v, p as C, r as e } from "./index-BrtgxmEZ.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as
|
|
2
|
+
import { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as Q, K as x, z as G, c as M, j as P, f as H, U as W, g as J, i as Y, H as X, l as Z, N as ee } from "./index-BrtgxmEZ.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const D = (a, n, d, l, b, r) => {
|
|
@@ -158,13 +158,13 @@ const D = (a, n, d, l, b, r) => {
|
|
|
158
158
|
}, [T]);
|
|
159
159
|
const O = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e = z(c), h =
|
|
162
|
-
return
|
|
161
|
+
const e = z(c), h = Q(e);
|
|
162
|
+
return x(h);
|
|
163
163
|
}, [c]), F = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null,
|
|
167
|
+
], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, K = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = O.length > 0 && !f && !_, R = n.titleTranslationKey, v = R ? o(R) : "";
|
|
168
168
|
return /* @__PURE__ */ N(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -174,7 +174,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: R ? `observations-title-${v}` : "observations-title",
|
|
@@ -183,7 +183,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
C ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
189
|
groupedData: O,
|
|
@@ -191,14 +191,14 @@ const D = (a, n, d, l, b, r) => {
|
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
M,
|
|
195
195
|
{
|
|
196
196
|
headers: F,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
199
|
loading: f,
|
|
200
200
|
errorStateMessage: A,
|
|
201
|
-
emptyStateMessage:
|
|
201
|
+
emptyStateMessage: K,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as we, t as z, x as xt, y as B, p as q, r as y, P as Ro, A as ye, B as R, C as _, E as k, F as N, G as A, J as bs, M as ir, Q as $e, T as G, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-
|
|
1
|
+
import { s as we, t as z, x as xt, y as B, p as q, r as y, P as Ro, A as ye, B as R, C as _, E as k, F as N, G as A, J as bs, M as ir, Q as $e, T as G, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BrtgxmEZ.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":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,cAAc,EAMf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,cAAc,EAMf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAO3B,UAAU,qBAAqB;IAC7B,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACnC;AAYD,eAAO,MAAM,gBAAgB,yGAyG5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisit.d.ts","sourceRoot":"","sources":["../../src/hooks/useVisit.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useVisit.d.ts","sourceRoot":"","sources":["../../src/hooks/useVisit.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,aAAa;;;CAYzB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc,MAAM;;;CAUlD,CAAC;AAEF,eAAO,MAAM,cAAc;+BAQe,MAAM,aAAa,SAAS;CA+CrE,CAAC"}
|