Test Data for TakeCare

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

Mocked Environment

As of Summer 2024, TakeCare have introduced significant changes to their test environment, which affected the test access. We are working on getting the full access back, but it may take some time.

However, we were able to fully replicate real TakeCare data models, based on our knowledge collected while the test environment was fully available. Response data that you will receive while trying our Sandbox out will fully match with your production experience!

Patients

When creating the patient with POST /patients, TakeCare requires a valid Swedish SSN as external_id. It can be any test ID from the list https://swedish.identityinfo.net/personalidentitynumber/testdata, but we have observed that some of the "younger" SSNs might fail. We recommend using a test ID with a birth date from the 70s or 80s, for example: 197110021834

Otherwise, if you don't feel like creating a patient, you can use the following patient_id for further testing.

patient_id
191212121212
197110021834

Other Data for Testing

Even though the Sandbox is temporarily mocked, we have fully replicated real TakeCare data models, based on our the real-world testing. Feel free to explore any combinations of data returned by the endpoints in the API documentation - all the response structures, all the data formats there will match your production experience!

  • Start by calling GET /care-units to get care units available for testing.
  • You can then use resource id returned from the GET /resources endpoint, or healthcare service id returned from the GET /healthcare-services endpoint, when testing GET /timeslots.
    Hint: When testing GET /timeslots try your first call without resource_id or healthcare_service_id to get more test data back. You can then use those parameters to filter the results.
  • You can use found timeslots, together with patient created with the POST /patients endpoint, to test POST /appointments.

Happy coding! ๐Ÿ™‚

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