COMPLETED, or generation ended in FAILED or ABORTED.
You need a Suki Token (sdp_suki_token) for upload, generate, status, and retrieve. A Partner Token alone is not enough.
Common causes
- Retrieving the summary before generation status is
COMPLETED. - Triggering generation before CKG ingestion status is
COMPLETED. - Keeping the poll loop running after
FAILEDorABORTED. - Treating a 403
permission_deniedas empty content.
Fix
1
Finish CKG Ingestion First
Upload FHIR data, then poll ingestion status until
COMPLETED. Stop on FAILED or ARCHIVED.2
Generate, Then Poll Job Status
Call generate, then poll encounter or job status until
COMPLETED. Status values include READY, RUNNING, COMPLETED, FAILED, and ABORTED. Stop on FAILED or ABORTED.3
Retrieve Only After COMPLETED
Call full or pre-visit summary endpoints only when generation status is
COMPLETED. Use patient_summary_id from generation, or the fhir_encounter_id and fhir_practitioner_id pair you used.4
If You Get 403
Fix organization access. See 403 permission_denied, insufficient_scope, or sbac_denied.
Order from the Patient Summary quickstart: upload and poll ingestion, Login when needed, generate, poll generation status, then retrieve.