Follow-up list and patient risk routes are always registered; en_dev() is deprecated

This commit is contained in:
2026-11-09 11:30:28 -06:00
parent 0f00a975fa
commit 0cbe390b25
5 changed files with 40 additions and 51 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
"""A CaCu patient's individual risk: `GET /cacu/pacientes/<pac_id>/riesgo`, only in DEV.
"""A CaCu patient's individual risk: `GET /cacu/pacientes/<pac_id>/riesgo`.
The contract the WebApp's patient record reads (`RiesgoPacienteCacu`): the patient's membership in the surveillance
cohort's latest build, with its variables, and its risks in the current batch, the newest one with a confirmed
evaluation. Patient data: **registered only in DEV** (`DEV_REVISION`), on simulated data, and every response carries
`simulado: true`. `pac_id` is the internal id; whoever calls is already inside the secure environment. A field is never
evaluation. Patient data, on simulated data: every response carries `simulado: true`. The route is always registered;
who may see it is an access rule still to be defined. `pac_id` is the internal id; whoever calls is already inside the secure environment. A field is never
removed or renamed, only added.
"""
@@ -16,7 +16,7 @@ COHORT_VARIABLES = ("tipo_censura", "c", "l", "r", "pap_0", "hpv_0")
def patient_risk_blueprint(repositories) -> Blueprint:
"""The blueprint, to register with `url_prefix="/cacu"` only in DEV. `repositories` is `persistance.cacu`."""
"""The blueprint, to register with `url_prefix="/cacu"`. `repositories` is `persistance.cacu`."""
blueprint = Blueprint("cacu_patient_risk", __name__)
@blueprint.get("/pacientes/<int:pac_id>/riesgo")