The association reads the CSS off the algorithm sheets' score
This commit is contained in:
+2
-1
@@ -163,7 +163,8 @@ def association_cohort(as_of: date | None = None) -> tuple[pd.DataFrame, pd.Data
|
|||||||
css = None
|
css = None
|
||||||
if evaluated and r["birth_date"]:
|
if evaluated and r["birth_date"]:
|
||||||
row = {**a, "evaluation_date": date.fromisoformat(evaluated)}
|
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"],
|
rows.append({"key": r["edf"], "person": r["person_id"], "age_months": r["age_months"],
|
||||||
"module": a.get("module"), "css": css,
|
"module": a.get("module"), "css": css,
|
||||||
**{n: a.get(n) for n, _ in relation.ITEMS.values()},
|
**{n: a.get(n) for n, _ in relation.ITEMS.values()},
|
||||||
|
|||||||
Reference in New Issue
Block a user