/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/WardStayVoBean.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 WardStayVoBean extends ims.vo.ValueObjectBean
{
	public WardStayVoBean()
	{
	}
	public WardStayVoBean(ims.core.vo.WardStayVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean();
		this.transferdatetime = vo.getTransferDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTransferDateTime().getBean();
		this.transferoutdatetime = vo.getTransferOutDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTransferOutDateTime().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.bedspace = vo.getBedSpace() == null ? null : new ims.vo.RefVoBean(vo.getBedSpace().getBoId(), vo.getBedSpace().getBoVersion());
		this.bay = vo.getBay() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getBay().getBean();
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.reasonprivatebedallocated = vo.getReasonPrivateBedAllocated() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonPrivateBedAllocated().getBean();
		this.reasonadmittingoutsidehours = vo.getReasonAdmittingOutsideHours() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonAdmittingOutsideHours().getBean();
		this.reasongenderbreach = vo.getReasonGenderBreach() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonGenderBreach().getBean();
		this.admitedinmixedgenderbay = vo.getAdmitedInMixedGenderBay();
		this.reasonprivatebedallocatedcomment = vo.getReasonPrivateBedAllocatedComment();
		this.reasonadmittingoutsidehourscomment = vo.getReasonAdmittingOutsideHoursComment();
		this.reasongenderbreachcomment = vo.getReasonGenderBreachComment();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean();
		this.transferreason = vo.getTransferReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTransferReason().getBean();
		this.transfercomment = vo.getTransferComment();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.WardStayVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean(map);
		this.transferdatetime = vo.getTransferDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTransferDateTime().getBean();
		this.transferoutdatetime = vo.getTransferOutDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTransferOutDateTime().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.bedspace = vo.getBedSpace() == null ? null : new ims.vo.RefVoBean(vo.getBedSpace().getBoId(), vo.getBedSpace().getBoVersion());
		this.bay = vo.getBay() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getBay().getBean(map);
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.reasonprivatebedallocated = vo.getReasonPrivateBedAllocated() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonPrivateBedAllocated().getBean();
		this.reasonadmittingoutsidehours = vo.getReasonAdmittingOutsideHours() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonAdmittingOutsideHours().getBean();
		this.reasongenderbreach = vo.getReasonGenderBreach() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonGenderBreach().getBean();
		this.admitedinmixedgenderbay = vo.getAdmitedInMixedGenderBay();
		this.reasonprivatebedallocatedcomment = vo.getReasonPrivateBedAllocatedComment();
		this.reasonadmittingoutsidehourscomment = vo.getReasonAdmittingOutsideHoursComment();
		this.reasongenderbreachcomment = vo.getReasonGenderBreachComment();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean(map);
		this.transferreason = vo.getTransferReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTransferReason().getBean();
		this.transfercomment = vo.getTransferComment();
	}

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

	public ims.core.vo.WardStayVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.WardStayVo vo = null;
		if(map != null)
			vo = (ims.core.vo.WardStayVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.WardStayVo();
			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.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 getTransferDateTime()
	{
		return this.transferdatetime;
	}
	public void setTransferDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.transferdatetime = value;
	}
	public ims.framework.utils.beans.DateTimeBean getTransferOutDateTime()
	{
		return this.transferoutdatetime;
	}
	public void setTransferOutDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.transferoutdatetime = value;
	}
	public ims.vo.LookupInstanceBean getWardType()
	{
		return this.wardtype;
	}
	public void setWardType(ims.vo.LookupInstanceBean value)
	{
		this.wardtype = value;
	}
	public ims.vo.RefVoBean getBedSpace()
	{
		return this.bedspace;
	}
	public void setBedSpace(ims.vo.RefVoBean value)
	{
		this.bedspace = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getBay()
	{
		return this.bay;
	}
	public void setBay(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.bay = value;
	}
	public ims.vo.LookupInstanceBean getPatientStatus()
	{
		return this.patientstatus;
	}
	public void setPatientStatus(ims.vo.LookupInstanceBean value)
	{
		this.patientstatus = value;
	}
	public ims.vo.LookupInstanceBean getReasonPrivateBedAllocated()
	{
		return this.reasonprivatebedallocated;
	}
	public void setReasonPrivateBedAllocated(ims.vo.LookupInstanceBean value)
	{
		this.reasonprivatebedallocated = value;
	}
	public ims.vo.LookupInstanceBean getReasonAdmittingOutsideHours()
	{
		return this.reasonadmittingoutsidehours;
	}
	public void setReasonAdmittingOutsideHours(ims.vo.LookupInstanceBean value)
	{
		this.reasonadmittingoutsidehours = value;
	}
	public ims.vo.LookupInstanceBean getReasonGenderBreach()
	{
		return this.reasongenderbreach;
	}
	public void setReasonGenderBreach(ims.vo.LookupInstanceBean value)
	{
		this.reasongenderbreach = value;
	}
	public Boolean getAdmitedInMixedGenderBay()
	{
		return this.admitedinmixedgenderbay;
	}
	public void setAdmitedInMixedGenderBay(Boolean value)
	{
		this.admitedinmixedgenderbay = value;
	}
	public String getReasonPrivateBedAllocatedComment()
	{
		return this.reasonprivatebedallocatedcomment;
	}
	public void setReasonPrivateBedAllocatedComment(String value)
	{
		this.reasonprivatebedallocatedcomment = value;
	}
	public String getReasonAdmittingOutsideHoursComment()
	{
		return this.reasonadmittingoutsidehourscomment;
	}
	public void setReasonAdmittingOutsideHoursComment(String value)
	{
		this.reasonadmittingoutsidehourscomment = value;
	}
	public String getReasonGenderBreachComment()
	{
		return this.reasongenderbreachcomment;
	}
	public void setReasonGenderBreachComment(String value)
	{
		this.reasongenderbreachcomment = value;
	}
	public ims.core.vo.beans.ServiceLiteVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.core.vo.beans.ServiceLiteVoBean value)
	{
		this.service = value;
	}
	public ims.vo.LookupInstanceBean getTransferReason()
	{
		return this.transferreason;
	}
	public void setTransferReason(ims.vo.LookupInstanceBean value)
	{
		this.transferreason = value;
	}
	public String getTransferComment()
	{
		return this.transfercomment;
	}
	public void setTransferComment(String value)
	{
		this.transfercomment = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.LocationLiteVoBean ward;
	private ims.framework.utils.beans.DateTimeBean transferdatetime;
	private ims.framework.utils.beans.DateTimeBean transferoutdatetime;
	private ims.vo.LookupInstanceBean wardtype;
	private ims.vo.RefVoBean bedspace;
	private ims.core.vo.beans.LocationLiteVoBean bay;
	private ims.vo.LookupInstanceBean patientstatus;
	private ims.vo.LookupInstanceBean reasonprivatebedallocated;
	private ims.vo.LookupInstanceBean reasonadmittingoutsidehours;
	private ims.vo.LookupInstanceBean reasongenderbreach;
	private Boolean admitedinmixedgenderbay;
	private String reasonprivatebedallocatedcomment;
	private String reasonadmittingoutsidehourscomment;
	private String reasongenderbreachcomment;
	private ims.core.vo.beans.ServiceLiteVoBean service;
	private ims.vo.LookupInstanceBean transferreason;
	private String transfercomment;
}
