public DeathDetailsVo getDeathDetails(PatientShort value) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from DeathDetails dd"); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); hql.append(" where dd.patient.id = :pId"); markers.add("pId"); values.add(value.getID_Patient()); hql.append(" and dd.isRIE is null"); List listNotes = factory.find(hql.toString(), markers,values); if(listNotes != null && listNotes.size() > 0) { DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes); if(voColl != null && voColl.size() > 0) return voColl.get(0); } return null; }
/** * getDeathDetails */ public ims.core.vo.DeathDetailsVo getDeathDetails(ims.core.patient.vo.PatientRefVo patientRefVo) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from DeathDetails dd where "); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); hql.append(" dd.patient.id = :pId"); markers.add("pId"); values.add(patientRefVo.getID_Patient()); hql.append(" and dd.isRIE is null"); List listNotes = factory.find(hql.toString(), markers,values); if(listNotes != null && listNotes.size() > 0) { DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes); if(voColl != null && voColl.size() > 0) return voColl.get(0); } return null; }
public DeathDetailsVo getDeathDetails(PatientRefVo value) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from DeathDetails dd"); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); hql.append(" where dd.patient.id = :pId"); markers.add("pId"); values.add(value.getID_Patient()); hql.append(" and dd.isRIE is null"); List listNotes = factory.find(hql.toString(), markers,values); if(listNotes != null && listNotes.size() > 0) { DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes); if(voColl != null && voColl.size() > 0) return voColl.get(0); } return null; }