/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PendingDischargesVoBean.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 PendingDischargesVoBean extends ims.vo.ValueObjectBean
{
	public PendingDischargesVoBean()
	{
	}
	public PendingDischargesVoBean(ims.core.vo.PendingDischargesVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.forename = vo.getForename();
		this.surname = vo.getSurname();
		this.hospitalnumber = vo.getHospitalNumber();
		this.sex = vo.getSex() == null ? null : (ims.vo.LookupInstanceBean)vo.getSex().getBean();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean();
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.currenthospital = vo.getCurrentHospital() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getCurrentHospital().getBean();
		this.consultant = vo.getConsultant() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getConsultant().getBean();
		this.timeunits = vo.getTimeUnits() == null ? null : (ims.vo.LookupInstanceBean)vo.getTimeUnits().getBean();
		this.numberoftimeunits = vo.getNumberOfTimeUnits();
		this.idtype = vo.getIDType() == null ? null : (ims.vo.LookupInstanceBean)vo.getIDType().getBean();
		this.potentialdischarge = vo.getPotentialDischarge();
		this.confirmeddischarge = vo.getConfirmedDischarge();
		this.readytoleave = vo.getReadyToLeave();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PendingDischargesVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.forename = vo.getForename();
		this.surname = vo.getSurname();
		this.hospitalnumber = vo.getHospitalNumber();
		this.sex = vo.getSex() == null ? null : (ims.vo.LookupInstanceBean)vo.getSex().getBean();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean(map);
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.currenthospital = vo.getCurrentHospital() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getCurrentHospital().getBean(map);
		this.consultant = vo.getConsultant() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getConsultant().getBean(map);
		this.timeunits = vo.getTimeUnits() == null ? null : (ims.vo.LookupInstanceBean)vo.getTimeUnits().getBean();
		this.numberoftimeunits = vo.getNumberOfTimeUnits();
		this.idtype = vo.getIDType() == null ? null : (ims.vo.LookupInstanceBean)vo.getIDType().getBean();
		this.potentialdischarge = vo.getPotentialDischarge();
		this.confirmeddischarge = vo.getConfirmedDischarge();
		this.readytoleave = vo.getReadyToLeave();
	}

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

	public ims.core.vo.PendingDischargesVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PendingDischargesVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PendingDischargesVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PendingDischargesVo();
			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 getForename()
	{
		return this.forename;
	}
	public void setForename(String value)
	{
		this.forename = value;
	}
	public String getSurname()
	{
		return this.surname;
	}
	public void setSurname(String value)
	{
		this.surname = value;
	}
	public String getHospitalNumber()
	{
		return this.hospitalnumber;
	}
	public void setHospitalNumber(String value)
	{
		this.hospitalnumber = value;
	}
	public ims.vo.LookupInstanceBean getSex()
	{
		return this.sex;
	}
	public void setSex(ims.vo.LookupInstanceBean value)
	{
		this.sex = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getWard()
	{
		return this.ward;
	}
	public void setWard(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.ward = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEstDischargeDate()
	{
		return this.estdischargedate;
	}
	public void setEstDischargeDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.estdischargedate = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getCurrentHospital()
	{
		return this.currenthospital;
	}
	public void setCurrentHospital(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.currenthospital = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getConsultant()
	{
		return this.consultant;
	}
	public void setConsultant(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.consultant = value;
	}
	public ims.vo.LookupInstanceBean getTimeUnits()
	{
		return this.timeunits;
	}
	public void setTimeUnits(ims.vo.LookupInstanceBean value)
	{
		this.timeunits = value;
	}
	public Integer getNumberOfTimeUnits()
	{
		return this.numberoftimeunits;
	}
	public void setNumberOfTimeUnits(Integer value)
	{
		this.numberoftimeunits = value;
	}
	public ims.vo.LookupInstanceBean getIDType()
	{
		return this.idtype;
	}
	public void setIDType(ims.vo.LookupInstanceBean value)
	{
		this.idtype = value;
	}
	public Boolean getPotentialDischarge()
	{
		return this.potentialdischarge;
	}
	public void setPotentialDischarge(Boolean value)
	{
		this.potentialdischarge = value;
	}
	public Boolean getConfirmedDischarge()
	{
		return this.confirmeddischarge;
	}
	public void setConfirmedDischarge(Boolean value)
	{
		this.confirmeddischarge = value;
	}
	public Boolean getReadyToLeave()
	{
		return this.readytoleave;
	}
	public void setReadyToLeave(Boolean value)
	{
		this.readytoleave = value;
	}

	private Integer id;
	private int version;
	private String forename;
	private String surname;
	private String hospitalnumber;
	private ims.vo.LookupInstanceBean sex;
	private ims.core.vo.beans.LocationLiteVoBean ward;
	private ims.framework.utils.beans.DateTimeBean estdischargedate;
	private ims.core.vo.beans.LocationLiteVoBean currenthospital;
	private ims.core.vo.beans.HcpLiteVoBean consultant;
	private ims.vo.LookupInstanceBean timeunits;
	private Integer numberoftimeunits;
	private ims.vo.LookupInstanceBean idtype;
	private Boolean potentialdischarge;
	private Boolean confirmeddischarge;
	private Boolean readytoleave;
}
