InterLang App
Introduction
Welcome to the InterLang App! This application allows you to interact with a healthcare system using natural language commands. You can perform various operations like adding patients, adding goal data for patients, fetching goal data, generating care plans, and more, all through a user-friendly interface.
How It Works
The InterLang App is built on the Spring Boot framework and uses Streamlit for the chatbot interface. It communicates with a FHIR (Fast Healthcare Interoperability Resources) server to manage patient data and a powerful AI model from OpenAI for natural language understanding.
The app then sends your input to the backend, where it is processed, and a response is generated based on your command. You will receive the response on the user interface.
Setting Up the App
To run the InterLang App on your local environment using Visual Studio Code with a .devcontainer, please follow these steps:
- Clone this repository to your local machine.
- Open the project in Visual Studio Code.
- Make sure you have the required extensions for Visual Studio Code to support Java development and Docker.
- Ensure that you have Docker installed and running on your system.
- Open the project in a DevContainer by clicking on the green “Open a remote window” button in the bottom-left corner of Visual Studio Code and selecting “Reopen in Container.” This will set up a development environment with all the necessary dependencies.
- In the project directory, locate the
application.properties
file and update it with the following properties:
fhir.server.url=
fhir.api.key=
openai.api.key=
Make sure you replace the placeholders with the actual values.
-
Save the application.properties
file.
-
Now, you are ready to run the InterLang App. In the Visual Studio Code terminal, run the following command:
./mvnw spring-boot:run
This will start the Spring Boot application.
- Then run the following command to start the Streamlit interface:
pipenv install
pipenv run streamlit run frontend/streamlit_app.py
- Now you can go to
localhost:8501
to access the InterLang App.
You are now all set up and ready to use the InterLang App on your local environment!
Enjoy using the InterLang App to interact with the healthcare system and manage patient data with ease. If you have any questions or encounter any issues, please refer to the documentation or reach out to the project maintainers for assistance.