From 074fdb5305743cef53cfc94890658ba3476373e7 Mon Sep 17 00:00:00 2001 From: alberto Date: Sat, 28 Nov 2026 04:50:07 -0600 Subject: [PATCH] TEA gate: ADOS-2 rows match by the platform's record number again (N-0010 is kept as N0010) --- tests/test_tea.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_tea.py b/tests/test_tea.py index 25b6619..6dc47bc 100644 --- a/tests/test_tea.py +++ b/tests/test_tea.py @@ -145,7 +145,6 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path): for s in ("mchat", "ados2", "eeg", "evaluacion_neuropediatrica")} # fmt: skip signed = "select count(*) from eeg where eeg_estudio is not null" signals = con.execute(signed).fetchone()[0] - patients = dict(con.execute("select pac_id_hospital, pac_id from pacientes")) counts = {s: q(f"select count(*) from silver.{s}")[0][0] for s in ("mchat", "ados2", "eeg")} assert counts == {s: source[s] for s in counts} assert q("select count(*) from silver.clinical_note where specialty = 'pediatric_neurology'" @@ -165,7 +164,7 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path): assert len(found) == len(reference) == counts["ados2"] for row in found: theirs = reference[(str(row["evaluation_date"])[:10], - patients[numbers[row["person_id"]]])] # fmt: skip + int(numbers[row["person_id"]].removeprefix("N")))] # fmt: skip module = MODULES[theirs["ado_modulo"]] assert row["module"] == module for item, by_module in ITEMS.items():