# his **Repository Path**: shihywel/his ## Basic Information - **Project Name**: his - **Description**: 简易版his系统 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-04 - **Last Updated**: 2026-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Hospital Information System (HIS) ## System Overview The Hospital Information System (HIS) is a comprehensive hospital information management solution designed to provide medical institutions with an efficient and convenient platform for daily operational management. The system covers core medical business processes including patient management, doctor management, registration and consultation, prescription issuance, and pharmaceutical management, while integrating an AI-powered intelligent triage feature to offer patients intelligent guidance for medical services. ## Technology Stack | Category | Technology | |----------|------------| | Backend Framework | Spring Boot 2.7.18 | | ORM Framework | MyBatis Plus 3.5.3 | | Database Connection Pool | Druid 1.2.20 | | Template Engine | Thymeleaf 3.0.15 | | Database | MySQL 8.0+ | | Frontend Framework | Bootstrap 5 + Layui | | AI Service | Alibaba Cloud Tongyi Qianwen API | ## Functional Modules ### 1. User Management - Create, edit, and delete system user accounts - Enable/disable user status - Secure password management and modification - Supports three roles: administrator, doctor, and patient ### 2. Patient Management - Create and maintain patient records - Search and query patient information - Record health information such as allergy history ### 3. Department Management - Add, modify, and delete department information - Manage department locations and supervisors - Group and display departments by floor ### 4. Doctor Management - Maintain doctor information - Associate doctors with departments - Manage titles and scheduling ### 5. Registration Management - Patient registration and appointment booking - Select departments and doctors - Calculate registration fees - Track registration status (registered, consulted, completed, canceled) ### 6. Consultation Management - Doctor workstation consultation queue - Fill in medical records - Record chief complaint, current illness history, past medical history, and physical examination findings, diagnosis ### 7. Prescription Management - Issue electronic prescriptions - View prescription details - Process prescription payment and dispensing - Manage prescription item details ### 8. Pharmaceutical Management - Maintain drug information - Inventory management - Inventory alerts - Price adjustments ### 9. Dashboard - Today's registration statistics - Daily consultation volume by department - Visualized department distribution - Floor index display ### 10. AI Intelligent Triage - Intelligent department recommendation based on symptoms - AI-powered conversational Q&A - Quick question guidance ## Project Structure ``` his/ ├── src/main/java/com/hospital/ │ ├── config/ # Configuration classes │ ├── controller/ # Controllers │ ├── entity/ # Entity classes │ ├── interceptor/ # Interceptors │ ├── mapper/ # Data access layer │ ├── service/ # Service interfaces │ │ └── impl/ # Implementation classes │ └── util/ # Utility classes ├── src/main/resources/ │ ├── db/ # Database scripts │ └── templates/ # Frontend page templates └── pom.xml ``` ## Environment Requirements - JDK 1.8+ - Maven 3.6+ - MySQL 8.0+ ## Configuration Details Configuration file location: `src/main/resources/application.yml`. Key configurations: ```yaml spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/his?useUnicode=true&characterEncoding=utf-8 username: root password: root servlet: multipart: max-file-size: 10MB mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl server: port: 8080 ``` File upload path configuration: ```yaml file: upload-path: ./upload/ ``` AI service configuration (enable intelligent triage): ```yaml ai: tongyi: api-key: your-api-key api-url: https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation ``` ## Database Initialization 1. Create database: `CREATE DATABASE his DEFAULT CHARACTER SET utf8mb4;` 2. Execute initialization script: `src/main/resources/db/his_db.sql` ## Running the System ### Local Execution ```bash cd his mvn clean install java -jar target/his-system-1.0.0.jar --spring.profiles.active=dev ``` Access URL: http://localhost:8080 ### Deployment to Tomcat 1. Run `mvn clean package` 2. Deploy `target/his-system-1.0.0.war` to the Tomcat webapps directory ## Default Accounts | Role | Username | Password | |------|----------|----------| | Administrator | admin | admin123 | | Patient | patient | patient123 | To use the AI intelligent triage feature, configure a valid Tongyi Qianwen API Key in the configuration file. ## License This project is for learning and communication purposes only.