Practitioners
Connect a practitionerβ
The next natural step would be to connect practitioners between your system and Legit.Health. Practitioners are users that manage the managing organisation and care for patients. In order to create a practitioner, you must use the endpoint createPractitioner
.
The field speciality is not required, but it is recommended. To check which are the accepted values, you should first fetch the specialties from the endpoint getPractitionerSpecialties
.
After creating a practitioner, the practitioner will receive an email to verify their account. It is necessary for them to confirm the account before continuing with the next steps.
Generate login credentialsβ
Practitioners will be able to use the Legit.Health technology without having to log into a different system. In other words: your software will have a button, and when practitioners click on it, they will be automatically directed to the Legit.Health interface, as if it was the same environment β without having to log in or perform extra clicks.
For this to work, you must use the endpoint getPractitionerAuthTokens
to generate the corresponding tokens to allow a practitioner to log-in directly.
You can also program your software so that the practitioner receives an email with the login link. If you attach the param sendLinkToPractitionerByEmail
to the request, the practitioner will receive an email with a link to log in to the Legit.Health interface.
The structure for login links is the following:
https://app.legit.health/u/home?token=token&refresh_token=refresh_token