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

public class ClientScheduleStageVaccineVoBean extends ims.vo.ValueObjectBean
{
	public ClientScheduleStageVaccineVoBean()
	{
	}
	public ClientScheduleStageVaccineVoBean(ims.pci.vo.ClientScheduleStageVaccineVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.stagevaccine = vo.getStageVaccine() == null ? null : (ims.pci.vo.beans.StageVaccineVoBean)vo.getStageVaccine().getBean();
		this.scheduleddate = vo.getScheduledDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getScheduledDate().getBean();
		this.delivereddate = vo.getDeliveredDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDeliveredDate().getBean();
		this.terminateddate = vo.getTerminatedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTerminatedDate().getBean();
		this.vaccinemanufacturer = vo.getVaccineManufacturer() == null ? null : (ims.vo.LookupInstanceBean)vo.getVaccineManufacturer().getBean();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.batchnumber = vo.getBatchNumber();
		this.paymenttype = vo.getPaymentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPaymentType().getBean();
		this.deliveredbymedic = vo.getDeliveredByMedic() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getDeliveredByMedic().getBean();
		this.deliveredbygp = vo.getDeliveredByGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getDeliveredByGp().getBean();
		this.paymentgp = vo.getPaymentGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getPaymentGp().getBean();
		this.terminatedby = vo.getTerminatedBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getTerminatedBy().getBean();
		this.terminationreason = vo.getTerminationReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTerminationReason().getBean();
		this.isdeleted = vo.getIsDeleted();
		this.isextracted = vo.getIsExtracted();
		this.scheduletype = vo.getScheduleType() == null ? null : (ims.vo.LookupInstanceBean)vo.getScheduleType().getBean();
		this.personrecordingdelivery = vo.getPersonRecordingDelivery() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getPersonRecordingDelivery().getBean();
		this.iscancelled = vo.getIsCancelled();
		this.cancelledby = vo.getCancelledBy() == null ? null : new ims.vo.RefVoBean(vo.getCancelledBy().getBoId(), vo.getCancelledBy().getBoVersion());
		this.cancellationreason = vo.getCancellationReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getCancellationReason().getBean();
		this.cancellationdatetime = vo.getCancellationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCancellationDateTime().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.pci.vo.ClientScheduleStageVaccineVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.stagevaccine = vo.getStageVaccine() == null ? null : (ims.pci.vo.beans.StageVaccineVoBean)vo.getStageVaccine().getBean(map);
		this.scheduleddate = vo.getScheduledDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getScheduledDate().getBean();
		this.delivereddate = vo.getDeliveredDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDeliveredDate().getBean();
		this.terminateddate = vo.getTerminatedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTerminatedDate().getBean();
		this.vaccinemanufacturer = vo.getVaccineManufacturer() == null ? null : (ims.vo.LookupInstanceBean)vo.getVaccineManufacturer().getBean();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.batchnumber = vo.getBatchNumber();
		this.paymenttype = vo.getPaymentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPaymentType().getBean();
		this.deliveredbymedic = vo.getDeliveredByMedic() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getDeliveredByMedic().getBean(map);
		this.deliveredbygp = vo.getDeliveredByGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getDeliveredByGp().getBean(map);
		this.paymentgp = vo.getPaymentGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getPaymentGp().getBean(map);
		this.terminatedby = vo.getTerminatedBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getTerminatedBy().getBean();
		this.terminationreason = vo.getTerminationReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTerminationReason().getBean();
		this.isdeleted = vo.getIsDeleted();
		this.isextracted = vo.getIsExtracted();
		this.scheduletype = vo.getScheduleType() == null ? null : (ims.vo.LookupInstanceBean)vo.getScheduleType().getBean();
		this.personrecordingdelivery = vo.getPersonRecordingDelivery() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getPersonRecordingDelivery().getBean(map);
		this.iscancelled = vo.getIsCancelled();
		this.cancelledby = vo.getCancelledBy() == null ? null : new ims.vo.RefVoBean(vo.getCancelledBy().getBoId(), vo.getCancelledBy().getBoVersion());
		this.cancellationreason = vo.getCancellationReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getCancellationReason().getBean();
		this.cancellationdatetime = vo.getCancellationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCancellationDateTime().getBean();
	}

