The association reads the CSS off the algorithm sheets' score

This commit is contained in:
Roberto Treviño
2026-12-06 01:46:53 -06:00
parent 20651b8d17
commit 20a92a01e6
+2 -1
View File
@@ -163,7 +163,8 @@ def association_cohort(as_of: date | None = None) -> tuple[pd.DataFrame, pd.Data
css = None
if evaluated and r["birth_date"]:
row = {**a, "evaluation_date": date.fromisoformat(evaluated)}
css, _ = ados2.score(row, date.fromisoformat(r["birth_date"]))
scored = ados2.score(row, date.fromisoformat(r["birth_date"]))
css = scored and scored.css
rows.append({"key": r["edf"], "person": r["person_id"], "age_months": r["age_months"],
"module": a.get("module"), "css": css,
**{n: a.get(n) for n, _ in relation.ITEMS.values()},