patient_manager.main#

Patient manager main file.

Attributes#

Functions#

custom_http_exception_handler(request, exc)

Add logging for http exceptions.

validation_exception_handler(request, exc)

Add logging for fastAPI's automatic input validation exceptions.

startup(→ None)

Initialize patient database.

readiness(→ dict)

Readiness health endpoint.

Module Contents#

patient_manager.main.app#
patient_manager.main.ORIGINS = ['http://localhost:8080', 'https://localhost:8443']#
async patient_manager.main.custom_http_exception_handler(request, exc)#

Add logging for http exceptions.

https://fastapi.tiangolo.com/tutorial/handling-errors/#reuse-fastapis-exception-handlers

async patient_manager.main.validation_exception_handler(request, exc)#

Add logging for fastAPI’s automatic input validation exceptions.

https://fastapi.tiangolo.com/tutorial/handling-errors/#reuse-fastapis-exception-handlers

async patient_manager.main.startup() → None#

Initialize patient database.

async patient_manager.main.readiness() → dict#

Readiness health endpoint.

Return type:

Status dictionary

Raises:

HTTPException – 500: Any of the protocol-tree tables does not exist