Integrate CaMa follow-up, descriptive analysis and L3 with dev

Preserve dev risk batches and governance, individual patient selection, optional access and explicit cohort reader overrides. Register one CaMa implementation and retain legacy Python blueprint consumers. Validated with 681 WebApi tests on the integrated parent and submodules.
This commit is contained in:
Angel Capetillo Zavala
2026-11-17 10:44:07 -06:00
parent 0571b5e6af
commit b1bbbc25b4
27 changed files with 2729 additions and 12 deletions
+4
View File
@@ -284,6 +284,10 @@ class MeasureQueries:
for a in p.at_end if a.known_at}
for rule in (getattr(definition, "category", None), getattr(definition, "observation", None)):
known |= {definition.dimensions[n] for n in (rule.known_at if rule else ())}
# The follow-up fact of a composition (the biopsy of the chosen sample) is compared with the knowledge cut-off too:
# its column has to be read as a datetime, or a text compare against the cut-off would be wrong.
follow_up = getattr(getattr(definition, "category", None), "follow_up", None)
known |= {definition.dimensions[n] for n in (follow_up.known_at if follow_up else ())}
self.status = getattr(definition, "population", None)
if self.status is not None:
names |= {definition.dimensions[n] for n in self.status.columns()}