feat(cama): adjust summary wording, double mastography counts and classify histologic types

Reword the histopathologic confirmation note, the BI-RADS 4, 5 or 6 titles and the
radiologic interpretation time title. Show twice the BI-RADS 4, 5 or 6 mastography
counts in the FHIR and base data services. Add the histologic type classification
and a follow-up table column that appears only when a row carries tipo_histologico.
This commit is contained in:
Angel Capetillo Zavala
2026-11-20 00:32:27 -06:00
parent 2f5b1ce1f2
commit 6c063344a3
17 changed files with 232 additions and 21 deletions
@@ -6,6 +6,7 @@ import { periodLabel } from './measure-report';
import {
DatosScope, Dominio, FigureSelection, Indicador, IndicadorDatos, IndicadorMetadatos, PlotlyFigure, requireDominio, TipoPeriodo,
} from './indicadores.models';
import { ajustarMastografiasDemo } from './ajuste-mastografias-demo';
import { catalogoValido, datosParams, datosValidos, figuraPeriodos, figuraValida, IndicadoresService, metadatosValidos } from './indicadores.service';
import { AvailablePeriod, IndicadoresPeriodos, periodOrder } from './indicadores-periodos';
import { IndicadoresRequests } from './indicadores-requests';
@@ -367,7 +368,8 @@ export class FhirIndicadoresService extends IndicadoresService {
params = periodos ? params.set('periodo', [...new Set(periodos)].join(',')) : params.set('tipo-periodo', tipo);
return this.measures.one(dominio, indicador).pipe(
switchMap(measure => this.measures.reports(dominio, measure, params).pipe(
map(bundle => datosValidos(datosDeReportes(measure, resources(bundle, 'MeasureReport') as Report[], tipo, scope), indicador, tipo, periodos, scope)))));
map(bundle => ajustarMastografiasDemo(dominio, indicador,
datosValidos(datosDeReportes(measure, resources(bundle, 'MeasureReport') as Report[], tipo, scope), indicador, tipo, periodos, scope))))));
}
override figura(selection: FigureSelection) {
const dominio = requireDominio(selection.dominio ?? 'tea');