/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/naes/vo/beans/NAESReferralVoBean.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.naes.vo.beans;

public class NAESReferralVoBean extends ims.vo.ValueObjectBean
{
	public NAESReferralVoBean()
	{
	}
	public NAESReferralVoBean(ims.naes.vo.NAESReferralVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.datereferralreceived = vo.getDateReferralReceived() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateReferralReceived().getBean();
		this.dateofsurgery = vo.getDateOfSurgery() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfSurgery().getBean();
		this.referringhospital = vo.getReferringHospital();
		this.referringdoctor = vo.getReferringDoctor();
		this.referralreason = vo.getReferralReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralReason().getBean();
		this.secondarysurgery = vo.getSecondarySurgery() == null ? null : (ims.vo.LookupInstanceBean)vo.getSecondarySurgery().getBean();
		this.underlyingreason = vo.getUnderlyingReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getUnderlyingReason().getBean();
		this.affectedeye = vo.getAffectedEye() == null ? null : (ims.vo.LookupInstanceBean)vo.getAffectedEye().getBean();
		this.implant = vo.getImplant() == null ? null : (ims.vo.LookupInstanceBean)vo.getImplant().getBean();
		this.implanttype = vo.getImplantType() == null ? null : (ims.vo.LookupInstanceBean)vo.getImplantType().getBean();
		this.interpreterrequired = vo.getInterpreterRequired() == null ? null : (ims.vo.LookupInstanceBean)vo.getInterpreterRequired().getBean();
		this.language = vo.getLanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguage().getBean();
		this.languageifother = vo.getLanguageIfOther();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortBean)vo.getPatient().getBean();
		this.referredby = vo.getReferredBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferredBy().getBean();
		this.sixweekkpi = vo.getSixWeekKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSixWeekKPI().getBean();
		this.threeweekkpi = vo.getThreeWeekKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getThreeWeekKPI().getBean();
		this.carecontext = vo.getCareContext() == null ? null : (ims.core.vo.beans.CareContextShortVoBean)vo.getCareContext().getBean();
		this.preferredclinic = vo.getPreferredClinic();
		this.notes = vo.getNotes();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.naes.vo.NAESReferralVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.datereferralreceived = vo.getDateReferralReceived() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateReferralReceived().getBean();
		this.dateofsurgery = vo.getDateOfSurgery() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfSurgery().getBean();
		this.referringhospital = vo.getReferringHospital();
		this.referringdoctor = vo.getReferringDoctor();
		this.referralreason = vo.getReferralReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralReason().getBean();
		this.secondarysurgery = vo.getSecondarySurgery() == null ? null : (ims.vo.LookupInstanceBean)vo.getSecondarySurgery().getBean();
		this.underlyingreason = vo.getUnderlyingReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getUnderlyingReason().getBean();
		this.affectedeye = vo.getAffectedEye() == null ? null : (ims.vo.LookupInstanceBean)vo.getAffectedEye().getBean();
		this.implant = vo.getImplant() == null ? null : (ims.vo.LookupInstanceBean)vo.getImplant().getBean();
		this.implanttype = vo.getImplantType() == null ? null : (ims.vo.LookupInstanceBean)vo.getImplantType().getBean();
		this.interpreterrequired = vo.getInterpreterRequired() == null ? null : (ims.vo.LookupInstanceBean)vo.getInterpreterRequired().getBean();
		this.language = vo.getLanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguage().getBean();
		this.languageifother = vo.getLanguageIfOther();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortBean)vo.getPatient().getBean(map);
		this.referredby = vo.getReferredBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferredBy().getBean();
		this.sixweekkpi = vo.getSixWeekKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSixWeekKPI().getBean();
		this.threeweekkpi = vo.getThreeWeekKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getThreeWeekKPI().getBean();
		this.carecontext = vo.getCareContext() == null ? null : (ims.core.vo.beans.CareContextShortVoBean)vo.getCareContext().getBean(map);
		this.preferredclinic = vo.getPreferredClinic();
		this.notes = vo.getNotes();
	}

	public ims.naes.vo.NAESReferralVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.naes.vo.NAESReferralVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.naes.vo.NAESReferralVo vo = null;
		if(map != null)
			vo = (ims.naes.vo.NAESReferralVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.naes.vo.NAESReferralVo();
			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.framework.utils.beans.DateBean getDateReferralReceived()
	{
		return this.datereferralreceived;
	}
	public void setDateReferralReceived(ims.framework.utils.beans.DateBean value)
	{
		this.datereferralreceived = value;
	}
	public ims.framework.utils.beans.DateBean getDateOfSurgery()
	{
		return this.dateofsurgery;
	}
	public void setDateOfSurgery(ims.framework.utils.beans.DateBean value)
	{
		this.dateofsurgery = value;
	}
	public String getReferringHospital()
	{
		return this.referringhospital;
	}
	public void setReferringHospital(String value)
	{
		this.referringhospital = value;
	}
	public String getReferringDoctor()
	{
		return this.referringdoctor;
	}
	public void setReferringDoctor(String value)
	{
		this.referringdoctor = value;
	}
	public ims.vo.LookupInstanceBean getReferralReason()
	{
		return this.referralreason;
	}
	public void setReferralReason(ims.vo.LookupInstanceBean value)
	{
		this.referralreason = value;
	}
	public ims.vo.LookupInstanceBean getSecondarySurgery()
	{
		return this.secondarysurgery;
	}
	public void setSecondarySurgery(ims.vo.LookupInstanceBean value)
	{
		this.secondarysurgery = value;
	}
	public ims.vo.LookupInstanceBean getUnderlyingReason()
	{
		return this.underlyingreason;
	}
	public void setUnderlyingReason(ims.vo.LookupInstanceBean value)
	{
		this.underlyingreason = value;
	}
	public ims.vo.LookupInstanceBean getAffectedEye()
	{
		return this.affectedeye;
	}
	public void setAffectedEye(ims.vo.LookupInstanceBean value)
	{
		this.affectedeye = value;
	}
	public ims.vo.LookupInstanceBean getImplant()
	{
		return this.implant;
	}
	public void setImplant(ims.vo.LookupInstanceBean value)
	{
		this.implant = value;
	}
	public ims.vo.LookupInstanceBean getImplantType()
	{
		return this.implanttype;
	}
	public void setImplantType(ims.vo.LookupInstanceBean value)
	{
		this.implanttype = value;
	}
	public ims.vo.LookupInstanceBean getInterpreterRequired()
	{
		return this.interpreterrequired;
	}
	public void setInterpreterRequired(ims.vo.LookupInstanceBean value)
	{
		this.interpreterrequired = value;
	}
	public ims.vo.LookupInstanceBean getLanguage()
	{
		return this.language;
	}
	public void setLanguage(ims.vo.LookupInstanceBean value)
	{
		this.language = value;
	}
	public String getLanguageIfOther()
	{
		return this.languageifother;
	}
	public void setLanguageIfOther(String value)
	{
		this.languageifother = value;
	}
	public ims.core.vo.beans.PatientShortBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientShortBean value)
	{
		this.patient = value;
	}
	public ims.vo.LookupInstanceBean getReferredBy()
	{
		return this.referredby;
	}
	public void setReferredBy(ims.vo.LookupInstanceBean value)
	{
		this.referredby = value;
	}
	public ims.framework.utils.beans.DateBean getSixWeekKPI()
	{
		return this.sixweekkpi;
	}
	public void setSixWeekKPI(ims.framework.utils.beans.DateBean value)
	{
		this.sixweekkpi = value;
	}
	public ims.framework.utils.beans.DateBean getThreeWeekKPI()
	{
		return this.threeweekkpi;
	}
	public void setThreeWeekKPI(ims.framework.utils.beans.DateBean value)
	{
		this.threeweekkpi = value;
	}
	public ims.core.vo.beans.CareContextShortVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.core.vo.beans.CareContextShortVoBean value)
	{
		this.carecontext = value;
	}
	public String getPreferredClinic()
	{
		return this.preferredclinic;
	}
	public void setPreferredClinic(String value)
	{
		this.preferredclinic = value;
	}
	public String getNotes()
	{
		return this.notes;
	}
	public void setNotes(String value)
	{
		this.notes = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateBean datereferralreceived;
	private ims.framework.utils.beans.DateBean dateofsurgery;
	private String referringhospital;
	private String referringdoctor;
	private ims.vo.LookupInstanceBean referralreason;
	private ims.vo.LookupInstanceBean secondarysurgery;
	private ims.vo.LookupInstanceBean underlyingreason;
	private ims.vo.LookupInstanceBean affectedeye;
	private ims.vo.LookupInstanceBean implant;
	private ims.vo.LookupInstanceBean implanttype;
	private ims.vo.LookupInstanceBean interpreterrequired;
	private ims.vo.LookupInstanceBean language;
	private String languageifother;
	private ims.core.vo.beans.PatientShortBean patient;
	private ims.vo.LookupInstanceBean referredby;
	private ims.framework.utils.beans.DateBean sixweekkpi;
	private ims.framework.utils.beans.DateBean threeweekkpi;
	private ims.core.vo.beans.CareContextShortVoBean carecontext;
	private String preferredclinic;
	private String notes;
}
