endpoints.therapy_clusters module

This module contains the therapy_clusters endpoint for retrieving therapy clusters.

endpoints.therapy_clusters.get_therapy_clusters(_api_key: str = Depends(validate_api_key), db: Session = Depends(get_db), limit: int = Query(10), offset: int = Query(0), cluster_short: str = Query(None))[source]

Retrieve a list of therapy method clusters with optional filtering.

Parameters:
  • api_key – API key for authentication (validated).

  • limit – Maximum number of results to return (default is 10).

  • offset – Number of results to skip for pagination (default is 0).

  • cluster_short – Filter by therapy cluster short code.

  • db – Database session dependency.

Returns:

List of therapy method clusters matching the criteria.

Return type:

List[TherapyMethodCluster]