Update API_DOCUMENTATION.md with optional category and auto-triage
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user