Skip to content

DeltaHacks X Top 10 and Best MedX hack winning project - PharmFill! Mobile app designed to streamline the process of converting and communicating prescriptions between physicians, pharmacists and patients!

Notifications You must be signed in to change notification settings

AkkuB0Y/PharmFill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    PharmFill

Revolutionizing Prescription Management with LLMs and AI

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.

Features

  • 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.

How it works

  • Flask backend
  • React Native Frontend
  • Google Cloud Platform OCR Vision API, Gemini API
  • OpenAI API
  • Python Pillow library

Architecture Overview

Architecture

Form filling process:

  • 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)

Getting Started

Prerequisites

  1. Before you begin, ensure you have met the following requirements:
  1. Install required dependencies in the frontend (PharmFill) folder
npm install
  1. 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}

Starting the server

(127.0.0.1:5000 by default)

  1. cd back-end
  2. python3 -m venv venv
  3. source venv/bin/activate (MacOS)
  4. venv\Scripts\activate (Windows Powershell)
  5. pip install -r requirements.txt
  6. python3 app.py

To Update requimrents.txt:

pip freeze > requirements.txt

Starting the app

(localhost:3000 by default)

  1. cd PharmFill
  2. npm install
  3. npx expo start

Next Steps

  • Improve form filling algorithm to allow for more types of forms
  • Allow patients to see the decoded prescription

About

DeltaHacks X Top 10 and Best MedX hack winning project - PharmFill! Mobile app designed to streamline the process of converting and communicating prescriptions between physicians, pharmacists and patients!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published