Skip to content

Guides

Results

The transcript with speakers and timestamps, the clinical summary, decision support and diagnosis code suggestions.

A completed session has one result. For an intake interview it contains the transcript, a clinical summary, decision support and diagnosis code suggestions. For an ambient session it contains the transcript and the clinical note.

Fetching a result

GET/v1/sessions/{id}/result

Fetch the result from your server, with a key that has the records:read scope, after you receive session.completed. Use the session id from the verified event, branch on mode, and write the result to your protected record store rather than printing it.

Fetch the result
curl "https://api.aimedintake.com/v1/sessions/$SESSION_ID/result" \
  -H "Authorization: Bearer $AIMEDINTAKE_API_KEY"
Response · 200
{
  "session": "ses_01JDK8Z3Q4",
  "status": "completed",
  "mode": "intake",
  "language": "en",
  "generated_at": "2027-01-12T13:09:40Z",
  "transcript_source": "client",
  "transcript": [
    {
      "id": "utt_0001",
      "seq": 1,
      "speaker": "assistant",
      "text": "Hello, I am Ana, an AI assistant with your care team. I would like to ask a few questions before your visit. Is that okay?",
      "start_ms": 0,
      "end_ms": 6200
    },
    {
      "id": "utt_0002",
      "seq": 2,
      "speaker": "patient",
      "text": "Yes, that is fine.",
      "start_ms": 6900,
      "end_ms": 8100
    },
    {
      "id": "utt_0003",
      "seq": 3,
      "speaker": "assistant",
      "text": "Thank you. What brings you in today?",
      "start_ms": 8600,
      "end_ms": 10900
    },
    {
      "id": "utt_0004",
      "seq": 4,
      "speaker": "patient",
      "text": "I have had a tight feeling in my chest since yesterday evening, mostly when I climb stairs.",
      "start_ms": 11800,
      "end_ms": 17400
    }
  ],
  "summary": {
    "text": "**Chief complaint:** Chest tightness since yesterday evening.\n\n**History:** Exertional, mostly on climbing stairs. No further history was collected."
  },
  "decision_support": {
    "text": "**Considerations for the clinician:** Exertional chest tightness of recent onset warrants prompt assessment, including an ECG."
  },
  "code_suggestions": [
    {
      "system": "icd10cm",
      "code": "R07.89",
      "display": "Other chest pain",
      "score": 0.84
    },
    {
      "system": "icd10cm",
      "code": "R07.9",
      "display": "Chest pain, unspecified",
      "score": 0.82
    }
  ],
  "ambient_note": null,
  "model_ids": {
    "summary": "summary-2026-10",
    "analysis": "analysis-2026-10"
  },
  "pipeline_version": "2026.11.2"
}

The result is generated once and does not change. Fetch it, store what you need, and read from your own copy afterwards; the API keeps it only until the session’s purge_at.

Transcript

transcript
[
  {
    "id": "utt_0001",
    "seq": 1,
    "speaker": "assistant",
    "text": "Hello, I am Ana, an AI assistant with your care team. I would like to ask a few questions before your visit. Is that okay?",
    "start_ms": 0,
    "end_ms": 6200
  },
  {
    "id": "utt_0002",
    "seq": 2,
    "speaker": "patient",
    "text": "Yes, that is fine.",
    "start_ms": 6900,
    "end_ms": 8100
  }
]
Transcript fields
FieldDescription
idUtterance id. Assigned by the API (utt_0001, utt_0002, …) for intake sessions. For ambient sessions these are the ids you submitted.
seqPosition in spoken order, starting at 1.
speakerassistant or patient for intake; clinician, patient or unknown for ambient.
textWhat was said, as submitted.
start_ms, end_msMilliseconds from the start of the call. null when you did not supply them.

transcript_source is always client: the transcript is the one your client submitted, returned with ids and sequence numbers. Audio is not stored by AI Medical Intake.

Summary

summary
{
  "text": "**Chief complaint:** Chest tightness since yesterday evening.\n\n**History:** Exertional, mostly on climbing stairs. No further history was collected."
}

summary.text is a clinical summary of the interview, written for the clinician who sees the patient next. It is Markdown, and it is written in English whatever the interview language, so that one clinical team can read every result; the transcript keeps the original language. Render it with a Markdown renderer that escapes raw HTML.

Decision support

decision_support
{
  "text": "**Considerations for the clinician:** Exertional chest tightness of recent onset warrants prompt assessment, including an ECG."
}

decision_support.text offers considerations for the clinician, such as points to explore and findings that deserve attention, in Markdown and in English. It is an aid to a qualified professional, never a diagnosis and never shown to the patient.

Decision support is an organization setting. When it is off, the analysis is not run and decision_support is null; write your client to accept that.

Code suggestions

code_suggestions
[
  {
    "system": "icd10cm",
    "code": "R07.89",
    "display": "Other chest pain",
    "score": 0.84
  },
  {
    "system": "icd10cm",
    "code": "R07.9",
    "display": "Chest pain, unspecified",
    "score": 0.82
  }
]
Code suggestion fields
FieldDescription
systemThe code system. icd10cm (ICD-10-CM).
codeThe code.
displayThe official description of the code.
scoreRelevance to the conversation, from 0 to 1. Higher is closer. Use it to order suggestions, not as a probability.

Suggestions are ordered best match first and are found by matching the clinical content of the conversation against the full code set. They are candidates for a coder or clinician to accept or reject. The list can be empty when the conversation contains nothing codable.

Provenance

Provenance fields
{
  "generated_at": "2027-01-12T13:09:40Z",
  "model_ids": {
    "summary": "summary-2026-10",
    "analysis": "analysis-2026-10"
  },
  "pipeline_version": "2026.11.2"
}

Every result records when it was generated, an identifier for the model version behind each part, and the version of the processing pipeline. Treat model_ids values and pipeline_version as opaque strings (the values above are illustrative) and store them with the result, so that you can later show exactly what produced a given piece of text.

When there is no result

The result endpoint answers 200 only for a completed session. Otherwise it returns a problem that tells you why:

Result errors
StatusCodeSession statusWhat to do
404result_not_readycreated or processingWait for the webhook.
409session_failedfailedFinal. The problem carries error_code.
409session_expiredexpiredFinal. No transcript arrived.
410deleteddeletedYou deleted the session.
410purgeddeletedThe retention period ended.
404not_foundNo such session in your organization.
409 session_failed
{
  "type": "https://aimedintake.com/docs/errors#session_failed",
  "title": "Session failed",
  "status": 409,
  "code": "session_failed",
  "detail": "Processing failed and will not be retried.",
  "request_id": "req_01JDKD2J5Z",
  "error_code": "pipeline_timeout"
}

Clinical use