Skip to main content
GET
/
api
/
v1
/
ambient
/
encounter
/
{encounter_id}
/
content
Gets the content for the encounter.
curl --request GET \
  --url https://sdp.suki-stage.com/api/v1/ambient/encounter/{encounter_id}/content \
  --header 'sdp_suki_token: <sdp_suki_token>'
{
  "structured_data": [
    {
      "data": {
        "dosage": "2 puffs",
        "medication": "albuterol"
      },
      "title": "MEDICATIONS"
    }
  ],
  "summary": [
    {
      "content": "Asthma exacerbation",
      "loinc_code": "18776-5",
      "source_transcripts": [
        "asthma",
        "exacerbation"
      ],
      "title": "ASSESSMENT AND PLAN"
    }
  ]
}
Use this endpoint to get the cumulative summary and structured data associated with the specified encounter.

Code Examples

  • Python
  • TypeScript
import requests

encounter_id = "123dfg-456dfg-789dfg-012dfg"
url = f"https://sdp.suki.ai/api/v1/ambient/encounter/{encounter_id}/content"

headers = {
    "sdp_suki_token": "<sdp_suki_token>"
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    content = response.json()
    print("Encounter Summary:")
    for section in content.get("summary", []):
        print(f"\nTitle: {section.get('title')}")
        print(f"LOINC Code: {section.get('loinc_code')}")
        print(f"Content: {section.get('content')}")
        
        # Source transcripts used to generate this content
        source_transcripts = section.get('source_transcripts', [])
        if source_transcripts:
            print(f"Source Transcripts: {', '.join(source_transcripts)}")
    
    print("\nStructured Data:")
    for structured_block in content.get("structured_data", []):
        print(f"\n{structured_block.get('title')}:")
        # data is a key-value object
        data = structured_block.get('data', {})
        for key, value in data.items():
            print(f"  {key}: {value}")
else:
    print(f"Failed to get encounter content: {response.status_code}")
    print(response.json())

Headers

sdp_suki_token
string
required

Path Parameters

encounter_id
string
required

Response

structured_data
object[]
summary
object[]