TheraCare Hx is an innovative health management system that revolutionizes how patients and healthcare providers manage medical histories. By integrating with Health Gorilla's API, it provides a secure, user-friendly platform for comprehensive health information management.
- Secure login and registration system
- JWT-based authentication
- Password-protected PDF reports
- Encrypted database storage
- Secure API communications
- Personal profile management
- Health conditions tracking
- Family medical history recording
- Secure PDF report generation
- Voice-based input for medical conditions
- AI-powered medical text processing
- Health Gorilla API integration
- FHIR-compliant data structure
- Real-time data synchronization
- Secure data transmission
- Intuitive dashboard interface
- Voice input capabilities
- Automated report generation
- Easy navigation and data entry
- Responsive design
- Streamlit-based user interface
- Real-time data validation
- PDF report generation
- Voice recording integration
- Python-based application logic
- PostgreSQL database
- JWT authentication
- API integration services
- Health Gorilla API
- OpenAI Whisper for voice processing
- GPT for medical text analysis
- LOF-CS595 Flask backend
Before running the application, ensure you have the following installed:
- Python 3.8 or higher
- PostgreSQL database
- pip (Python package manager)
The project consists of two main components:
- LOF-CS595: Flask backend service that handles API integrations
- TheraCare: Streamlit frontend application
- Create a PostgreSQL database named
TheraCareDB - Update the
.envfile with your database credentials:DB_HOST=localhost DB_PORT=5432 DB_NAME=TheraCareDB DB_USER=your_username DB_PASSWORD=your_password SECRET_KEY=your_secret_key_for_jwt
-
Navigate to the LOF-CS595 directory:
cd LOF-CS595 -
Create and activate a virtual environment:
python -m venv myenv source myenv/bin/activate # On Windows: myenv\Scripts\activate
-
Install required packages:
pip install -r lof/requirements.txt
-
Update the LOF
.envfile with your credentials:client_id=your_client_id client_secret=your_client_secret -
Start the LOF backend service:
python lof/services.py
-
Navigate to the TheraCare directory:
cd .. -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install required packages:
pip install -r requirements.txt
-
Start the Streamlit application:
streamlit run app.py
-
Registration
- Click on "Sign Up" to create a new account
- Fill in your personal information
- Set up a secure password
-
Login
- Enter your username and password
- Access your personalized dashboard
-
Profile Management
- Update personal information
- Add or modify health conditions
- Record family medical history
-
Health Report Generation
- Click "Download Health Report" on the dashboard
- The system will generate a password-protected PDF
- Save the displayed password securely
- Use the password to open the PDF report
-
Database Connection Issues
- Verify PostgreSQL is running
- Check database credentials in
.env - Ensure database exists and is accessible
-
API Integration Issues
- Verify LOF backend is running
- Check API credentials in LOF
.env - Ensure network connectivity
-
PDF Generation Issues
- Verify PyPDF2 is installed
- Check file permissions
- Ensure sufficient disk space