public ims.ocrr.vo.PathologySpecimenVo getSpecimen(ims.ocrr.orderingresults.vo.OrderSpecimenRefVo id) { if(id == null || id.getID_OrderSpecimen() == null) throw new DomainRuntimeException("Invalid specimen"); return PathologySpecimenVoAssembler.create((OrderSpecimen)getDomainFactory().getDomainObject(OrderSpecimen.class, id.getID_OrderSpecimen())); }
public PathologySpecimenVo getSpecimen(OrderInvestigationRefVo orvInvRef) { if(orvInvRef == null || orvInvRef.getID_OrderInvestigation() == null) throw new DomainRuntimeException("Invalid orderInvestigation"); DomainFactory factory = getDomainFactory(); OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orvInvRef.getID_OrderInvestigation()); if (domOrdInv == null || domOrdInv.getSpecimen() == null || domOrdInv.getSpecimen().size() == 0)//WDEV-16463 return null; return PathologySpecimenVoAssembler.create((OrderSpecimen) domOrdInv.getSpecimen().get(0)); }