import '../models/hospital.dart'; class MedicalService { static List mockHospitals = [ Hospital( id: '1', name: '成都市第一人民医院', address: '锦江区红星路一段', departments: ['内科', '外科', '骨科', '心内科', '呼吸科'], ), Hospital( id: '2', name: '四川省人民医院', address: '青羊区一环路西二段', departments: ['内科', '外科', '神经内科', '消化科', '肿瘤科'], ), Hospital( id: '3', name: '华西医院', address: '武侯区国学巷', departments: ['内科', '外科', '骨科', '眼科', '耳鼻喉科'], ), ]; static List mockDoctors = [ Doctor( id: '1', name: '张医生', department: '内科', title: '主任医师', fee: '50', ), Doctor( id: '2', name: '李医生', department: '外科', title: '副主任医师', fee: '40', ), Doctor( id: '3', name: '王医生', department: '骨科', title: '主治医师', fee: '30', ), ]; static List appointments = []; static List getDoctorsByDepartment(String department) { return mockDoctors.where((d) => d.department == department).toList(); } static void addAppointment(Appointment appointment) { appointments.add(appointment); } }