/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/ReferralBookingVoBean.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 ReferralBookingVoBean extends ims.vo.ValueObjectBean
{
	public ReferralBookingVoBean()
	{
	}
	public ReferralBookingVoBean(ims.RefMan.vo.ReferralBookingVo vo)
	{
		this.referralletterdetail = vo.getReferralLetterDetail() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsBookingVoBean)vo.getReferralLetterDetail().getBean();
		this.currentappointments = vo.getCurrentAppointments() == null ? null : vo.getCurrentAppointments().getBeanCollection();
		this.appointmentsrequiringrebook = vo.getAppointmentsRequiringRebook() == null ? null : vo.getAppointmentsRequiringRebook().getBeanCollection();
		this.ordersrequiringappt = vo.getOrdersRequiringAppt() == null ? null : vo.getOrdersRequiringAppt().getBeanCollection();
		this.triagedatetime = vo.getTriageDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTriageDateTime().getBean();
		this.otherappointments = vo.getOtherAppointments() == null ? null : vo.getOtherAppointments().getBeanCollection();
		this.isfitforsurgery = vo.getIsFitForSurgery();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.referralerod = vo.getReferralEROD() == null ? null : (ims.RefMan.vo.beans.ReferralERODVoBean)vo.getReferralEROD().getBean();
		this.currentclock = vo.getCurrentClock() == null ? null : new ims.vo.RefVoBean(vo.getCurrentClock().getBoId(), vo.getCurrentClock().getBoVersion());
		this.iscab = vo.getIsCAB();
		this.referralcategory = vo.getReferralCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralCategory().getBean();
		this.currenttcis = vo.getCurrentTCIs() == null ? null : vo.getCurrentTCIs().getBeanCollection();
		this.triageoutcome = vo.getTriageOutcome() == null ? null : (ims.RefMan.vo.beans.TriageOutcomeForBookAppointmentVoBean)vo.getTriageOutcome().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.ReferralBookingVo vo)
	{
		this.referralletterdetail = vo.getReferralLetterDetail() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsBookingVoBean)vo.getReferralLetterDetail().getBean(map);
		this.currentappointments = vo.getCurrentAppointments() == null ? null : vo.getCurrentAppointments().getBeanCollection();
		this.appointmentsrequiringrebook = vo.getAppointmentsRequiringRebook() == null ? null : vo.getAppointmentsRequiringRebook().getBeanCollection();
		this.ordersrequiringappt = vo.getOrdersRequiringAppt() == null ? null : vo.getOrdersRequiringAppt().getBeanCollection();
		this.triagedatetime = vo.getTriageDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getTriageDateTime().getBean();
		this.otherappointments = vo.getOtherAppointments() == null ? null : vo.getOtherAppointments().getBeanCollection();
		this.isfitforsurgery = vo.getIsFitForSurgery();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.referralerod = vo.getReferralEROD() == null ? null : (ims.RefMan.vo.beans.ReferralERODVoBean)vo.getReferralEROD().getBean(map);
		this.currentclock = vo.getCurrentClock() == null ? null : new ims.vo.RefVoBean(vo.getCurrentClock().getBoId(), vo.getCurrentClock().getBoVersion());
		this.iscab = vo.getIsCAB();
		this.referralcategory = vo.getReferralCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReferralCategory().getBean();
		this.currenttcis = vo.getCurrentTCIs() == null ? null : vo.getCurrentTCIs().getBeanCollection();
		this.triageoutcome = vo.getTriageOutcome() == null ? null : (ims.RefMan.vo.beans.TriageOutcomeForBookAppointmentVoBean)vo.getTriageOutcome().getBean(map);
	}

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

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

	public ims.RefMan.vo.beans.ReferralLetterDetailsBookingVoBean getReferralLetterDetail()
	{
		return this.referralletterdetail;
	}
	public void setReferralLetterDetail(ims.RefMan.vo.beans.ReferralLetterDetailsBookingVoBean value)
	{
		this.referralletterdetail = value;
	}
	public ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] getCurrentAppointments()
	{
		return this.currentappointments;
	}
	public void setCurrentAppointments(ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] value)
	{
		this.currentappointments = value;
	}
	public ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] getAppointmentsRequiringRebook()
	{
		return this.appointmentsrequiringrebook;
	}
	public void setAppointmentsRequiringRebook(ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] value)
	{
		this.appointmentsrequiringrebook = value;
	}
	public ims.ocrr.vo.beans.OrderInvestigationBookingVoBean[] getOrdersRequiringAppt()
	{
		return this.ordersrequiringappt;
	}
	public void setOrdersRequiringAppt(ims.ocrr.vo.beans.OrderInvestigationBookingVoBean[] value)
	{
		this.ordersrequiringappt = value;
	}
	public ims.framework.utils.beans.DateTimeBean getTriageDateTime()
	{
		return this.triagedatetime;
	}
	public void setTriageDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.triagedatetime = value;
	}
	public ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] getOtherAppointments()
	{
		return this.otherappointments;
	}
	public void setOtherAppointments(ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] value)
	{
		this.otherappointments = value;
	}
	public Boolean getIsFitForSurgery()
	{
		return this.isfitforsurgery;
	}
	public void setIsFitForSurgery(Boolean value)
	{
		this.isfitforsurgery = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.RefMan.vo.beans.ReferralERODVoBean getReferralEROD()
	{
		return this.referralerod;
	}
	public void setReferralEROD(ims.RefMan.vo.beans.ReferralERODVoBean value)
	{
		this.referralerod = value;
	}
	public ims.vo.RefVoBean getCurrentClock()
	{
		return this.currentclock;
	}
	public void setCurrentClock(ims.vo.RefVoBean value)
	{
		this.currentclock = value;
	}
	public Boolean getIsCAB()
	{
		return this.iscab;
	}
	public void setIsCAB(Boolean value)
	{
		this.iscab = value;
	}
	public ims.vo.LookupInstanceBean getReferralCategory()
	{
		return this.referralcategory;
	}
	public void setReferralCategory(ims.vo.LookupInstanceBean value)
	{
		this.referralcategory = value;
	}
	public ims.RefMan.vo.beans.TCIForReferralBookingVoBean[] getCurrentTCIs()
	{
		return this.currenttcis;
	}
	public void setCurrentTCIs(ims.RefMan.vo.beans.TCIForReferralBookingVoBean[] value)
	{
		this.currenttcis = value;
	}
	public ims.RefMan.vo.beans.TriageOutcomeForBookAppointmentVoBean getTriageOutcome()
	{
		return this.triageoutcome;
	}
	public void setTriageOutcome(ims.RefMan.vo.beans.TriageOutcomeForBookAppointmentVoBean value)
	{
		this.triageoutcome = value;
	}

	private ims.RefMan.vo.beans.ReferralLetterDetailsBookingVoBean referralletterdetail;
	private ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] currentappointments;
	private ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] appointmentsrequiringrebook;
	private ims.ocrr.vo.beans.OrderInvestigationBookingVoBean[] ordersrequiringappt;
	private ims.framework.utils.beans.DateTimeBean triagedatetime;
	private ims.scheduling.vo.beans.BookingAppointmentLiteVoBean[] otherappointments;
	private Boolean isfitforsurgery;
	private ims.vo.RefVoBean carecontext;
	private ims.RefMan.vo.beans.ReferralERODVoBean referralerod;
	private ims.vo.RefVoBean currentclock;
	private Boolean iscab;
	private ims.vo.LookupInstanceBean referralcategory;
	private ims.RefMan.vo.beans.TCIForReferralBookingVoBean[] currenttcis;
	private ims.RefMan.vo.beans.TriageOutcomeForBookAppointmentVoBean triageoutcome;
}
