Test Data for TakeCare
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 theGET
/resources endpoint, or healthcare serviceid
returned from theGET
/healthcare-services endpoint, when testingGET
/timeslots.Hint: When testingGET /timeslots
try your first call withoutresource_id
orhealthcare_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 testPOST
/appointments.
Happy coding! ๐