Skip to content

Repository files navigation

🩺 AI-Powered Healthcare Doctor–Patient Translation Platform

Real-Time Multilingual Healthcare Communication System Powered by AI


Overview

This project is a full-stack AI-powered healthcare communication platform designed to improve conversations between doctors and patients speaking different languages.

The platform enables:

  • 🌍 Real-time multilingual communication
  • πŸ€– AI-generated medical summaries
  • πŸ’¬ Persistent healthcare conversations
  • πŸ”Ž Searchable message history
  • ⚑ AI-assisted healthcare workflows

The primary objective of the application is to reduce communication barriers in healthcare environments using scalable AI-powered systems.


Core Features

🌐 Real-Time Translation

  • Instant multilingual message translation
  • OpenAI-powered AI translation workflows
  • Dual message rendering:
    • Original message
    • AI-translated message

πŸ€– AI Medical Summarization

The system automatically generates structured AI summaries including:

  • Symptoms discussed
  • Possible diagnoses
  • Medications mentioned
  • Suggested follow-up actions

AI responses are processed server-side before being returned to the client.


πŸ’¬ Persistent Conversation Storage

  • PostgreSQL-powered message persistence
  • Historical conversation retrieval
  • Keyword-based search functionality
  • Structured chat storage architecture

πŸ‘¨β€βš•οΈ Role-Based Interaction

Supports:

  • Doctor interaction mode
  • Patient interaction mode

Designed to simulate real healthcare communication workflows.


πŸ“± Responsive Full-Stack UI

  • Fully responsive healthcare interface
  • Mobile and desktop optimized
  • Built using modern frontend technologies
  • Smooth and scalable user experience

πŸ› οΈ Tech Stack

Frontend

Backend

Database

AI & Development Tools


πŸ—οΈ System Architecture

The project follows a modular full-stack architecture with proper separation between frontend, backend, AI services, and database layers.

Frontend Layer

Responsible for:

  • User interaction
  • Rendering translated outputs
  • Managing responsive UI workflows

Backend Layer

Responsible for:

  • REST API routing
  • OpenAI API integration
  • AI response handling
  • Database operations

Database Layer

PostgreSQL is used for:

  • Conversation persistence
  • Search functionality
  • Structured message storage

AI Processing Layer

AI workflows include:

  • Real-time translation
  • Medical summarization
  • Structured response generation

βš™οΈ Engineering Decisions

  • Modular full-stack architecture
  • Clear separation of concerns
  • Server-side AI processing
  • Scalable REST API structure
  • Async API communication handling
  • Readable and maintainable codebase
  • Optimized UI workflows for healthcare use cases

πŸ“‚ Project Structure

healthcare-doctor-patient-translation/
β”‚
β”œβ”€β”€ client/
β”œβ”€β”€ screenshots/
β”‚   └── home.png
β”‚
β”œβ”€β”€ attached_assets/
β”œβ”€β”€ replit_integrations/
β”‚
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.ts
β”œβ”€β”€ tailwind.config.ts
β”œβ”€β”€ drizzle.config.ts
β”œβ”€β”€ tsconfig.json
└── README.md

πŸ“Έ Application Preview

🏠 Home Interface

Healthcare Translation Platform

πŸ”’ Current Limitations

  • Authentication is not implemented
  • Single active conversation workflow
  • Demonstration-focused implementation
  • Not production-level healthcare compliant

πŸš€ Future Improvements

  • Secure authentication & authorization
  • Multi-session support
  • Voice-to-text integration
  • Text-to-speech support
  • Advanced medical entity extraction
  • AI evaluation pipelines
  • Production-grade security hardening

🌐 Live Demo


⚑ Local Setup

1️⃣ Clone Repository

git clone https://github.com/shoaib-ahmadd/healthcare-doctor-patient-translation.git

2️⃣ Navigate Into Project

cd healthcare-doctor-patient-translation

3️⃣ Install Dependencies

npm install

4️⃣ Configure Environment Variables

Create a .env file and add:

OPENAI_API_KEY=your_api_key
DATABASE_URL=your_database_url

5️⃣ Run Development Server

npm run dev

πŸ“ˆ Project Goals

This project was built to explore:

  • AI-assisted healthcare workflows
  • Real-time multilingual communication systems
  • Practical OpenAI integrations
  • Scalable full-stack architecture
  • Human-centered AI product development

🀝 Contributing

Contributions, improvements, and suggestions are welcome.

Feel free to fork the repository and submit pull requests.


πŸ“„ License

This project is intended for educational and demonstration purposes.


Built with ❀️ by Shoaib Ahmad

About

AI-powered multilingual healthcare communication platform with real-time translation and AI-generated medical summarization.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

Contributors

Languages