@uxland/primary-shell 5.4.0 → 5.4.2
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 +15 -25
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/model.d.ts +1 -1
- package/package.json +1 -1
- package/src/UI/internal-views/upper-nav-views.ts +9 -9
- package/src/internal-plugins/activity-history/activity-history-item/domain/model.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/domain/specs/diagnostics-filter-spec.test.ts +6 -6
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.test.ts +7 -7
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-full-history-item.test.ts +7 -7
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +7 -9
- package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.test.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -11579,7 +11579,7 @@ const activityHistoryFiltersSelector = (te) => te.activityHistoryFilters.filters
|
|
|
11579
11579
|
return !1;
|
|
11580
11580
|
const X = te.map((ne) => ne.codi).sort(), re = J.map((ne) => ne.codi).sort();
|
|
11581
11581
|
return X.every((ne, oe) => ne === re[oe]);
|
|
11582
|
-
}, hasValidDiagnostic = (te) => te != null && typeof te.codi == "string" && typeof te.cataleg == "string" && typeof te.
|
|
11582
|
+
}, hasValidDiagnostic = (te) => te != null && typeof te.codi == "string" && typeof te.cataleg == "string" && typeof te.descripcio == "string", hasValidDiagnostics = (te) => te == null ? !0 : Array.isArray(te) && te.every(hasValidDiagnostic), isSameVisit = (te, J) => {
|
|
11583
11583
|
var oe, de, ce, he, ue, pe, fe, ge, me, ve, be, _e, we, Se, Ce, ye, Ae, Le;
|
|
11584
11584
|
const X = ((oe = te.professional) == null ? void 0 : oe.id) === ((de = J.professional) == null ? void 0 : de.id) && ((he = (ce = te.professional) == null ? void 0 : ce.role) == null ? void 0 : he.id) === ((pe = (ue = J.professional) == null ? void 0 : ue.role) == null ? void 0 : pe.id) && ((ge = (fe = te.professional) == null ? void 0 : fe.speciality) == null ? void 0 : ge.id) === ((ve = (me = J.professional) == null ? void 0 : me.speciality) == null ? void 0 : ve.id), re = ((be = te.ep) == null ? void 0 : be.id) === ((_e = J.ep) == null ? void 0 : _e.id) && ((we = te.up) == null ? void 0 : we.id) === ((Se = J.up) == null ? void 0 : Se.id) && ((Ce = te.center) == null ? void 0 : Ce.id) === ((ye = J.center) == null ? void 0 : ye.id) && ((Ae = te.service) == null ? void 0 : Ae.id) === ((Le = J.service) == null ? void 0 : Le.id), ne = new Date(te.date).toDateString() === new Date(J.date).toDateString();
|
|
11585
11585
|
return X && re && ne;
|
|
@@ -14522,7 +14522,7 @@ const hasItemDivider = (te, J) => {
|
|
|
14522
14522
|
var ne, oe, de, ce;
|
|
14523
14523
|
return ke$1`
|
|
14524
14524
|
<div class="visit zIndex${te.historyGroups.length - re}"
|
|
14525
|
-
data-date=${to(((ne = X == null ? void 0 : X.items[0]) == null ? void 0 : ne.date) || ((de = (oe = X.subGroups[0]) == null ? void 0 : oe.items[0]) == null ? void 0 : de.date))}>
|
|
14525
|
+
data-date=${to(((ne = X == null ? void 0 : X.items[0]) == null ? void 0 : ne.date) || ((de = (oe = X == null ? void 0 : X.subGroups[0]) == null ? void 0 : oe.items[0]) == null ? void 0 : de.date))}>
|
|
14526
14526
|
${visitHeaderTemplate(te, X.items[0] || ((ce = X.subGroups[0]) == null ? void 0 : ce.items[0]))}
|
|
14527
14527
|
<div class="visit__items">
|
|
14528
14528
|
${Qt(
|
|
@@ -14588,17 +14588,16 @@ const hasItemDivider = (te, J) => {
|
|
|
14588
14588
|
</div>
|
|
14589
14589
|
</div>
|
|
14590
14590
|
` : D$1, renderProfessionalValues = (te, J) => {
|
|
14591
|
+
var ne, oe, de, ce, he, ue;
|
|
14591
14592
|
if (!J.professional) return D$1;
|
|
14592
14593
|
const X = shouldShowRole(J), re = [];
|
|
14593
|
-
return re.push(te.highlighted(J.professional.name)), X && J.professional.role && re.push(te.highlighted(J.professional.role.description)), J.up && re.push(te.highlighted(J.up.description)), J.professional.speciality && re.push(te.highlighted(J.professional.speciality.description)), J.service && re.push(te.highlighted(J.service.description)), re.map((
|
|
14594
|
+
return re.push(te.highlighted(J.professional.name)), X && ((oe = (ne = J.professional) == null ? void 0 : ne.role) != null && oe.description) && re.push(te.highlighted(J.professional.role.description)), (de = J.up) != null && de.description && re.push(te.highlighted(J.up.description)), (he = (ce = J.professional) == null ? void 0 : ce.speciality) != null && he.description && re.push(te.highlighted(J.professional.speciality.description)), (ue = J.service) != null && ue.description && re.push(te.highlighted(J.service.description)), re.map((pe, fe) => ke$1`${pe}${fe < re.length - 1 ? " | " : ""}`);
|
|
14594
14595
|
}, diagnosticHeaderTemplate = (te) => te && ke$1`
|
|
14595
14596
|
<div class="diagnostics__header">
|
|
14596
|
-
${te.diagnostics.filter(
|
|
14597
|
-
(J) => J.description != null && J.description.trim() !== ""
|
|
14598
|
-
).map(
|
|
14597
|
+
${te.diagnostics.filter((J) => J.descripcio != null && J.descripcio.trim() !== "").map(
|
|
14599
14598
|
(J) => {
|
|
14600
14599
|
var X;
|
|
14601
|
-
return ke$1`<dss-badge text=${(X = J.
|
|
14600
|
+
return ke$1`<dss-badge text=${(X = J.descripcio) == null ? void 0 : X.toUpperCase()} state="info" size="sm" outlined></dss-badge>`;
|
|
14602
14601
|
}
|
|
14603
14602
|
)}
|
|
14604
14603
|
</div>
|
|
@@ -43996,8 +43995,7 @@ const useSharedUI = () => {
|
|
|
43996
43995
|
{
|
|
43997
43996
|
icon: "open_in_new",
|
|
43998
43997
|
label: "ASSIR",
|
|
43999
|
-
callbackFn: () =>
|
|
44000
|
-
}
|
|
43998
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("NAVEGACIO_ASSIR")
|
|
44001
43999
|
},
|
|
44002
44000
|
{
|
|
44003
44001
|
icon: "open_in_new",
|
|
@@ -44053,8 +44051,7 @@ const useSharedUI = () => {
|
|
|
44053
44051
|
label: "Seguiment analític",
|
|
44054
44052
|
type: "item",
|
|
44055
44053
|
sortHint: "0060",
|
|
44056
|
-
callbackFn: () =>
|
|
44057
|
-
}
|
|
44054
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("SEGUIMENT_ANALITIC")
|
|
44058
44055
|
},
|
|
44059
44056
|
{
|
|
44060
44057
|
id: "results-reports",
|
|
@@ -44066,8 +44063,7 @@ const useSharedUI = () => {
|
|
|
44066
44063
|
{
|
|
44067
44064
|
icon: "open_in_new",
|
|
44068
44065
|
label: "Resultats i informes",
|
|
44069
|
-
callbackFn: () =>
|
|
44070
|
-
}
|
|
44066
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("RESULTAT_INFORMES")
|
|
44071
44067
|
},
|
|
44072
44068
|
{
|
|
44073
44069
|
icon: "open_in_new",
|
|
@@ -44079,8 +44075,7 @@ const useSharedUI = () => {
|
|
|
44079
44075
|
{
|
|
44080
44076
|
icon: "open_in_new",
|
|
44081
44077
|
label: "Informes clínics",
|
|
44082
|
-
callbackFn: () =>
|
|
44083
|
-
}
|
|
44078
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("INFORME_CLINIC_NET")
|
|
44084
44079
|
}
|
|
44085
44080
|
]
|
|
44086
44081
|
},
|
|
@@ -44103,26 +44098,22 @@ const useSharedUI = () => {
|
|
|
44103
44098
|
{
|
|
44104
44099
|
icon: "open_in_new",
|
|
44105
44100
|
label: "Prescripció",
|
|
44106
|
-
callbackFn: () =>
|
|
44107
|
-
}
|
|
44101
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_ACTIVA")
|
|
44108
44102
|
},
|
|
44109
44103
|
{
|
|
44110
44104
|
icon: "open_in_new",
|
|
44111
44105
|
label: "Ordres de tractament",
|
|
44112
|
-
callbackFn: () =>
|
|
44113
|
-
}
|
|
44106
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("ORDRE_TRACTAMENT")
|
|
44114
44107
|
},
|
|
44115
44108
|
{
|
|
44116
44109
|
icon: "open_in_new",
|
|
44117
44110
|
label: "Dispensació material sanitari",
|
|
44118
|
-
callbackFn: () =>
|
|
44119
|
-
}
|
|
44111
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("DISPENSACIO_MATERIAL_PACIENT")
|
|
44120
44112
|
},
|
|
44121
44113
|
{
|
|
44122
44114
|
icon: "open_in_new",
|
|
44123
44115
|
label: "Prescripció social",
|
|
44124
|
-
callbackFn: () =>
|
|
44125
|
-
}
|
|
44116
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_SOCIAL")
|
|
44126
44117
|
}
|
|
44127
44118
|
]
|
|
44128
44119
|
},
|
|
@@ -44132,8 +44123,7 @@ const useSharedUI = () => {
|
|
|
44132
44123
|
label: "Immunitzacions",
|
|
44133
44124
|
type: "item",
|
|
44134
44125
|
sortHint: "0100",
|
|
44135
|
-
callbackFn: () =>
|
|
44136
|
-
}
|
|
44126
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("IMMUNITZACIONS")
|
|
44137
44127
|
},
|
|
44138
44128
|
{
|
|
44139
44129
|
id: "it",
|