/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/DiscontinueMedicationReasonValuesVoBean.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 DiscontinueMedicationReasonValuesVoBean extends ims.vo.ValueObjectBean
{
	public DiscontinueMedicationReasonValuesVoBean()
	{
	}
	public DiscontinueMedicationReasonValuesVoBean(ims.clinical.vo.DiscontinueMedicationReasonValuesVo vo)
	{
		this.stoppeddate = vo.getStoppedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getStoppedDate().getBean();
		this.stoppedhcp = vo.getStoppedHCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getStoppedHCP().getBean();
		this.stoppedreason = vo.getStoppedReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getStoppedReason().getBean();
		this.stoppedreasondesc = vo.getStoppedReasonDesc();
		this.stoppedbytype = vo.getStoppedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getStoppedByType().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.DiscontinueMedicationReasonValuesVo vo)
	{
		this.stoppeddate = vo.getStoppedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getStoppedDate().getBean();
		this.stoppedhcp = vo.getStoppedHCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getStoppedHCP().getBean(map);
		this.stoppedreason = vo.getStoppedReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getStoppedReason().getBean();
		this.stoppedreasondesc = vo.getStoppedReasonDesc();
		this.stoppedbytype = vo.getStoppedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getStoppedByType().getBean();
	}

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

	public ims.clinical.vo.DiscontinueMedicationReasonValuesVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.DiscontinueMedicationReasonValuesVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.DiscontinueMedicationReasonValuesVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.DiscontinueMedicationReasonValuesVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public ims.framework.utils.beans.DateBean getStoppedDate()
	{
		return this.stoppeddate;
	}
	public void setStoppedDate(ims.framework.utils.beans.DateBean value)
	{
		this.stoppeddate = value;
	}
	public ims.core.vo.beans.HcpBean getStoppedHCP()
	{
		return this.stoppedhcp;
	}
	public void setStoppedHCP(ims.core.vo.beans.HcpBean value)
	{
		this.stoppedhcp = value;
	}
	public ims.vo.LookupInstanceBean getStoppedReason()
	{
		return this.stoppedreason;
	}
	public void setStoppedReason(ims.vo.LookupInstanceBean value)
	{
		this.stoppedreason = value;
	}
	public String getStoppedReasonDesc()
	{
		return this.stoppedreasondesc;
	}
	public void setStoppedReasonDesc(String value)
	{
		this.stoppedreasondesc = value;
	}
	public ims.vo.LookupInstanceBean getStoppedByType()
	{
		return this.stoppedbytype;
	}
	public void setStoppedByType(ims.vo.LookupInstanceBean value)
	{
		this.stoppedbytype = value;
	}

	private ims.framework.utils.beans.DateBean stoppeddate;
	private ims.core.vo.beans.HcpBean stoppedhcp;
	private ims.vo.LookupInstanceBean stoppedreason;
	private String stoppedreasondesc;
	private ims.vo.LookupInstanceBean stoppedbytype;
}
