MPCDSEPC (Multi-Person Collaborative Document System for Epidemic Prevention and Control) is an enterprise-grade web application designed for city and district-level health authorities to collaboratively manage epidemic investigation documents in real-time.
- π€ AI-Powered Document Analysis: Leverages large language models (LLM) for intelligent document processing and anomaly detection
- π Real-time Collaboration: WebSocket-based multi-user editing with live presence indicators
- π Intelligent Report Generation: Automated Word document generation from structured data using AI-assisted templating
- π Database Management: Complete CRUD operations with MyBatis, supporting data visualization and export
- π Real-time Notifications: WebSocket push notifications for document updates and collaboration events
- π Change History Tracking: Complete audit trail of all document modifications
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (HTML/JS) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Spring Boot Backend β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Controllers β β Services β β Mappers β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β AI Analysis Module (Python) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β LLM-powered Document Intelligence Engine β β
β β β’ Semantic Analysis β’ Auto-completion β β
β β β’ Pattern Detection β’ Anomaly Alerting β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β MySQL Database β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Framework: Spring Boot 2.6.1
- Database: MySQL 8.0
- ORM: MyBatis
- WebSocket: Spring WebSocket
- Template Engine: FreeMarker
- PDF Generation: Apache POI, iTextPDF,Aspose
- Runtime: Python 3.9+
- LLM Integration: OpenAI API / Anthropic Claude API
- ML Libraries: NumPy, Pandas
- JDK 11+
- Maven 3.6+
- MySQL 8.0+
- Python 3.9+
# Clone the repository
git clone https://github.com/your-org/mpcdsepc.git
cd mpcdsepc
# Configure database (edit src/main/resources/application.yml)
# Update MySQL connection settings
# Build the project
mvn clean install
# Run the application
mvn spring-boot:run# Navigate to AI module
cd ai_engine
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# or
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Configure API keys
cp config.example.yaml config.yaml
# Edit config.yaml with your API keysThe AI Engine is a Python-based module that integrates large language models for intelligent document processing:
- Semantic Document Understanding: Uses transformer-based models to understand epidemic investigation document semantics
- Intelligent Auto-completion: Suggests field values based on context and historical data
- Anomaly Detection: Identifies unusual patterns in epidemiological data
- Natural Language Query: Query documents using natural language
from ai_engine import DocumentIntelligenceEngine
# Initialize the engine
engine = DocumentIntelligenceEngine(
model="gpt-4",
api_key="your-api-key",
temperature=0.7
)
# Analyze a document
result = engine.analyze_document(document_text)
print(f"Analysis: {result}")
# Generate intelligent suggestions
suggestions = engine.generate_suggestions(context)
print(f"Suggestions: {suggestions}")| Method | Endpoint | Description |
|---|---|---|
| POST | /api/document/upload |
Upload new document |
| GET | /api/document/{id} |
Get document by ID |
| PUT | /api/document/{id} |
Update document |
| DELETE | /api/document/{id} |
Delete document |
| POST | /api/document/analyze |
AI analysis of document |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/person/list |
List all persons |
| POST | /api/person/add |
Add new person |
| PUT | /api/person/{id} |
Update person info |
| DELETE | /api/person/{id} |
Delete person |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/gen/word |
Generate Word report |
| POST | /api/gen/pdf |
Convert to PDF |
server:
port: 8080
spring:
datasource:
url: jdbc:mysql://localhost:3306/mpcdsepc
username: root
password: your-password
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.yytech.mpcdsepc.entity- Epidemic Investigation: City and district health workers collaborate on investigation documents
- Contact Tracing: Track and manage contact relationships between confirmed cases
- Report Generation: Automatically generate standardized epidemic investigation reports
- Data Analysis: AI-powered insights into epidemic patterns and anomalies
Contributions are welcome! Please feel free to submit a Pull Request. Our contact: wrenty1985@gmail.com
MIT License
- Spring Boot Community
- MyBatis Community
- OpenAI/Anthropic for LLM capabilities
Built with β€οΈ for epidemic prevention efforts