Test Data for Pridok

This test data can be used to try out integration with Pridok in Leyr Sandbox.
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 Pridok EHR setup guide.

Environment Overview

When using Leyr credentials, you'll interact with a smart mock environment that fully replicates real Pridok data models. All response structures and data formats match your production experience exactly, making this ideal for integration development and testing.

Common Workflows

Pridok integration is actively expanding! Basic patient management and appointment booking are available, with additional features being developed. Check our supported services matrix to see current status and what's coming for Pridok.

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 Pridok system. Use any id from the response in the path parameter for other endpoints.

Patient Management

Create and retrieve patient information using realistic Pridok data models.

Create Patient: Use POST /patients to create new patients. All standard patient fields are supported with realistic response data that matches production Pridok formats.

Get Patient: Use GET /patients/{patient_id} with any patient ID from patients created via the API.

Availability

Discover available resources, services, and time slots for appointment booking.

Get Services: Call GET /healthcare-services to retrieve all available healthcare services using Pridok data models.

Get Resources: Call GET /resources to get available practitioners and resources.

Get Time Slots: Use GET /timeslots with resource_id and/or healthcare_service_id from previous calls to find available appointment times.

Testing Tip: Try your first /timeslots call without filtering parameters to see all available slots, then use resource_id or healthcare_service_id to narrow down results.

Appointment Booking

Test appointment workflows with production-accurate response structures and select management capabilities.

Book Appointment: Use POST /appointments with a patient ID (from Patient Management) and time slot details (from Availability) to create appointments. The response will show "status": "awaiting_confirmation" and an SMS confirmation code will be sent to the patient's phone number.

Confirm Appointment: After booking, use PATCH /appointments/{appointment_id} with the confirmation code from the SMS to confirm the appointment. The request body should include:

{
    "confirmation": {
        "code": "{code_from_sms}"
    }
}

Once confirmed, the appointment status will change to "booked". For more details on the confirmation process, see our appointment confirmation guide.

Cancel Appointment: Use PATCH /appointments/{appointment_id} to cancel appointments.

Get Appointments: This functionality is in progress for Pridok.
Update Appointment: This functionality is in progress for Pridok.

Medical Notes

Medical Notes functionality is in progress for Pridok.

Documents

Documents functionality is in progress for Pridok.

Happy coding! ๐Ÿ™‚

In case of any questions or if you feel stuck - please feel free to reach out at contact@leyr.io.