	public ims.pci.vo.ClientScheduleStageVaccineVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.pci.vo.ClientScheduleStageVaccineVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.pci.vo.ClientScheduleStageVaccineVo vo = null;
		if(map != null)
			vo = (ims.pci.vo.ClientScheduleStageVaccineVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.pci.vo.ClientScheduleStageVaccineVo();
			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.pci.vo.beans.StageVaccineVoBean getStageVaccine()
	{
		return this.stagevaccine;
	}
	public void setStageVaccine(ims.pci.vo.beans.StageVaccineVoBean value)
	{
		this.stagevaccine = value;
	}
	public ims.framework.utils.beans.DateBean getScheduledDate()
	{
		return this.scheduleddate;
	}
	public void setScheduledDate(ims.framework.utils.beans.DateBean value)
	{
		this.scheduleddate = value;
	}
	public ims.framework.utils.beans.DateBean getDeliveredDate()
	{
		return this.delivereddate;
	}
	public void setDeliveredDate(ims.framework.utils.beans.DateBean value)
	{
		this.delivereddate = value;
	}
	public ims.framework.utils.beans.DateBean getTerminatedDate()
	{
		return this.terminateddate;
	}
	public void setTerminatedDate(ims.framework.utils.beans.DateBean value)
	{
		this.terminateddate = value;
	}
	public ims.vo.LookupInstanceBean getVaccineManufacturer()
	{
		return this.vaccinemanufacturer;
	}
	public void setVaccineManufacturer(ims.vo.LookupInstanceBean value)
	{
		this.vaccinemanufacturer = value;
	}
	public ims.framework.utils.beans.DateBean getExpiryDate()
	{
		return this.expirydate;
	}
	public void setExpiryDate(ims.framework.utils.beans.DateBean value)
	{
		this.expirydate = value;
	}
	public String getBatchNumber()
	{
		return this.batchnumber;
	}
	public void setBatchNumber(String value)
	{
		this.batchnumber = value;
	}
	public ims.vo.LookupInstanceBean getPaymentType()
	{
		return this.paymenttype;
	}
	public void setPaymentType(ims.vo.LookupInstanceBean value)
	{
		this.paymenttype = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getDeliveredByMedic()
	{
		return this.deliveredbymedic;
	}
	public void setDeliveredByMedic(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.deliveredbymedic = value;
	}
	public ims.core.vo.beans.GpShortVoBean getDeliveredByGp()
	{
		return this.deliveredbygp;
	}
	public void setDeliveredByGp(ims.core.vo.beans.GpShortVoBean value)
	{
		this.deliveredbygp = value;
	}
	public ims.core.vo.beans.GpShortVoBean getPaymentGp()
	{
		return this.paymentgp;
	}
	public void setPaymentGp(ims.core.vo.beans.GpShortVoBean value)
	{
		this.paymentgp = value;
	}
	public ims.vo.LookupInstanceBean getTerminatedBy()
	{
		return this.terminatedby;
	}
	public void setTerminatedBy(ims.vo.LookupInstanceBean value)
	{
		this.terminatedby = value;
	}
	public ims.vo.LookupInstanceBean getTerminationReason()
	{
		return this.terminationreason;
	}
	public void setTerminationReason(ims.vo.LookupInstanceBean value)
	{
		this.terminationreason = value;
	}
	public Boolean getIsDeleted()
	{
		return this.isdeleted;
	}
	public void setIsDeleted(Boolean value)
	{
		this.isdeleted = value;
	}
	public Boolean getIsExtracted()
	{
		return this.isextracted;
	}
	public void setIsExtracted(Boolean value)
	{
		this.isextracted = value;
	}
	public ims.vo.LookupInstanceBean getScheduleType()
	{
		return this.scheduletype;
	}
	public void setScheduleType(ims.vo.LookupInstanceBean value)
	{
		this.scheduletype = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getPersonRecordingDelivery()
	{
		return this.personrecordingdelivery;
	}
	public void setPersonRecordingDelivery(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.personrecordingdelivery = value;
	}
	public Boolean getIsCancelled()
	{
		return this.iscancelled;
	}
	public void setIsCancelled(Boolean value)
	{
		this.iscancelled = value;
	}
	public ims.vo.RefVoBean getCancelledBy()
	{
		return this.cancelledby;
	}
	public void setCancelledBy(ims.vo.RefVoBean value)
	{
		this.cancelledby = value;
	}
	public ims.vo.LookupInstanceBean getCancellationReason()
	{
		return this.cancellationreason;
	}
	public void setCancellationReason(ims.vo.LookupInstanceBean value)
	{
		this.cancellationreason = value;
	}
	public ims.framework.utils.beans.DateTimeBean getCancellationDateTime()
	{
		return this.cancellationdatetime;
	}
	public void setCancellationDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.cancellationdatetime = value;
	}

	private Integer id;
	private int version;
	private ims.pci.vo.beans.StageVaccineVoBean stagevaccine;
	private ims.framework.utils.beans.DateBean scheduleddate;
	private ims.framework.utils.beans.DateBean delivereddate;
	private ims.framework.utils.beans.DateBean terminateddate;
	private ims.vo.LookupInstanceBean vaccinemanufacturer;
	private ims.framework.utils.beans.DateBean expirydate;
	private String batchnumber;
	private ims.vo.LookupInstanceBean paymenttype;
	private ims.core.vo.beans.HcpLiteVoBean deliveredbymedic;
	private ims.core.vo.beans.GpShortVoBean deliveredbygp;
	private ims.core.vo.beans.GpShortVoBean paymentgp;
	private ims.vo.LookupInstanceBean terminatedby;
	private ims.vo.LookupInstanceBean terminationreason;
	private Boolean isdeleted;
	private Boolean isextracted;
	private ims.vo.LookupInstanceBean scheduletype;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean personrecordingdelivery;
	private Boolean iscancelled;
	private ims.vo.RefVoBean cancelledby;
	private ims.vo.LookupInstanceBean cancellationreason;
	private ims.framework.utils.beans.DateTimeBean cancellationdatetime;
}
