endpoints.calculate_result module¶
This module contains the calculate_result endpoint for processing questionnaire responses.
- endpoints.calculate_result.calculate_results(payload: dict, _api_key: str = fastapi.Depends)¶
Calculate the recommended therapy cluster based on questionnaire responses.
- Parameters:
api_key – API key for authentication (validated).
payload (dict) – JSON payload containing questionnaire responses.
- Returns:
Recommended therapy cluster.
- Return type:
dict