Scheduled Appointments
Single Encounter
- Deciding when to generate summaries.
- Selecting the appropriate generation workflow.
- Monitoring generation and retrieving completed summaries.
Complete CKG Ingestion
COMPLETED.Align FHIR Identifiers
fhir_encounter_id and fhir_practitioner_id values during ingestion and generation.Check for an Existing Summary
Generate Only When Needed
Prerequisites
- FHIR data for the patient is available in CKG (ingestion status
COMPLETEDwhen you depend on upload status). - A valid Suki Token. See Partner authentication.
- Stable encounter, practitioner, and patient identifiers that match your ingestion and retrieval paths.
Decide on a generation workflow
Choose the workflow based on how many summaries you need.Scheduled Appointments
Scheduled Appointments
- Morning clinic preparation.
- Provider sign-in or application launch.
- Preloading schedule views before patient visits.
fhir_practitioner_id. Refer to Generate Patient Summaries for scheduled appointments.Single Encounter
Single Encounter
- A clinician opens a patient chart.
- A patient is added after the morning generation run.
- New clinical data requires an updated summary.
fhir_encounter_id and fhir_practitioner_id. Refer to Generate Patient Summary for an encounter.- Scheduled generation prepares summaries before the clinic day begins.
- Encounter generation handles individual requests throughout the day.
Generate summaries for scheduled appointments
Use this workflow to generate summaries for every appointment on a provider’s schedule.Typical workflow
Confirm Schedule and Patient Data
Trigger Scheduled Generation
fhir_practitioner_id.Accept the Batch Job
202 Accepted when generation is scheduled. Suki starts a generation job for each matching appointment.Monitor Each Appointment
Retrieve Completed Summaries
Generate summaries for a single encounter
Use this workflow to generate a summary for one upcoming encounter.Confirm Encounter Data
Trigger Encounter Generation
fhir_encounter_id and fhir_practitioner_id.Save the Patient Summary ID
patient_summary_id. Store it if your application uses it for status checks or retrieval.Monitor the Job
COMPLETED, FAILED, or ABORTED).Retrieve the Summary
How generation jobs work
Each generation request creates an asynchronous job. The summary is generated in the background and is not included in the initial generation response.- Submit a generation request.
- Receive acknowledgment (
patient_summary_idfor a single encounter, or202 Acceptedfor scheduled generation). - Monitor the job status.
- Stop polling when the job reaches a terminal status.
- Retrieve the completed summary.
Status values
COMPLETED, FAILED, and ABORTED are terminal statuses. Stop polling when you receive one of them.patient_summary_id, orfhir_encounter_idandfhir_practitioner_id.
Common workflows
Morning Clinic Preparation
Morning Clinic Preparation
- Ingest the provider schedule and patient data.
- Generate summaries for the day’s appointments.
- Monitor job progress per appointment.
- Display summaries in the provider schedule.
Provider Opens the Application
Provider Opens the Application
- Check whether today’s appointments already have summaries.
- Generate summaries only for appointments that do not.
- Continue monitoring generation in the background.
- Display summaries as clinicians open patient charts.
Late Appointment
Late Appointment
- Confirm the encounter data has been ingested into CKG.
- Generate a summary for that encounter.
- Retrieve and display the completed summary.
Troubleshooting
Plan for these situations in production. Generation should wait on CKG, reuse existing summaries when you can, and treat empty clinical states as product UI, not broken APIs.CKG Ingestion Incomplete
CKG Ingestion Incomplete
COMPLETED before generating summaries.Summary Already Exists
Summary Already Exists
No Upcoming Appointment
No Upcoming Appointment
Limited Patient History
Limited Patient History
Job Failed or Aborted
Job Failed or Aborted
FAILED or ABORTED. Log the identifiers, notify users if appropriate, and retry when applicable.Identifier Mismatch
Identifier Mismatch
fhir_encounter_id and fhir_practitioner_id across ingestion and generation, then retry.