Test Data for PasientSky

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

Environment Overview

We have a partially integrated Sandbox for testing with PasientSky. Core patient and appointment booking workflows are functional, though many features are still in active development. PasientSky requires specific patient validation against Norwegian national registry systems.

Common Workflows

PasientSky integration requires specific test data and has Norwegian national registry validation requirements. Use the exact patient ID provided below for successful testing. Check our supported services matrix to see current status for PasientSky.

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

Patient Management

Retrieve patient information using validated Norwegian registry data.

Create Patient: Use POST /patients to create new patients. All standard patient fields are supported and will be reflected in your PasientSky system.

Get Patient: Use GET /patients/{patient_id} with the validated test patient ID below or any patient ID from your system.

Test Patient ID: For appointment booking, you must use this specific patient ID to avoid SSN_NOT_FOUND_IN_NATIONAL_REGISTRY errors:

patient_id
MTUwNzY1MDA1NjUAVGVzdABUZXN0AHRlc3RAdGVzdC5jb20AKzQ3NjM1MTYyMzE=

Availability

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

Get Services: Call GET /healthcare-services to retrieve all available healthcare services configured in your PasientSky system.

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

Create appointments using the validated test patient data, with additional management features in development.

Book Appointment: Use POST /appointments with the specific test patient ID (from Patient Management) and time slot details (from Availability) to create appointments.

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

Medical Notes

Medical Notes functionality is in progress for PasientSky.

Documents

Documents functionality is in progress for PasientSky.

Happy coding! 🙂

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