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

public class PendingTransfersFilterVoBean extends ims.vo.ValueObjectBean
{
	public PendingTransfersFilterVoBean()
	{
	}
	public PendingTransfersFilterVoBean(ims.core.vo.PendingTransfersFilterVo vo)
	{
		this.patientforename = vo.getPatientForename();
		this.patientsurname = vo.getPatientSurname();
		this.patienthospnumber = vo.getPatientHospNumber();
		this.currentward = vo.getCurrentWard() == null ? null : new ims.vo.RefVoBean(vo.getCurrentWard().getBoId(), vo.getCurrentWard().getBoVersion());
		this.destinationward = vo.getDestinationWard() == null ? null : new ims.vo.RefVoBean(vo.getDestinationWard().getBoId(), vo.getDestinationWard().getBoVersion());
		this.alert = vo.getAlert() == null ? null : (ims.vo.LookupInstanceBean)vo.getAlert().getBean();
		this.consultant = vo.getConsultant() == null ? null : new ims.vo.RefVoBean(vo.getConsultant().getBoId(), vo.getConsultant().getBoVersion());
		this.currenthospital = vo.getCurrentHospital() == null ? null : new ims.vo.RefVoBean(vo.getCurrentHospital().getBoId(), vo.getCurrentHospital().getBoVersion());
		this.desthospital = vo.getDestHospital() == null ? null : new ims.vo.RefVoBean(vo.getDestHospital().getBoId(), vo.getDestHospital().getBoVersion());
		this.pendingtransfer = vo.getPendingTransfer();
		this.idtype = vo.getIDType() == null ? null : (ims.vo.LookupInstanceBean)vo.getIDType().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PendingTransfersFilterVo vo)
	{
		this.patientforename = vo.getPatientForename();
		this.patientsurname = vo.getPatientSurname();
		this.patienthospnumber = vo.getPatientHospNumber();
		this.currentward = vo.getCurrentWard() == null ? null : new ims.vo.RefVoBean(vo.getCurrentWard().getBoId(), vo.getCurrentWard().getBoVersion());
		this.destinationward = vo.getDestinationWard() == null ? null : new ims.vo.RefVoBean(vo.getDestinationWard().getBoId(), vo.getDestinationWard().getBoVersion());
		this.alert = vo.getAlert() == null ? null : (ims.vo.LookupInstanceBean)vo.getAlert().getBean();
		this.consultant = vo.getConsultant() == null ? null : new ims.vo.RefVoBean(vo.getConsultant().getBoId(), vo.getConsultant().getBoVersion());
		this.currenthospital = vo.getCurrentHospital() == null ? null : new ims.vo.RefVoBean(vo.getCurrentHospital().getBoId(), vo.getCurrentHospital().getBoVersion());
		this.desthospital = vo.getDestHospital() == null ? null : new ims.vo.RefVoBean(vo.getDestHospital().getBoId(), vo.getDestHospital().getBoVersion());
		this.pendingtransfer = vo.getPendingTransfer();
		this.idtype = vo.getIDType() == null ? null : (ims.vo.LookupInstanceBean)vo.getIDType().getBean();
	}

	public ims.core.vo.PendingTransfersFilterVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

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

	public String getPatientForename()
	{
		return this.patientforename;
	}
	public void setPatientForename(String value)
	{
		this.patientforename = value;
	}
	public String getPatientSurname()
	{
		return this.patientsurname;
	}
	public void setPatientSurname(String value)
	{
		this.patientsurname = value;
	}
	public String getPatientHospNumber()
	{
		return this.patienthospnumber;
	}
	public void setPatientHospNumber(String value)
	{
		this.patienthospnumber = value;
	}
	public ims.vo.RefVoBean getCurrentWard()
	{
		return this.currentward;
	}
	public void setCurrentWard(ims.vo.RefVoBean value)
	{
		this.currentward = value;
	}
	public ims.vo.RefVoBean getDestinationWard()
	{
		return this.destinationward;
	}
	public void setDestinationWard(ims.vo.RefVoBean value)
	{
		this.destinationward = value;
	}
	public ims.vo.LookupInstanceBean getAlert()
	{
		return this.alert;
	}
	public void setAlert(ims.vo.LookupInstanceBean value)
	{
		this.alert = value;
	}
	public ims.vo.RefVoBean getConsultant()
	{
		return this.consultant;
	}
	public void setConsultant(ims.vo.RefVoBean value)
	{
		this.consultant = value;
	}
	public ims.vo.RefVoBean getCurrentHospital()
	{
		return this.currenthospital;
	}
	public void setCurrentHospital(ims.vo.RefVoBean value)
	{
		this.currenthospital = value;
	}
	public ims.vo.RefVoBean getDestHospital()
	{
		return this.desthospital;
	}
	public void setDestHospital(ims.vo.RefVoBean value)
	{
		this.desthospital = value;
	}
	public Boolean getPendingTransfer()
	{
		return this.pendingtransfer;
	}
	public void setPendingTransfer(Boolean value)
	{
		this.pendingtransfer = value;
	}
	public ims.vo.LookupInstanceBean getIDType()
	{
		return this.idtype;
	}
	public void setIDType(ims.vo.LookupInstanceBean value)
	{
		this.idtype = value;
	}

	private String patientforename;
	private String patientsurname;
	private String patienthospnumber;
	private ims.vo.RefVoBean currentward;
	private ims.vo.RefVoBean destinationward;
	private ims.vo.LookupInstanceBean alert;
	private ims.vo.RefVoBean consultant;
	private ims.vo.RefVoBean currenthospital;
	private ims.vo.RefVoBean desthospital;
	private Boolean pendingtransfer;
	private ims.vo.LookupInstanceBean idtype;
}
