Compute diagnosis
infermedica_diagnosisRun the diagnostic engine over the collected evidence — returns the next question to ask, ranked candidate conditions with probabilities, and a should_stop flag. Non-mutating computation. Engine API: POST /diagnosis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Patient age, e.g. { value: 30 } or { value: 6, unit: 'month' }. | |
| sex | Yes | Patient biological sex. | |
| extras | No | Optional engine flags (e.g. disable_groups, enable_triage_5). | |
| dev_mode | No | If true, mark the request as test traffic → sends the `Dev-Mode: true` header. | |
| evidence | No | Evidence collected so far (may be empty for the first call). | |
| model_id | No | Optional medical model id → sent as the `Model-Id` request header. |