GET /cacu/pacientes/<pac_id>/riesgo, only in DEV: the patient's cohort membership and risks in the current batch, in the WebApp's contract
This commit is contained in:
+6
-1
@@ -77,10 +77,15 @@ def create_app() -> Flask:
|
||||
app.register_blueprint(data_bp, url_prefix="/data")
|
||||
app.register_blueprint(governance_bp, url_prefix="/governance")
|
||||
app.register_blueprint(reportes_bp, url_prefix="/reportes")
|
||||
# Patient-level follow-up list: only in DEV, with simulated data.
|
||||
# Patient-level follow-up list and individual risk: only in DEV, with simulated data.
|
||||
if en_dev():
|
||||
from persistance.db import get_cacu_session
|
||||
|
||||
app.register_blueprint(blueprint_de_seguimiento(get_cacu_session), url_prefix="/cacu")
|
||||
from persistance import cacu as cacu_repositories
|
||||
|
||||
from webapi.patient_risk import patient_risk_blueprint
|
||||
|
||||
app.register_blueprint(patient_risk_blueprint(cacu_repositories), url_prefix="/cacu")
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user