Implements functionality of vscode debugger through debugpy. Did this using an override docker-compose-debug.yml file run using the s/up-debug script to ensure we're not polluting production environment (requires couple extra configs like env vars, ports etc). See documentation:
Single pt KPIs
Refactors the calculate_kpis_for_single_patient to return data the looks like:
Signed-off-by: anchit-chandran anchit97123@gmail.com
Overview
Vscode Debugger
Implements functionality of vscode debugger through
debugpy
. Did this using an overridedocker-compose-debug.yml
file run using thes/up-debug
script to ensure we're not polluting production environment (requires couple extra configs like env vars, ports etc). See documentation:Single pt KPIs
Refactors the
calculate_kpis_for_single_patient
to return data the looks like:With simple template to show its use at the bottom of
/patient/{PK}/visits
:Tests
Related Issues
https://github.com/orgs/rcpch/projects/13?pane=issue&itemId=87470511&issue=rcpch%7Cnational-paediatric-diabetes-audit%7C380 https://github.com/orgs/rcpch/projects/13?pane=issue&itemId=83210131&issue=rcpch%7Cnational-paediatric-diabetes-audit%7C320 https://github.com/orgs/rcpch/projects/13?pane=issue&itemId=87361257&issue=rcpch%7Cnational-paediatric-diabetes-audit%7C373