TEA: an answer as of a knowledge cut-off reads each child's version known then, and the measures waiting for a validation stay hidden outside FHIR too

This commit is contained in:
2026-11-12 19:47:19 -06:00
parent a0407e41d6
commit 0f9433949f
6 changed files with 93 additions and 26 deletions
+1 -7
View File
@@ -39,13 +39,7 @@ def fhir_blueprint(project: str, repositories, manifest: Path, *, with_patients:
def definitions() -> dict:
"""The domain's measures by their FHIR id; `definition()` also takes the dbt id."""
every = {fhir_id(d): d for d in definitions_of(project, manifest).values()}
if project == "tea":
from webapi.fhir.tea import alterations_validated
if not alterations_validated():
every = {k: d for k, d in every.items() if not d.meta.get("requiere_validacion")}
return every
return {fhir_id(d): d for d in definitions_of(project, manifest).values()}
def definition_of(measure_id: str):
return definitions().get(measure_id.replace("_", "-"))