Update API_DOCUMENTATION.md with optional category and auto-triage

This commit is contained in:
2026-08-31 11:04:20 +05:30
parent debfa05a8b
commit 214e7d7e7c
+8 -8
View File
@@ -113,7 +113,7 @@ Creates a new voice onboarding session, initializes dynamic state, and returns l
- **URL:** `POST /v1/voice-onboarding/start` - **URL:** `POST /v1/voice-onboarding/start`
- **Headers:** `Content-Type: application/json` - **Headers:** `Content-Type: application/json`
- **Request Body:** - **Request Body:** *(Note: `category` is optional and defaults to Auto-Triage General Medicine)*
```json ```json
{ {
"patient": { "patient": {
@@ -122,19 +122,19 @@ Creates a new voice onboarding session, initializes dynamic state, and returns l
"age": 42, "age": 42,
"gender": "male", "gender": "male",
"abha_id": "91-1234-5678-9012", "abha_id": "91-1234-5678-9012",
"phone": "+91 98765 43210", "phone": "+91 98765 43210"
"insurance_scheme": "PM-JAY",
"dietary_habits": "Vegetarian"
}, },
"category": { "category": {
"type": "speciality", "type": "general",
"code": "cardio", "code": "general_medicine",
"name": "Cardiology" "name": "General Medicine / Primary Care (Auto-Triage)"
}, },
"language": "en-IN" "language": "ta-IN"
} }
``` ```
> 💡 **Automatic Specialty Auto-Triage**: If `category` is omitted, the API defaults to General Medicine. During the conversation, the AI automatically analyzes the patient's symptoms and assigns the exact specialty (`suggested_specialty`) in real-time.
- **Response (`200 OK`):** - **Response (`200 OK`):**
```json ```json
{ {