@bahmni/clinical-app 0.0.1-dev.432 → 0.0.1-dev.434
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/{ConsultationPage-jbO0GQ5J.js → ConsultationPage-nX4qfFc2.js} +2679 -2679
- package/dist/{DocumentsTable-DM3a085C-DuNV4D1F.js → DocumentsTable-BQixFMr5-C4_iApAO.js} +52 -52
- package/dist/{FormsTable-DWtk8gJI-DYnAv6bN.js → FormsTable-BHzxx42h-Wyx6XBFG.js} +102 -102
- package/dist/{LNWAZHJI-DKMcBvNf.js → LNWAZHJI-BV4-VQtd.js} +2 -2
- package/dist/{MWZ6AO7Z-voFpnA4T.js → MWZ6AO7Z-BRIhbEPV.js} +2 -2
- package/dist/Observations-DzFwc3dW-CZDTwBaQ.js +246 -0
- package/dist/{YPM2AS64-ORfK9qm2.js → YPM2AS64-CWEFFQTS.js} +1 -1
- package/dist/{hook-CtOTSK4T.js → hook-BlCA0Nsj.js} +1 -1
- package/dist/{index-DPDLLGqw.js → index-C-03mlGl.js} +45745 -45310
- package/dist/{index-GS4561EE.js → index-CW2KLTDM.js} +9 -9
- package/dist/{index-DkUSQR8o.js → index-DBjlqkrQ.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +18 -0
- package/dist/locales/locale_es.json +18 -0
- package/dist/providers/clinicalConfig/schema.json.d.ts +1 -0
- package/package.json +1 -1
- package/dist/Observations-zsrk4ocW-DgMMdnaV.js +0 -246
package/dist/index.js
CHANGED
|
@@ -461,6 +461,7 @@
|
|
|
461
461
|
"NO_REPORT_DATA": "No report data available",
|
|
462
462
|
"NO_SERVICE_REQUESTS": "No Service requests recorded",
|
|
463
463
|
"NO_STOCK_BATCHES_AVAILABLE": "No stock batches available",
|
|
464
|
+
"NO_VISITS_FOR_PATIENT": "No Visits for this patient.",
|
|
464
465
|
"NO_VITAL_SIGNS_DATA": "No Vital signs data found",
|
|
465
466
|
"OBSERVATIONS_LOADING": "Loading Observations...",
|
|
466
467
|
"OBSERVATIONS_RECORDED_BY": "Recorded By {{provider}}",
|
|
@@ -501,6 +502,9 @@
|
|
|
501
502
|
"ERROR_PATIENT_NOT_FOUND": "Patient not found",
|
|
502
503
|
"PINNED_FORMS_INVALID_DATA": "Invalid pinned Forms data",
|
|
503
504
|
"PINNED_FORMS_USER_NOT_FOUND": "User not found",
|
|
505
|
+
"NO_ENCOUNTERS_FOUND": "No encounters found",
|
|
506
|
+
"PRINT_MODAL_FETCH_ENCOUNTERS_ERROR": "Unable to load encounters. Please try again.",
|
|
507
|
+
"PRINT_MODAL_LOADING_ENCOUNTERS": "Loading encounters…",
|
|
504
508
|
"PRINT_MODAL_PREPARING_DOCUMENT": "Preparing document…",
|
|
505
509
|
"PRINT_MORE_OPTIONS": "More print options",
|
|
506
510
|
"PROGRAMS_TABLE_ARIA_LABEL": "Programs table",
|
|
@@ -531,6 +535,7 @@
|
|
|
531
535
|
"REVOKED_STATUS": "Cancelled",
|
|
532
536
|
"SEARCHING": "Searching...",
|
|
533
537
|
"SEARCH_PATIENT_ID_PLACEHOLDER": "Search by Patient ID",
|
|
538
|
+
"SELECT_ENCOUNTER_FOR_PRESCRIPTION_PRINT": "Select encounter for prescription print",
|
|
534
539
|
"SELECT_ENCOUNTER_TYPE": "Select encounter type",
|
|
535
540
|
"SELECT_LOCATION": "Select location",
|
|
536
541
|
"SELECT_PRACTITIONER": "Select practitioner",
|
|
@@ -626,7 +631,20 @@
|
|
|
626
631
|
"VACCINATION_TOTAL_QUANTITY": "Total Quantity",
|
|
627
632
|
"VIEW_DATA": "View data",
|
|
628
633
|
"VIEWED_RADIOLOGY_RESULTS_MESSAGE": "Viewed radiology results",
|
|
634
|
+
"VIEW_IPD_DASHBOARD": "View IPD Dashboard",
|
|
635
|
+
"VISIT_DATE": "Visit Date",
|
|
636
|
+
"VISIT_DATE_RANGE": "{{start}} to {{end}}",
|
|
637
|
+
"VISIT_LOCATION": "Location",
|
|
638
|
+
"VISIT_STATUS": "Status",
|
|
639
|
+
"VISIT_STATUS_ACTIVE": "Active",
|
|
640
|
+
"VISIT_STATUS_INACTIVE": "Inactive",
|
|
641
|
+
"VISITS_TABLE_ARIA_LABEL": "Visits table",
|
|
629
642
|
"VISIT_TYPE": "Visit Type",
|
|
643
|
+
"VISIT_TYPE_EMERGENCY": "EMERGENCY",
|
|
644
|
+
"VISIT_TYPE_FOLLOW_UP": "Follow Up",
|
|
645
|
+
"VISIT_TYPE_IPD": "IPD",
|
|
646
|
+
"VISIT_TYPE_OPD": "OPD",
|
|
647
|
+
"VISIT_TYPE_SPECIAL_OPD": "Special OPD",
|
|
630
648
|
"VITAL_FLOW_SHEET_TABLE": "Vital Flow Sheet Table",
|
|
631
649
|
"VITAL_SIGN": "Vital Sign",
|
|
632
650
|
"VITAL_SIGNS_BLOOD_PRESSURE": "Blood Pressure",
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
"NO_REPORT_DATA": "No hay datos de informe disponibles",
|
|
464
464
|
"NO_SERVICE_REQUESTS": "No hay solicitudes de servicio registradas",
|
|
465
465
|
"NO_STOCK_BATCHES_AVAILABLE": "No hay lotes de stock disponibles",
|
|
466
|
+
"NO_VISITS_FOR_PATIENT": "No hay visitas para este paciente.",
|
|
466
467
|
"NO_VITAL_SIGNS_DATA": "No se encontraron datos de signos vitales",
|
|
467
468
|
"OBSERVATIONS_LOADING": "Cargando Observaciones...",
|
|
468
469
|
"OBSERVATIONS_RECORDED_BY": "Grabado Por {{provider}} ",
|
|
@@ -503,6 +504,9 @@
|
|
|
503
504
|
"ERROR_PATIENT_NOT_FOUND": "Paciente no encontrado",
|
|
504
505
|
"PINNED_FORMS_INVALID_DATA": "Datos de formularios anclados no válidos",
|
|
505
506
|
"PINNED_FORMS_USER_NOT_FOUND": "Usuario no encontrado",
|
|
507
|
+
"NO_ENCOUNTERS_FOUND": "No se encontraron encuentros",
|
|
508
|
+
"PRINT_MODAL_FETCH_ENCOUNTERS_ERROR": "No se pudieron cargar los encuentros. Inténtelo de nuevo.",
|
|
509
|
+
"PRINT_MODAL_LOADING_ENCOUNTERS": "Cargando encuentros…",
|
|
506
510
|
"PRINT_MODAL_PREPARING_DOCUMENT": "Preparando documento…",
|
|
507
511
|
"PRINT_MORE_OPTIONS": "Más opciones de impresión",
|
|
508
512
|
"PROGRAMS_TABLE_ARIA_LABEL": "Tabla de programas",
|
|
@@ -533,6 +537,7 @@
|
|
|
533
537
|
"REVOKED_STATUS": "Cancelado",
|
|
534
538
|
"SEARCHING": "Buscando...",
|
|
535
539
|
"SEARCH_PATIENT_ID_PLACEHOLDER": "Buscar por ID de paciente",
|
|
540
|
+
"SELECT_ENCOUNTER_FOR_PRESCRIPTION_PRINT": "Seleccionar encuentro para imprimir la receta",
|
|
536
541
|
"SELECT_ENCOUNTER_TYPE": "Seleccionar tipo de encuentro",
|
|
537
542
|
"SELECT_LOCATION": "Seleccionar ubicación",
|
|
538
543
|
"SELECT_PRACTITIONER": "Seleccionar profesional médico",
|
|
@@ -619,7 +624,20 @@
|
|
|
619
624
|
"VACCINATION_TOTAL_QUANTITY": "Cantidad total",
|
|
620
625
|
"VIEW_DATA": "Ver datos",
|
|
621
626
|
"VIEWED_RADIOLOGY_RESULTS_MESSAGE": "Resultados de radiología vistos",
|
|
627
|
+
"VIEW_IPD_DASHBOARD": "Ver panel de IPD",
|
|
628
|
+
"VISIT_DATE": "Fecha de visita",
|
|
629
|
+
"VISIT_DATE_RANGE": "{{start}} a {{end}}",
|
|
630
|
+
"VISIT_LOCATION": "Ubicación",
|
|
631
|
+
"VISIT_STATUS": "Estado",
|
|
632
|
+
"VISIT_STATUS_ACTIVE": "Activo",
|
|
633
|
+
"VISIT_STATUS_INACTIVE": "Inactivo",
|
|
634
|
+
"VISITS_TABLE_ARIA_LABEL": "Tabla de visitas",
|
|
622
635
|
"VISIT_TYPE": "Tipo de visita",
|
|
636
|
+
"VISIT_TYPE_EMERGENCY": "Emergencia",
|
|
637
|
+
"VISIT_TYPE_FOLLOW_UP": "Seguimiento",
|
|
638
|
+
"VISIT_TYPE_IPD": "Hospitalización",
|
|
639
|
+
"VISIT_TYPE_OPD": "Consulta externa",
|
|
640
|
+
"VISIT_TYPE_SPECIAL_OPD": "Consulta externa especial",
|
|
623
641
|
"VITAL_FLOW_SHEET_TABLE": "Tabla de Signos Vitales",
|
|
624
642
|
"VITAL_SIGN": "Signo Vital",
|
|
625
643
|
"VITAL_SIGNS_BLOOD_PRESSURE": "Presión Arterial",
|
package/package.json
CHANGED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { jsxs as S, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { g as x, z as M, u as U, b as j, y as G, U as H, c as Y, m as J, t as P, o as W, r as X, n as Z, i as ee, Y as ae, Q as se, k as V, l as re, s as te, w as ie, x as ne, A as oe, S as de, D as le } from "./index-DPDLLGqw.js";
|
|
3
|
-
import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as me, useEffect as L, useMemo as E } from "react";
|
|
5
|
-
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
|
|
6
|
-
observations: pe,
|
|
7
|
-
title: be,
|
|
8
|
-
wrapper: he,
|
|
9
|
-
secondary: ve
|
|
10
|
-
}, B = (s, l, n, d, u, r) => {
|
|
11
|
-
const t = re(s, l, u), e = t.value, m = te(e);
|
|
12
|
-
let i = e;
|
|
13
|
-
m === "Image" && (i = /* @__PURE__ */ o(
|
|
14
|
-
oe,
|
|
15
|
-
{
|
|
16
|
-
imageSrc: e,
|
|
17
|
-
alt: e,
|
|
18
|
-
id: `${e}-img`,
|
|
19
|
-
hideThumbnail: r
|
|
20
|
-
}
|
|
21
|
-
)), m === "Video" && (i = /* @__PURE__ */ o(
|
|
22
|
-
de,
|
|
23
|
-
{
|
|
24
|
-
id: `${e}-video`,
|
|
25
|
-
videoSrc: e,
|
|
26
|
-
hideThumbnail: r
|
|
27
|
-
}
|
|
28
|
-
)), m === "PDF" && (i = /* @__PURE__ */ o(le, { id: `${e}-pdf`, src: e }));
|
|
29
|
-
const p = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
|
|
30
|
-
/* @__PURE__ */ o("span", { children: t.header.display }),
|
|
31
|
-
t.header.referenceRange && /* @__PURE__ */ o("span", { className: O.secondary, children: t.header.referenceRange })
|
|
32
|
-
] }), c = u("OBSERVATIONS_RECORDED_BY", {
|
|
33
|
-
provider: t.provider
|
|
34
|
-
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, u, !0).formattedResult : void 0, f = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
|
|
35
|
-
/* @__PURE__ */ o("span", { children: c }),
|
|
36
|
-
b && /* @__PURE__ */ o("span", { className: O.secondary, children: b })
|
|
37
|
-
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", R = d ? `${d}-${v}-${h}-${n}-${l}` : `${v}-${h}-${n}-${l}`;
|
|
38
|
-
return /* @__PURE__ */ o(
|
|
39
|
-
ne,
|
|
40
|
-
{
|
|
41
|
-
header: p,
|
|
42
|
-
value: i,
|
|
43
|
-
info: f,
|
|
44
|
-
id: R,
|
|
45
|
-
testId: R,
|
|
46
|
-
ariaLabel: R
|
|
47
|
-
},
|
|
48
|
-
`obs-${s.id}`
|
|
49
|
-
);
|
|
50
|
-
}, ye = (s, l, n, d, u, r, t) => /* @__PURE__ */ o(
|
|
51
|
-
V,
|
|
52
|
-
{
|
|
53
|
-
title: s.display,
|
|
54
|
-
id: `grouped-obs-${s.display}-${d}`,
|
|
55
|
-
open: n,
|
|
56
|
-
children: s.members?.map(
|
|
57
|
-
(e, m) => B(
|
|
58
|
-
e,
|
|
59
|
-
m,
|
|
60
|
-
u,
|
|
61
|
-
r,
|
|
62
|
-
l,
|
|
63
|
-
t
|
|
64
|
-
)
|
|
65
|
-
)
|
|
66
|
-
},
|
|
67
|
-
`grouped-obs-${s.id}`
|
|
68
|
-
), Oe = ({
|
|
69
|
-
groupedData: s,
|
|
70
|
-
title: l = "",
|
|
71
|
-
hideThumbnail: n
|
|
72
|
-
}) => {
|
|
73
|
-
const { t: d } = U(), u = (r, t, e) => {
|
|
74
|
-
const m = se(r.encounterDetails, d);
|
|
75
|
-
return /* @__PURE__ */ S(
|
|
76
|
-
V,
|
|
77
|
-
{
|
|
78
|
-
title: m,
|
|
79
|
-
id: `encounter-${r.encounterId}`,
|
|
80
|
-
open: t,
|
|
81
|
-
children: [
|
|
82
|
-
r.observations.map(
|
|
83
|
-
(i, p) => B(
|
|
84
|
-
i,
|
|
85
|
-
p,
|
|
86
|
-
e,
|
|
87
|
-
l,
|
|
88
|
-
d,
|
|
89
|
-
n
|
|
90
|
-
)
|
|
91
|
-
),
|
|
92
|
-
r.groupedObservations.map(
|
|
93
|
-
(i, p) => ye(
|
|
94
|
-
i,
|
|
95
|
-
d,
|
|
96
|
-
t,
|
|
97
|
-
p,
|
|
98
|
-
e,
|
|
99
|
-
l,
|
|
100
|
-
n
|
|
101
|
-
)
|
|
102
|
-
)
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
`encounter-${r.encounterId}`
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
return /* @__PURE__ */ o(
|
|
109
|
-
"div",
|
|
110
|
-
{
|
|
111
|
-
id: "obs-by-encounter",
|
|
112
|
-
"data-testid": "obs-by-encounter-test-id",
|
|
113
|
-
"aria-label": "obs-by-encounter-aria-label",
|
|
114
|
-
children: s.map(
|
|
115
|
-
(r, t) => u(r, t === 0, t)
|
|
116
|
-
)
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}, Re = (s) => ["conceptUuid", s], _e = (s, l, n, d) => [
|
|
120
|
-
"observations",
|
|
121
|
-
s,
|
|
122
|
-
...l,
|
|
123
|
-
n,
|
|
124
|
-
d
|
|
125
|
-
], Se = ({
|
|
126
|
-
config: s,
|
|
127
|
-
episodeOfCareUuids: l,
|
|
128
|
-
encounterUuids: n
|
|
129
|
-
}) => {
|
|
130
|
-
const d = s, {
|
|
131
|
-
conceptNames: u = [],
|
|
132
|
-
conceptUuid: r = [],
|
|
133
|
-
hideThumbnail: t = !1,
|
|
134
|
-
scope: e = "all"
|
|
135
|
-
} = d, m = me(/* @__PURE__ */ new Set()), i = x(), { addNotification: p } = M(), { t: c } = U(), b = ce({
|
|
136
|
-
queries: u.map((a) => ({
|
|
137
|
-
queryKey: Re(a),
|
|
138
|
-
queryFn: () => j(a),
|
|
139
|
-
enabled: !!a
|
|
140
|
-
}))
|
|
141
|
-
});
|
|
142
|
-
L(() => {
|
|
143
|
-
const a = b.some((z) => z.isError), y = m.current.size > 0;
|
|
144
|
-
a && !y ? (p({
|
|
145
|
-
title: c("ERROR_DEFAULT_TITLE"),
|
|
146
|
-
message: c("ERROR_FETCHING_OBSERVATIONS"),
|
|
147
|
-
type: "error"
|
|
148
|
-
}), m.current.add(0)) : !a && y && m.current.clear();
|
|
149
|
-
}, [b, p, c]);
|
|
150
|
-
const f = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = E(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), v = E(() => u.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, u.length]), R = e === "latest" || e === "latest-encounter", F = G(
|
|
151
|
-
l,
|
|
152
|
-
n
|
|
153
|
-
), {
|
|
154
|
-
data: _,
|
|
155
|
-
isLoading: w,
|
|
156
|
-
isError: I,
|
|
157
|
-
refetch: N
|
|
158
|
-
} = ue({
|
|
159
|
-
queryKey: _e(
|
|
160
|
-
i,
|
|
161
|
-
h,
|
|
162
|
-
n,
|
|
163
|
-
e
|
|
164
|
-
),
|
|
165
|
-
queryFn: () => R ? H(
|
|
166
|
-
i,
|
|
167
|
-
h,
|
|
168
|
-
n
|
|
169
|
-
) : Y(
|
|
170
|
-
i,
|
|
171
|
-
h,
|
|
172
|
-
n
|
|
173
|
-
),
|
|
174
|
-
enabled: !!i && h.length > 0 && v && !F
|
|
175
|
-
});
|
|
176
|
-
J(
|
|
177
|
-
(a) => {
|
|
178
|
-
a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
|
|
179
|
-
(y) => h.includes(y)
|
|
180
|
-
) && N();
|
|
181
|
-
},
|
|
182
|
-
[i, N]
|
|
183
|
-
), L(() => {
|
|
184
|
-
I && p({
|
|
185
|
-
title: c("ERROR_DEFAULT_TITLE"),
|
|
186
|
-
message: c("ERROR_FETCHING_OBSERVATIONS"),
|
|
187
|
-
type: "error"
|
|
188
|
-
});
|
|
189
|
-
}, [I]);
|
|
190
|
-
const $ = E(() => {
|
|
191
|
-
if (!_) return [];
|
|
192
|
-
let a = P(_);
|
|
193
|
-
e === "latest-encounter" && (a = W(a));
|
|
194
|
-
const y = X(a);
|
|
195
|
-
return Z(y);
|
|
196
|
-
}, [_, e]), k = [
|
|
197
|
-
{ key: "name", header: "name" },
|
|
198
|
-
{ key: "value", header: "value" },
|
|
199
|
-
{ key: "form", header: "form" }
|
|
200
|
-
], A = w || !v, D = I && v, C = (!_ || _.entry?.length === 0 || h.length === 0) && v, K = D ? c("ERROR_FETCHING_OBSERVATIONS") : null, Q = C ? c("NO_OBSERVATIONS_FOUND") : void 0, q = $.length > 0 && !A && !D, g = d.titleTranslationKey, T = g ? c(g) : "";
|
|
201
|
-
return /* @__PURE__ */ S(
|
|
202
|
-
"div",
|
|
203
|
-
{
|
|
204
|
-
id: "observations",
|
|
205
|
-
"data-testid": g ? `observations-${T}` : "observations",
|
|
206
|
-
"aria-label": "observations-aria-label",
|
|
207
|
-
className: O.observations,
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ o(
|
|
210
|
-
ee,
|
|
211
|
-
{
|
|
212
|
-
id: "observations-title",
|
|
213
|
-
testId: g ? `observations-title-${T}` : "observations-title",
|
|
214
|
-
title: T,
|
|
215
|
-
className: O.title,
|
|
216
|
-
children: /* @__PURE__ */ o("p", { children: T })
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
q ? /* @__PURE__ */ o(
|
|
220
|
-
Oe,
|
|
221
|
-
{
|
|
222
|
-
groupedData: $,
|
|
223
|
-
title: T,
|
|
224
|
-
hideThumbnail: t
|
|
225
|
-
}
|
|
226
|
-
) : /* @__PURE__ */ o(
|
|
227
|
-
ae,
|
|
228
|
-
{
|
|
229
|
-
headers: k,
|
|
230
|
-
rows: [],
|
|
231
|
-
ariaLabel: c("OBSERVATIONS"),
|
|
232
|
-
loading: A,
|
|
233
|
-
errorStateMessage: K,
|
|
234
|
-
emptyStateMessage: Q ?? c("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
|
-
dataTestId: "observations-table"
|
|
236
|
-
}
|
|
237
|
-
)
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
};
|
|
242
|
-
export {
|
|
243
|
-
Re as conceptUuidQueryKeys,
|
|
244
|
-
Se as default,
|
|
245
|
-
_e as observationsQueryKeys
|
|
246
|
-
};
|