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

public class PainAssessmentFindingsBean extends ims.vo.ValueObjectBean
{
	public PainAssessmentFindingsBean()
	{
	}
	public PainAssessmentFindingsBean(ims.nursing.vo.PainAssessmentFindings vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.siteimage = vo.getSiteImage();
		this.sitename = vo.getSiteName();
		this.painhypersensitivity = vo.getPainHypersensitivity() == null ? null : (ims.vo.LookupInstanceBean)vo.getPainHypersensitivity().getBean();
		this.painassessmentreview = vo.getPainAssessmentReview() == null ? null : vo.getPainAssessmentReview().getBeanCollection();
		this.isdiscontinuedassess = vo.getIsDiscontinuedAssess();
		this.iscontinuedassessment = vo.getIsContinuedAssessment();
		this.sitedetails = vo.getSiteDetails();
		this.type = vo.getType() == null ? null : (ims.vo.LookupInstanceBean)vo.getType().getBean();
		this.severity = vo.getSeverity() == null ? null : (ims.vo.LookupInstanceBean)vo.getSeverity().getBean();
		this.onset = vo.getOnset() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnset().getBean();
		this.progression = vo.getProgression() == null ? null : (ims.vo.LookupInstanceBean)vo.getProgression().getBean();
		this.depth = vo.getDepth() == null ? null : (ims.vo.LookupInstanceBean)vo.getDepth().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.nursing.vo.PainAssessmentFindings vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.siteimage = vo.getSiteImage();
		this.sitename = vo.getSiteName();
		this.painhypersensitivity = vo.getPainHypersensitivity() == null ? null : (ims.vo.LookupInstanceBean)vo.getPainHypersensitivity().getBean();
		this.painassessmentreview = vo.getPainAssessmentReview() == null ? null : vo.getPainAssessmentReview().getBeanCollection();
		this.isdiscontinuedassess = vo.getIsDiscontinuedAssess();
		this.iscontinuedassessment = vo.getIsContinuedAssessment();
		this.sitedetails = vo.getSiteDetails();
		this.type = vo.getType() == null ? null : (ims.vo.LookupInstanceBean)vo.getType().getBean();
		this.severity = vo.getSeverity() == null ? null : (ims.vo.LookupInstanceBean)vo.getSeverity().getBean();
		this.onset = vo.getOnset() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnset().getBean();
		this.progression = vo.getProgression() == null ? null : (ims.vo.LookupInstanceBean)vo.getProgression().getBean();
		this.depth = vo.getDepth() == null ? null : (ims.vo.LookupInstanceBean)vo.getDepth().getBean();
	}

	public ims.nursing.vo.PainAssessmentFindings buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.nursing.vo.PainAssessmentFindings buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.nursing.vo.PainAssessmentFindings vo = null;
		if(map != null)
			vo = (ims.nursing.vo.PainAssessmentFindings)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.nursing.vo.PainAssessmentFindings();
			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 String getSiteImage()
	{
		return this.siteimage;
	}
	public void setSiteImage(String value)
	{
		this.siteimage = value;
	}
	public String getSiteName()
	{
		return this.sitename;
	}
	public void setSiteName(String value)
	{
		this.sitename = value;
	}
	public ims.vo.LookupInstanceBean getPainHypersensitivity()
	{
		return this.painhypersensitivity;
	}
	public void setPainHypersensitivity(ims.vo.LookupInstanceBean value)
	{
		this.painhypersensitivity = value;
	}
	public ims.nursing.vo.beans.PainAssessmentReviewBean[] getPainAssessmentReview()
	{
		return this.painassessmentreview;
	}
	public void setPainAssessmentReview(ims.nursing.vo.beans.PainAssessmentReviewBean[] value)
	{
		this.painassessmentreview = value;
	}
	public Boolean getIsDiscontinuedAssess()
	{
		return this.isdiscontinuedassess;
	}
	public void setIsDiscontinuedAssess(Boolean value)
	{
		this.isdiscontinuedassess = value;
	}
	public Boolean getIsContinuedAssessment()
	{
		return this.iscontinuedassessment;
	}
	public void setIsContinuedAssessment(Boolean value)
	{
		this.iscontinuedassessment = value;
	}
	public String getSiteDetails()
	{
		return this.sitedetails;
	}
	public void setSiteDetails(String value)
	{
		this.sitedetails = value;
	}
	public ims.vo.LookupInstanceBean getType()
	{
		return this.type;
	}
	public void setType(ims.vo.LookupInstanceBean value)
	{
		this.type = value;
	}
	public ims.vo.LookupInstanceBean getSeverity()
	{
		return this.severity;
	}
	public void setSeverity(ims.vo.LookupInstanceBean value)
	{
		this.severity = value;
	}
	public ims.vo.LookupInstanceBean getOnset()
	{
		return this.onset;
	}
	public void setOnset(ims.vo.LookupInstanceBean value)
	{
		this.onset = value;
	}
	public ims.vo.LookupInstanceBean getProgression()
	{
		return this.progression;
	}
	public void setProgression(ims.vo.LookupInstanceBean value)
	{
		this.progression = value;
	}
	public ims.vo.LookupInstanceBean getDepth()
	{
		return this.depth;
	}
	public void setDepth(ims.vo.LookupInstanceBean value)
	{
		this.depth = value;
	}

	private Integer id;
	private int version;
	private String siteimage;
	private String sitename;
	private ims.vo.LookupInstanceBean painhypersensitivity;
	private ims.nursing.vo.beans.PainAssessmentReviewBean[] painassessmentreview;
	private Boolean isdiscontinuedassess;
	private Boolean iscontinuedassessment;
	private String sitedetails;
	private ims.vo.LookupInstanceBean type;
	private ims.vo.LookupInstanceBean severity;
	private ims.vo.LookupInstanceBean onset;
	private ims.vo.LookupInstanceBean progression;
	private ims.vo.LookupInstanceBean depth;
}
