/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/AdmissionReasonVoBean.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 AdmissionReasonVoBean extends ims.vo.ValueObjectBean
{
	public AdmissionReasonVoBean()
	{
	}
	public AdmissionReasonVoBean(ims.core.vo.AdmissionReasonVo vo)
	{
		this.reasonforprivatebedallocation = vo.getReasonForPrivateBedAllocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForPrivateBedAllocation().getBean();
		this.reasonformixingbaygender = vo.getReasonForMixingBayGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForMixingBayGender().getBean();
		this.reasonforadmissionoutofopeninghours = vo.getReasonForAdmissionOutOfOpeningHours() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForAdmissionOutOfOpeningHours().getBean();
		this.reasonforprivatebedallocationcomment = vo.getReasonForPrivateBedAllocationComment();
		this.reasonformixingbaygendercomment = vo.getReasonForMixingBayGenderComment();
		this.reasonforadmissionoohcomment = vo.getReasonForAdmissionOohComment();
		this.validationtype = vo.getValidationType();
		this.isprivatebedallocationvalidated = vo.getIsPrivateBedAllocationValidated();
		this.ismixinggenderbayvalidated = vo.getIsMixingGenderBayValidated();
		this.isgenderspecificbayvalidated = vo.getIsGenderSpecificBayValidated();
		this.isoohallocationvalidated = vo.getIsOohAllocationValidated();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.AdmissionReasonVo vo)
	{
		this.reasonforprivatebedallocation = vo.getReasonForPrivateBedAllocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForPrivateBedAllocation().getBean();
		this.reasonformixingbaygender = vo.getReasonForMixingBayGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForMixingBayGender().getBean();
		this.reasonforadmissionoutofopeninghours = vo.getReasonForAdmissionOutOfOpeningHours() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonForAdmissionOutOfOpeningHours().getBean();
		this.reasonforprivatebedallocationcomment = vo.getReasonForPrivateBedAllocationComment();
		this.reasonformixingbaygendercomment = vo.getReasonForMixingBayGenderComment();
		this.reasonforadmissionoohcomment = vo.getReasonForAdmissionOohComment();
		this.validationtype = vo.getValidationType();
		this.isprivatebedallocationvalidated = vo.getIsPrivateBedAllocationValidated();
		this.ismixinggenderbayvalidated = vo.getIsMixingGenderBayValidated();
		this.isgenderspecificbayvalidated = vo.getIsGenderSpecificBayValidated();
		this.isoohallocationvalidated = vo.getIsOohAllocationValidated();
	}

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

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

	public ims.vo.LookupInstanceBean getReasonForPrivateBedAllocation()
	{
		return this.reasonforprivatebedallocation;
	}
	public void setReasonForPrivateBedAllocation(ims.vo.LookupInstanceBean value)
	{
		this.reasonforprivatebedallocation = value;
	}
	public ims.vo.LookupInstanceBean getReasonForMixingBayGender()
	{
		return this.reasonformixingbaygender;
	}
	public void setReasonForMixingBayGender(ims.vo.LookupInstanceBean value)
	{
		this.reasonformixingbaygender = value;
	}
	public ims.vo.LookupInstanceBean getReasonForAdmissionOutOfOpeningHours()
	{
		return this.reasonforadmissionoutofopeninghours;
	}
	public void setReasonForAdmissionOutOfOpeningHours(ims.vo.LookupInstanceBean value)
	{
		this.reasonforadmissionoutofopeninghours = value;
	}
	public String getReasonForPrivateBedAllocationComment()
	{
		return this.reasonforprivatebedallocationcomment;
	}
	public void setReasonForPrivateBedAllocationComment(String value)
	{
		this.reasonforprivatebedallocationcomment = value;
	}
	public String getReasonForMixingBayGenderComment()
	{
		return this.reasonformixingbaygendercomment;
	}
	public void setReasonForMixingBayGenderComment(String value)
	{
		this.reasonformixingbaygendercomment = value;
	}
	public String getReasonForAdmissionOohComment()
	{
		return this.reasonforadmissionoohcomment;
	}
	public void setReasonForAdmissionOohComment(String value)
	{
		this.reasonforadmissionoohcomment = value;
	}
	public String getValidationType()
	{
		return this.validationtype;
	}
	public void setValidationType(String value)
	{
		this.validationtype = value;
	}
	public Boolean getIsPrivateBedAllocationValidated()
	{
		return this.isprivatebedallocationvalidated;
	}
	public void setIsPrivateBedAllocationValidated(Boolean value)
	{
		this.isprivatebedallocationvalidated = value;
	}
	public Boolean getIsMixingGenderBayValidated()
	{
		return this.ismixinggenderbayvalidated;
	}
	public void setIsMixingGenderBayValidated(Boolean value)
	{
		this.ismixinggenderbayvalidated = value;
	}
	public Boolean getIsGenderSpecificBayValidated()
	{
		return this.isgenderspecificbayvalidated;
	}
	public void setIsGenderSpecificBayValidated(Boolean value)
	{
		this.isgenderspecificbayvalidated = value;
	}
	public Boolean getIsOohAllocationValidated()
	{
		return this.isoohallocationvalidated;
	}
	public void setIsOohAllocationValidated(Boolean value)
	{
		this.isoohallocationvalidated = value;
	}

	private ims.vo.LookupInstanceBean reasonforprivatebedallocation;
	private ims.vo.LookupInstanceBean reasonformixingbaygender;
	private ims.vo.LookupInstanceBean reasonforadmissionoutofopeninghours;
	private String reasonforprivatebedallocationcomment;
	private String reasonformixingbaygendercomment;
	private String reasonforadmissionoohcomment;
	private String validationtype;
	private Boolean isprivatebedallocationvalidated;
	private Boolean ismixinggenderbayvalidated;
	private Boolean isgenderspecificbayvalidated;
	private Boolean isoohallocationvalidated;
}
