💻 Contributors - Ikram Shah and Sowmiya Nagarajan.
💪 Built with OpenAI, LangChain & Streamlit
apichain.demo.mp4
🤖 Ask question to any of your chosen FHIR API in natural language 🤖
Try online on Streamlit
- Get OpenAI Key from OpenAI Platform
- Get FHIR Server API endpoint
- You may either enter your own sample FHIR server (unauthenticated access needed)
- You may create a temporary sample server in Intersystems IRIS FHIR platform
Get OpenAI Key from OpenAI Platform
- Prerequisites: Git & Docker desktop
- Installation:
$ git clone https://github.com/ikram-shah/fhir-ai-and-openapi-chain.git
$ docker-compose up -d
- Generate sample patient data ref
./synthea-loader.sh 10
docker-compose exec iris iris session iris -U FHIRServer
FHIRSERVER>d ##class(fhirtemplate.Setup).LoadPatientData("/irisdev/app/output/fhir","FHIRSERVER","/fhir/r4")
- Test FHIR R4 API by visitng http://localhost:32783/fhir/r4/metadata
pip install -r requirements.txt
streamlit run src/streamlit/src/main.py
fhir-ai-and-openapi-chain/
├──src
│ ├── streamlit/ //streamlit code
│ │ ├── src/
│ │ │ ├── main.py
│ │ │ └── ...
│ └── fhirtemplate/
│ ├── setup.cls
│ └── ...
.
.
.
├── requirements.txt //requirements for streamlit to run
├── docker-compose.yml
├── Dockerfile
├── README.md
└── LICENSE
Due to the limitations imposed by OpenAI's token usage, if the reference data + prompt being sent to the OpenAI API exceeds the specified limit, an error may be encountered.
FHIR Postman collection by apievangelist
InterSystems IRIS FHIR Documentation
This project is licensed under the MIT License.
You can find the full text of the license in the LICENSE file.