This scenario models a patient booking a follow-up visit after an earlier encounter. Scheduling systems expose a service calendar, open slots are available at convenient times, and the patient secures a reservation without conflicts or double-booking.
from zato_fhir.test.r4.v1 import Scenarios, TestData
for booking in Scenarios.appointment_booking:
for name in booking.patient.name:
print(name.text)
for name in booking.practitioner.name:
print(name.text)
print(booking.organization.name)
for enc in booking.encounters:
print(enc.status)
print(booking.appointment.status)
print(booking.appointment_response.participantStatus)
print(booking.schedule.active)
print(booking.slot.status)
print(booking.healthcare_service.active)
print(booking.endpoint.status)
for appt in TestData.Appointment:
print(appt.status)This scenario models a patient booking a follow-up visit after an earlier encounter. Scheduling systems expose a service calendar, open slots are available at convenient times, and the patient secures a reservation without conflicts or double-booking.
Both the clinic and the patient affirm the appointment through responses, and the healthcare service definition plus endpoint metadata give integrators enough context to route notifications or telehealth links. The flow completes with everyone aligned on time, place, and service type.
12 resources per instance, 120 total across 10 instances.
| FHIR resource type | Role in this scenario |
|---|---|
Patient | Person booking the follow-up |
Practitioner | Clinician associated with the visit |
Organization | Scheduling organization |
Encounter | Prior or anchor encounter context |
Appointment | Proposed or booked appointment |
AppointmentResponse | Participant acceptance or tentative reply |
Schedule | Container of availability |
Slot | Bookable time interval |
HealthcareService | Service being scheduled |
Endpoint | Technical address for integrations |
FHIR resources per instance | 12 |
Total resources (10 instances) | 120 |
Distinct resource types | 10 |
Scenario identifier | `Scenarios.appointment_booking` |
Get started with Zato and connect your systems in minutes.