/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/InpatientEpisodeMaintenanceVoBean.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 InpatientEpisodeMaintenanceVoBean extends ims.vo.ValueObjectBean
{
	public InpatientEpisodeMaintenanceVoBean()
	{
	}
	public InpatientEpisodeMaintenanceVoBean(ims.core.vo.InpatientEpisodeMaintenanceVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.isonleave = vo.getIsOnLeave();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventVoBean)vo.getPasEvent().getBean();
		this.comments = vo.getComments();
		this.wardstays = vo.getWardStays() == null ? null : vo.getWardStays().getBeanCollection();
		this.admissiondatetime = vo.getAdmissionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAdmissionDateTime().getBean();
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.bedno = vo.getBedNo();
		this.admissiontype = vo.getAdmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionType().getBean();
		this.ismaternityinpatient = vo.getIsMaternityInpatient();
		this.ischaplainrequired = vo.getIsChaplainRequired();
		this.methodofadmission = vo.getMethodOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getMethodOfAdmission().getBean();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.sourceofadmission = vo.getSourceOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfAdmission().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.preadmitnumber = vo.getPreAdmitNumber();
		this.readmissiontype = vo.getReadmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReadmissionType().getBean();
		this.dischargereadydate = vo.getDischargeReadyDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeReadyDate().getBean();
		this.homeleaves = vo.getHomeLeaves() == null ? null : vo.getHomeLeaves().getBeanCollection();
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.extendeddetails = vo.getExtendedDetails() == null ? null : (ims.core.vo.beans.ExtendedAdmissionDetailVoBean)vo.getExtendedDetails().getBean();
		this.admissiondetails = vo.getAdmissionDetails() == null ? null : new ims.vo.RefVoBean(vo.getAdmissionDetails().getBoId(), vo.getAdmissionDetails().getBoVersion());
		this.bed = vo.getBed() == null ? null : (ims.core.vo.beans.BedSpaceStateLiteVoBean)vo.getBed().getBean();
		this.wardstatus = vo.getWardStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardStatus().getBean();
		this.transferreason = vo.getTransferReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTransferReason().getBean();
		this.transfercomment = vo.getTransferComment();
		this.admissiondetailupdates = vo.getAdmissionDetailUpdates() == null ? null : (ims.core.vo.beans.AdmissionDetailForADTUpdateAdmissionVoBean)vo.getAdmissionDetailUpdates().getBean();
		this.consultantstays = vo.getConsultantStays() == null ? null : vo.getConsultantStays().getBeanCollection();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean();
		this.referringhcpref = vo.getReferringHcpRef() == null ? null : new ims.vo.RefVoBean(vo.getReferringHcpRef().getBoId(), vo.getReferringHcpRef().getBoVersion());
		this.consultanthcpref = vo.getConsultantHcpRef() == null ? null : new ims.vo.RefVoBean(vo.getConsultantHcpRef().getBoId(), vo.getConsultantHcpRef().getBoVersion());
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean();
		this.sourceofemergencyreferral = vo.getSourceOfEmergencyReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfEmergencyReferral().getBean();
		this.admissionward = vo.getAdmissionWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAdmissionWard().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.InpatientEpisodeMaintenanceVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.isonleave = vo.getIsOnLeave();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventVoBean)vo.getPasEvent().getBean(map);
		this.comments = vo.getComments();
		this.wardstays = vo.getWardStays() == null ? null : vo.getWardStays().getBeanCollection();
		this.admissiondatetime = vo.getAdmissionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAdmissionDateTime().getBean();
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.bedno = vo.getBedNo();
		this.admissiontype = vo.getAdmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdmissionType().getBean();
		this.ismaternityinpatient = vo.getIsMaternityInpatient();
		this.ischaplainrequired = vo.getIsChaplainRequired();
		this.methodofadmission = vo.getMethodOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getMethodOfAdmission().getBean();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.sourceofadmission = vo.getSourceOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfAdmission().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.preadmitnumber = vo.getPreAdmitNumber();
		this.readmissiontype = vo.getReadmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReadmissionType().getBean();
		this.dischargereadydate = vo.getDischargeReadyDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeReadyDate().getBean();
		this.homeleaves = vo.getHomeLeaves() == null ? null : vo.getHomeLeaves().getBeanCollection();
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.extendeddetails = vo.getExtendedDetails() == null ? null : (ims.core.vo.beans.ExtendedAdmissionDetailVoBean)vo.getExtendedDetails().getBean(map);
		this.admissiondetails = vo.getAdmissionDetails() == null ? null : new ims.vo.RefVoBean(vo.getAdmissionDetails().getBoId(), vo.getAdmissionDetails().getBoVersion());
		this.bed = vo.getBed() == null ? null : (ims.core.vo.beans.BedSpaceStateLiteVoBean)vo.getBed().getBean(map);
		this.wardstatus = vo.getWardStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardStatus().getBean();
		this.transferreason = vo.getTransferReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getTransferReason().getBean();
		this.transfercomment = vo.getTransferComment();
		this.admissiondetailupdates = vo.getAdmissionDetailUpdates() == null ? null : (ims.core.vo.beans.AdmissionDetailForADTUpdateAdmissionVoBean)vo.getAdmissionDetailUpdates().getBean(map);
		this.consultantstays = vo.getConsultantStays() == null ? null : vo.getConsultantStays().getBeanCollection();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean(map);
		this.referringhcpref = vo.getReferringHcpRef() == null ? null : new ims.vo.RefVoBean(vo.getReferringHcpRef().getBoId(), vo.getReferringHcpRef().getBoVersion());
		this.consultanthcpref = vo.getConsultantHcpRef() == null ? null : new ims.vo.RefVoBean(vo.getConsultantHcpRef().getBoId(), vo.getConsultantHcpRef().getBoVersion());
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean(map);
		this.sourceofemergencyreferral = vo.getSourceOfEmergencyReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfEmergencyReferral().getBean();
		this.admissionward = vo.getAdmissionWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAdmissionWard().getBean(map);
	}

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

	public ims.core.vo.InpatientEpisodeMaintenanceVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.InpatientEpisodeMaintenanceVo vo = null;
		if(map != null)
			vo = (ims.core.vo.InpatientEpisodeMaintenanceVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.InpatientEpisodeMaintenanceVo();
			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 Boolean getIsOnLeave()
	{
		return this.isonleave;
	}
	public void setIsOnLeave(Boolean value)
	{
		this.isonleave = value;
	}
	public ims.core.vo.beans.PasEventVoBean getPasEvent()
	{
		return this.pasevent;
	}
	public void setPasEvent(ims.core.vo.beans.PasEventVoBean value)
	{
		this.pasevent = value;
	}
	public String getComments()
	{
		return this.comments;
	}
	public void setComments(String value)
	{
		this.comments = value;
	}
	public ims.core.vo.beans.WardStayVoBean[] getWardStays()
	{
		return this.wardstays;
	}
	public void setWardStays(ims.core.vo.beans.WardStayVoBean[] value)
	{
		this.wardstays = value;
	}
	public ims.framework.utils.beans.DateTimeBean getAdmissionDateTime()
	{
		return this.admissiondatetime;
	}
	public void setAdmissionDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.admissiondatetime = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEstDischargeDate()
	{
		return this.estdischargedate;
	}
	public void setEstDischargeDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.estdischargedate = value;
	}
	public String getBedNo()
	{
		return this.bedno;
	}
	public void setBedNo(String value)
	{
		this.bedno = value;
	}
	public ims.vo.LookupInstanceBean getAdmissionType()
	{
		return this.admissiontype;
	}
	public void setAdmissionType(ims.vo.LookupInstanceBean value)
	{
		this.admissiontype = value;
	}
	public Boolean getIsMaternityInpatient()
	{
		return this.ismaternityinpatient;
	}
	public void setIsMaternityInpatient(Boolean value)
	{
		this.ismaternityinpatient = value;
	}
	public Boolean getIsChaplainRequired()
	{
		return this.ischaplainrequired;
	}
	public void setIsChaplainRequired(Boolean value)
	{
		this.ischaplainrequired = value;
	}
	public ims.vo.LookupInstanceBean getMethodOfAdmission()
	{
		return this.methodofadmission;
	}
	public void setMethodOfAdmission(ims.vo.LookupInstanceBean value)
	{
		this.methodofadmission = value;
	}
	public String getReasonForAdmission()
	{
		return this.reasonforadmission;
	}
	public void setReasonForAdmission(String value)
	{
		this.reasonforadmission = value;
	}
	public ims.vo.LookupInstanceBean getSourceOfAdmission()
	{
		return this.sourceofadmission;
	}
	public void setSourceOfAdmission(ims.vo.LookupInstanceBean value)
	{
		this.sourceofadmission = value;
	}
	public ims.vo.LookupInstanceBean getWardType()
	{
		return this.wardtype;
	}
	public void setWardType(ims.vo.LookupInstanceBean value)
	{
		this.wardtype = value;
	}
	public String getPreAdmitNumber()
	{
		return this.preadmitnumber;
	}
	public void setPreAdmitNumber(String value)
	{
		this.preadmitnumber = value;
	}
	public ims.vo.LookupInstanceBean getReadmissionType()
	{
		return this.readmissiontype;
	}
	public void setReadmissionType(ims.vo.LookupInstanceBean value)
	{
		this.readmissiontype = value;
	}
	public ims.framework.utils.beans.DateBean getDischargeReadyDate()
	{
		return this.dischargereadydate;
	}
	public void setDischargeReadyDate(ims.framework.utils.beans.DateBean value)
	{
		this.dischargereadydate = value;
	}
	public ims.core.vo.beans.HomeLeaveVoBean[] getHomeLeaves()
	{
		return this.homeleaves;
	}
	public void setHomeLeaves(ims.core.vo.beans.HomeLeaveVoBean[] value)
	{
		this.homeleaves = value;
	}
	public ims.vo.LookupInstanceBean getPatientStatus()
	{
		return this.patientstatus;
	}
	public void setPatientStatus(ims.vo.LookupInstanceBean value)
	{
		this.patientstatus = value;
	}
	public ims.core.vo.beans.ExtendedAdmissionDetailVoBean getExtendedDetails()
	{
		return this.extendeddetails;
	}
	public void setExtendedDetails(ims.core.vo.beans.ExtendedAdmissionDetailVoBean value)
	{
		this.extendeddetails = value;
	}
	public ims.vo.RefVoBean getAdmissionDetails()
	{
		return this.admissiondetails;
	}
	public void setAdmissionDetails(ims.vo.RefVoBean value)
	{
		this.admissiondetails = value;
	}
	public ims.core.vo.beans.BedSpaceStateLiteVoBean getBed()
	{
		return this.bed;
	}
	public void setBed(ims.core.vo.beans.BedSpaceStateLiteVoBean value)
	{
		this.bed = value;
	}
	public ims.vo.LookupInstanceBean getWardStatus()
	{
		return this.wardstatus;
	}
	public void setWardStatus(ims.vo.LookupInstanceBean value)
	{
		this.wardstatus = 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;
	}
	public ims.core.vo.beans.AdmissionDetailForADTUpdateAdmissionVoBean getAdmissionDetailUpdates()
	{
		return this.admissiondetailupdates;
	}
	public void setAdmissionDetailUpdates(ims.core.vo.beans.AdmissionDetailForADTUpdateAdmissionVoBean value)
	{
		this.admissiondetailupdates = value;
	}
	public ims.core.vo.beans.ConsultantStayVoBean[] getConsultantStays()
	{
		return this.consultantstays;
	}
	public void setConsultantStays(ims.core.vo.beans.ConsultantStayVoBean[] value)
	{
		this.consultantstays = 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.RefVoBean getReferringHcpRef()
	{
		return this.referringhcpref;
	}
	public void setReferringHcpRef(ims.vo.RefVoBean value)
	{
		this.referringhcpref = value;
	}
	public ims.vo.RefVoBean getConsultantHcpRef()
	{
		return this.consultanthcpref;
	}
	public void setConsultantHcpRef(ims.vo.RefVoBean value)
	{
		this.consultanthcpref = 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 getSourceOfEmergencyReferral()
	{
		return this.sourceofemergencyreferral;
	}
	public void setSourceOfEmergencyReferral(ims.vo.LookupInstanceBean value)
	{
		this.sourceofemergencyreferral = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getAdmissionWard()
	{
		return this.admissionward;
	}
	public void setAdmissionWard(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.admissionward = value;
	}

	private Integer id;
	private int version;
	private Boolean isonleave;
	private ims.core.vo.beans.PasEventVoBean pasevent;
	private String comments;
	private ims.core.vo.beans.WardStayVoBean[] wardstays;
	private ims.framework.utils.beans.DateTimeBean admissiondatetime;
	private ims.framework.utils.beans.DateTimeBean estdischargedate;
	private String bedno;
	private ims.vo.LookupInstanceBean admissiontype;
	private Boolean ismaternityinpatient;
	private Boolean ischaplainrequired;
	private ims.vo.LookupInstanceBean methodofadmission;
	private String reasonforadmission;
	private ims.vo.LookupInstanceBean sourceofadmission;
	private ims.vo.LookupInstanceBean wardtype;
	private String preadmitnumber;
	private ims.vo.LookupInstanceBean readmissiontype;
	private ims.framework.utils.beans.DateBean dischargereadydate;
	private ims.core.vo.beans.HomeLeaveVoBean[] homeleaves;
	private ims.vo.LookupInstanceBean patientstatus;
	private ims.core.vo.beans.ExtendedAdmissionDetailVoBean extendeddetails;
	private ims.vo.RefVoBean admissiondetails;
	private ims.core.vo.beans.BedSpaceStateLiteVoBean bed;
	private ims.vo.LookupInstanceBean wardstatus;
	private ims.vo.LookupInstanceBean transferreason;
	private String transfercomment;
	private ims.core.vo.beans.AdmissionDetailForADTUpdateAdmissionVoBean admissiondetailupdates;
	private ims.core.vo.beans.ConsultantStayVoBean[] consultantstays;
	private ims.core.vo.beans.MedicVoBean referringconsultant;
	private ims.vo.RefVoBean referringhcpref;
	private ims.vo.RefVoBean consultanthcpref;
	private ims.core.vo.beans.ServiceLiteVoBean service;
	private ims.vo.LookupInstanceBean sourceofemergencyreferral;
	private ims.core.vo.beans.LocationLiteVoBean admissionward;
}
