This demonstration showcases the integration of OpenAI with Trustee® Community and NOSH, enabling AI queries using a health Timeline as context. The demo utilizes the GNAP (Grant Negotiation and Authorization Protocol) for secure connections between components. You can view a Demo Video Here.
The primary purpose of this demo is to illustrate how a suite of open-source software, centered around the Trustee Authorization Server and the NOSH Resource Server, can be used to securely share health information from a patient-controlled Electronic Health Record (EHR) as system data in a conversation with an AI.
- An OpenAI API key (obtainable for free at OpenAI's website)
- A Gemini API key (obtainable for free at Gemini's website)
- A Mistral API key (obtainable for free at Mistral's website)
- A Together API key (obtainable for free at Together's website)
The MAIA App requires the following environment variables:
VITE_ORG_ID
: App ID. Can be any value.VITE_PROJECT_ID
: Project ID. Can be any value.VITE_OPENAI_API_KEY
: Your OpenAI API key.GEMINI_API_KEY
: Your Gemini API key.MISTRAL_API_KEY
: Your Mistral API key.TOGETHER_API_KEY
: Your Together API key.
Make sure to set these variables before running the MAIA App.
If the MAIA app experiences a failure, you may need to delete the cookies it sets during its function. MAIA sets two values:
- In SessionStorage, the value "gnap"
- In LocalStorage, the value "noshuri"
This should help the app to relaunch properly from NOSH.
-
The repo can be forked and added. Please see requirements above. This allows you to create your own version of MAIA for customization and development.
-
When you have a candidate, you can edit your MAIA URL in NOSH in order to test it against the app. This step enables you to integrate your custom MAIA version with the NOSH system for testing. Note: This change is made locally, so if you want to test on a separate machine, you will need to edit the MAIA url there as well. The data is saved to localStorage.
- GNAP Resource Server: https://github.com/shihjay2/nosh3
- GNAP Authorization Server: https://github.com/HIEofOne/Trustee-Community
- W3C Verifiable Credentials and SMART on FHIR Support: https://github.com/HIEofOne/Trustee-Proxy
- GNAP Client: https://github.com/abeuscher/vue-ai-example
- GNAP Client Support: https://github.com/hieofOne/vue3-gnap
For further instructions, details, and challenge specifics, please visit: Challenge Details
For questions or assistance, please contact: info@hieofone.com
This project is licensed under the MIT License. See the LICENSE file in the root directory of this project for the full license text.