/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/PatientElectiveListBedAdmissionVoBean.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.RefMan.vo.beans;

public class PatientElectiveListBedAdmissionVoBean extends ims.vo.ValueObjectBean
{
	public PatientElectiveListBedAdmissionVoBean()
	{
	}
	public PatientElectiveListBedAdmissionVoBean(ims.RefMan.vo.PatientElectiveListBedAdmissionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.electivelist = vo.getElectiveList() == null ? null : (ims.RefMan.vo.beans.ElectiveListConfigurationLiteVoBean)vo.getElectiveList().getBean();
		this.bed = vo.getBed();
		this.anticipatedstay = vo.getAnticipatedStay();
		this.tcidetails = vo.getTCIDetails() == null ? null : (ims.ccosched.vo.beans.TCIForPatientElectiveListBedInfoDetailsVoBean)vo.getTCIDetails().getBean();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientLite_IdentifiersVoBean)vo.getPatient().getBean();
		this.electiveliststatus = vo.getElectiveListStatus() == null ? null : (ims.RefMan.vo.beans.ElectiveListStatusVoBean)vo.getElectiveListStatus().getBean();
		if(vo.getElectiveListStatusHistory() != null)
		{
			this.electiveliststatushistory = new ims.vo.RefVoBean[vo.getElectiveListStatusHistory().size()];
			for(int electiveliststatushistory_i = 0; electiveliststatushistory_i < vo.getElectiveListStatusHistory().size(); electiveliststatushistory_i++)
			{
				this.electiveliststatushistory[electiveliststatushistory_i] = new ims.vo.RefVoBean(vo.getElectiveListStatusHistory().get(electiveliststatushistory_i).getBoId(),vo.getElectiveListStatusHistory().get(electiveliststatushistory_i).getBoVersion());
			}
		}
		this.electivelistreason = vo.getElectiveListReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveListReason().getBean();
		this.referral = vo.getReferral() == null ? null : (ims.RefMan.vo.beans.CATSReferralWithContextPasVoBean)vo.getReferral().getBean();
		this.erod = vo.getEROD() == null ? null : (ims.RefMan.vo.beans.ReferralErodForCancellationVoBean)vo.getEROD().getBean();
		if(vo.getERODHistory() != null)
		{
			this.erodhistory = new ims.vo.RefVoBean[vo.getERODHistory().size()];
			for(int erodhistory_i = 0; erodhistory_i < vo.getERODHistory().size(); erodhistory_i++)
			{
				this.erodhistory[erodhistory_i] = new ims.vo.RefVoBean(vo.getERODHistory().get(erodhistory_i).getBoId(),vo.getERODHistory().get(erodhistory_i).getBoVersion());
			}
		}
		this.pathwayclock = vo.getPathwayClock() == null ? null : (ims.pathways.vo.beans.PathwayClockVoBean)vo.getPathwayClock().getBean();
		this.dateonlist = vo.getDateOnList() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOnList().getBean();
		this.primaryprocedure = vo.getPrimaryProcedure() == null ? null : (ims.core.vo.beans.ProcedureLiteVoBean)vo.getPrimaryProcedure().getBean();
		if(vo.getAdmissions() != null)
		{
			this.admissions = new ims.vo.RefVoBean[vo.getAdmissions().size()];
			for(int admissions_i = 0; admissions_i < vo.getAdmissions().size(); admissions_i++)
			{
				this.admissions[admissions_i] = new ims.vo.RefVoBean(vo.getAdmissions().get(admissions_i).getBoId(),vo.getAdmissions().get(admissions_i).getBoVersion());
			}
		}
		this.electiveadmissiontype = vo.getElectiveAdmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveAdmissionType().getBean();
		this.was28dayruleapplied = vo.getWas28DayRuleApplied();
		this.subjectto28dayrule = vo.getSubjectTo28DayRule();
		this.rule28daystatus = vo.getRule28DayStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getRule28DayStatus().getBean();
		this.rule28dayperiodstart = vo.getRule28DayPeriodStart() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRule28DayPeriodStart().getBean();
		this.patientcategory = vo.getPatientCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientCategory().getBean();
		this.responsiblehcp = vo.getResponsibleHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResponsibleHCP().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.PatientElectiveListBedAdmissionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.electivelist = vo.getElectiveList() == null ? null : (ims.RefMan.vo.beans.ElectiveListConfigurationLiteVoBean)vo.getElectiveList().getBean(map);
		this.bed = vo.getBed();
		this.anticipatedstay = vo.getAnticipatedStay();
		this.tcidetails = vo.getTCIDetails() == null ? null : (ims.ccosched.vo.beans.TCIForPatientElectiveListBedInfoDetailsVoBean)vo.getTCIDetails().getBean(map);
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientLite_IdentifiersVoBean)vo.getPatient().getBean(map);
		this.electiveliststatus = vo.getElectiveListStatus() == null ? null : (ims.RefMan.vo.beans.ElectiveListStatusVoBean)vo.getElectiveListStatus().getBean(map);
		if(vo.getElectiveListStatusHistory() != null)
		{
			this.electiveliststatushistory = new ims.vo.RefVoBean[vo.getElectiveListStatusHistory().size()];
			for(int electiveliststatushistory_i = 0; electiveliststatushistory_i < vo.getElectiveListStatusHistory().size(); electiveliststatushistory_i++)
			{
				this.electiveliststatushistory[electiveliststatushistory_i] = new ims.vo.RefVoBean(vo.getElectiveListStatusHistory().get(electiveliststatushistory_i).getBoId(),vo.getElectiveListStatusHistory().get(electiveliststatushistory_i).getBoVersion());
			}
		}
		this.electivelistreason = vo.getElectiveListReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveListReason().getBean();
		this.referral = vo.getReferral() == null ? null : (ims.RefMan.vo.beans.CATSReferralWithContextPasVoBean)vo.getReferral().getBean(map);
		this.erod = vo.getEROD() == null ? null : (ims.RefMan.vo.beans.ReferralErodForCancellationVoBean)vo.getEROD().getBean(map);
		if(vo.getERODHistory() != null)
		{
			this.erodhistory = new ims.vo.RefVoBean[vo.getERODHistory().size()];
			for(int erodhistory_i = 0; erodhistory_i < vo.getERODHistory().size(); erodhistory_i++)
			{
				this.erodhistory[erodhistory_i] = new ims.vo.RefVoBean(vo.getERODHistory().get(erodhistory_i).getBoId(),vo.getERODHistory().get(erodhistory_i).getBoVersion());
			}
		}
		this.pathwayclock = vo.getPathwayClock() == null ? null : (ims.pathways.vo.beans.PathwayClockVoBean)vo.getPathwayClock().getBean(map);
		this.dateonlist = vo.getDateOnList() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOnList().getBean();
		this.primaryprocedure = vo.getPrimaryProcedure() == null ? null : (ims.core.vo.beans.ProcedureLiteVoBean)vo.getPrimaryProcedure().getBean(map);
		if(vo.getAdmissions() != null)
		{
			this.admissions = new ims.vo.RefVoBean[vo.getAdmissions().size()];
			for(int admissions_i = 0; admissions_i < vo.getAdmissions().size(); admissions_i++)
			{
				this.admissions[admissions_i] = new ims.vo.RefVoBean(vo.getAdmissions().get(admissions_i).getBoId(),vo.getAdmissions().get(admissions_i).getBoVersion());
			}
		}
		this.electiveadmissiontype = vo.getElectiveAdmissionType() == null ? null : (ims.vo.LookupInstanceBean)vo.getElectiveAdmissionType().getBean();
		this.was28dayruleapplied = vo.getWas28DayRuleApplied();
		this.subjectto28dayrule = vo.getSubjectTo28DayRule();
		this.rule28daystatus = vo.getRule28DayStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getRule28DayStatus().getBean();
		this.rule28dayperiodstart = vo.getRule28DayPeriodStart() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRule28DayPeriodStart().getBean();
		this.patientcategory = vo.getPatientCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientCategory().getBean();
		this.responsiblehcp = vo.getResponsibleHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResponsibleHCP().getBean(map);
	}

	public ims.RefMan.vo.PatientElectiveListBedAdmissionVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.RefMan.vo.PatientElectiveListBedAdmissionVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.PatientElectiveListBedAdmissionVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.PatientElectiveListBedAdmissionVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.PatientElectiveListBedAdmissionVo();
			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.RefMan.vo.beans.ElectiveListConfigurationLiteVoBean getElectiveList()
	{
		return this.electivelist;
	}
	public void setElectiveList(ims.RefMan.vo.beans.ElectiveListConfigurationLiteVoBean value)
	{
		this.electivelist = value;
	}
	public String getBed()
	{
		return this.bed;
	}
	public void setBed(String value)
	{
		this.bed = value;
	}
	public Integer getAnticipatedStay()
	{
		return this.anticipatedstay;
	}
	public void setAnticipatedStay(Integer value)
	{
		this.anticipatedstay = value;
	}
	public ims.ccosched.vo.beans.TCIForPatientElectiveListBedInfoDetailsVoBean getTCIDetails()
	{
		return this.tcidetails;
	}
	public void setTCIDetails(ims.ccosched.vo.beans.TCIForPatientElectiveListBedInfoDetailsVoBean value)
	{
		this.tcidetails = value;
	}
	public ims.core.vo.beans.PatientLite_IdentifiersVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientLite_IdentifiersVoBean value)
	{
		this.patient = value;
	}
	public ims.RefMan.vo.beans.ElectiveListStatusVoBean getElectiveListStatus()
	{
		return this.electiveliststatus;
	}
	public void setElectiveListStatus(ims.RefMan.vo.beans.ElectiveListStatusVoBean value)
	{
		this.electiveliststatus = value;
	}
	public ims.vo.RefVoBean[] getElectiveListStatusHistory()
	{
		return this.electiveliststatushistory;
	}
	public void setElectiveListStatusHistory(ims.vo.RefVoBean[] value)
	{
		this.electiveliststatushistory = value;
	}
	public ims.vo.LookupInstanceBean getElectiveListReason()
	{
		return this.electivelistreason;
	}
	public void setElectiveListReason(ims.vo.LookupInstanceBean value)
	{
		this.electivelistreason = value;
	}
	public ims.RefMan.vo.beans.CATSReferralWithContextPasVoBean getReferral()
	{
		return this.referral;
	}
	public void setReferral(ims.RefMan.vo.beans.CATSReferralWithContextPasVoBean value)
	{
		this.referral = value;
	}
	public ims.RefMan.vo.beans.ReferralErodForCancellationVoBean getEROD()
	{
		return this.erod;
	}
	public void setEROD(ims.RefMan.vo.beans.ReferralErodForCancellationVoBean value)
	{
		this.erod = value;
	}
	public ims.vo.RefVoBean[] getERODHistory()
	{
		return this.erodhistory;
	}
	public void setERODHistory(ims.vo.RefVoBean[] value)
	{
		this.erodhistory = value;
	}
	public ims.pathways.vo.beans.PathwayClockVoBean getPathwayClock()
	{
		return this.pathwayclock;
	}
	public void setPathwayClock(ims.pathways.vo.beans.PathwayClockVoBean value)
	{
		this.pathwayclock = value;
	}
	public ims.framework.utils.beans.DateBean getDateOnList()
	{
		return this.dateonlist;
	}
	public void setDateOnList(ims.framework.utils.beans.DateBean value)
	{
		this.dateonlist = value;
	}
	public ims.core.vo.beans.ProcedureLiteVoBean getPrimaryProcedure()
	{
		return this.primaryprocedure;
	}
	public void setPrimaryProcedure(ims.core.vo.beans.ProcedureLiteVoBean value)
	{
		this.primaryprocedure = value;
	}
	public ims.vo.RefVoBean[] getAdmissions()
	{
		return this.admissions;
	}
	public void setAdmissions(ims.vo.RefVoBean[] value)
	{
		this.admissions = value;
	}
	public ims.vo.LookupInstanceBean getElectiveAdmissionType()
	{
		return this.electiveadmissiontype;
	}
	public void setElectiveAdmissionType(ims.vo.LookupInstanceBean value)
	{
		this.electiveadmissiontype = value;
	}
	public Boolean getWas28DayRuleApplied()
	{
		return this.was28dayruleapplied;
	}
	public void setWas28DayRuleApplied(Boolean value)
	{
		this.was28dayruleapplied = value;
	}
	public Boolean getSubjectTo28DayRule()
	{
		return this.subjectto28dayrule;
	}
	public void setSubjectTo28DayRule(Boolean value)
	{
		this.subjectto28dayrule = value;
	}
	public ims.vo.LookupInstanceBean getRule28DayStatus()
	{
		return this.rule28daystatus;
	}
	public void setRule28DayStatus(ims.vo.LookupInstanceBean value)
	{
		this.rule28daystatus = value;
	}
	public ims.framework.utils.beans.DateBean getRule28DayPeriodStart()
	{
		return this.rule28dayperiodstart;
	}
	public void setRule28DayPeriodStart(ims.framework.utils.beans.DateBean value)
	{
		this.rule28dayperiodstart = value;
	}
	public ims.vo.LookupInstanceBean getPatientCategory()
	{
		return this.patientcategory;
	}
	public void setPatientCategory(ims.vo.LookupInstanceBean value)
	{
		this.patientcategory = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getResponsibleHCP()
	{
		return this.responsiblehcp;
	}
	public void setResponsibleHCP(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.responsiblehcp = value;
	}

	private Integer id;
	private int version;
	private ims.RefMan.vo.beans.ElectiveListConfigurationLiteVoBean electivelist;
	private String bed;
	private Integer anticipatedstay;
	private ims.ccosched.vo.beans.TCIForPatientElectiveListBedInfoDetailsVoBean tcidetails;
	private ims.core.vo.beans.PatientLite_IdentifiersVoBean patient;
	private ims.RefMan.vo.beans.ElectiveListStatusVoBean electiveliststatus;
	private ims.vo.RefVoBean[] electiveliststatushistory;
	private ims.vo.LookupInstanceBean electivelistreason;
	private ims.RefMan.vo.beans.CATSReferralWithContextPasVoBean referral;
	private ims.RefMan.vo.beans.ReferralErodForCancellationVoBean erod;
	private ims.vo.RefVoBean[] erodhistory;
	private ims.pathways.vo.beans.PathwayClockVoBean pathwayclock;
	private ims.framework.utils.beans.DateBean dateonlist;
	private ims.core.vo.beans.ProcedureLiteVoBean primaryprocedure;
	private ims.vo.RefVoBean[] admissions;
	private ims.vo.LookupInstanceBean electiveadmissiontype;
	private Boolean was28dayruleapplied;
	private Boolean subjectto28dayrule;
	private ims.vo.LookupInstanceBean rule28daystatus;
	private ims.framework.utils.beans.DateBean rule28dayperiodstart;
	private ims.vo.LookupInstanceBean patientcategory;
	private ims.core.vo.beans.HcpLiteVoBean responsiblehcp;
}
