/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/ReferralsRecordingVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.clinical.vo.beans;

public class ReferralsRecordingVoBean extends ims.vo.ValueObjectBean
{
	public ReferralsRecordingVoBean()
	{
	}
	public ReferralsRecordingVoBean(ims.clinical.vo.ReferralsRecordingVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.referraltype = vo.getReferralType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralType().getBean();
		this.referralsource = vo.getReferralSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralSource().getBean();
		this.datesent = vo.getDateSent() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSent().getBean();
		this.details = vo.getDetails();
		this.reforgacode = vo.getRefOrgaCode() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getRefOrgaCode().getBean();
		this.datefirstseen = vo.getDateFirstSeen() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateFirstSeen().getBean();
		this.referralhcp = vo.getReferralHCP() == null ? null : (ims.core.vo.beans.MemberOfStaffShortVoBean)vo.getReferralHCP().getBean();
		this.datereceived = vo.getDateReceived() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateReceived().getBean();
		this.referredby = vo.getReferredBy() == null ? null : (ims.core.vo.beans.HcpBean)vo.getReferredBy().getBean();
		this.referralpriority = vo.getReferralPriority() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralPriority().getBean();
		this.reasonforreferral = vo.getReasonForReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForReferral().getBean();
		this.specialtyfunctioncode = vo.getSpecialtyFunctionCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialtyFunctionCode().getBean();
		this.referredbygp = vo.getReferredByGP() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getReferredByGP().getBean();
		this.referralcategory = vo.getReferralCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralCategory().getBean();
		this.primarypreceeding = vo.getPrimaryPreceeding() == null ? null : (ims.vo.LookupInstanceBean)vo.getPrimaryPreceeding().getBean();
		this.authoringinfo = vo.getAuthoringInfo() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInfo().getBean();
		this.carespell = vo.getCareSpell() == null ? null : new ims.vo.RefVoBean(vo.getCareSpell().getBoId(), vo.getCareSpell().getBoVersion());
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.suppliedreferralprofessional = vo.getSuppliedReferralProfessional() == null ? null : (ims.clinical.vo.beans.ReferralProffessionalDetailVoBean)vo.getSuppliedReferralProfessional().getBean();
		this.referredtolocation = vo.getReferredtoLocation() == null ? null : (ims.core.vo.beans.LocShortVoBean)vo.getReferredtoLocation().getBean();
		this.referralstatus = vo.getReferralStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralStatus().getBean();
		this.urgentcancerreferraltype = vo.getUrgentCancerReferralType() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgentCancerReferralType().getBean();
		this.cancerstatus = vo.getCancerStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getCancerStatus().getBean();
		this.delayreasongpurgentreferral = vo.getDelayReasonGPUrgentReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDelayReasonGPUrgentReferral().getBean();
		this.delayreasontext = vo.getDelayReasonText();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.recordingmos = vo.getRecordingMOS() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getRecordingMOS().getBean();
		this.discipline = vo.getDiscipline() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiscipline().getBean();
		this.preceedingreferrals = vo.getPreceedingReferrals() == null ? null : vo.getPreceedingReferrals().getBeanCollection();
		this.reasonforreferraltext = vo.getReasonForReferralText();
		this.suppliedreferraldetails = vo.getSuppliedReferralDetails() == null ? null : (ims.clinical.vo.beans.SuppliedReferralDetailsVoBean)vo.getSuppliedReferralDetails().getBean();
		this.assessment = vo.getAssessment() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getAssessment().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.ReferralsRecordingVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.referraltype = vo.getReferralType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralType().getBean();
		this.referralsource = vo.getReferralSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralSource().getBean();
		this.datesent = vo.getDateSent() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSent().getBean();
		this.details = vo.getDetails();
		this.reforgacode = vo.getRefOrgaCode() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getRefOrgaCode().getBean(map);
		this.datefirstseen = vo.getDateFirstSeen() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateFirstSeen().getBean();
		this.referralhcp = vo.getReferralHCP() == null ? null : (ims.core.vo.beans.MemberOfStaffShortVoBean)vo.getReferralHCP().getBean(map);
		this.datereceived = vo.getDateReceived() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateReceived().getBean();
		this.referredby = vo.getReferredBy() == null ? null : (ims.core.vo.beans.HcpBean)vo.getReferredBy().getBean(map);
		this.referralpriority = vo.getReferralPriority() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralPriority().getBean();
		this.reasonforreferral = vo.getReasonForReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForReferral().getBean();
		this.specialtyfunctioncode = vo.getSpecialtyFunctionCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialtyFunctionCode().getBean();
		this.referredbygp = vo.getReferredByGP() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getReferredByGP().getBean(map);
		this.referralcategory = vo.getReferralCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralCategory().getBean();
		this.primarypreceeding = vo.getPrimaryPreceeding() == null ? null : (ims.vo.LookupInstanceBean)vo.getPrimaryPreceeding().getBean();
		this.authoringinfo = vo.getAuthoringInfo() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInfo().getBean(map);
		this.carespell = vo.getCareSpell() == null ? null : new ims.vo.RefVoBean(vo.getCareSpell().getBoId(), vo.getCareSpell().getBoVersion());
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.suppliedreferralprofessional = vo.getSuppliedReferralProfessional() == null ? null : (ims.clinical.vo.beans.ReferralProffessionalDetailVoBean)vo.getSuppliedReferralProfessional().getBean(map);
		this.referredtolocation = vo.getReferredtoLocation() == null ? null : (ims.core.vo.beans.LocShortVoBean)vo.getReferredtoLocation().getBean(map);
		this.referralstatus = vo.getReferralStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralStatus().getBean();
		this.urgentcancerreferraltype = vo.getUrgentCancerReferralType() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgentCancerReferralType().getBean();
		this.cancerstatus = vo.getCancerStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getCancerStatus().getBean();
		this.delayreasongpurgentreferral = vo.getDelayReasonGPUrgentReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDelayReasonGPUrgentReferral().getBean();
		this.delayreasontext = vo.getDelayReasonText();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.recordingmos = vo.getRecordingMOS() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getRecordingMOS().getBean(map);
		this.discipline = vo.getDiscipline() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiscipline().getBean();
		this.preceedingreferrals = vo.getPreceedingReferrals() == null ? null : vo.getPreceedingReferrals().getBeanCollection();
		this.reasonforreferraltext = vo.getReasonForReferralText();
		this.suppliedreferraldetails = vo.getSuppliedReferralDetails() == null ? null : (ims.clinical.vo.beans.SuppliedReferralDetailsVoBean)vo.getSuppliedReferralDetails().getBean(map);
		this.assessment = vo.getAssessment() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getAssessment().getBean(map);
	}

