Test Data for PasientSky
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
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.
/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.
Medical Notes
Documents
Happy coding! 🙂