模拟医院信息管理系统

这篇博客介绍了如何模拟一个医院信息管理系统,涵盖了系统的主要功能和运行效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   系统共有五大功能:增加医生;删除医生;增加患者;删除患者;查询患者信息。
   医生的属性有姓名,性别,科室;患者的属性有姓名,性别,科室,医生。
   系统可以通过控制台进行人机交互,选择功能,并管理医生和患者的信息。
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
import java.util.Scanner;

public class Hospital {

	public static void main(String[] args) {
		LinkedHashMap<String, Doctor> mapDoctors = new LinkedHashMap<String, Doctor>();
		LinkedHashMap<String, Patient> mapPatients = new LinkedHashMap<String, Patient>();
		initDoctorsAndPatients(mapDoctors, mapPatients);
		System.out.println("医院信息系统上线");
		System.out.println("=========医生信息========");
		printDoctor(mapDoctors);
		System.out.println("=========患者信息========");
		printPatient(mapPatients);
		playSystem(mapDoctors, mapPatients);
	}

	// 初始信息
	public static void initDoctorsAndPatients(LinkedHashMap<String, Doctor> mapDoctors,
			LinkedHashMap<String, Patient> mapPatients) {
		mapDoctors.put("李敏", new Doctor("李敏", "女", 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值