app.main ======== .. py:module:: app.main .. autoapi-nested-parse:: Patient manager main file. Attributes ---------- .. autoapisummary:: app.main.app app.main.ORIGINS Functions --------- .. autoapisummary:: app.main.custom_http_exception_handler app.main.validation_exception_handler app.main.startup app.main.readiness Module Contents --------------- .. py:data:: app .. py:data:: ORIGINS :value: ['http://localhost:8080', 'https://localhost:8443'] .. py:function:: custom_http_exception_handler(request, exc) :async: Add logging for http exceptions. https://fastapi.tiangolo.com/tutorial/handling-errors/#reuse-fastapis-exception-handlers .. py:function:: validation_exception_handler(request, exc) :async: Add logging for fastAPI's automatic input validation exceptions. https://fastapi.tiangolo.com/tutorial/handling-errors/#reuse-fastapis-exception-handlers .. py:function:: startup() -> None :async: Initialize patient database. .. py:function:: readiness() -> dict :async: Readiness health endpoint. Returns ------- Status dictionary Raises ------ HTTPException 500: Any of the protocol-tree tables does not exist