/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/RACPExerciseECGVoBean.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 RACPExerciseECGVoBean extends ims.vo.ValueObjectBean
{
	public RACPExerciseECGVoBean()
	{
	}
	public RACPExerciseECGVoBean(ims.clinical.vo.RACPExerciseECGVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.preassesseschd = vo.getPreAssessesCHD() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreAssessesCHD().getBean();
		this.protocol = vo.getProtocol() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtocol().getBean();
		this.medicationattest = vo.getMedicationAtTest() == null ? null : vo.getMedicationAtTest().getBeanCollection();
		this.durationmins = vo.getDurationMins();
		this.durationsecs = vo.getDurationSecs();
		this.vspulse = vo.getVSPulse() == null ? null : (ims.core.vo.beans.VSPulseBean)vo.getVSPulse().getBean();
		this.vsbp = vo.getVSBP() == null ? null : (ims.core.vo.beans.VSBloodPressureBean)vo.getVSBP().getBean();
		this.maxpredheartrate = vo.getMaxPredHeartRate();
		this.stopreasons = vo.getStopReasons() == null ? null : vo.getStopReasons().getBeanCollection();
		this.dysponea = vo.getDysponea() == null ? null : (ims.vo.LookupInstanceBean)vo.getDysponea().getBean();
		this.sympomonset = vo.getSympomOnset();
		this.otherfindings = vo.getOtherFindings() == null ? null : vo.getOtherFindings().getBeanCollection();
		this.maxstchangemm = vo.getMaxSTChangeMM();
		this.minsto1mmchange = vo.getMinsTo1mmChange();
		this.secsto1mmchange = vo.getSecsTo1mmChange();
		this.result = vo.getResult() == null ? null : (ims.vo.LookupInstanceBean)vo.getResult().getBean();
		this.interpretation = vo.getInterpretation() == null ? null : (ims.vo.LookupInstanceBean)vo.getInterpretation().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.painexperienced = vo.getPainExperienced() == null ? null : (ims.vo.LookupInstanceBean)vo.getPainExperienced().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.RACPExerciseECGVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.preassesseschd = vo.getPreAssessesCHD() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreAssessesCHD().getBean();
		this.protocol = vo.getProtocol() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtocol().getBean();
		this.medicationattest = vo.getMedicationAtTest() == null ? null : vo.getMedicationAtTest().getBeanCollection();
		this.durationmins = vo.getDurationMins();
		this.durationsecs = vo.getDurationSecs();
		this.vspulse = vo.getVSPulse() == null ? null : (ims.core.vo.beans.VSPulseBean)vo.getVSPulse().getBean(map);
		this.vsbp = vo.getVSBP() == null ? null : (ims.core.vo.beans.VSBloodPressureBean)vo.getVSBP().getBean(map);
		this.maxpredheartrate = vo.getMaxPredHeartRate();
		this.stopreasons = vo.getStopReasons() == null ? null : vo.getStopReasons().getBeanCollection();
		this.dysponea = vo.getDysponea() == null ? null : (ims.vo.LookupInstanceBean)vo.getDysponea().getBean();
		this.sympomonset = vo.getSympomOnset();
		this.otherfindings = vo.getOtherFindings() == null ? null : vo.getOtherFindings().getBeanCollection();
		this.maxstchangemm = vo.getMaxSTChangeMM();
		this.minsto1mmchange = vo.getMinsTo1mmChange();
		this.secsto1mmchange = vo.getSecsTo1mmChange();
		this.result = vo.getResult() == null ? null : (ims.vo.LookupInstanceBean)vo.getResult().getBean();
		this.interpretation = vo.getInterpretation() == null ? null : (ims.vo.LookupInstanceBean)vo.getInterpretation().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.painexperienced = vo.getPainExperienced() == null ? null : (ims.vo.LookupInstanceBean)vo.getPainExperienced().getBean();
	}

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

	public ims.clinical.vo.RACPExerciseECGVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.RACPExerciseECGVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.RACPExerciseECGVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.RACPExerciseECGVo();
			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 getPreAssessesCHD()
	{
		return this.preassesseschd;
	}
	public void setPreAssessesCHD(ims.vo.LookupInstanceBean value)
	{
		this.preassesseschd = value;
	}
	public ims.vo.LookupInstanceBean getProtocol()
	{
		return this.protocol;
	}
	public void setProtocol(ims.vo.LookupInstanceBean value)
	{
		this.protocol = value;
	}
	public java.util.Collection getMedicationAtTest()
	{
		return this.medicationattest;
	}
	public void setMedicationAtTest(java.util.Collection value)
	{
		this.medicationattest = value;
	}
	public void addMedicationAtTest(java.util.Collection value)
	{
		if(this.medicationattest == null)
			this.medicationattest = new java.util.ArrayList();
		this.medicationattest.add(value);
	}
	public Integer getDurationMins()
	{
		return this.durationmins;
	}
	public void setDurationMins(Integer value)
	{
		this.durationmins = value;
	}
	public Integer getDurationSecs()
	{
		return this.durationsecs;
	}
	public void setDurationSecs(Integer value)
	{
		this.durationsecs = value;
	}
	public ims.core.vo.beans.VSPulseBean getVSPulse()
	{
		return this.vspulse;
	}
	public void setVSPulse(ims.core.vo.beans.VSPulseBean value)
	{
		this.vspulse = value;
	}
	public ims.core.vo.beans.VSBloodPressureBean getVSBP()
	{
		return this.vsbp;
	}
	public void setVSBP(ims.core.vo.beans.VSBloodPressureBean value)
	{
		this.vsbp = value;
	}
	public Integer getMaxPredHeartRate()
	{
		return this.maxpredheartrate;
	}
	public void setMaxPredHeartRate(Integer value)
	{
		this.maxpredheartrate = value;
	}
	public java.util.Collection getStopReasons()
	{
		return this.stopreasons;
	}
	public void setStopReasons(java.util.Collection value)
	{
		this.stopreasons = value;
	}
	public void addStopReasons(java.util.Collection value)
	{
		if(this.stopreasons == null)
			this.stopreasons = new java.util.ArrayList();
		this.stopreasons.add(value);
	}
	public ims.vo.LookupInstanceBean getDysponea()
	{
		return this.dysponea;
	}
	public void setDysponea(ims.vo.LookupInstanceBean value)
	{
		this.dysponea = value;
	}
	public Integer getSympomOnset()
	{
		return this.sympomonset;
	}
	public void setSympomOnset(Integer value)
	{
		this.sympomonset = value;
	}
	public java.util.Collection getOtherFindings()
	{
		return this.otherfindings;
	}
	public void setOtherFindings(java.util.Collection value)
	{
		this.otherfindings = value;
	}
	public void addOtherFindings(java.util.Collection value)
	{
		if(this.otherfindings == null)
			this.otherfindings = new java.util.ArrayList();
		this.otherfindings.add(value);
	}
	public Integer getMaxSTChangeMM()
	{
		return this.maxstchangemm;
	}
	public void setMaxSTChangeMM(Integer value)
	{
		this.maxstchangemm = value;
	}
	public Integer getMinsTo1mmChange()
	{
		return this.minsto1mmchange;
	}
	public void setMinsTo1mmChange(Integer value)
	{
		this.minsto1mmchange = value;
	}
	public Integer getSecsTo1mmChange()
	{
		return this.secsto1mmchange;
	}
	public void setSecsTo1mmChange(Integer value)
	{
		this.secsto1mmchange = value;
	}
	public ims.vo.LookupInstanceBean getResult()
	{
		return this.result;
	}
	public void setResult(ims.vo.LookupInstanceBean value)
	{
		this.result = value;
	}
	public ims.vo.LookupInstanceBean getInterpretation()
	{
		return this.interpretation;
	}
	public void setInterpretation(ims.vo.LookupInstanceBean value)
	{
		this.interpretation = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.vo.LookupInstanceBean getPainExperienced()
	{
		return this.painexperienced;
	}
	public void setPainExperienced(ims.vo.LookupInstanceBean value)
	{
		this.painexperienced = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean preassesseschd;
	private ims.vo.LookupInstanceBean protocol;
	private java.util.Collection medicationattest;
	private Integer durationmins;
	private Integer durationsecs;
	private ims.core.vo.beans.VSPulseBean vspulse;
	private ims.core.vo.beans.VSBloodPressureBean vsbp;
	private Integer maxpredheartrate;
	private java.util.Collection stopreasons;
	private ims.vo.LookupInstanceBean dysponea;
	private Integer sympomonset;
	private java.util.Collection otherfindings;
	private Integer maxstchangemm;
	private Integer minsto1mmchange;
	private Integer secsto1mmchange;
	private ims.vo.LookupInstanceBean result;
	private ims.vo.LookupInstanceBean interpretation;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.LookupInstanceBean painexperienced;
}
