FHIR, follow-up lists and model jobs by domain; CaMa gate; report download for governance

This commit is contained in:
Roberto Treviño
2026-11-25 23:20:52 -06:00
parent 806302ee5d
commit 26cf994d1a
5 changed files with 311 additions and 74 deletions
+4 -1
View File
@@ -10,6 +10,9 @@ Fixed on purpose, so compared differently:
- cin2_pim_post_colposcopy scores each patient at her post-colposcopy index; the current
one scores at her first event (its cohort's index), so only its members are compared.
- cin2_logistic's index date is the index sample's, not 1970-01-01.
- survival indexes at the first biopsy reported as carcinoma or carcinoma in situ; the current
index read only invasive carcinoma and indexed nobody (its reference was captured with that
one rule fixed).
- One rule, one value: a diagnosis note assesses a sample within SAMPLE_TO_DIAGNOSIS_DAYS
(120). The current follow-up status reads the same rule as 180 days, so one patient
(198) is post-colposcopy there and pre-colposcopy here.
@@ -125,7 +128,7 @@ def test_cacu_from_the_hospital_to_indicators_and_risks(api, platform, tmp_path)
# none is promoted without the clinical validation.
wait_for(api, ok(api.post("/models/cacu/train", json={"as_of": REFERENCE_CUTOFF}))["run_id"])
names = ok(api.get("/models/cacu"))
assert set(names) == set(current) - {"survival"}
assert set(names) == set(current)
for name in names:
(version,) = ok(api.get(f"/models/cacu/{name}/versions"))
assert version["reports"] == ["interpretability", "technical_validation"]