Skip to main content

dependencies

FastAPI dependency providers for the patient-data API.

Module​

Functions​

get_repository​

def get_repository(    request: Request,) ‑> PatientDataRepository:

Return the repository bound to the app.

Arguments

  • request: The incoming request, used to reach app.state.

Returns The PatientDataRepository stored on the app at creation time.