Leyr
Test Data

Smart Mock

Leyr provides a Smart Mock environment for every supported EHR. It fully replicates real EHR data models and response structures, so you can develop and test your integration without needing access to a real EHR sandbox or any specific test data.

Smart Mock Testing

Leyr provides a Smart Mock environment for every supported EHR. It fully replicates real EHR data models and response structures, so you can develop and test your integration without needing access to a real EHR sandbox or any specific test data.

Smart Mock is the fastest way to get started. All supported workflows return production-accurate responses - no special IDs or credentials required beyond your Leyr Sandbox credentials.

How It Works

When you configure an EHR in Leyr Sandbox using Leyr credentials, the Smart Mock environment is automatically available. Smart Mock is a stateful, per-EHR simulation. Rather than returning generic dummy data, it replicates each EHR's specific data models, ID formats, and workflows - so the responses you see match what you'd get in production.

  • Per-EHR data quality - IDs, field names, and response structures mirror the real EHR. For example, one system might use UUIDs for care units while another uses numeric IDs.
  • Workflow replication - the mock doesn't just return data; it replicates real workflows including error cases. Booking an appointment for a non-existent doctor returns the same error you'd see in production.
  • Stateful - resources you create (patients, appointments, notes) are persisted in the sandbox, so you can test full end-to-end flows.

For a deeper dive, see Smart Mock.

How to Test

Follow the Quickstart guides - they walk through every common workflow step-by-step with working code examples. The Smart Mock environment supports all workflows described there.

To see which services are available for a specific EHR, check the supported services matrix.

Some EHRs also have a dedicated real sandbox with specific test data - see EHR Sandbox Data for those.

Leyr © 2026