Test Data for Cerner Millennium
It is applicable when using Leyr credentials, as described in the EHR configuration guide.
If you'd like to use your own credentials or are going live, please refer to our Cerner Millennium EHR setup guide.
Environment Overview
We have a partially integrated Sandbox for testing with Cerner Millennium. Most read operations work with real data, but patient creation and appointment booking return mocked responses due to Millennium's Sandbox limitations. You can test the complete data discovery flow and see realistic response structures.
Common Workflows
Care Units Discovery
This is the typical entry point to the Leyr API. The care unit ID returned here is required for all subsequent API calls.
Call GET
/care-units to discover available care units in the Millennium system. Use any id
from the response, including L0_22887191
which has extensive test data associated with it.
Patient Management
Retrieve existing patient information and test patient creation workflows.
Get Patient: Use GET
/patients/{patient_id} with any of the patient IDs below. These work with any valid care unit ID.
patient_id |
---|
12724067 |
12822085 |
12755128 |
Create Patient: Use POST
/patients to test patient creation. You'll receive a mocked response with emr_id
and id
set to "MOCKED"
because Millennium's Sandbox doesn't allow actual patient creation.
Availability
Discover available resources, services, and time slots using specific test data combinations.
Get Services: Call GET
/healthcare-services to retrieve available healthcare services.
Get Resources: Call GET
/resources to get available practitioners and resources.
Get Time Slots: Use GET
/timeslots with this specific combination for guaranteed results:
care_unit_id | resource_id | healthcare_service_id |
---|---|---|
L0_22887191 | 12763452 | http://snomed.info/sct|408443003 |
Appointment Booking
Test appointment workflows with both real data retrieval and mocked booking responses.
Get Appointments: Use GET
/appointments without parameters to see all clinic appointments. This will also reveal additional patient IDs you can use for testing.
Book Appointment: Use POST
/appointments to test appointment booking. You'll receive a mocked response with emr_id
and id
set to "MOCKED"
because Millennium's Sandbox doesn't allow actual appointment creation.
Update Appointment: Use PATCH
/appointments/{appointment_id} with appointment IDs from the GET /appointments response.
Cancel Appointment: Use PATCH
/appointments/{appointment_id} with appointment IDs from the GET /appointments response.
Medical Notes
Documents
Access and manage patient documents with real Millennium data.
Get Documents: Use GET
/documents with any of the patient IDs from the Patient Management section.
Create Document: Use POST
/documents to upload or create documents for patients.
Happy coding! ๐