Test Data for Konfidens

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

Environment Overview

We have a fully integrated Sandbox for testing with Konfidens. Patient management, appointment booking, and resource discovery workflows are functional, though some appointment management and medical record features are not yet supported. The system follows Norwegian healthcare data requirements.

Common Workflows

With Konfidens integration, you have access to real data and can create your own test scenarios! Note the Norwegian-specific requirements for patient data. Check our supported services matrix to see what's available for Konfidens.

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

Patient Management

Create and retrieve patient information following Norwegian healthcare data requirements.

Create Patient: Use POST /patients to create new patients. You must provide a valid Norwegian personal number (fødselsnummer) as Konfidens follows Norwegian regulations. You can find test fødselsnummer at https://norske-testdata.no/fiktivt-fnr/.

Get Patient: Use GET /patients/{patient_id} with any patient ID from your system or 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 configured in your Konfidens 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.

Appointment Booking

Create and cancel appointments, with some management features not yet supported.

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

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

Get Appointments: This functionality is not supported for Konfidens.
Update Appointment: This functionality is not supported for Konfidens.

Medical Notes

Medical Notes functionality is not supported for Konfidens.

Documents

Documents functionality is in progress for Konfidens.

Happy coding! 🙂

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