Giter Club home page Giter Club logo

gptfhirexplorer's Introduction

GPT FHIR Explorer Sample

Demonstration of using OpenAI to generate FHIR Queries for exploring FHIR Server data and summarizing that data. You may also use it as a general GPT prompt response platform.

Prerequisites

  1. A running instance of AHDS FHIR Service or Azure API for FHIR
  2. A running instance of Azure OpenAI Service and gpt-turbo-35 or gpt-4 deployed conversation completion model resource
  3. A registered Public Client
  4. Enable CORS on FHIR Server
    Note: This is a SPA client and is not secure it is for demonstration purposes and not to be used in production or with any PHI/PII.

Setup FHIR Client AAD resource

AAD App Registration that is used for access to FHIR Server and OAuth setup needs to have

  • SPA redirect URLs registered
  • Access and ID tokens enabled
  • API permissions granted to access Graph and Azure Healthcare APIs Permissions

How to set-up a demo environment

  1. Download and install nodejs and npm for your platform
  2. Switch to root directory of this repo
  3. Run npm install
  4. Provide the following JSON Configuration object info as a single string environment variable named NODE_CONFIG:
{
	"aiConfig": {
		"aiResourceName": "<your open ai resource name>",
		"aiDeploymentName": "<your open ai deployment name>",
		"aiAPIVersion": "<your open ai api version>",
		"aiKey": "<your open ai key>"
	},
	"fhirConfig": {
		"fhirEndpoint": "<your fhir server endpoint URL>"
	},
	"authConfig": {
		"clientId": "<your fhir server principal client id>",
		"authority": "<your fhir server principal client authority e.g. https://login.microsoftonline.com/{tenantid}>",
		"redirectUri": "<your fhir server principal client redirect url e.g. http://localhost:3000>"
	}
}

Note: example in nodeconfig.json 5. Run npm start

gptfhirexplorer's People

Contributors

lenisha avatar sordahl-ga avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.