/** * Search for VTM */ public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException { if(name == null || name.trim().length() == 0) return null; DomainFactory domainFactory = getDomainFactory(); if(specialty == null) return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'")); String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")"; return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql)); }
public VTMVo getVTM(VTMRefVo vtm) throws DomainInterfaceException { if(vtm == null || vtm.getBoId() == null) throw new DomainInterfaceException("Invalid VTM reference"); return VTMVoAssembler.create((VTM)getDomainFactory().getDomainObject(vtm)); }
/** * Search for VTM */ public ims.clinical.vo.VTMVoCollection searchVTMByName(String name) throws ims.domain.exceptions.DomainInterfaceException { if(name == null || name.trim().length() == 0) return null; DomainFactory domainFactory = getDomainFactory(); return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'")); }
public VTMVo getVTM(String vtmId) throws DomainInterfaceException { if(vtmId == null) throw new DomainInterfaceException("Invalid VTM reference"); VTMVoCollection vtmCol = VTMVoAssembler.createVTMVoCollectionFromVTM(getDomainFactory().find("from VTM vtm WHERE vtm.moietyIdentifier = '" + vtmId + "'")); if (vtmCol != null && vtmCol.size() > 0) return vtmCol.get(0); else return null; }
public VTMVoCollection listVTMHotlist(Specialty specialty) throws DomainInterfaceException { if(specialty == null) throw new DomainInterfaceException("Invalid specialty"); DomainFactory domainFactory = getDomainFactory(); String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (hl.specialty.id = " + specialty.getID() + ")"; return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql)); }