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

public class WheelchairDetailsVoBean extends ims.vo.ValueObjectBean
{
	public WheelchairDetailsVoBean()
	{
	}
	public WheelchairDetailsVoBean(ims.therapies.vo.WheelchairDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.authoringdatetime = vo.getAuthoringDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAuthoringDateTime().getBean();
		this.wheelchairtype = vo.getWheelchairType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairType().getBean();
		this.wheelchairmodel = vo.getWheelchairModel() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairModel().getBean();
		this.wheelchairframe = vo.getWheelchairFrame() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairFrame().getBean();
		this.wheelchairfootplates = vo.getWheelchairFootplates() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairFootplates().getBean();
		this.seatwidth = vo.getSeatWidth();
		this.seatdepth = vo.getSeatDepth();
		this.seatoverallwidth = vo.getSeatOverallWidth();
		this.trialstartdate = vo.getTrialStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTrialStartDate().getBean();
		this.trialenddate = vo.getTrialEndDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTrialEndDate().getBean();
		this.wheelchairaccessories = vo.getWheelchairAccessories();
		this.wheelchaircomments = vo.getWheelchairComments();
		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.authoringhcp = vo.getAuthoringHCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getAuthoringHCP().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.therapies.vo.WheelchairDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.authoringdatetime = vo.getAuthoringDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAuthoringDateTime().getBean();
		this.wheelchairtype = vo.getWheelchairType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairType().getBean();
		this.wheelchairmodel = vo.getWheelchairModel() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairModel().getBean();
		this.wheelchairframe = vo.getWheelchairFrame() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairFrame().getBean();
		this.wheelchairfootplates = vo.getWheelchairFootplates() == null ? null : (ims.vo.LookupInstanceBean)vo.getWheelchairFootplates().getBean();
		this.seatwidth = vo.getSeatWidth();
		this.seatdepth = vo.getSeatDepth();
		this.seatoverallwidth = vo.getSeatOverallWidth();
		this.trialstartdate = vo.getTrialStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTrialStartDate().getBean();
		this.trialenddate = vo.getTrialEndDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTrialEndDate().getBean();
		this.wheelchairaccessories = vo.getWheelchairAccessories();
		this.wheelchaircomments = vo.getWheelchairComments();
		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.authoringhcp = vo.getAuthoringHCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getAuthoringHCP().getBean(map);
	}

	public ims.therapies.vo.WheelchairDetailsVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.therapies.vo.WheelchairDetailsVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.therapies.vo.WheelchairDetailsVo vo = null;
		if(map != null)
			vo = (ims.therapies.vo.WheelchairDetailsVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.therapies.vo.WheelchairDetailsVo();
			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.DateTimeBean getAuthoringDateTime()
	{
		return this.authoringdatetime;
	}
	public void setAuthoringDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.authoringdatetime = value;
	}
	public ims.vo.LookupInstanceBean getWheelchairType()
	{
		return this.wheelchairtype;
	}
	public void setWheelchairType(ims.vo.LookupInstanceBean value)
	{
		this.wheelchairtype = value;
	}
	public ims.vo.LookupInstanceBean getWheelchairModel()
	{
		return this.wheelchairmodel;
	}
	public void setWheelchairModel(ims.vo.LookupInstanceBean value)
	{
		this.wheelchairmodel = value;
	}
	public ims.vo.LookupInstanceBean getWheelchairFrame()
	{
		return this.wheelchairframe;
	}
	public void setWheelchairFrame(ims.vo.LookupInstanceBean value)
	{
		this.wheelchairframe = value;
	}
	public ims.vo.LookupInstanceBean getWheelchairFootplates()
	{
		return this.wheelchairfootplates;
	}
	public void setWheelchairFootplates(ims.vo.LookupInstanceBean value)
	{
		this.wheelchairfootplates = value;
	}
	public Integer getSeatWidth()
	{
		return this.seatwidth;
	}
	public void setSeatWidth(Integer value)
	{
		this.seatwidth = value;
	}
	public Integer getSeatDepth()
	{
		return this.seatdepth;
	}
	public void setSeatDepth(Integer value)
	{
		this.seatdepth = value;
	}
	public Integer getSeatOverallWidth()
	{
		return this.seatoverallwidth;
	}
	public void setSeatOverallWidth(Integer value)
	{
		this.seatoverallwidth = value;
	}
	public ims.framework.utils.beans.DateBean getTrialStartDate()
	{
		return this.trialstartdate;
	}
	public void setTrialStartDate(ims.framework.utils.beans.DateBean value)
	{
		this.trialstartdate = value;
	}
	public ims.framework.utils.beans.DateBean getTrialEndDate()
	{
		return this.trialenddate;
	}
	public void setTrialEndDate(ims.framework.utils.beans.DateBean value)
	{
		this.trialenddate = value;
	}
	public String getWheelchairAccessories()
	{
		return this.wheelchairaccessories;
	}
	public void setWheelchairAccessories(String value)
	{
		this.wheelchairaccessories = value;
	}
	public String getWheelchairComments()
	{
		return this.wheelchaircomments;
	}
	public void setWheelchairComments(String value)
	{
		this.wheelchaircomments = 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.core.vo.beans.HcpBean getAuthoringHCP()
	{
		return this.authoringhcp;
	}
	public void setAuthoringHCP(ims.core.vo.beans.HcpBean value)
	{
		this.authoringhcp = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateTimeBean authoringdatetime;
	private ims.vo.LookupInstanceBean wheelchairtype;
	private ims.vo.LookupInstanceBean wheelchairmodel;
	private ims.vo.LookupInstanceBean wheelchairframe;
	private ims.vo.LookupInstanceBean wheelchairfootplates;
	private Integer seatwidth;
	private Integer seatdepth;
	private Integer seatoverallwidth;
	private ims.framework.utils.beans.DateBean trialstartdate;
	private ims.framework.utils.beans.DateBean trialenddate;
	private String wheelchairaccessories;
	private String wheelchaircomments;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.RefVoBean clinicalcontact;
	private ims.core.vo.beans.HcpBean authoringhcp;
}
