Setting up Microsoft FHIR Server on your laptop & FHIR-ing up...

Setting up Microsoft FHIR Server on your laptop & FHIR-ing up...

Hi my friends, and welcome!

Over the last few months, i worked with Microsoft Open Source FHIR Server (OSS) and wanted to share my experience on setting it up and running locally. Yes, you may run it locally without internet :)

This might be helpful, if you just starting to learn HL7 FHIR (https://www.hl7.org/fhir/) and don't / can't spin one on your cloud environment of choice. You might also use any publicly available FHIR endpoints, discover-able from the link above.

Following steps will assist you in spinning it with a Cosmos DB (emulator flavor) or a more traditional SQL Server instance. Well, let's start right away!

No alt text provided for this image
  • In VS open Microsoft.Health.Fhir.sln & restore the packages
  • Run the build process & set Microsoft.Health.Fhir.Stu3.Web  as a start-up project
  • Note: You could also use Microsoft.Health.Fhir.R4.Web  - based on fhir resource versions that you are planning to load.
  • Made following changes in appsettings.json
"Security": {
      "Enabled": true,
      "EnableAadSmartOnFhirProxy": false,
        "Authentication": {
            "Audience": "fhir-api",
            "Authority": "https://localhost:44348"
        },
      "PrincipalClaims": [
        "iss",
        "oid"
      ],
      "Authorization": {
        "Enabled": true
      }
    },


Option 1: Select Cosmos DB data layer & start project

No alt text provided for this image

Option 2: Select SQL data layer & start project (aka Press F5)

No alt text provided for this image

Lunch the FHIR server locally by pressing F5 - should look like following screen:

No alt text provided for this image
  • Run postman Query for Server CapabilityStatement: https://localhost:44348/metadata?_format=json 
  • Check the Postman SSL certification verification is off, or accept the dotnet development certificate.
  • Retrieve token to access the FHIR Server resources:
POST https://localhost:44348/connect/token
BODY: client_id=serviceclient&client_secret=serviceclient&grant_type=client_credentials&scope=fhir-api
No alt text provided for this image

Hope you got so far & starting your celebration... Yes, my friend, you did it! Congratulations!!!

You are ready to play with FHIR ?? ... Just remember, to follow the FHIR safety rules that we will cover on next post :) Stay tuned and let me know what are you thoughts in the comments. Thanks!

Dipu Nanthikattu

Integrations Leader

2 年

How do you initiate Sql Server layer in local fhir server

Neeraj Shrivastava

Senior Manager - Health & Life science R&D (Architecture, Gen AI Applications & Analytics Platform)

2 年

Great Post Elkhan, How did you install SQL Server schema for FHIR

Prashanth Reddy

Docker & Kubernetes Enthusiastic | DevOps Application Expert at MHBE | CKA, AZ-400, AZ-103, AZ-204, AZ-900, AWS & Chef certified

4 年

Great Elkhan Yusubov ....????????

要查看或添加评论,请登录

Elkhan Y.的更多文章

社区洞察

其他会员也浏览了