public InpatConsultantTransferVo getInpatConsultantTransfer(InpatientEpisodeRefVo inpat) { if(inpat == null || inpat.getID_InpatientEpisode() == null) throw new CodingRuntimeException("inpatientEpisode is null or id not provided for getInpatConsultantTransfer"); return InpatConsultantTransferVoAssembler.create( (InpatientEpisode) getDomainFactory().getDomainObject(inpat)); }
private boolean checkConsultantServiceOrSpecialtyChanged(InpatConsultantTransferVo voEpisode) { if(voEpisode == null) return false; if (voEpisode.getPasEvent() != null) { if (voEpisode.getPasEvent().getConsultant() != null && !voEpisode.getPasEvent().getConsultant().equals(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getValue())) return true; else if (!ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS") && voEpisode.getPasEvent().getSpecialty() != null && !voEpisode.getPasEvent().getSpecialty().equals(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbConsultantSpecialty().getValue())) return true; } return false; }