本文整理汇总了Java中ims.icp.vo.PatientICPStagesFullVo类的典型用法代码示例。如果您正苦于以下问题:Java PatientICPStagesFullVo类的具体用法?Java PatientICPStagesFullVo怎么用?Java PatientICPStagesFullVo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PatientICPStagesFullVo类属于ims.icp.vo包,在下文中一共展示了PatientICPStagesFullVo类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasActions
import ims.icp.vo.PatientICPStagesFullVo; //导入依赖的package包/类
/**
*
* @param patientICPRef
* @param phaseRef
* @return
*/
private boolean hasActions(PatientICPRefVo patientICPRef, ICPPhaseRefVo phaseRef)
{
// Check parameters
if (phaseRef == null || !phaseRef.getID_ICPPhaseIsNotNull())
return false;
// Get domain factory
DomainFactory domainFactory = getDomainFactory();
// Get the ICP Phase
ICPPhaseVo icpPhase = ICPPhaseVoAssembler.create((ICPPhase) domainFactory.getDomainObject(ICPPhase.class, phaseRef.getID_ICPPhase()));
// Check for active actions
for (ICPActionLiteVo action : icpPhase.getActions())
{
if (PreActiveActiveInactiveStatus.ACTIVE.equals(action.getStatus()))
return true;
}
// Check for PatientICP
if (patientICPRef == null || !patientICPRef.getID_PatientICPIsNotNull())
return false;
// Get the Patient ICP
PatientICPFullVo patientICP = PatientICPFullVoAssembler.create((PatientICP) domainFactory.getDomainObject(PatientICP.class, patientICPRef.getID_PatientICP()));
// Check for actions
for (PatientICPStagesFullVo stage : patientICP.getStages())
{
for (PatientICPPhasesFullVo phase : stage.getStagePhases())
{
if (!phaseRef.equals(phase.getPhase()))
continue;
if (phase.getPhaseActionsIsNotNull() && phase.getPhaseActions().size() > 0)
return true;
}
}
return false;
}