	public ims.clinical.vo.ReferralsRecordingVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.clinical.vo.ReferralsRecordingVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.ReferralsRecordingVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.ReferralsRecordingVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.ReferralsRecordingVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public ims.vo.LookupInstanceBean getReferralType()
	{
		return this.referraltype;
	}
	public void setReferralType(ims.vo.LookupInstanceBean value)
	{
		this.referraltype = value;
	}
	public ims.vo.LookupInstanceBean getReferralSource()
	{
		return this.referralsource;
	}
	public void setReferralSource(ims.vo.LookupInstanceBean value)
	{
		this.referralsource = value;
	}
	public ims.framework.utils.beans.DateBean getDateSent()
	{
		return this.datesent;
	}
	public void setDateSent(ims.framework.utils.beans.DateBean value)
	{
		this.datesent = value;
	}
	public String getDetails()
	{
		return this.details;
	}
	public void setDetails(String value)
	{
		this.details = value;
	}
	public ims.core.vo.beans.OrgLiteVoBean getRefOrgaCode()
	{
		return this.reforgacode;
	}
	public void setRefOrgaCode(ims.core.vo.beans.OrgLiteVoBean value)
	{
		this.reforgacode = value;
	}
	public ims.framework.utils.beans.DateBean getDateFirstSeen()
	{
		return this.datefirstseen;
	}
	public void setDateFirstSeen(ims.framework.utils.beans.DateBean value)
	{
		this.datefirstseen = value;
	}
	public ims.core.vo.beans.MemberOfStaffShortVoBean getReferralHCP()
	{
		return this.referralhcp;
	}
	public void setReferralHCP(ims.core.vo.beans.MemberOfStaffShortVoBean value)
	{
		this.referralhcp = value;
	}
	public ims.framework.utils.beans.DateBean getDateReceived()
	{
		return this.datereceived;
	}
	public void setDateReceived(ims.framework.utils.beans.DateBean value)
	{
		this.datereceived = value;
	}
	public ims.core.vo.beans.HcpBean getReferredBy()
	{
		return this.referredby;
	}
	public void setReferredBy(ims.core.vo.beans.HcpBean value)
	{
		this.referredby = value;
	}
	public ims.vo.LookupInstanceBean getReferralPriority()
	{
		return this.referralpriority;
	}
	public void setReferralPriority(ims.vo.LookupInstanceBean value)
	{
		this.referralpriority = value;
	}
	public ims.vo.LookupInstanceBean getReasonForReferral()
	{
		return this.reasonforreferral;
	}
	public void setReasonForReferral(ims.vo.LookupInstanceBean value)
	{
		this.reasonforreferral = value;
	}
	public ims.vo.LookupInstanceBean getSpecialtyFunctionCode()
	{
		return this.specialtyfunctioncode;
	}
	public void setSpecialtyFunctionCode(ims.vo.LookupInstanceBean value)
	{
		this.specialtyfunctioncode = value;
	}
	public ims.core.vo.beans.GpShortVoBean getReferredByGP()
	{
		return this.referredbygp;
	}
	public void setReferredByGP(ims.core.vo.beans.GpShortVoBean value)
	{
		this.referredbygp = value;
	}
	public ims.vo.LookupInstanceBean getReferralCategory()
	{
		return this.referralcategory;
	}
	public void setReferralCategory(ims.vo.LookupInstanceBean value)
	{
		this.referralcategory = value;
	}
	public ims.vo.LookupInstanceBean getPrimaryPreceeding()
	{
		return this.primarypreceeding;
	}
	public void setPrimaryPreceeding(ims.vo.LookupInstanceBean value)
	{
		this.primarypreceeding = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInfo()
	{
		return this.authoringinfo;
	}
	public void setAuthoringInfo(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinfo = value;
	}
	public ims.vo.RefVoBean getCareSpell()
	{
		return this.carespell;
	}
	public void setCareSpell(ims.vo.RefVoBean value)
	{
		this.carespell = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.vo.RefVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.vo.RefVoBean value)
	{
		this.clinicalcontact = value;
	}
	public ims.clinical.vo.beans.ReferralProffessionalDetailVoBean getSuppliedReferralProfessional()
	{
		return this.suppliedreferralprofessional;
	}
	public void setSuppliedReferralProfessional(ims.clinical.vo.beans.ReferralProffessionalDetailVoBean value)
	{
		this.suppliedreferralprofessional = value;
	}
	public ims.core.vo.beans.LocShortVoBean getReferredtoLocation()
	{
		return this.referredtolocation;
	}
	public void setReferredtoLocation(ims.core.vo.beans.LocShortVoBean value)
	{
		this.referredtolocation = value;
	}
	public ims.vo.LookupInstanceBean getReferralStatus()
	{
		return this.referralstatus;
	}
	public void setReferralStatus(ims.vo.LookupInstanceBean value)
	{
		this.referralstatus = value;
	}
	public ims.vo.LookupInstanceBean getUrgentCancerReferralType()
	{
		return this.urgentcancerreferraltype;
	}
	public void setUrgentCancerReferralType(ims.vo.LookupInstanceBean value)
	{
		this.urgentcancerreferraltype = value;
	}
	public ims.vo.LookupInstanceBean getCancerStatus()
	{
		return this.cancerstatus;
	}
	public void setCancerStatus(ims.vo.LookupInstanceBean value)
	{
		this.cancerstatus = value;
	}
	public ims.vo.LookupInstanceBean getDelayReasonGPUrgentReferral()
	{
		return this.delayreasongpurgentreferral;
	}
	public void setDelayReasonGPUrgentReferral(ims.vo.LookupInstanceBean value)
	{
		this.delayreasongpurgentreferral = value;
	}
	public String getDelayReasonText()
	{
		return this.delayreasontext;
	}
	public void setDelayReasonText(String value)
	{
		this.delayreasontext = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getRecordingMOS()
	{
		return this.recordingmos;
	}
	public void setRecordingMOS(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.recordingmos = value;
	}
	public ims.vo.LookupInstanceBean getDiscipline()
	{
		return this.discipline;
	}
	public void setDiscipline(ims.vo.LookupInstanceBean value)
	{
		this.discipline = value;
	}
	public ims.clinical.vo.beans.ReferralsRecordingVoBean[] getPreceedingReferrals()
	{
		return this.preceedingreferrals;
	}
	public void setPreceedingReferrals(ims.clinical.vo.beans.ReferralsRecordingVoBean[] value)
	{
		this.preceedingreferrals = value;
	}
	public String getReasonForReferralText()
	{
		return this.reasonforreferraltext;
	}
	public void setReasonForReferralText(String value)
	{
		this.reasonforreferraltext = value;
	}
	public ims.clinical.vo.beans.SuppliedReferralDetailsVoBean getSuppliedReferralDetails()
	{
		return this.suppliedreferraldetails;
	}
	public void setSuppliedReferralDetails(ims.clinical.vo.beans.SuppliedReferralDetailsVoBean value)
	{
		this.suppliedreferraldetails = value;
	}
	public ims.assessment.vo.beans.PatientAssessmentVoBean getAssessment()
	{
		return this.assessment;
	}
	public void setAssessment(ims.assessment.vo.beans.PatientAssessmentVoBean value)
	{
		this.assessment = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean referraltype;
	private ims.vo.LookupInstanceBean referralsource;
	private ims.framework.utils.beans.DateBean datesent;
	private String details;
	private ims.core.vo.beans.OrgLiteVoBean reforgacode;
	private ims.framework.utils.beans.DateBean datefirstseen;
	private ims.core.vo.beans.MemberOfStaffShortVoBean referralhcp;
	private ims.framework.utils.beans.DateBean datereceived;
	private ims.core.vo.beans.HcpBean referredby;
	private ims.vo.LookupInstanceBean referralpriority;
	private ims.vo.LookupInstanceBean reasonforreferral;
	private ims.vo.LookupInstanceBean specialtyfunctioncode;
	private ims.core.vo.beans.GpShortVoBean referredbygp;
	private ims.vo.LookupInstanceBean referralcategory;
	private ims.vo.LookupInstanceBean primarypreceeding;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinfo;
	private ims.vo.RefVoBean carespell;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.RefVoBean clinicalcontact;
	private ims.clinical.vo.beans.ReferralProffessionalDetailVoBean suppliedreferralprofessional;
	private ims.core.vo.beans.LocShortVoBean referredtolocation;
	private ims.vo.LookupInstanceBean referralstatus;
	private ims.vo.LookupInstanceBean urgentcancerreferraltype;
	private ims.vo.LookupInstanceBean cancerstatus;
	private ims.vo.LookupInstanceBean delayreasongpurgentreferral;
	private String delayreasontext;
	private ims.vo.SysInfoBean sysinfo;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean recordingmos;
	private ims.vo.LookupInstanceBean discipline;
	private ims.clinical.vo.beans.ReferralsRecordingVoBean[] preceedingreferrals;
	private String reasonforreferraltext;
	private ims.clinical.vo.beans.SuppliedReferralDetailsVoBean suppliedreferraldetails;
	private ims.assessment.vo.beans.PatientAssessmentVoBean assessment;
}
