private void populateOrderDetails(OcsOrderShortVo order) { if(order == null) return; form.txtLocation().setValue(order.getCorrectLocation()); form.txtResponsible().setValue(order.getCorrectClinician()); if(order.getOrderedByIsNotNull() && order.getOrderedBy().getNameIsNotNull()) form.txtRequestedBy().setValue(order.getOrderedBy().getName().toString()); if (order.getSysInfo() != null) form.txtOrderDt().setValue(order.getSysInfo().getCreationDateTime().toString()); //WDEV-4758 if(order.getCareContextIsNotNull() && order.getCareContext().getPasEventIsNotNull()) form.txtPasEpisodeID().setValue(order.getCareContext().getPasEvent().getPasEpisodeId()); }
public OcsOrderShortVo getOrderDetails(OcsOrderSessionRefVo voOcsOrderRef)//WDEV-16232 { if(voOcsOrderRef == null) throw new CodingRuntimeException("Order ref is null"); return OcsOrderShortVoAssembler.create((OcsOrderSession) getDomainFactory().getDomainObject(voOcsOrderRef));//WDEV-16232 }