app.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#

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

Add logging for http exceptions.

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

async app.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 app.main.startup() None#

Initialize patient database.

async app.main.readiness() dict#

Readiness health endpoint.

Returns#

Status dictionary

Raises#

HTTPException

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