/** * Get all referrals associated with this office visit. * * @return List of ReferralBeans. * @throws DBException */ public List<ReferralBean> getReferrals() throws DBException { if (isUnsaved()) { return new ArrayList<ReferralBean>(); } else { return referralDAO.getReferralsFromOV(getOvID()); } }
/** * Get a specific referral. * * @param id The id of the desired referral. * @return ReferralBean * @throws DBException */ public ReferralBean getReferral(long id) throws DBException { return referralDAO.getReferral(id); }