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:
@@ -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("_", "-"))
|
||||
|
||||
Reference in New Issue
Block a user