One of our laboratory customers, [StarAligners] wanted to be able to programmatically signup their orthodontists practices with EasyRx at the same time they were signing up for their product.
My project was to talk with the people at Star Aligners and assess what they wanted to be able to do and then create new API endpoints to enable that.
This was the first API integration I did that gives access to EasyRx. The endpoints I created use both [client credential] and [authorization code] grant types and we use [apiDoc] to generate api documentation for our clients.
There are endpoints to:
- create a practice including the practices doctors and offices
- connect the lab to a practice with an authorization code grant
- resend emails sent from EasyRx to validate new practices email addresses
- set the ID the laboratory wants to identify the a practice office with
- set an ID the laboratory wants to identify a doctor with
- get a list of practice offices and info
- get a list of practice doctors and info
All the while ensuring that the calling lab does not have access to practices, patients, or other data they have not been authorized to have.
I created a suite of tests to run for any future changes to this new code or existing code it uses.
It was a good intro to our API setup.