DCS/ruiyiweiUX/Assets/Scripts/Services/IPatientInfoService.cs

29 lines
884 B
C#
Raw Permalink Normal View History

2026-06-09 13:59:11 +08:00
using System;
public class PatientInfo
{
public string Name { get; set; }
public string HospitalId { get; set; }
public string Gender { get; set; }
public int Age { get; set; }
public float Height { get; set; }
public float Weight { get; set; }
// public string IdNumber { get; set; }
}
public interface IPatientInfoService : IService
{
event Action<PatientInfo> OnPatientInfoChanged;
PatientInfo GetCurrentPatient();
void SetCurrentPatient(PatientInfo patient);
bool SavePatientInfo(PatientInfo patient);
void ClearCurrentPatient();
// 文件操作方法
PatientInfo LoadPatientFromFile(string filePath);
bool ExportPatientToFile(PatientInfo patient, string filePath);
bool ExportCompletePatientData(PatientInfo patient, string filePath);
string[] GetSupportedFileExtensions();
string GetFileFilter();
}