Deploy JavaScript app to read data from FHIR service
In this tutorial, you will deploy a small JavaScript app, which reads data from a FHIR service. The steps in this tutorial are:
- Deploy a FHIR server
- Register a public client application
- Test access to the application
- Create a web application that reads this FHIR data
Prerequisites
Before starting this set of tutorials, you will need the following items:
- An Azure subscription
- An Azure Active Directory tenant
- Postman installed
Note
For this tutorial, the FHIR service, Azure AD application, and Azure AD users are all in the same Azure AD tenant. If this is not the case, you can still follow along with this tutorial, but may need to dive into some of the referenced documents to do additional steps.
Deploy Azure API for FHIR
The first step in the tutorial is to get your Azure API for FHIR setup correctly.
- If you haven't already, deploy the Azure API for FHIR.
- Once you have your Azure API for FHIR deployed, configure the CORS settings by going to your Azure API for FHIR and selecting CORS.
- Set Origins to *
- Set Headers to *
- Under Methods, choose Select all
- Set the Max age to 600
Next Steps
Now that you have your Azure API for FHIR deployed, you are ready to register a public client application.