public void saveSystemsReview(ims.emergency.vo.SystemReviewVoCollection systems) throws ims.domain.exceptions.StaleObjectException { if(systems == null) throw new CodingRuntimeException("SystemReviewVo not provided"); DomainFactory factory = getDomainFactory(); for (int i = 0; i < systems.size(); i++) { SystemsReview doSystemReview = SystemReviewVoAssembler.extractSystemsReview(factory, systems.get(i)); factory.save(doSystemReview); } }
public SystemReviewVo getSystemReview(SystemsReviewRefVo record) { if( record == null ) throw new CodingRuntimeException("SystemsReviewVo not provided"); DomainFactory factory = getDomainFactory(); SystemsReview doSystemsReview =(SystemsReview) factory.getDomainObject(SystemsReview.class, record.getID_SystemsReview()); return SystemReviewVoAssembler.create(doSystemsReview); }
public ims.emergency.vo.SystemReviewVo saveSystemReview(ims.emergency.vo.SystemReviewVo record) throws ims.domain.exceptions.StaleObjectException { if( record == null ) throw new CodingRuntimeException("SystemReviewVo not provided"); DomainFactory factory = getDomainFactory(); SystemsReview doSystemReview= SystemReviewVoAssembler.extractSystemsReview(factory, record); factory.save(doSystemReview); return SystemReviewVoAssembler.create(doSystemReview); }
public void saveSystemReview(ims.emergency.vo.SystemReviewVo systemReview) throws ims.domain.exceptions.StaleObjectException { if(systemReview == null ) throw new CodingRuntimeException("SystemReviewVo not provided"); DomainFactory factory = getDomainFactory(); SystemsReview doSystemReview = SystemReviewVoAssembler.extractSystemsReview(factory, systemReview); factory.save(doSystemReview); }
public ims.emergency.vo.SystemReviewVoCollection listSystemReview(ims.core.admin.vo.CareContextRefVo attendance) { if( attendance == null ) return null; DomainFactory factory = getDomainFactory(); String hsql = "select s1_1 from SystemsReview as s1_1 left join s1_1.attendance as c1_1 where (c1_1.id = :idcareContext) order by s1_1.systemInformation.creationDateTime desc "; List systemrev = factory.find(hsql, new String[] {"idcareContext"}, new Object[] {attendance.getID_CareContext()}); if( systemrev != null && systemrev.size() > 0) return SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemsReview(systemrev); return null; }
public SystemReviewVoCollection getAllActiveSystemNotes(CareContextRefVo attendance) { DomainFactory factory = getDomainFactory(); String hsql = "select sys from SystemsReview as sys left join sys.attendance as att where (att.id = :idcareContext) and (sys.isRIE is null or sys.isRIE = 0) and (sys.isCorrected is null or sys.isCorrected = 0)"; List systemrev = factory.find(hsql, new String[] {"idcareContext"}, new Object[] {attendance.getID_CareContext()}); if(systemrev != null && systemrev.size() > 0) return SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemsReview(systemrev); return null; }