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
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.
Error handling
Plan for the following situations in production.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).Resolution: Log the identifiers, notify users if appropriate, and retry if applicable.Identifier Mismatch
Identifier Mismatch
fhir_encounter_id and fhir_practitioner_id across ingestion and generation, then retry.Best practices
Next steps
Continue with the following guides:- Retrieve patient summaries to display completed summaries in your application.
- Patient Summary basic usage to follow an end-to-end integration example.
- Summary Generation APIs to explore the available generation endpoints.