EEG metrics carry their age band; reference comparisons skip crossed strata; the no-session test reads no platform data

This commit is contained in:
Roberto Treviño
2026-11-28 13:29:22 -06:00
parent 052fb23fab
commit 7222cbdb49
5 changed files with 12 additions and 2 deletions
+2
View File
@@ -105,6 +105,8 @@ def _report(entry: dict, measure: str) -> tuple:
extensions = {e["url"].rsplit("/", 1)[1]: e["valueDecimal"] for e in score.get("extension", [])}
strata = {}
for s in group.get("stratifier", []):
if len(s["code"]) > 1: # crossed with the category: not in the reference
continue
code = s["code"][0]
name = code["coding"][0]["code"] if "coding" in code else code["text"]
name = CATEGORY.get(measure, "birads") if name == "category" else name