/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/therapies/vo/beans/ElectrotherapyUltrasoundTreatmentVoBean.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 ElectrotherapyUltrasoundTreatmentVoBean extends ims.vo.ValueObjectBean
{
	public ElectrotherapyUltrasoundTreatmentVoBean()
	{
	}
	public ElectrotherapyUltrasoundTreatmentVoBean(ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.target = vo.getTarget() == null ? null : (ims.vo.LookupInstanceBean)vo.getTarget().getBean();
		this.areatreated = vo.getAreaTreated() == null ? null : (ims.vo.LookupInstanceBean)vo.getAreaTreated().getBean();
		this.muscleaspect = vo.getMuscleAspect() == null ? null : (ims.vo.LookupInstanceBean)vo.getMuscleAspect().getBean();
		this.wave = vo.getWave() == null ? null : (ims.vo.LookupInstanceBean)vo.getWave().getBean();
		this.pulse = vo.getPulse() == null ? null : (ims.vo.LookupInstanceBean)vo.getPulse().getBean();
		this.duration = vo.getDuration();
		this.frequency = vo.getFrequency() == null ? null : (ims.vo.LookupInstanceBean)vo.getFrequency().getBean();
		this.intensity = vo.getIntensity() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntensity().getBean();
		this.comment = vo.getComment();
		this.machineused = vo.getMachineUsed() == null ? null : (ims.therapies.vo.beans.TreatmentEquipmentConfigVoBean)vo.getMachineUsed().getBean();
		this.laterality = vo.getLaterality() == null ? null : (ims.vo.LookupInstanceBean)vo.getLaterality().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.target = vo.getTarget() == null ? null : (ims.vo.LookupInstanceBean)vo.getTarget().getBean();
		this.areatreated = vo.getAreaTreated() == null ? null : (ims.vo.LookupInstanceBean)vo.getAreaTreated().getBean();
		this.muscleaspect = vo.getMuscleAspect() == null ? null : (ims.vo.LookupInstanceBean)vo.getMuscleAspect().getBean();
		this.wave = vo.getWave() == null ? null : (ims.vo.LookupInstanceBean)vo.getWave().getBean();
		this.pulse = vo.getPulse() == null ? null : (ims.vo.LookupInstanceBean)vo.getPulse().getBean();
		this.duration = vo.getDuration();
		this.frequency = vo.getFrequency() == null ? null : (ims.vo.LookupInstanceBean)vo.getFrequency().getBean();
		this.intensity = vo.getIntensity() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntensity().getBean();
		this.comment = vo.getComment();
		this.machineused = vo.getMachineUsed() == null ? null : (ims.therapies.vo.beans.TreatmentEquipmentConfigVoBean)vo.getMachineUsed().getBean(map);
		this.laterality = vo.getLaterality() == null ? null : (ims.vo.LookupInstanceBean)vo.getLaterality().getBean();
	}

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

	public ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo vo = null;
		if(map != null)
			vo = (ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.therapies.vo.ElectrotherapyUltrasoundTreatmentVo();
			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 getTarget()
	{
		return this.target;
	}
	public void setTarget(ims.vo.LookupInstanceBean value)
	{
		this.target = value;
	}
	public ims.vo.LookupInstanceBean getAreaTreated()
	{
		return this.areatreated;
	}
	public void setAreaTreated(ims.vo.LookupInstanceBean value)
	{
		this.areatreated = value;
	}
	public ims.vo.LookupInstanceBean getMuscleAspect()
	{
		return this.muscleaspect;
	}
	public void setMuscleAspect(ims.vo.LookupInstanceBean value)
	{
		this.muscleaspect = value;
	}
	public ims.vo.LookupInstanceBean getWave()
	{
		return this.wave;
	}
	public void setWave(ims.vo.LookupInstanceBean value)
	{
		this.wave = value;
	}
	public ims.vo.LookupInstanceBean getPulse()
	{
		return this.pulse;
	}
	public void setPulse(ims.vo.LookupInstanceBean value)
	{
		this.pulse = value;
	}
	public Integer getDuration()
	{
		return this.duration;
	}
	public void setDuration(Integer value)
	{
		this.duration = value;
	}
	public ims.vo.LookupInstanceBean getFrequency()
	{
		return this.frequency;
	}
	public void setFrequency(ims.vo.LookupInstanceBean value)
	{
		this.frequency = value;
	}
	public ims.vo.LookupInstanceBean getIntensity()
	{
		return this.intensity;
	}
	public void setIntensity(ims.vo.LookupInstanceBean value)
	{
		this.intensity = value;
	}
	public String getComment()
	{
		return this.comment;
	}
	public void setComment(String value)
	{
		this.comment = value;
	}
	public ims.therapies.vo.beans.TreatmentEquipmentConfigVoBean getMachineUsed()
	{
		return this.machineused;
	}
	public void setMachineUsed(ims.therapies.vo.beans.TreatmentEquipmentConfigVoBean value)
	{
		this.machineused = value;
	}
	public ims.vo.LookupInstanceBean getLaterality()
	{
		return this.laterality;
	}
	public void setLaterality(ims.vo.LookupInstanceBean value)
	{
		this.laterality = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean target;
	private ims.vo.LookupInstanceBean areatreated;
	private ims.vo.LookupInstanceBean muscleaspect;
	private ims.vo.LookupInstanceBean wave;
	private ims.vo.LookupInstanceBean pulse;
	private Integer duration;
	private ims.vo.LookupInstanceBean frequency;
	private ims.vo.LookupInstanceBean intensity;
	private String comment;
	private ims.therapies.vo.beans.TreatmentEquipmentConfigVoBean machineused;
	private ims.vo.LookupInstanceBean laterality;
}
