Schedule a demo
Clinical

Vision checkup

This scenario models a routine annual eye examination in a wellness-oriented clinic. The patient completes standard visual assessment, and findings indicate mild myopia that is well within the range typically managed with corrective lenses. The encounter closes with a clear plan for comfortable daily vision and follow-up as appropriate.

12resources / instance
10FHIR types
10instances
vision_checkup.py
from zato_fhir.test.r4.v1 import Scenarios, TestData

for checkup in Scenarios.vision_checkup:
    patient = checkup.patient
    for name in patient.name:
        print(name.text)

    practitioner = checkup.practitioner
    for name in practitioner.name:
        print(name.text)

    organization = checkup.organization
    print(organization.name)

    for encounter in checkup.encounters:
        print(encounter.status)

    prescription = checkup.vision_prescription
    print(prescription.prescriber)

    device = checkup.device
    print(device.statusReason)

    definition = checkup.device_definition
    print(definition.modelNumber)

    metric = checkup.device_metric
    print(metric.type_)

    request = checkup.device_request
    print(request.groupIdentifier)

    use_stmt = checkup.device_use
    print(use_stmt.subject)

About this scenario

This scenario models a routine annual eye examination in a wellness-oriented clinic. The patient completes standard visual assessment, and findings indicate mild myopia that is well within the range typically managed with corrective lenses. The encounter closes with a clear plan for comfortable daily vision and follow-up as appropriate.

The record includes the prescribing clinician, the care organization, and the encounter that frames the visit. A vision prescription documents the lens correction, while device-related resources describe the phoropter and related equipment used during refraction. Device requests, use statements, definitions, and metrics support interoperability with equipment and analytics pipelines without implying any urgent pathology.

FHIR resources in this scenario

12 resources per instance, 120 total across 10 instances.

FHIR resource typeRole in this scenario
PatientPerson receiving the eye examination
PractitionerClinician or optometrist conducting the visit
OrganizationClinic or practice providing vision care
EncounterEach visit instance for the eye examination
VisionPrescriptionCorrective lens prescription for mild myopia
DevicePhoropter or related equipment instance
DeviceDefinitionCatalog definition for the documented device
DeviceMetricMeasurements or operational metrics from the device
DeviceRequestOrder or request context for device use
DeviceUseStatementAssertion that the device was used for the patient
FHIR resources per instance12
Total resources (10 instances)120
Distinct resource types10
Scenario identifier`Scenarios.vision_checkup`

At a glance

12
FHIR resources per instance
120
Total resources (10 instances)
10
Distinct resource types
Scenarios.vision_checkup
Scenario identifier

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python