Validate an answer payload (dry run)
POST/telehealth/questionnaires/:id/validate
Checks an answer payload against the questionnaire without creating a consultation. Returns 200 with {valid, errors[], derivedDiagnosis}; errors are collected (every problem in one response), each with a machine code, the offending questionId/answerId, and a localized DE/EN message. Structural validity (arity, blank, unknown option, free-text length, required additional text) and eligibility (disqualifying answers, precedence onsite ⊃ online ⊃ prescription) are both checked.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
The request input failed validation. payload.issues lists the offending paths when the failure is schema-level; otherwise payload.message carries the reason.
Missing or invalid API key.
The provider exists but is not active.
The addressed resource does not exist.
An unexpected error occurred. payload.id is a correlation id for support.