Raw schema
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"enum": [
"male",
"female"
],
"description": "Patient biological sex."
},
"age": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Age value (an integer)."
},
"unit": {
"description": "Age unit: 'year' (default) or 'month'.",
"type": "string",
"enum": [
"year",
"month"
]
}
},
"required": [
"value"
],
"description": "Patient age, e.g. { value: 30 } or { value: 6, unit: 'month' }."
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Observation id, e.g. 's_21' (symptom), 'p_28' (risk factor), 'lt_1' (lab test)."
},
"choice_id": {
"type": "string",
"enum": [
"present",
"absent",
"unknown"
],
"description": "Observation state: present, absent, or unknown."
},
"source": {
"description": "Optional origin flag: initial | suggest | predefined | red_flags.",
"type": "string"
}
},
"required": [
"id",
"choice_id"
]
},
"description": "List of observed evidence (symptoms / risk factors / lab tests) and their states."
},
"suggest_method": {
"description": "Which kind of observations to suggest (default 'symptoms'). Sent as the `suggest_method` query param.",
"type": "string",
"enum": [
"symptoms",
"risk_factors",
"red_flags"
]
},
"max_results": {
"description": "Maximum number of suggestions.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"extras": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"model_id": {
"description": "Optional medical model id โ sent as the `Model-Id` request header.",
"type": "string"
},
"dev_mode": {
"description": "If true, mark the request as test traffic โ sends the `Dev-Mode: true` header.",
"type": "boolean"
}
},
"required": [
"sex",
"age"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}