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:

  1. Deploy a FHIR server
  2. Register a public client application
  3. Test access to the application
  4. Create a web application that reads this FHIR data


Before starting this set of tutorials, you will need the following items:

  1. An Azure subscription
  2. An Azure Active Directory tenant
  3. Postman installed


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.

  1. If you haven't already, deploy the Azure API for FHIR.
  2. Once you have your Azure API for FHIR deployed, configure the CORS settings by going to your Azure API for FHIR and selecting CORS.
    1. Set Origins to *
    2. Set Headers to *
    3. Under Methods, choose Select all
    4. 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.