curl --request PATCH \
--url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/context \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data @- <<EOF
{
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
EOF{
"context": {
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
}Update existing session context with new clinical information
curl --request PATCH \
--url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/context \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data @- <<EOF
{
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
EOF{
"context": {
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
}visit and provider_role fields.visit field within the payload. The visit field contains information about the visit such as chief complaint, encounter type, reason for visit, and visit type.provider_role field within the payload. The provider_role field contains information about the provider.| Feature | POST (Seed) | PATCH (Update) |
|---|---|---|
| Purpose | Set entire context all at once when available | Incrementally build context as information becomes available |
| Data Approach | Complete context payload | Partial context updates |
| Timing | Before EndSession. When you have all context information together. | Before EndSession. As information becomes available progressively |
| Behavior | Replaces entire context | Updates only specified fields |
chief_complaint and reason_for_visit fields must not exceed 255 characters.
visit_type, encounter_type, and provider_role fields function as enums and only accept a specific set of predefined string values. You must use one of the allowed values for these fields, as any other string will cause the request to fail.
sdp_suki_token
ambient_session_id
UpdateContextRequest
Request body for the /session/{ambient_session_id}/context PATCH endpoint
Optional - Information about the diagnoses
Show child attributes
Optional - Information about the patient
Show child attributes
Optional - Information about the provider
Show child attributes
Optional - Information about the sections to be generated. If not provided, all supported note-sections will be generated.
Show child attributes
Optional - Information about the visit
Show child attributes
Success Response
Response body for the /session/{ambient_session_id}/context PATCH endpoint
Updated context for the session
Show child attributes