/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/CatsReferralListVoBean.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 CatsReferralListVoBean extends ims.vo.ValueObjectBean
{
	public CatsReferralListVoBean()
	{
	}
	public CatsReferralListVoBean(ims.RefMan.vo.CatsReferralListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortListVoBean)vo.getPatient().getBean();
		this.referraldetails = vo.getReferralDetails() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsLiteVoBean)vo.getReferralDetails().getBean();
		this.hasdocuments = vo.getHasDocuments();
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.RefMan.vo.beans.CatsReferralStatusVoBean)vo.getCurrentStatus().getBean();
		this.hasinvestigations = vo.getHasInvestigations();
		this.hasappointments = vo.getHasAppointments();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.hasreferralletter = vo.getHasReferralLetter();
		this.iscab = vo.getIsCAB();
		this.consultationappt = vo.getConsultationAppt() == null ? null : (ims.scheduling.vo.beans.BookingAppointmentLiteVoBean)vo.getConsultationAppt().getBean();
		this.additionalinvapptsstatus = vo.getAdditionalInvApptsStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdditionalInvApptsStatus().getBean();
		this.hasrejectedinv = vo.getHasRejectedInv();
		this.providercancellation = vo.getProviderCancellation() == null ? null : new ims.vo.RefVoBean(vo.getProviderCancellation().getBoId(), vo.getProviderCancellation().getBoVersion());
		this.isflaggedforreview = vo.getIsFlaggedForReview();
		this.onwardreferralstatus = vo.getOnwardReferralStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnwardReferralStatus().getBean();
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.hasconsultationdetails = vo.getHasConsultationDetails();
		this.lastapptarriveddate = vo.getLastApptArrivedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastApptArrivedDate().getBean();
		this.hastltstartcontact = vo.getHasTLTStartContact();
		this.issuitableforsurgery = vo.getIsSuitableForSurgery();
		this.isfitforsurgery = vo.getIsFitForSurgery();
		this.hastheatreappt = vo.getHasTheatreAppt();
		this.haslinkedicp = vo.getHasLinkedICP();
		this.iscurrentlyallocated = vo.getIsCurrentlyAllocated();
		this.isawaitingclinicalinfo = vo.getIsAwaitingClinicalInfo();
		this.awaitingclinicalinfo = vo.getAwaitingClinicalInfo() == null ? null : (ims.RefMan.vo.beans.AwaitingClinicalInfoVoBean)vo.getAwaitingClinicalInfo().getBean();
		this.opdlocation = vo.getOPDLocation() == null ? null : new ims.vo.RefVoBean(vo.getOPDLocation().getBoId(), vo.getOPDLocation().getBoVersion());
		this.suitableforsurgerydate = vo.getSuitableForSurgeryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSuitableForSurgeryDate().getBean();
		this.endofcaredate = vo.getEndOfCareDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndOfCareDate().getBean();
		this.contract = vo.getContract() == null ? null : (ims.RefMan.vo.beans.ContractConfigShortVoBean)vo.getContract().getBean();
		if(vo.getAdminEvent() != null)
		{
			this.adminevent = new ims.vo.RefVoBean[vo.getAdminEvent().size()];
			for(int adminevent_i = 0; adminevent_i < vo.getAdminEvent().size(); adminevent_i++)
			{
				this.adminevent[adminevent_i] = new ims.vo.RefVoBean(vo.getAdminEvent().get(adminevent_i).getBoId(),vo.getAdminEvent().get(adminevent_i).getBoVersion());
			}
		}
		this.pathwayid = vo.getPathwayID();
		this.numprovidercancelledappts = vo.getNumProviderCancelledAppts();
		this.numpatientcancelledappts = vo.getNumPatientCancelledAppts();
		this.hasmultiplereferralletter = vo.getHasMultipleReferralLetter();
		this.consultationactivityrequired = vo.getConsultationActivityRequired();
		this.patientcategory = vo.getPatientCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientCategory().getBean();
		this.isemergencyreferral = vo.getIsEmergencyReferral();
		this.icabreferral = vo.getICABReferral() == null ? null : (ims.admin.vo.beans.ICABReferralLiteVoBean)vo.getICABReferral().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.CatsReferralListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortListVoBean)vo.getPatient().getBean(map);
		this.referraldetails = vo.getReferralDetails() == null ? null : (ims.RefMan.vo.beans.ReferralLetterDetailsLiteVoBean)vo.getReferralDetails().getBean(map);
		this.hasdocuments = vo.getHasDocuments();
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.RefMan.vo.beans.CatsReferralStatusVoBean)vo.getCurrentStatus().getBean(map);
		this.hasinvestigations = vo.getHasInvestigations();
		this.hasappointments = vo.getHasAppointments();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.hasreferralletter = vo.getHasReferralLetter();
		this.iscab = vo.getIsCAB();
		this.consultationappt = vo.getConsultationAppt() == null ? null : (ims.scheduling.vo.beans.BookingAppointmentLiteVoBean)vo.getConsultationAppt().getBean(map);
		this.additionalinvapptsstatus = vo.getAdditionalInvApptsStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdditionalInvApptsStatus().getBean();
		this.hasrejectedinv = vo.getHasRejectedInv();
		this.providercancellation = vo.getProviderCancellation() == null ? null : new ims.vo.RefVoBean(vo.getProviderCancellation().getBoId(), vo.getProviderCancellation().getBoVersion());
		this.isflaggedforreview = vo.getIsFlaggedForReview();
		this.onwardreferralstatus = vo.getOnwardReferralStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnwardReferralStatus().getBean();
		this.statushistory = vo.getStatusHistory() == null ? null : vo.getStatusHistory().getBeanCollection();
		this.hasconsultationdetails = vo.getHasConsultationDetails();
		this.lastapptarriveddate = vo.getLastApptArrivedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastApptArrivedDate().getBean();
		this.hastltstartcontact = vo.getHasTLTStartContact();
		this.issuitableforsurgery = vo.getIsSuitableForSurgery();
		this.isfitforsurgery = vo.getIsFitForSurgery();
		this.hastheatreappt = vo.getHasTheatreAppt();
		this.haslinkedicp = vo.getHasLinkedICP();
		this.iscurrentlyallocated = vo.getIsCurrentlyAllocated();
		this.isawaitingclinicalinfo = vo.getIsAwaitingClinicalInfo();
		this.awaitingclinicalinfo = vo.getAwaitingClinicalInfo() == null ? null : (ims.RefMan.vo.beans.AwaitingClinicalInfoVoBean)vo.getAwaitingClinicalInfo().getBean(map);
		this.opdlocation = vo.getOPDLocation() == null ? null : new ims.vo.RefVoBean(vo.getOPDLocation().getBoId(), vo.getOPDLocation().getBoVersion());
		this.suitableforsurgerydate = vo.getSuitableForSurgeryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSuitableForSurgeryDate().getBean();
		this.endofcaredate = vo.getEndOfCareDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndOfCareDate().getBean();
		this.contract = vo.getContract() == null ? null : (ims.RefMan.vo.beans.ContractConfigShortVoBean)vo.getContract().getBean(map);
		if(vo.getAdminEvent() != null)
		{
			this.adminevent = new ims.vo.RefVoBean[vo.getAdminEvent().size()];
			for(int adminevent_i = 0; adminevent_i < vo.getAdminEvent().size(); adminevent_i++)
			{
				this.adminevent[adminevent_i] = new ims.vo.RefVoBean(vo.getAdminEvent().get(adminevent_i).getBoId(),vo.getAdminEvent().get(adminevent_i).getBoVersion());
			}
		}
		this.pathwayid = vo.getPathwayID();
		this.numprovidercancelledappts = vo.getNumProviderCancelledAppts();
		this.numpatientcancelledappts = vo.getNumPatientCancelledAppts();
		this.hasmultiplereferralletter = vo.getHasMultipleReferralLetter();
		this.consultationactivityrequired = vo.getConsultationActivityRequired();
		this.patientcategory = vo.getPatientCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientCategory().getBean();
		this.isemergencyreferral = vo.getIsEmergencyReferral();
		this.icabreferral = vo.getICABReferral() == null ? null : (ims.admin.vo.beans.ICABReferralLiteVoBean)vo.getICABReferral().getBean(map);
	}

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

	public ims.RefMan.vo.CatsReferralListVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.CatsReferralListVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.CatsReferralListVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.CatsReferralListVo();
			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.PatientShortListVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientShortListVoBean value)
	{
		this.patient = value;
	}
	public ims.RefMan.vo.beans.ReferralLetterDetailsLiteVoBean getReferralDetails()
	{
		return this.referraldetails;
	}
	public void setReferralDetails(ims.RefMan.vo.beans.ReferralLetterDetailsLiteVoBean value)
	{
		this.referraldetails = value;
	}
	public Boolean getHasDocuments()
	{
		return this.hasdocuments;
	}
	public void setHasDocuments(Boolean value)
	{
		this.hasdocuments = value;
	}
	public ims.RefMan.vo.beans.CatsReferralStatusVoBean getCurrentStatus()
	{
		return this.currentstatus;
	}
	public void setCurrentStatus(ims.RefMan.vo.beans.CatsReferralStatusVoBean value)
	{
		this.currentstatus = value;
	}
	public Boolean getHasInvestigations()
	{
		return this.hasinvestigations;
	}
	public void setHasInvestigations(Boolean value)
	{
		this.hasinvestigations = value;
	}
	public Boolean getHasAppointments()
	{
		return this.hasappointments;
	}
	public void setHasAppointments(Boolean value)
	{
		this.hasappointments = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public Boolean getHasReferralLetter()
	{
		return this.hasreferralletter;
	}
	public void setHasReferralLetter(Boolean value)
	{
		this.hasreferralletter = value;
	}
	public Boolean getIsCAB()
	{
		return this.iscab;
	}
	public void setIsCAB(Boolean value)
	{
		this.iscab = value;
	}
	public ims.scheduling.vo.beans.BookingAppointmentLiteVoBean getConsultationAppt()
	{
		return this.consultationappt;
	}
	public void setConsultationAppt(ims.scheduling.vo.beans.BookingAppointmentLiteVoBean value)
	{
		this.consultationappt = value;
	}
	public ims.vo.LookupInstanceBean getAdditionalInvApptsStatus()
	{
		return this.additionalinvapptsstatus;
	}
	public void setAdditionalInvApptsStatus(ims.vo.LookupInstanceBean value)
	{
		this.additionalinvapptsstatus = value;
	}
	public Boolean getHasRejectedInv()
	{
		return this.hasrejectedinv;
	}
	public void setHasRejectedInv(Boolean value)
	{
		this.hasrejectedinv = value;
	}
	public ims.vo.RefVoBean getProviderCancellation()
	{
		return this.providercancellation;
	}
	public void setProviderCancellation(ims.vo.RefVoBean value)
	{
		this.providercancellation = value;
	}
	public Boolean getIsFlaggedForReview()
	{
		return this.isflaggedforreview;
	}
	public void setIsFlaggedForReview(Boolean value)
	{
		this.isflaggedforreview = value;
	}
	public ims.vo.LookupInstanceBean getOnwardReferralStatus()
	{
		return this.onwardreferralstatus;
	}
	public void setOnwardReferralStatus(ims.vo.LookupInstanceBean value)
	{
		this.onwardreferralstatus = value;
	}
	public ims.RefMan.vo.beans.CatsReferralStatusVoBean[] getStatusHistory()
	{
		return this.statushistory;
	}
	public void setStatusHistory(ims.RefMan.vo.beans.CatsReferralStatusVoBean[] value)
	{
		this.statushistory = value;
	}
	public Boolean getHasConsultationDetails()
	{
		return this.hasconsultationdetails;
	}
	public void setHasConsultationDetails(Boolean value)
	{
		this.hasconsultationdetails = value;
	}
	public ims.framework.utils.beans.DateBean getLastApptArrivedDate()
	{
		return this.lastapptarriveddate;
	}
	public void setLastApptArrivedDate(ims.framework.utils.beans.DateBean value)
	{
		this.lastapptarriveddate = value;
	}
	public Boolean getHasTLTStartContact()
	{
		return this.hastltstartcontact;
	}
	public void setHasTLTStartContact(Boolean value)
	{
		this.hastltstartcontact = value;
	}
	public Boolean getIsSuitableForSurgery()
	{
		return this.issuitableforsurgery;
	}
	public void setIsSuitableForSurgery(Boolean value)
	{
		this.issuitableforsurgery = value;
	}
	public Boolean getIsFitForSurgery()
	{
		return this.isfitforsurgery;
	}
	public void setIsFitForSurgery(Boolean value)
	{
		this.isfitforsurgery = value;
	}
	public Boolean getHasTheatreAppt()
	{
		return this.hastheatreappt;
	}
	public void setHasTheatreAppt(Boolean value)
	{
		this.hastheatreappt = value;
	}
	public Boolean getHasLinkedICP()
	{
		return this.haslinkedicp;
	}
	public void setHasLinkedICP(Boolean value)
	{
		this.haslinkedicp = value;
	}
	public Boolean getIsCurrentlyAllocated()
	{
		return this.iscurrentlyallocated;
	}
	public void setIsCurrentlyAllocated(Boolean value)
	{
		this.iscurrentlyallocated = value;
	}
	public Boolean getIsAwaitingClinicalInfo()
	{
		return this.isawaitingclinicalinfo;
	}
	public void setIsAwaitingClinicalInfo(Boolean value)
	{
		this.isawaitingclinicalinfo = value;
	}
	public ims.RefMan.vo.beans.AwaitingClinicalInfoVoBean getAwaitingClinicalInfo()
	{
		return this.awaitingclinicalinfo;
	}
	public void setAwaitingClinicalInfo(ims.RefMan.vo.beans.AwaitingClinicalInfoVoBean value)
	{
		this.awaitingclinicalinfo = value;
	}
	public ims.vo.RefVoBean getOPDLocation()
	{
		return this.opdlocation;
	}
	public void setOPDLocation(ims.vo.RefVoBean value)
	{
		this.opdlocation = value;
	}
	public ims.framework.utils.beans.DateBean getSuitableForSurgeryDate()
	{
		return this.suitableforsurgerydate;
	}
	public void setSuitableForSurgeryDate(ims.framework.utils.beans.DateBean value)
	{
		this.suitableforsurgerydate = value;
	}
	public ims.framework.utils.beans.DateBean getEndOfCareDate()
	{
		return this.endofcaredate;
	}
	public void setEndOfCareDate(ims.framework.utils.beans.DateBean value)
	{
		this.endofcaredate = value;
	}
	public ims.RefMan.vo.beans.ContractConfigShortVoBean getContract()
	{
		return this.contract;
	}
	public void setContract(ims.RefMan.vo.beans.ContractConfigShortVoBean value)
	{
		this.contract = value;
	}
	public ims.vo.RefVoBean[] getAdminEvent()
	{
		return this.adminevent;
	}
	public void setAdminEvent(ims.vo.RefVoBean[] value)
	{
		this.adminevent = value;
	}
	public String getPathwayID()
	{
		return this.pathwayid;
	}
	public void setPathwayID(String value)
	{
		this.pathwayid = value;
	}
	public Integer getNumProviderCancelledAppts()
	{
		return this.numprovidercancelledappts;
	}
	public void setNumProviderCancelledAppts(Integer value)
	{
		this.numprovidercancelledappts = value;
	}
	public Integer getNumPatientCancelledAppts()
	{
		return this.numpatientcancelledappts;
	}
	public void setNumPatientCancelledAppts(Integer value)
	{
		this.numpatientcancelledappts = value;
	}
	public Boolean getHasMultipleReferralLetter()
	{
		return this.hasmultiplereferralletter;
	}
	public void setHasMultipleReferralLetter(Boolean value)
	{
		this.hasmultiplereferralletter = value;
	}
	public Boolean getConsultationActivityRequired()
	{
		return this.consultationactivityrequired;
	}
	public void setConsultationActivityRequired(Boolean value)
	{
		this.consultationactivityrequired = value;
	}
	public ims.vo.LookupInstanceBean getPatientCategory()
	{
		return this.patientcategory;
	}
	public void setPatientCategory(ims.vo.LookupInstanceBean value)
	{
		this.patientcategory = value;
	}
	public Boolean getIsEmergencyReferral()
	{
		return this.isemergencyreferral;
	}
	public void setIsEmergencyReferral(Boolean value)
	{
		this.isemergencyreferral = value;
	}
	public ims.admin.vo.beans.ICABReferralLiteVoBean getICABReferral()
	{
		return this.icabreferral;
	}
	public void setICABReferral(ims.admin.vo.beans.ICABReferralLiteVoBean value)
	{
		this.icabreferral = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PatientShortListVoBean patient;
	private ims.RefMan.vo.beans.ReferralLetterDetailsLiteVoBean referraldetails;
	private Boolean hasdocuments;
	private ims.RefMan.vo.beans.CatsReferralStatusVoBean currentstatus;
	private Boolean hasinvestigations;
	private Boolean hasappointments;
	private ims.vo.RefVoBean carecontext;
	private Boolean hasreferralletter;
	private Boolean iscab;
	private ims.scheduling.vo.beans.BookingAppointmentLiteVoBean consultationappt;
	private ims.vo.LookupInstanceBean additionalinvapptsstatus;
	private Boolean hasrejectedinv;
	private ims.vo.RefVoBean providercancellation;
	private Boolean isflaggedforreview;
	private ims.vo.LookupInstanceBean onwardreferralstatus;
	private ims.RefMan.vo.beans.CatsReferralStatusVoBean[] statushistory;
	private Boolean hasconsultationdetails;
	private ims.framework.utils.beans.DateBean lastapptarriveddate;
	private Boolean hastltstartcontact;
	private Boolean issuitableforsurgery;
	private Boolean isfitforsurgery;
	private Boolean hastheatreappt;
	private Boolean haslinkedicp;
	private Boolean iscurrentlyallocated;
	private Boolean isawaitingclinicalinfo;
	private ims.RefMan.vo.beans.AwaitingClinicalInfoVoBean awaitingclinicalinfo;
	private ims.vo.RefVoBean opdlocation;
	private ims.framework.utils.beans.DateBean suitableforsurgerydate;
	private ims.framework.utils.beans.DateBean endofcaredate;
	private ims.RefMan.vo.beans.ContractConfigShortVoBean contract;
	private ims.vo.RefVoBean[] adminevent;
	private String pathwayid;
	private Integer numprovidercancelledappts;
	private Integer numpatientcancelledappts;
	private Boolean hasmultiplereferralletter;
	private Boolean consultationactivityrequired;
	private ims.vo.LookupInstanceBean patientcategory;
	private Boolean isemergencyreferral;
	private ims.admin.vo.beans.ICABReferralLiteVoBean icabreferral;
}
