public SystemReviewForPresentingProblemConfigVo getSystemReviewForPresentingProblem(ClinicalProblemRefVo problemRef) { if( problemRef == null ) throw new CodingRuntimeException("Cannot get clinicalprobelmRef"); DomainFactory factory = getDomainFactory(); String hsql = "select s1_1 from SystemReviewForPresentingProblemConfig as s1_1 left join s1_1.problem as c1_1 where (c1_1.id = :idproblem)"; List systemrev = factory.find(hsql, new String[] {"idproblem"}, new Object[] {problemRef.getID_ClinicalProblem()}); if( systemrev != null && systemrev.size() > 0) { SystemReviewForPresentingProblemConfigVoCollection tempColl = SystemReviewForPresentingProblemConfigVoAssembler.createSystemReviewForPresentingProblemConfigVoCollectionFromSystemReviewForPresentingProblemConfig(systemrev); if( tempColl != null && tempColl.size() > 0) { return tempColl.get(0); } } return null; }
public ims.emergency.vo.SystemReviewForPresentingProblemConfigVo getSystemReviewForPresentingProblemConfigVo(ims.clinical.configuration.vo.ClinicalProblemRefVo clinicalprobelmRef) { if( clinicalprobelmRef == null ) throw new CodingRuntimeException("Cannot get clinicalprobelmRef"); DomainFactory factory = getDomainFactory(); String hsql = "select s1_1 from SystemReviewForPresentingProblemConfig as s1_1 left join s1_1.problem as c1_1 where (c1_1.id = :idproblem)"; List systemrev = factory.find(hsql, new String[] {"idproblem"}, new Object[] {clinicalprobelmRef.getID_ClinicalProblem()}); if( systemrev != null && systemrev.size() > 0) { SystemReviewForPresentingProblemConfigVoCollection tempColl = SystemReviewForPresentingProblemConfigVoAssembler.createSystemReviewForPresentingProblemConfigVoCollectionFromSystemReviewForPresentingProblemConfig(systemrev); if( tempColl != null && tempColl.size() > 0) { return tempColl.get(0); } } return null; }
public ims.emergency.vo.SystemReviewForPresentingProblemConfigVo gettSystemReviewConfigurationVo(ims.clinical.configuration.vo.ClinicalProblemRefVo clinicalProblemRef) { if( clinicalProblemRef == null) return null; DomainFactory factory = getDomainFactory(); String hsql = "select s1_1 from SystemReviewForPresentingProblemConfig as s1_1 left join s1_1.problem as c1_1 where (c1_1.id = :id)"; List sys = factory.find(hsql, new String[] {"id"}, new Object[] {clinicalProblemRef.getID_ClinicalProblem()}); if(sys != null && sys.size() > 0) { SystemReviewForPresentingProblemConfigVoCollection tempColl = SystemReviewForPresentingProblemConfigVoAssembler.createSystemReviewForPresentingProblemConfigVoCollectionFromSystemReviewForPresentingProblemConfig(sys); if( tempColl != null) return tempColl.get(0); } return null; }