feat(tea): EEG analysis before the silver load, and its verdict, quality checks and baselines through silver and FHIR

This commit is contained in:
AlbertoPMDM
2026-11-19 15:43:27 -06:00
parent b1bbbc25b4
commit d35e8bbae9
26 changed files with 1486 additions and 312 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
"""Lo que recibe cada paso del ciclo."""
import os
from collections.abc import Mapping
from collections.abc import Callable, Mapping
from dataclasses import dataclass, field
from datetime import date
from pathlib import Path
@@ -39,5 +39,8 @@ class Context:
# Los estimadores de riesgo por cohorte (`cohorte_url` -> objeto con `estimate(columnas, filas)`, `procedencia()`
# y `desenlace`; ADR-MD-008). Sin ellos, el paso `estimate` no hace nada.
estimators: Mapping[str, Any] = field(default_factory=dict, compare=False, repr=False)
# The domain's EEG analysis (`webapi.orchestration.eeg.live_eeg_analysis`): run by the `analyze_eeg` step before
# the silver load, it writes the analysis of each stored EDF to bronze. Without it, that step does nothing.
eeg_analysis: Callable[[], Any] | None = field(default=None, compare=False, repr=False)
# Los repositorios del proyecto (`repositorios.Repositorios`); el ejecutor los pone si faltan.
repos: Any = field(default=None, compare=False, repr=False)