29 lines
884 B
C#
29 lines
884 B
C#
|
|
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();
|
||
|
|
}
|