Skip to content

vvennela/capitalbridge-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LexiChron AI - Medical Record Processing

An AI-powered medical record processing system that extracts chronological timelines and medical entities from clinical documents.

🚀 Quick Start

Prerequisites

  • Python 3.8+
  • Node.js 16+
  • npm or yarn

🔧 Backend Setup (Medical NER API)

1. Create Virtual Environment

python -m venv legalai
source legalai/bin/activate  # On Windows: legalai\Scripts\activate

2. Install Python Dependencies

pip install -r requirements.txt

3. Start the Backend API

# Navigate to the backend API directory
cd backend/demo/ner

# Start the Flask API server
python medical_ner_api.py

The API will start at: http://localhost:5002

API Endpoints:

  • GET /api/health - Health check
  • POST /api/upload - Upload medical record (.txt file)
  • POST /api/process/<file_id> - Process uploaded file and extract timeline

🎨 Frontend Setup

1. Navigate to Frontend Directory

cd frontend

2. Install Dependencies

npm install

3. Start Development Server

npm run dev

The frontend will start at: http://localhost:5173

📋 How to Use

  1. Start Backend: Run the Flask API (python medical_ner_api.py)
  2. Start Frontend: Run the React app (npm run dev)
  3. Upload Document: Upload a .txt medical record file
  4. View Results: See the extracted medical timeline with:
    • Date
    • Fact Text (cleaned medical events)
    • Page Citation

🏗️ Project Structure

About

capitalbridge-ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •