/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PendingElectiveAdmissionAdmitVoBean.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 PendingElectiveAdmissionAdmitVoBean extends ims.vo.ValueObjectBean
{
	public PendingElectiveAdmissionAdmitVoBean()
	{
	}
	public PendingElectiveAdmissionAdmitVoBean(ims.core.vo.PendingElectiveAdmissionAdmitVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventAdmitVoBean)vo.getPasEvent().getBean();
		this.allocatedward = vo.getAllocatedWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAllocatedWard().getBean();
		this.electiveadmissionstatus = vo.getElectiveAdmissionStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveAdmissionStatus().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.tcitype = vo.getTCIType() == null ? null : (ims.vo.LookupInstanceBean)vo.getTCIType().getBean();
		this.tcidate = vo.getTCIDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTCIDate().getBean();
		this.tcitime = vo.getTCITime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTCITime().getBean();
		this.ismaternity = vo.getIsMaternity();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.expectedstay = vo.getExpectedStay();
		this.admissionsource = vo.getAdmissionSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionSource().getBean();
		this.admissionmethod = vo.getAdmissionMethod() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionMethod().getBean();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean();
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PendingElectiveAdmissionAdmitVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventAdmitVoBean)vo.getPasEvent().getBean(map);
		this.allocatedward = vo.getAllocatedWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAllocatedWard().getBean(map);
		this.electiveadmissionstatus = vo.getElectiveAdmissionStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveAdmissionStatus().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.tcitype = vo.getTCIType() == null ? null : (ims.vo.LookupInstanceBean)vo.getTCIType().getBean();
		this.tcidate = vo.getTCIDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getTCIDate().getBean();
		this.tcitime = vo.getTCITime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTCITime().getBean();
		this.ismaternity = vo.getIsMaternity();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.expectedstay = vo.getExpectedStay();
		this.admissionsource = vo.getAdmissionSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionSource().getBean();
		this.admissionmethod = vo.getAdmissionMethod() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionMethod().getBean();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean(map);
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
	}

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

	public ims.core.vo.PendingElectiveAdmissionAdmitVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PendingElectiveAdmissionAdmitVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PendingElectiveAdmissionAdmitVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PendingElectiveAdmissionAdmitVo();
			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.PasEventAdmitVoBean getPasEvent()
	{
		return this.pasevent;
	}
	public void setPasEvent(ims.core.vo.beans.PasEventAdmitVoBean value)
	{
		this.pasevent = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getAllocatedWard()
	{
		return this.allocatedward;
	}
	public void setAllocatedWard(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.allocatedward = value;
	}
	public ims.vo.LookupInstanceBean getElectiveAdmissionStatus()
	{
		return this.electiveadmissionstatus;
	}
	public void setElectiveAdmissionStatus(ims.vo.LookupInstanceBean value)
	{
		this.electiveadmissionstatus = value;
	}
	public ims.vo.LookupInstanceBean getWardType()
	{
		return this.wardtype;
	}
	public void setWardType(ims.vo.LookupInstanceBean value)
	{
		this.wardtype = value;
	}
	public ims.vo.LookupInstanceBean getTCIType()
	{
		return this.tcitype;
	}
	public void setTCIType(ims.vo.LookupInstanceBean value)
	{
		this.tcitype = value;
	}
	public ims.framework.utils.beans.DateBean getTCIDate()
	{
		return this.tcidate;
	}
	public void setTCIDate(ims.framework.utils.beans.DateBean value)
	{
		this.tcidate = value;
	}
	public ims.framework.utils.beans.TimeBean getTCITime()
	{
		return this.tcitime;
	}
	public void setTCITime(ims.framework.utils.beans.TimeBean value)
	{
		this.tcitime = value;
	}
	public Boolean getIsMaternity()
	{
		return this.ismaternity;
	}
	public void setIsMaternity(Boolean value)
	{
		this.ismaternity = value;
	}
	public String getReasonForAdmission()
	{
		return this.reasonforadmission;
	}
	public void setReasonForAdmission(String value)
	{
		this.reasonforadmission = value;
	}
	public Integer getExpectedStay()
	{
		return this.expectedstay;
	}
	public void setExpectedStay(Integer value)
	{
		this.expectedstay = value;
	}
	public ims.vo.LookupInstanceBean getAdmissionSource()
	{
		return this.admissionsource;
	}
	public void setAdmissionSource(ims.vo.LookupInstanceBean value)
	{
		this.admissionsource = value;
	}
	public ims.vo.LookupInstanceBean getAdmissionMethod()
	{
		return this.admissionmethod;
	}
	public void setAdmissionMethod(ims.vo.LookupInstanceBean value)
	{
		this.admissionmethod = value;
	}
	public ims.core.vo.beans.MedicVoBean getReferringConsultant()
	{
		return this.referringconsultant;
	}
	public void setReferringConsultant(ims.core.vo.beans.MedicVoBean value)
	{
		this.referringconsultant = value;
	}
	public ims.vo.LookupInstanceBean getPatientStatus()
	{
		return this.patientstatus;
	}
	public void setPatientStatus(ims.vo.LookupInstanceBean value)
	{
		this.patientstatus = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PasEventAdmitVoBean pasevent;
	private ims.core.vo.beans.LocationLiteVoBean allocatedward;
	private ims.vo.LookupInstanceBean electiveadmissionstatus;
	private ims.vo.LookupInstanceBean wardtype;
	private ims.vo.LookupInstanceBean tcitype;
	private ims.framework.utils.beans.DateBean tcidate;
	private ims.framework.utils.beans.TimeBean tcitime;
	private Boolean ismaternity;
	private String reasonforadmission;
	private Integer expectedstay;
	private ims.vo.LookupInstanceBean admissionsource;
	private ims.vo.LookupInstanceBean admissionmethod;
	private ims.core.vo.beans.MedicVoBean referringconsultant;
	private ims.vo.LookupInstanceBean patientstatus;
}
