/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/RACPPastMedicalHistoryVoBean.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 RACPPastMedicalHistoryVoBean extends ims.vo.ValueObjectBean
{
	public RACPPastMedicalHistoryVoBean()
	{
	}
	public RACPPastMedicalHistoryVoBean(ims.clinical.vo.RACPPastMedicalHistoryVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pmhflag = vo.getPMHFlag();
		this.relevantdiagnosis = vo.getRelevantDiagnosis() == null ? null : vo.getRelevantDiagnosis().getBeanCollection();
		this.pmhnotes = vo.getPMHNotes();
		this.vsbp = vo.getVSBP() == null ? null : (ims.core.vo.beans.VSBloodPressureBean)vo.getVSBP().getBean();
		this.vspulse = vo.getVSPulse() == null ? null : (ims.core.vo.beans.VSPulseBean)vo.getVSPulse().getBean();
		this.heightweight = vo.getHeightWeight() == null ? null : (ims.core.vo.beans.VSMetricsBean)vo.getHeightWeight().getBean();
		this.examnotes = vo.getExamNotes();
		this.ecgfindings = vo.getECGFindings() == null ? null : vo.getECGFindings().getBeanCollection();
		this.ecgnotes = vo.getECGNotes();
		this.examfindings = vo.getExamFindings() == null ? null : vo.getExamFindings().getBeanCollection();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.RACPPastMedicalHistoryVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pmhflag = vo.getPMHFlag();
		this.relevantdiagnosis = vo.getRelevantDiagnosis() == null ? null : vo.getRelevantDiagnosis().getBeanCollection();
		this.pmhnotes = vo.getPMHNotes();
		this.vsbp = vo.getVSBP() == null ? null : (ims.core.vo.beans.VSBloodPressureBean)vo.getVSBP().getBean(map);
		this.vspulse = vo.getVSPulse() == null ? null : (ims.core.vo.beans.VSPulseBean)vo.getVSPulse().getBean(map);
		this.heightweight = vo.getHeightWeight() == null ? null : (ims.core.vo.beans.VSMetricsBean)vo.getHeightWeight().getBean(map);
		this.examnotes = vo.getExamNotes();
		this.ecgfindings = vo.getECGFindings() == null ? null : vo.getECGFindings().getBeanCollection();
		this.ecgnotes = vo.getECGNotes();
		this.examfindings = vo.getExamFindings() == null ? null : vo.getExamFindings().getBeanCollection();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
	}

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

	public ims.clinical.vo.RACPPastMedicalHistoryVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.RACPPastMedicalHistoryVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.RACPPastMedicalHistoryVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.RACPPastMedicalHistoryVo();
			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 Boolean getPMHFlag()
	{
		return this.pmhflag;
	}
	public void setPMHFlag(Boolean value)
	{
		this.pmhflag = value;
	}
	public java.util.Collection getRelevantDiagnosis()
	{
		return this.relevantdiagnosis;
	}
	public void setRelevantDiagnosis(java.util.Collection value)
	{
		this.relevantdiagnosis = value;
	}
	public void addRelevantDiagnosis(java.util.Collection value)
	{
		if(this.relevantdiagnosis == null)
			this.relevantdiagnosis = new java.util.ArrayList();
		this.relevantdiagnosis.add(value);
	}
	public String getPMHNotes()
	{
		return this.pmhnotes;
	}
	public void setPMHNotes(String value)
	{
		this.pmhnotes = value;
	}
	public ims.core.vo.beans.VSBloodPressureBean getVSBP()
	{
		return this.vsbp;
	}
	public void setVSBP(ims.core.vo.beans.VSBloodPressureBean value)
	{
		this.vsbp = 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.VSMetricsBean getHeightWeight()
	{
		return this.heightweight;
	}
	public void setHeightWeight(ims.core.vo.beans.VSMetricsBean value)
	{
		this.heightweight = value;
	}
	public String getExamNotes()
	{
		return this.examnotes;
	}
	public void setExamNotes(String value)
	{
		this.examnotes = value;
	}
	public java.util.Collection getECGFindings()
	{
		return this.ecgfindings;
	}
	public void setECGFindings(java.util.Collection value)
	{
		this.ecgfindings = value;
	}
	public void addECGFindings(java.util.Collection value)
	{
		if(this.ecgfindings == null)
			this.ecgfindings = new java.util.ArrayList();
		this.ecgfindings.add(value);
	}
	public String getECGNotes()
	{
		return this.ecgnotes;
	}
	public void setECGNotes(String value)
	{
		this.ecgnotes = value;
	}
	public java.util.Collection getExamFindings()
	{
		return this.examfindings;
	}
	public void setExamFindings(java.util.Collection value)
	{
		this.examfindings = value;
	}
	public void addExamFindings(java.util.Collection value)
	{
		if(this.examfindings == null)
			this.examfindings = new java.util.ArrayList();
		this.examfindings.add(value);
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}

	private Integer id;
	private int version;
	private Boolean pmhflag;
	private java.util.Collection relevantdiagnosis;
	private String pmhnotes;
	private ims.core.vo.beans.VSBloodPressureBean vsbp;
	private ims.core.vo.beans.VSPulseBean vspulse;
	private ims.core.vo.beans.VSMetricsBean heightweight;
	private String examnotes;
	private java.util.Collection ecgfindings;
	private String ecgnotes;
	private java.util.Collection examfindings;
	private ims.vo.RefVoBean carecontext;
}
