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

public class PatientEasListVoBean extends ims.vo.ValueObjectBean
{
	public PatientEasListVoBean()
	{
	}
	public PatientEasListVoBean(ims.eas.vo.PatientEasListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.easstatus = vo.getEasStatus() == null ? null : (ims.eas.vo.beans.EasStatusLiteVoBean)vo.getEasStatus().getBean();
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.responsiblehcp = vo.getResponsibleHcp() == null ? null : (ims.core.vo.beans.HcpMinVoBean)vo.getResponsibleHcp().getBean();
		this.dateseen = vo.getDateSeen() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSeen().getBean();
		this.intent = vo.getIntent() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntent().getBean();
		this.primarytumour = vo.getPrimaryTumour() == null ? null : (ims.eas.vo.beans.PrimaryTumourNameVoBean)vo.getPrimaryTumour().getBean();
		this.treatmentsite = vo.getTreatmentSite() == null ? null : (ims.eas.vo.beans.TreatmentSiteNameVoBean)vo.getTreatmentSite().getBean();
		this.tpcreated = vo.getTPCreated();
		this.recordinginfo = vo.getRecordingInfo() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInfo().getBean();
		this.seenby = vo.getSeenBy() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getSeenBy().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.eas.vo.PatientEasListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.easstatus = vo.getEasStatus() == null ? null : (ims.eas.vo.beans.EasStatusLiteVoBean)vo.getEasStatus().getBean(map);
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.responsiblehcp = vo.getResponsibleHcp() == null ? null : (ims.core.vo.beans.HcpMinVoBean)vo.getResponsibleHcp().getBean(map);
		this.dateseen = vo.getDateSeen() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSeen().getBean();
		this.intent = vo.getIntent() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntent().getBean();
		this.primarytumour = vo.getPrimaryTumour() == null ? null : (ims.eas.vo.beans.PrimaryTumourNameVoBean)vo.getPrimaryTumour().getBean(map);
		this.treatmentsite = vo.getTreatmentSite() == null ? null : (ims.eas.vo.beans.TreatmentSiteNameVoBean)vo.getTreatmentSite().getBean(map);
		this.tpcreated = vo.getTPCreated();
		this.recordinginfo = vo.getRecordingInfo() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInfo().getBean(map);
		this.seenby = vo.getSeenBy() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getSeenBy().getBean(map);
	}

	public ims.eas.vo.PatientEasListVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.eas.vo.PatientEasListVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.eas.vo.PatientEasListVo vo = null;
		if(map != null)
			vo = (ims.eas.vo.PatientEasListVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.eas.vo.PatientEasListVo();
			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.eas.vo.beans.EasStatusLiteVoBean getEasStatus()
	{
		return this.easstatus;
	}
	public void setEasStatus(ims.eas.vo.beans.EasStatusLiteVoBean value)
	{
		this.easstatus = value;
	}
	public ims.eas.vo.beans.EasStatusLiteVoBean[] getStatusHistory()
	{
		return this.statushistory;
	}
	public void setStatusHistory(ims.eas.vo.beans.EasStatusLiteVoBean[] value)
	{
		this.statushistory = value;
	}
	public ims.core.vo.beans.HcpMinVoBean getResponsibleHcp()
	{
		return this.responsiblehcp;
	}
	public void setResponsibleHcp(ims.core.vo.beans.HcpMinVoBean value)
	{
		this.responsiblehcp = value;
	}
	public ims.framework.utils.beans.DateBean getDateSeen()
	{
		return this.dateseen;
	}
	public void setDateSeen(ims.framework.utils.beans.DateBean value)
	{
		this.dateseen = value;
	}
	public ims.vo.LookupInstanceBean getIntent()
	{
		return this.intent;
	}
	public void setIntent(ims.vo.LookupInstanceBean value)
	{
		this.intent = value;
	}
	public ims.eas.vo.beans.PrimaryTumourNameVoBean getPrimaryTumour()
	{
		return this.primarytumour;
	}
	public void setPrimaryTumour(ims.eas.vo.beans.PrimaryTumourNameVoBean value)
	{
		this.primarytumour = value;
	}
	public ims.eas.vo.beans.TreatmentSiteNameVoBean getTreatmentSite()
	{
		return this.treatmentsite;
	}
	public void setTreatmentSite(ims.eas.vo.beans.TreatmentSiteNameVoBean value)
	{
		this.treatmentsite = value;
	}
	public Boolean getTPCreated()
	{
		return this.tpcreated;
	}
	public void setTPCreated(Boolean value)
	{
		this.tpcreated = value;
	}
	public ims.core.vo.beans.RecordingUserInformationVoBean getRecordingInfo()
	{
		return this.recordinginfo;
	}
	public void setRecordingInfo(ims.core.vo.beans.RecordingUserInformationVoBean value)
	{
		this.recordinginfo = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getSeenBy()
	{
		return this.seenby;
	}
	public void setSeenBy(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.seenby = value;
	}

	private Integer id;
	private int version;
	private ims.eas.vo.beans.EasStatusLiteVoBean easstatus;
	private ims.eas.vo.beans.EasStatusLiteVoBean[] statushistory;
	private ims.core.vo.beans.HcpMinVoBean responsiblehcp;
	private ims.framework.utils.beans.DateBean dateseen;
	private ims.vo.LookupInstanceBean intent;
	private ims.eas.vo.beans.PrimaryTumourNameVoBean primarytumour;
	private ims.eas.vo.beans.TreatmentSiteNameVoBean treatmentsite;
	private Boolean tpcreated;
	private ims.core.vo.beans.RecordingUserInformationVoBean recordinginfo;
	private ims.core.vo.beans.HcpLiteVoBean seenby;
}
