Deploy a JavaScript app to read data from Azure API for FHIR

Important

Azure API for FHIR will be retired on September 30, 2026. Follow the migration strategies to transition to Azure Health Data Services FHIR® service by that date. Due to the retirement of Azure API for FHIR, new deployments won't be allowed beginning April 1, 2025. Azure Health Data Services FHIR service is the evolved version of Azure API for FHIR that enables customers to manage FHIR, DICOM, and MedTech services with integrations into other Azure services.

In this tutorial, you 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

Prerequisites

You need the following before starting this set of tutorials.

  1. An Azure subscription
  2. A Microsoft Entra tenant
  3. Postman installed

Note

For this tutorial, the FHIR service, Microsoft Entra application, and Microsoft Entra users are all in the same Microsoft Entra 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're ready to register a public client application. For more information, see

Note

FHIR® is a registered trademark of HL7 and is used with the permission of HL7.