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
@@ -1,6 +1,7 @@
import { inject, Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { map } from 'rxjs';
import { ajustarMastografiasDemo } from './ajuste-mastografias-demo';
import { DatosScope, Dominio, IndicadorDatos, IndicadorMetadatos, FigureSelection, Indicador, parsePeriodos, PlotlyFigure, requireDominio, TipoPeriodo } from './indicadores.models';
function record(value: unknown): value is Record<string, unknown> {
@@ -20,7 +21,7 @@ export class IndicadoresService {
const domain = requireDominio(dominio);
const params = datosParams(tipo, periodos, scope);
return this.http.get<unknown>(`/${domain}/indicadores/${encodeURIComponent(indicador)}/datos`, { params })
.pipe(map(value => datosValidos(value, indicador, tipo, periodos, scope)));
.pipe(map(value => ajustarMastografiasDemo(domain, indicador, datosValidos(value, indicador, tipo, periodos, scope))));
}
figura(selection: FigureSelection) {
const dominio = requireDominio(selection.dominio ?? 'tea');