feat(tea): filtros de edad, M-CHAT y ADOS-2 en Seguimiento
- Filtros por grupo de edad, rango de riesgo M-CHAT-R/F y nivel de CSS ADOS-2. Se envían a la API como grupo_edad, mchat_min/max y css_min/max. - Se quita «Ordenar por prioridad», también de CaCu, donde estaba deshabilitado. - El grupo de edad menor pasa a 16-23 meses, igual que en los indicadores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import { PacienteDetalleComponent } from './paciente-detalle/paciente-detalle';
|
||||
import { PacienteDetalleState } from './paciente-detalle/paciente-detalle.state';
|
||||
import { Dominio } from './indicadores.models';
|
||||
import { IndicadoresService } from './indicadores.service';
|
||||
import { ALTERACIONES_EEG, TeaSeguimientoPaciente, TeaSeguimientoResponse, TeaSeguimientoService } from './tea-seguimiento.service';
|
||||
import { ALTERACIONES_EEG, GRUPOS_EDAD_TEA, RANGOS_CSS, RANGOS_MCHAT, TeaSeguimientoPaciente, TeaSeguimientoResponse, TeaSeguimientoService } from './tea-seguimiento.service';
|
||||
import { TeaPacienteResumen } from './tea-paciente-resumen';
|
||||
|
||||
@Component({
|
||||
@@ -49,6 +49,9 @@ export class IndicadoresTracking implements OnChanges {
|
||||
draft: SeguimientoQuery = { meses: 3, page: 1, page_size: 50 };
|
||||
private applied: SeguimientoQuery = { ...this.draft };
|
||||
readonly latestStudy = latestStudy;
|
||||
readonly gruposEdad = GRUPOS_EDAD_TEA;
|
||||
readonly rangosMchat = RANGOS_MCHAT;
|
||||
readonly rangosCss = RANGOS_CSS;
|
||||
get provisional() { return this.data?.reglas.some(r => r.estado === 'provisional'); }
|
||||
get response() { return this.dominio === 'tea' ? this.teaData : this.data; }
|
||||
constructor() {
|
||||
@@ -81,7 +84,7 @@ export class IndicadoresTracking implements OnChanges {
|
||||
this.status = result.status; this.teaData = result.data; this.message = result.message; this.teaAbierto = undefined;
|
||||
if (result.data) {
|
||||
const data = result.data;
|
||||
this.applied = { corte: data.corte, meses: data.ventana.meses, estatus: data.filtros.alteraciones_eeg ?? undefined, page: data.paginacion.page, page_size: data.paginacion.page_size };
|
||||
this.applied = { ...this.applied, corte: data.corte, meses: data.ventana.meses, estatus: data.filtros.alteraciones_eeg ?? undefined, page: data.paginacion.page, page_size: data.paginacion.page_size };
|
||||
this.draft = { ...this.applied };
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user