AIMS/AIMSEntity/ObjectQuery/FactDrugMap.cs
leomon 4b92b1d919 取消手术排程提示
医疗文书未排程列表
点击主复制药品 剂量也复制 在空白行之上
添加多个子药往后新增行
刷新手术间台次逻辑
药品判断相同新增通路 考虑模板
 通路 版本号 是否限制用药 自备药品 是否皮试
2022-11-14 23:13:04 +08:00

66 lines
2.2 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class FactDrugMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public FactDrugMap()
{
dictionary.Add("id", "Id");
dictionary.Add("patientid", "PatientId");
dictionary.Add("drugtypeid", "DrugTypeId");
dictionary.Add("drugid", "DrugId");
dictionary.Add("drugbegintime", "DrugBeginTime");
dictionary.Add("drugendtime", "DrugEndTime");
dictionary.Add("dosage", "Dosage");
dictionary.Add("dosageunit", "DosageUnit");
dictionary.Add("drugchannel", "DrugChannel");
dictionary.Add("givedrugtype", "GiveDrugType");
dictionary.Add("iscontinue", "IsContinue");
dictionary.Add("remark", "Remark");
dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName");
dictionary.Add("operatedate", "OperateDate");
dictionary.Add("density", "Density");
dictionary.Add("densityunit", "DensityUnit");
dictionary.Add("velocity", "Velocity");
dictionary.Add("velocityunit", "VelocityUnit");
dictionary.Add("bloodtype", "BloodType");
dictionary.Add("parentid", "ParentId");
dictionary.Add("drugname", "DrugName");
dictionary.Add("access", "Access");
dictionary.Add("batchno", "BatchNo");
dictionary.Add("payself", "PaySelf");
dictionary.Add("testflag", "TestFlag");
dictionary.Add("limitflag", "LimitFlag");
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
}
}