TEA on its new staging: silver load, ten measures answered on request with the status at the period's end, several groups and column strata, and FHIR R4 endpoints for measures, follow-up and patient summary
This commit is contained in:
@@ -29,6 +29,7 @@ from webapi.metrics import (
|
||||
MeasureQueries,
|
||||
Population,
|
||||
Question,
|
||||
StatusAtEnd,
|
||||
Stratum,
|
||||
_population,
|
||||
_semantic_model_of,
|
||||
@@ -80,6 +81,8 @@ class CompositionDefinition:
|
||||
basis: str
|
||||
rules: dict[str, str]
|
||||
strata: tuple[Stratum, ...]
|
||||
population: StatusAtEnd | None = None
|
||||
meta: dict = dataclasses.field(default_factory=dict, compare=False, hash=False)
|
||||
|
||||
@property
|
||||
def measure_id(self) -> str:
|
||||
@@ -121,6 +124,7 @@ def composition_definitions(manifest: Path) -> dict[str, CompositionDefinition]:
|
||||
tuple((b["valor"], b.get("menor_que")) for b in rule.get("bandas", ()))),
|
||||
group=meta["grupo"], basis=meta["basis"], rules=dict(meta.get("parametros", {})),
|
||||
strata=tuple(Stratum.of(name, s) for name, s in meta.get("estratos", {}).items()),
|
||||
population=StatusAtEnd.of(meta.get("poblacion")), meta=meta,
|
||||
)
|
||||
return definitions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user