preliminary release

This commit is contained in:
Roberto Treviño Cervantes
2026-10-29 12:12:15 -06:00
parent 51517ddf61
commit e6e6fb7210
124 changed files with 5769 additions and 660 deletions
@@ -0,0 +1,50 @@
import { Observable } from 'rxjs';
export type EstadoEvaluacionCacu = 'preliminary' | 'final';
export type TipoCensuraCacu = 'prevalente' | 'incidente' | 'izquierda' | 'derecha' | 'derechaBasal' | 'no_informativo';
export interface CohorteRiesgoCacu {
url: string;
version: string;
fecha_indice: string;
tipo_censura: TipoCensuraCacu | null;
c: number | null;
l: number | null;
r: number | null;
pap_0: string | null;
hpv_0: string | null;
}
export interface HorizonteRiesgoCacu {
horizonte_anios: number;
/** Transport values remain probabilities in [0, 1], never percentages. */
probabilidad: number;
ic_bajo?: number | null;
ic_alto?: number | null;
estado: EstadoEvaluacionCacu;
}
export interface LoteRiesgoCacu {
lote_id: number;
modelo_nombre: string;
modelo_version: string;
evaluado_en: string;
estado_lote: EstadoEvaluacionCacu;
horizontes: HorizonteRiesgoCacu[];
}
/** DEV-only contract from cacu_riesgo_paciente.md, 2026-10-28. */
export interface RiesgoPacienteCacu {
simulado: true;
cohorte: CohorteRiesgoCacu | null;
riesgo: LoteRiesgoCacu | null;
}
/** Deliberately no patient argument until secure identity resolution is authorized. */
export interface PacienteRiesgoProvider {
obtener(): Observable<unknown>;
}
export type PacienteRiesgoEstado =
| { tipo: 'cargando' | 'no-disponible' | 'error' }
| { tipo: 'disponible'; datos: RiesgoPacienteCacu };