using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class OrisPatientMap:IMap { private Dictionary dictionary = new Dictionary(); public OrisPatientMap() { dictionary.Add("id", "Id"); dictionary.Add("mdrecno", "MdrecNo"); dictionary.Add("archivesno", "ArchivesNo"); dictionary.Add("name", "Name"); dictionary.Add("sex", "Sex"); dictionary.Add("birthday", "BirthDay"); dictionary.Add("height", "Height"); dictionary.Add("weight", "Weight"); dictionary.Add("depid", "DepId"); dictionary.Add("illdistrict", "Illdistrict"); dictionary.Add("sickbed", "SickBed"); dictionary.Add("bloodtype", "BloodType"); dictionary.Add("rhbloodtype", "RHBloodType"); dictionary.Add("patientkind", "PatientKind"); dictionary.Add("inhosdate", "InHosDate"); dictionary.Add("identitycard", "IdentityCard"); dictionary.Add("contacts", "Contacts"); dictionary.Add("contactsphone", "ContactsPhone"); dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatedate", "OperateDate"); dictionary.Add("patienttype", "PatientType"); dictionary.Add("hispatientid", "HisPatientId"); dictionary.Add("visittimes", "VisitTimes"); dictionary.Add("address", "Address"); dictionary.Add("nation", "Nation"); dictionary.Add("extend1", "Extend1"); dictionary.Add("extend2", "Extend2"); dictionary.Add("extend3", "Extend3"); dictionary.Add("extend4", "Extend4"); dictionary.Add("extend5", "Extend5"); } #region IMap 成员 public string this[string propertyName] { get { try { return dictionary[propertyName.ToLower()]; } catch (KeyNotFoundException) { throw new Exception(propertyName + "属性不存在"); } } } #endregion } }