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.- TypeScript
- Python
Common mistakes
- Calling retrieve while status is still
READYorRUNNING. - Stopping only on
COMPLETEDand ignoringFAILED/ABORTED(those loops never end cleanly). - Polling with different encounter or practitioner IDs than you used to generate.