本文整理汇总了Java中ims.core.vo.domain.PatientAlertEDischargeVoAssembler类的典型用法代码示例。如果您正苦于以下问题:Java PatientAlertEDischargeVoAssembler类的具体用法?Java PatientAlertEDischargeVoAssembler怎么用?Java PatientAlertEDischargeVoAssembler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PatientAlertEDischargeVoAssembler类属于ims.core.vo.domain包,在下文中一共展示了PatientAlertEDischargeVoAssembler类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: listPatientAlerts
import ims.core.vo.domain.PatientAlertEDischargeVoAssembler; //导入依赖的package包/类
public PatientAlertEDischargeVoCollection listPatientAlerts(PatientShort patient, Boolean active)
{
if(patient == null)
throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
ArrayList names = new ArrayList();
ArrayList values = new ArrayList();
DomainFactory factory = getDomainFactory();
StringBuffer hql = new StringBuffer("from PatientAlert patAlrt ");
hql.append(" where patAlrt.patient.id = :patient");
names.add("patient");
values.add(patient.getID_Patient());
if (active.equals(Boolean.TRUE))
{
hql.append (" and patAlrt.isCurrentlyActiveAlert = :isActive");
names.add("isActive");
values.add(Boolean.TRUE);
}
List list = factory.find(hql.toString(), names,values);
return PatientAlertEDischargeVoAssembler.createPatientAlertEDischargeVoCollectionFromPatientAlert(list).sort();
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:24,代码来源:EDischargeAllergiesEtcComponentImpl.java
示例2: getPatientAlert
import ims.core.vo.domain.PatientAlertEDischargeVoAssembler; //导入依赖的package包/类
public PatientAlertEDischargeVo getPatientAlert(PatientAlertRefVo patientalertRefVo)
{
if(patientalertRefVo == null)
throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");
DomainFactory factory = getDomainFactory();
ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
return PatientAlertEDischargeVoAssembler.create(doPA);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:10,代码来源:EDischargeAllergiesEtcComponentImpl.java
示例3: listPatientAlerts
import ims.core.vo.domain.PatientAlertEDischargeVoAssembler; //导入依赖的package包/类
public PatientAlertEDischargeVoCollection listPatientAlerts(PatientShort patient, Boolean active, IAppRole role)
{
if(patient == null)
throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
ArrayList names = new ArrayList();
ArrayList values = new ArrayList();
DomainFactory factory = getDomainFactory();
StringBuffer hql = new StringBuffer("select patAlrt from PatientAlert patAlrt left join patAlrt.alertType as alertType ");
hql.append(" where patAlrt.patient.id = :patient");
names.add("patient");
values.add(patient.getID_Patient());
String alertCategoryIds = getAlertCategoryIds(role);
if(alertCategoryIds == null || alertCategoryIds.length() == 0)
return null;
hql.append (" and alertType.parent is not null and alertType.parent.id in (");
hql.append(alertCategoryIds);
hql.append(")");
if (active.equals(Boolean.TRUE))
{
hql.append (" and patAlrt.isCurrentlyActiveAlert = :isActive");
names.add("isActive");
values.add(Boolean.TRUE);
}
List list = factory.find(hql.toString(), names,values);
return PatientAlertEDischargeVoAssembler.createPatientAlertEDischargeVoCollectionFromPatientAlert(list).sort();
}
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:33,代码来源:EDischargeAllergiesEtcComponentImpl.java
注:本文中的ims.core.vo.domain.PatientAlertEDischargeVoAssembler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论