Submitted to DeltaHacks X. Submission
The PharmFill project is a revolutionary mobile application designed to modernize and streamline the prescription filling process for patients, physicians, and pharmacists. It features real-time scanning and transcription of doctor's notes, an integrated patient database, and automated form filling using advanced OCR and AI technologies. This cross-platform solution not only enhances the accuracy of prescriptions but also simplifies the overall healthcare experience by making it more efficient and user-friendly.
- Mobile App Interface: User-friendly application for patients, physicians, and pharmacists.
- Document Scanning and Transcription: Capability to scan and transcribe written doctor's notes in real-time.
- Editable Transcriptions: Allows physicians to confirm, edit, or retake scans of prescriptions before dispatching to pharmacies.
- Patient Database Integration: Collects patient information during registration to populate a shared database, simplifying the prescription process.
- Form Filling Automation: Utilizes Google Cloud Vision OCR API, Gemini Pro, and OpenAI API for accurate transcription and automated form filling.
- Data Management: Employs a Redis Cloud database for efficient data storage and retrieval.
- Cross-Platform Compatibility: Built using React Native, supporting both Android and iOS devices.
- Intuitive UI and Navigation: Developed from early design wireframes and a high-fidelity Figma prototype, ensuring ease of use.
- Flask backend
- React Native Frontend
- Google Cloud Platform OCR Vision API, Gemini API
- OpenAI API
- Python Pillow library
- Read form
- Extract text and location using Google Cloud OCR
- Group text into coherent groups (Vertical + horizontal coordinate comparison and LLMs
- Detect fillable fields and clean punctuation (LLM and Python)
- Answer fields (LLM)
- Write to form (Python Pillow library)
- Before you begin, ensure you have met the following requirements:
- Install required dependencies in the frontend (PharmFill) folder
npm install
- Create a
.env
file in the root directory the following variables (the first 3 require a GCP project to be setup):
PROJECT_ID = {Your GCP Project ID}
LOCATION = {Your GCP Project Location}
CODE_CHAT_MODEL = {Your GCP AutoML Model ID}
OPENAI_API_KEY={YOUR_API_KEY}
(127.0.0.1:5000 by default)
cd back-end
python3 -m venv venv
source venv/bin/activate
(MacOS)venv\Scripts\activate
(Windows Powershell)pip install -r requirements.txt
python3 app.py
pip freeze > requirements.txt
(localhost:3000 by default)
cd PharmFill
npm install
npx expo start
- Improve form filling algorithm to allow for more types of forms
- Allow patients to see the decoded prescription