本文整理汇总了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();
}
示例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);
}
示例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();
}