Hide the CaMa diagnosis-to-treatment card until the indicator is defined
The card read "Indicador no disponible" and the route listed a step with no measure. Both are removed from the CaMa summary, and the opportunity grid sizes its columns to the cards it has so the remaining ones fill the row.
This commit is contained in:
@@ -124,7 +124,6 @@ const CAMA_DAYS = {
|
||||
value: '{median} días (mediana)',
|
||||
note: '{obs} mastografías; Q1 a Q3: {q1} a {q3} días.',
|
||||
};
|
||||
const PENDING = 'Indicador no publicado en el catálogo institucional.';
|
||||
|
||||
/** BI-RADS 4 to 6 as the old app named and coloured them. */
|
||||
const BIRADS: Catalog = {
|
||||
@@ -273,11 +272,6 @@ export const PAGES: Record<string, Page> = {
|
||||
title: 'Días de interpretación radiológica a diagnóstico',
|
||||
...CAMA_DAYS,
|
||||
},
|
||||
{
|
||||
title: 'Días de diagnóstico a tratamiento',
|
||||
value: 'Indicador no disponible',
|
||||
note: PENDING,
|
||||
},
|
||||
],
|
||||
opportunity: [
|
||||
{
|
||||
@@ -301,7 +295,6 @@ export const PAGES: Record<string, Page> = {
|
||||
label: 'Interpretación radiológica a resultado de biopsia',
|
||||
measure: 'CAMA_DIAS_RESULTADO_BIOPSIA',
|
||||
},
|
||||
{ label: 'Diagnóstico a tratamiento' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -45,7 +45,11 @@
|
||||
<h2 id="opportunity-title">Indicadores de oportunidad</h2>
|
||||
<span class="period">Periodo {{ period }}</span>
|
||||
</div>
|
||||
<div class="kpis">
|
||||
<div
|
||||
class="kpis"
|
||||
[style.--kpi-cols-md]="pg.kpis.length < 3 ? pg.kpis.length : 3"
|
||||
[style.--kpi-cols-lg]="pg.kpis.length < 5 ? pg.kpis.length : 5"
|
||||
>
|
||||
@for (k of pg.kpis; track k.title) {
|
||||
<mat-card appearance="outlined" class="kpi" [attr.data-measure]="k.measure ?? null">
|
||||
<mat-card-content>
|
||||
|
||||
@@ -42,13 +42,13 @@ h2 {
|
||||
|
||||
@media (min-width: 1000px) {
|
||||
.kpis {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-columns: repeat(var(--kpi-cols-md, 3), 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1350px) {
|
||||
.kpis {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
grid-template-columns: repeat(var(--kpi-cols-lg, 5), 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user