FHIR connector authentication
This article explains authenticated access to FHIR servers using the Power Query connector for FHIR. The connector supports anonymous access to publicly accessible FHIR servers and authenticated access to FHIR servers using Azure Active Directory authentication. The Azure API for FHIR is secured with Azure Active Directory.
Note
If you are connecting to a FHIR server from an online service, such as Power BI service, you can only use an organizational account.
Anonymous access
There are many publicly accessible FHIR servers. To enable testing with these public servers, the Power Query connector for FHIR supports the "Anonymous" authentication scheme. For example to access the public https://vonk.fire.ly server:
Enter the URL of the public Vonk server.

Select Anonymous authentication scheme.

After that, follow the steps to query and shape your data.
Azure Active Directory (organizational) authentication
The Power Query connector for FHIR supports OAuth authentication for FHIR servers that are secured with Azure Active Directory.
To use Azure Active Directory authentication, select Organizational account when connecting.

There are some restrictions to be aware of:
The expected Audience for the FHIR server must be equal to the base URL of the FHIR server. For the Azure API for FHIR, you can set this when you provision the FHIR service or later in the portal.
If your FHIR server doesn't return a
WWW-Authenticatechallenge header with anauthorization_urifield on failed authorization, you must use an organizational account to sign in. You can't use a guest account in your active directory tenant. For the Azure API for FHIR, you must use an Azure Active Directory organizational account.If your FHIR service isn't the Azure API for FHIR (for example, if you're running the open source Microsoft FHIR server for Azure), you'll have registered an Azure Active Directory resource application for the FHIR server. You must pre-authorize the Power BI client application to be able to access this resource application.

The client ID for the Power BI client is
a672d62c-fc7b-4e81-a576-e60dc46e951d.The Power Query (for example, Power BI) client will only request a single scope:
user_impersonation. This scope must be available and the FHIR server can't rely on other scopes.
Next steps
In this article, you've learned how to use the Power Query connector for FHIR authentication features. Next, explore query folding.
Povratne informacije
Pošalјite i prikažite povratne informacije za