Sunday, 16 February 2025

Setting up azure Health Data Service, Azure FHIR API

 

Setting up azure fhir api

 

Go to newly created ‘Azure Health Data Services’ and create FHIR service

Register an application to access FHIR service

1.      create an app in azure default directory, go to app registration

a.     

b.     Go to api permission menu, select azure healthcare api

c.      Add these permissions

d.     Add redirect uri for desktop app, https://www.getpostman.com/oauth2/callback

e.     

f.      

g.      Set credential secret value

aGx8Q~o_VBw0LEEOTIhgMJg_DhyBSvgG.oHeDa7v

 

Assign ‘Fhir data contributor’ role to fhir service

Select client app as data member

 

Get authentication token from postman

https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/use-postman

 

2.      POST request, put url as https://login.microsoftonline.com/{{tenant-id}}/oauth2/token

Tenant-id - 96ed66a8-49bd-4927-a491-585257ffe6e8

3.      Go to Authorization tab,

a.      Auth type- Oauth 2.0

b.     Callback url- https://www.getpostman.com/oauth2/callback

c.      Auth url - https://login.microsoftonline.com/{{tenantid}}/oauth2/?resource={{Audience}}

Audience:  https://nageshssnowflakepoc-demo.fhir.azurehealthcareapis.com

d.     Access Token url: https://login.microsoftonline.com/96ed66a8-49bd-4927-a491-585257ffe6e8/oauth2/token

4.      In body tab, resource below is fhir url which is audience url from Authentication menu of fhir service

5.      For client id in above step,

6.     

 

List Patient in Postman

1.      https://nageshssnowflakepoc-demo.fhir.azurehealthcareapis.com/Patient

2.      And put bearer token in authorization tab

Get Patient By Id

1.      {{fhirurl}}/Patient/_search?_id=19ead387-213b-4f97-b885-5576ac3176c6

2.      And put bearer token in authorization tab

 

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...