Skip to main content
Problem: Retrieve APIs return empty or missing summaries right after you trigger generation. Solution: Poll Get patient summary generation status for encounter until COMPLETED, then retrieve. Treat FAILED and ABORTED as terminal. You can also poll by patient_summary_id with Get patient summary job status.
This cookbook assumes you already triggered generation for the encounter, have Partner ID and sdp_suki_token, and use the same fhir_encounter_id and fhir_practitioner_id as generation.

Common mistakes

  • Calling retrieve while status is still READY or RUNNING.
  • Stopping only on COMPLETED and ignoring FAILED / ABORTED (those loops never end cleanly).
  • Polling with different encounter or practitioner IDs than you used to generate.

Other cookbooks

Patient SummaryAPI

Generate a Patient Summary for One Encounter

Trigger generation and save the ID.

5 min
Patient SummaryAPI

Upload FHIR to CKG and Poll Ingestion

Upload FHIR, then wait for COMPLETED.

5 min
Last modified on August 7, 2026