Merge remote-tracking branch 'origin/dev' into dev-mvp

This commit is contained in:
rockdrigo
2026-11-21 13:53:57 -06:00
16 changed files with 1062 additions and 36 deletions
+5 -4
View File
@@ -4,9 +4,9 @@
- the M-CHAT is a `toma`, the ADOS-2 and the neuropediatrics note are `encuentro`s, the EEG is a `toma`; each
hangs from its order when it has one;
- what the EEG analysis writes: the EEG's verdict and study-wide quality checks (`eeg_criterio` without an
electrode) and each metric with its deviation from the age baseline are results of the EEG's recording, not
procedures; a bad channel (`eeg_criterio` with an electrode) and a metric's value at an electrode are `parte`s of
the EEG, `codigo_fuente` the electrode. The metric rows find their EEG through the metric.
electrode) and each metric with its deviation from the age baseline and the baseline's registered label are results
of the EEG's recording, not procedures; a bad channel (`eeg_criterio` with an electrode) and a metric's value at an
electrode are `parte`s of the EEG, `codigo_fuente` the electrode. The metric rows find their EEG through the metric.
"""
from core.tea.enums import (
@@ -140,7 +140,8 @@ DESDE_STAGING = (
DeStaging(
EegMetrica, "met_id", "toma", estudio_id="eeg", paciente=None, observa_en=SU_EEG,
derivadas={"metrica": _metrica},
resultados={"met_valor": "eeg.{metrica}", **{f"met_{d}": f"eeg.{{metrica}}_{d}" for d in DEVIATION}},
resultados={"met_valor": "eeg.{metrica}", **{f"met_{d}": f"eeg.{{metrica}}_{d}" for d in DEVIATION},
"met_modelo": "eeg.{metrica}_modelo"},
),
DeStaging(
EegMetricaElectrodo, "mel_id", "parte", estudio_id="eeg", paciente=None,