55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class OrisPatientMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
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");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|