@uxland/primary-shell 5.4.1 → 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 +13 -24
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +4 -4
- 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 +3 -5
- 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(
|
|
@@ -14594,12 +14594,10 @@ const hasItemDivider = (te, J) => {
|
|
|
14594
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 ? " | " : ""}`);
|
|
14595
14595
|
}, diagnosticHeaderTemplate = (te) => te && ke$1`
|
|
14596
14596
|
<div class="diagnostics__header">
|
|
14597
|
-
${te.diagnostics.filter(
|
|
14598
|
-
(J) => J.description != null && J.description.trim() !== ""
|
|
14599
|
-
).map(
|
|
14597
|
+
${te.diagnostics.filter((J) => J.descripcio != null && J.descripcio.trim() !== "").map(
|
|
14600
14598
|
(J) => {
|
|
14601
14599
|
var X;
|
|
14602
|
-
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>`;
|
|
14603
14601
|
}
|
|
14604
14602
|
)}
|
|
14605
14603
|
</div>
|
|
@@ -43997,8 +43995,7 @@ const useSharedUI = () => {
|
|
|
43997
43995
|
{
|
|
43998
43996
|
icon: "open_in_new",
|
|
43999
43997
|
label: "ASSIR",
|
|
44000
|
-
callbackFn: () =>
|
|
44001
|
-
}
|
|
43998
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("NAVEGACIO_ASSIR")
|
|
44002
43999
|
},
|
|
44003
44000
|
{
|
|
44004
44001
|
icon: "open_in_new",
|
|
@@ -44054,8 +44051,7 @@ const useSharedUI = () => {
|
|
|
44054
44051
|
label: "Seguiment analític",
|
|
44055
44052
|
type: "item",
|
|
44056
44053
|
sortHint: "0060",
|
|
44057
|
-
callbackFn: () =>
|
|
44058
|
-
}
|
|
44054
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("SEGUIMENT_ANALITIC")
|
|
44059
44055
|
},
|
|
44060
44056
|
{
|
|
44061
44057
|
id: "results-reports",
|
|
@@ -44067,8 +44063,7 @@ const useSharedUI = () => {
|
|
|
44067
44063
|
{
|
|
44068
44064
|
icon: "open_in_new",
|
|
44069
44065
|
label: "Resultats i informes",
|
|
44070
|
-
callbackFn: () =>
|
|
44071
|
-
}
|
|
44066
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("RESULTAT_INFORMES")
|
|
44072
44067
|
},
|
|
44073
44068
|
{
|
|
44074
44069
|
icon: "open_in_new",
|
|
@@ -44080,8 +44075,7 @@ const useSharedUI = () => {
|
|
|
44080
44075
|
{
|
|
44081
44076
|
icon: "open_in_new",
|
|
44082
44077
|
label: "Informes clínics",
|
|
44083
|
-
callbackFn: () =>
|
|
44084
|
-
}
|
|
44078
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("INFORME_CLINIC_NET")
|
|
44085
44079
|
}
|
|
44086
44080
|
]
|
|
44087
44081
|
},
|
|
@@ -44104,26 +44098,22 @@ const useSharedUI = () => {
|
|
|
44104
44098
|
{
|
|
44105
44099
|
icon: "open_in_new",
|
|
44106
44100
|
label: "Prescripció",
|
|
44107
|
-
callbackFn: () =>
|
|
44108
|
-
}
|
|
44101
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_ACTIVA")
|
|
44109
44102
|
},
|
|
44110
44103
|
{
|
|
44111
44104
|
icon: "open_in_new",
|
|
44112
44105
|
label: "Ordres de tractament",
|
|
44113
|
-
callbackFn: () =>
|
|
44114
|
-
}
|
|
44106
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("ORDRE_TRACTAMENT")
|
|
44115
44107
|
},
|
|
44116
44108
|
{
|
|
44117
44109
|
icon: "open_in_new",
|
|
44118
44110
|
label: "Dispensació material sanitari",
|
|
44119
|
-
callbackFn: () =>
|
|
44120
|
-
}
|
|
44111
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("DISPENSACIO_MATERIAL_PACIENT")
|
|
44121
44112
|
},
|
|
44122
44113
|
{
|
|
44123
44114
|
icon: "open_in_new",
|
|
44124
44115
|
label: "Prescripció social",
|
|
44125
|
-
callbackFn: () =>
|
|
44126
|
-
}
|
|
44116
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_SOCIAL")
|
|
44127
44117
|
}
|
|
44128
44118
|
]
|
|
44129
44119
|
},
|
|
@@ -44133,8 +44123,7 @@ const useSharedUI = () => {
|
|
|
44133
44123
|
label: "Immunitzacions",
|
|
44134
44124
|
type: "item",
|
|
44135
44125
|
sortHint: "0100",
|
|
44136
|
-
callbackFn: () =>
|
|
44137
|
-
}
|
|
44126
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("IMMUNITZACIONS")
|
|
44138
44127
|
},
|
|
44139
44128
|
{
|
|
44140
44129
|
id: "it",
|