{ "type": "object", "properties": { "disease": { "type": "string", "description": "Full medical name (e.g. 'Amyotrophic Lateral Sclerosis')" }, "age": { "type": "integer" }, "onset_date": { "type": "string", "description": "Date of first symptom onset in YYYY-MM format (preferred over onset_months)" }, "onset_months": { "type": "integer", "description": "Months since first symptom onset — only use if exact date is unknown" }, "diagnosis_date": { "type": "string", "description": "Date of formal diagnosis in YYYY-MM format (preferred over diagnosis_months)" }, "diagnosis_months": { "type": "integer", "description": "Months since formal/official diagnosis — only use if exact date is unknown" }, "benchmarks": { "type": "object", "description": "Disease-specific scores, e.g. {\"ALSFRS-R\": \"38\"}", "additionalProperties": { "type": "string" } }, "zip_code": { "type": "string", "description": "Patient ZIP / postal code" }, "country_code": { "type": "string", "description": "ISO 2-letter country code (default US)" }, "radius_miles": { "type": "integer", "description": "Search radius in miles from patient location (default 20)" }, "phases": { "type": "array", "items": { "type": "string", "enum": ["0", "1", "2", "3", "4", "na"] }, "description": "Desired trial phases (0=Early Phase 1, 1=Phase 1, 2=Phase 2, 3=Phase 3, 4=Phase 4, na=Not Applicable). Empty = all phases." }, "include_eap": { "type": "boolean", "description": "Whether patient is interested in Expanded Access Programs (compassionate use)" }, "include_observational": { "type": "boolean", "description": "Whether patient is interested in observational studies (no experimental treatment; researchers observe and measure outcomes)" } }, "required": ["disease", "age", "onset_months", "diagnosis_months", "zip_code"] }