/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/ReferralAppointmentDetailsVoBean.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 ReferralAppointmentDetailsVoBean extends ims.vo.ValueObjectBean
{
	public ReferralAppointmentDetailsVoBean()
	{
	}
	public ReferralAppointmentDetailsVoBean(ims.RefMan.vo.ReferralAppointmentDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.referraldetails = vo.getReferralDetails() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsLiteWithGPVoBean)vo.getReferralDetails().getBean();
		this.investigationorders = vo.getInvestigationOrders() == null ? null : vo.getInvestigationOrders().getBeanCollection();
		this.appointments = vo.getAppointments() == null ? null : vo.getAppointments().getBeanCollection();
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.RefMan.vo.beans.CatsReferralStatusVoBean)vo.getCurrentStatus().getBean();
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.orderinvappts = vo.getOrderInvAppts() == null ? null : vo.getOrderInvAppts().getBeanCollection();
		this.icabreferral = vo.getICABReferral() == null ? null : (ims.admin.vo.beans.ICABReferralListVoBean)vo.getICABReferral().getBean();
		this.outpatienterod = vo.getOutpatientEROD() == null ? null : vo.getOutpatientEROD().getBeanCollection();
		this.electiveerod = vo.getElectiveEROD() == null ? null : vo.getElectiveEROD().getBeanCollection();
		this.currentrttstatus = vo.getCurrentRTTStatus() == null ? null : (ims.pathways.vo.beans.PathwayRTTCurrentStatusVoBean)vo.getCurrentRTTStatus().getBean();
		this.rttclockimpact = vo.getRTTClockImpact();
		this.pathwayid = vo.getPathwayID();
		this.urgency = vo.getUrgency() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgency().getBean();
		this.current31targetdate = vo.getCurrent31TargetDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCurrent31TargetDate().getBean();
		this.current62targetdate = vo.getCurrent62TargetDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCurrent62TargetDate().getBean();
		this.consultationactivityrequired = vo.getConsultationActivityRequired();
		this.endxdaykpi = vo.getEndXdayKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndXdayKPI().getBean();
		this.contract = vo.getContract() == null ? null : new ims.vo.RefVoBean(vo.getContract().getBoId(), vo.getContract().getBoVersion());
		this.isemergencyreferral = vo.getIsEmergencyReferral();
		this.triageoutcome = vo.getTriageOutcome() == null ? null : (ims.RefMan.vo.beans.TriageOutcomeLiteVoBean)vo.getTriageOutcome().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.ReferralAppointmentDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.referraldetails = vo.getReferralDetails() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsLiteWithGPVoBean)vo.getReferralDetails().getBean(map);
		this.investigationorders = vo.getInvestigationOrders() == null ? null : vo.getInvestigationOrders().getBeanCollection();
		this.appointments = vo.getAppointments() == null ? null : vo.getAppointments().getBeanCollection();
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.RefMan.vo.beans.CatsReferralStatusVoBean)vo.getCurrentStatus().getBean(map);
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.orderinvappts = vo.getOrderInvAppts() == null ? null : vo.getOrderInvAppts().getBeanCollection();
		this.icabreferral = vo.getICABReferral() == null ? null : (ims.admin.vo.beans.ICABReferralListVoBean)vo.getICABReferral().getBean(map);
		this.outpatienterod = vo.getOutpatientEROD() == null ? null : vo.getOutpatientEROD().getBeanCollection();
		this.electiveerod = vo.getElectiveEROD() == null ? null : vo.getElectiveEROD().getBeanCollection();
		this.currentrttstatus = vo.getCurrentRTTStatus() == null ? null : (ims.pathways.vo.beans.PathwayRTTCurrentStatusVoBean)vo.getCurrentRTTStatus().getBean(map);
		this.rttclockimpact = vo.getRTTClockImpact();
		this.pathwayid = vo.getPathwayID();
		this.urgency = vo.getUrgency() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgency().getBean();
		this.current31targetdate = vo.getCurrent31TargetDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCurrent31TargetDate().getBean();
		this.current62targetdate = vo.getCurrent62TargetDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCurrent62TargetDate().getBean();
		this.consultationactivityrequired = vo.getConsultationActivityRequired();
		this.endxdaykpi = vo.getEndXdayKPI() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndXdayKPI().getBean();
		this.contract = vo.getContract() == null ? null : new ims.vo.RefVoBean(vo.getContract().getBoId(), vo.getContract().getBoVersion());
		this.isemergencyreferral = vo.getIsEmergencyReferral();
		this.triageoutcome = vo.getTriageOutcome() == null ? null : (ims.RefMan.vo.beans.TriageOutcomeLiteVoBean)vo.getTriageOutcome().getBean(map);
	}

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

	public ims.RefMan.vo.ReferralAppointmentDetailsVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.ReferralAppointmentDetailsVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.ReferralAppointmentDetailsVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.ReferralAppointmentDetailsVo();
			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.ReferralLetterDetailsLiteWithGPVoBean getReferralDetails()
	{
		return this.referraldetails;
	}
	public void setReferralDetails(ims.RefMan.vo.beans.ReferralLetterDetailsLiteWithGPVoBean value)
	{
		this.referraldetails = value;
	}
	public ims.ocrr.vo.beans.ReferralAppointmentDetailsOcsOrderVoBean[] getInvestigationOrders()
	{
		return this.investigationorders;
	}
	public void setInvestigationOrders(ims.ocrr.vo.beans.ReferralAppointmentDetailsOcsOrderVoBean[] value)
	{
		this.investigationorders = value;
	}
	public ims.scheduling.vo.beans.ReferralAppointmentDetailsBookingAppointmentVoBean[] getAppointments()
	{
		return this.appointments;
	}
	public void setAppointments(ims.scheduling.vo.beans.ReferralAppointmentDetailsBookingAppointmentVoBean[] value)
	{
		this.appointments = value;
	}
	public ims.RefMan.vo.beans.CatsReferralStatusVoBean getCurrentStatus()
	{
		return this.currentstatus;
	}
	public void setCurrentStatus(ims.RefMan.vo.beans.CatsReferralStatusVoBean value)
	{
		this.currentstatus = value;
	}
	public ims.RefMan.vo.beans.CatsReferralStatusVoBean[] getStatusHistory()
	{
		return this.statushistory;
	}
	public void setStatusHistory(ims.RefMan.vo.beans.CatsReferralStatusVoBean[] value)
	{
		this.statushistory = value;
	}
	public ims.RefMan.vo.beans.OrderInvApptListVoBean[] getOrderInvAppts()
	{
		return this.orderinvappts;
	}
	public void setOrderInvAppts(ims.RefMan.vo.beans.OrderInvApptListVoBean[] value)
	{
		this.orderinvappts = value;
	}
	public ims.admin.vo.beans.ICABReferralListVoBean getICABReferral()
	{
		return this.icabreferral;
	}
	public void setICABReferral(ims.admin.vo.beans.ICABReferralListVoBean value)
	{
		this.icabreferral = value;
	}
	public ims.RefMan.vo.beans.ReferralERODVoBean[] getOutpatientEROD()
	{
		return this.outpatienterod;
	}
	public void setOutpatientEROD(ims.RefMan.vo.beans.ReferralERODVoBean[] value)
	{
		this.outpatienterod = value;
	}
	public ims.RefMan.vo.beans.ReferralERODVoBean[] getElectiveEROD()
	{
		return this.electiveerod;
	}
	public void setElectiveEROD(ims.RefMan.vo.beans.ReferralERODVoBean[] value)
	{
		this.electiveerod = value;
	}
	public ims.pathways.vo.beans.PathwayRTTCurrentStatusVoBean getCurrentRTTStatus()
	{
		return this.currentrttstatus;
	}
	public void setCurrentRTTStatus(ims.pathways.vo.beans.PathwayRTTCurrentStatusVoBean value)
	{
		this.currentrttstatus = value;
	}
	public Boolean getRTTClockImpact()
	{
		return this.rttclockimpact;
	}
	public void setRTTClockImpact(Boolean value)
	{
		this.rttclockimpact = value;
	}
	public String getPathwayID()
	{
		return this.pathwayid;
	}
	public void setPathwayID(String value)
	{
		this.pathwayid = value;
	}
	public ims.vo.LookupInstanceBean getUrgency()
	{
		return this.urgency;
	}
	public void setUrgency(ims.vo.LookupInstanceBean value)
	{
		this.urgency = value;
	}
	public ims.framework.utils.beans.DateBean getCurrent31TargetDate()
	{
		return this.current31targetdate;
	}
	public void setCurrent31TargetDate(ims.framework.utils.beans.DateBean value)
	{
		this.current31targetdate = value;
	}
	public ims.framework.utils.beans.DateBean getCurrent62TargetDate()
	{
		return this.current62targetdate;
	}
	public void setCurrent62TargetDate(ims.framework.utils.beans.DateBean value)
	{
		this.current62targetdate = value;
	}
	public Boolean getConsultationActivityRequired()
	{
		return this.consultationactivityrequired;
	}
	public void setConsultationActivityRequired(Boolean value)
	{
		this.consultationactivityrequired = value;
	}
	public ims.framework.utils.beans.DateBean getEndXdayKPI()
	{
		return this.endxdaykpi;
	}
	public void setEndXdayKPI(ims.framework.utils.beans.DateBean value)
	{
		this.endxdaykpi = value;
	}
	public ims.vo.RefVoBean getContract()
	{
		return this.contract;
	}
	public void setContract(ims.vo.RefVoBean value)
	{
		this.contract = value;
	}
	public Boolean getIsEmergencyReferral()
	{
		return this.isemergencyreferral;
	}
	public void setIsEmergencyReferral(Boolean value)
	{
		this.isemergencyreferral = value;
	}
	public ims.RefMan.vo.beans.TriageOutcomeLiteVoBean getTriageOutcome()
	{
		return this.triageoutcome;
	}
	public void setTriageOutcome(ims.RefMan.vo.beans.TriageOutcomeLiteVoBean value)
	{
		this.triageoutcome = value;
	}

	private Integer id;
	private int version;
	private ims.RefMan.vo.beans.ReferralLetterDetailsLiteWithGPVoBean referraldetails;
	private ims.ocrr.vo.beans.ReferralAppointmentDetailsOcsOrderVoBean[] investigationorders;
	private ims.scheduling.vo.beans.ReferralAppointmentDetailsBookingAppointmentVoBean[] appointments;
	private ims.RefMan.vo.beans.CatsReferralStatusVoBean currentstatus;
	private ims.RefMan.vo.beans.CatsReferralStatusVoBean[] statushistory;
	private ims.RefMan.vo.beans.OrderInvApptListVoBean[] orderinvappts;
	private ims.admin.vo.beans.ICABReferralListVoBean icabreferral;
	private ims.RefMan.vo.beans.ReferralERODVoBean[] outpatienterod;
	private ims.RefMan.vo.beans.ReferralERODVoBean[] electiveerod;
	private ims.pathways.vo.beans.PathwayRTTCurrentStatusVoBean currentrttstatus;
	private Boolean rttclockimpact;
	private String pathwayid;
	private ims.vo.LookupInstanceBean urgency;
	private ims.framework.utils.beans.DateBean current31targetdate;
	private ims.framework.utils.beans.DateBean current62targetdate;
	private Boolean consultationactivityrequired;
	private ims.framework.utils.beans.DateBean endxdaykpi;
	private ims.vo.RefVoBean contract;
	private Boolean isemergencyreferral;
	private ims.RefMan.vo.beans.TriageOutcomeLiteVoBean triageoutcome;
}
