/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/CATSReferralFilterVoBean.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 CATSReferralFilterVoBean extends ims.vo.ValueObjectBean
{
	public CATSReferralFilterVoBean()
	{
	}
	public CATSReferralFilterVoBean(ims.RefMan.vo.CATSReferralFilterVo vo)
	{
		this.fromdate = vo.getFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDate().getBean();
		this.todate = vo.getToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDate().getBean();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceShortVoBean)vo.getService().getBean();
		this.clinictype = vo.getClinicType() == null ? null : (ims.core.vo.beans.ServiceFunctionLiteVoBean)vo.getClinicType().getBean();
		this.dos = vo.getDOS() == null ? null : (ims.scheduling.vo.beans.DirectoryOfServiceLiteVoBean)vo.getDOS().getBean();
		this.iscab = vo.getIsCAB();
		this.ismanual = vo.getIsManual();
		this.isdad = vo.getIsDAD();
		this.reviewtype = vo.getReviewType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReviewType().getBean();
		this.excludeprovidercancellation = vo.getExcludeProviderCancellation();
		this.location = vo.getLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getLocation().getBean();
		this.allocatedto = vo.getAllocatedTo() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getAllocatedTo().getBean();
		this.reportsubcategory = vo.getReportSubCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReportSubCategory().getBean();
		this.tlttype = vo.getTLTType() == null ? null : (ims.vo.LookupInstanceBean)vo.getTLTType().getBean();
		this.onwardreferralreason = vo.getOnwardReferralReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnwardReferralReason().getBean();
		this.notetype = vo.getNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteType().getBean();
		this.contract = vo.getContract() == null ? null : (ims.RefMan.vo.beans.ContractConfigForReferralDetailsComponentVoBean)vo.getContract().getBean();
		this.secondopinionreason = vo.getSecondOpinionReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getSecondOpinionReason().getBean();
		this.opdsite = vo.getOPDSite() == null ? null : new ims.vo.RefVoBean(vo.getOPDSite().getBoId(), vo.getOPDSite().getBoVersion());
		this.sfsfromdate = vo.getSfSFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSfSFromDate().getBean();
		this.sfstodate = vo.getSfSToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSfSToDate().getBean();
		this.nhsnumber = vo.getNHSNumber();
		this.procedure = vo.getProcedure() == null ? null : new ims.vo.RefVoBean(vo.getProcedure().getBoId(), vo.getProcedure().getBoVersion());
		this.dischargefromdate = vo.getDischargeFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeFromDate().getBean();
		this.dischargetodate = vo.getDischargeToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeToDate().getBean();
		if(vo.getContractsForOrg() != null)
		{
			this.contractsfororg = new ims.vo.RefVoBean[vo.getContractsForOrg().size()];
			for(int contractsfororg_i = 0; contractsfororg_i < vo.getContractsForOrg().size(); contractsfororg_i++)
			{
				this.contractsfororg[contractsfororg_i] = new ims.vo.RefVoBean(vo.getContractsForOrg().get(contractsfororg_i).getBoId(),vo.getContractsForOrg().get(contractsfororg_i).getBoVersion());
			}
		}
		this.treatmentcenter = vo.getTreatmentCenter() == null ? null : (ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean)vo.getTreatmentCenter().getBean();
		// Interface field type not supported.
		this.services = vo.getServices() == null ? null : vo.getServices().getBeanCollection();
		this.referralurgencies = vo.getReferralUrgencies() == null ? null : vo.getReferralUrgencies().getBeanCollection();
		this.noresponsiblehcp = vo.getNoResponsibleHCP();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.CATSReferralFilterVo vo)
	{
		this.fromdate = vo.getFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDate().getBean();
		this.todate = vo.getToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDate().getBean();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceShortVoBean)vo.getService().getBean(map);
		this.clinictype = vo.getClinicType() == null ? null : (ims.core.vo.beans.ServiceFunctionLiteVoBean)vo.getClinicType().getBean(map);
		this.dos = vo.getDOS() == null ? null : (ims.scheduling.vo.beans.DirectoryOfServiceLiteVoBean)vo.getDOS().getBean(map);
		this.iscab = vo.getIsCAB();
		this.ismanual = vo.getIsManual();
		this.isdad = vo.getIsDAD();
		this.reviewtype = vo.getReviewType() == null ? null : (ims.vo.LookupInstanceBean)vo.getReviewType().getBean();
		this.excludeprovidercancellation = vo.getExcludeProviderCancellation();
		this.location = vo.getLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getLocation().getBean(map);
		this.allocatedto = vo.getAllocatedTo() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getAllocatedTo().getBean(map);
		this.reportsubcategory = vo.getReportSubCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getReportSubCategory().getBean();
		this.tlttype = vo.getTLTType() == null ? null : (ims.vo.LookupInstanceBean)vo.getTLTType().getBean();
		this.onwardreferralreason = vo.getOnwardReferralReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getOnwardReferralReason().getBean();
		this.notetype = vo.getNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteType().getBean();
		this.contract = vo.getContract() == null ? null : (ims.RefMan.vo.beans.ContractConfigForReferralDetailsComponentVoBean)vo.getContract().getBean(map);
		this.secondopinionreason = vo.getSecondOpinionReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getSecondOpinionReason().getBean();
		this.opdsite = vo.getOPDSite() == null ? null : new ims.vo.RefVoBean(vo.getOPDSite().getBoId(), vo.getOPDSite().getBoVersion());
		this.sfsfromdate = vo.getSfSFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSfSFromDate().getBean();
		this.sfstodate = vo.getSfSToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSfSToDate().getBean();
		this.nhsnumber = vo.getNHSNumber();
		this.procedure = vo.getProcedure() == null ? null : new ims.vo.RefVoBean(vo.getProcedure().getBoId(), vo.getProcedure().getBoVersion());
		this.dischargefromdate = vo.getDischargeFromDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeFromDate().getBean();
		this.dischargetodate = vo.getDischargeToDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeToDate().getBean();
		if(vo.getContractsForOrg() != null)
		{
			this.contractsfororg = new ims.vo.RefVoBean[vo.getContractsForOrg().size()];
			for(int contractsfororg_i = 0; contractsfororg_i < vo.getContractsForOrg().size(); contractsfororg_i++)
			{
				this.contractsfororg[contractsfororg_i] = new ims.vo.RefVoBean(vo.getContractsForOrg().get(contractsfororg_i).getBoId(),vo.getContractsForOrg().get(contractsfororg_i).getBoVersion());
			}
		}
		this.treatmentcenter = vo.getTreatmentCenter() == null ? null : (ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean)vo.getTreatmentCenter().getBean(map);
		// Interface field type not supported.
		this.services = vo.getServices() == null ? null : vo.getServices().getBeanCollection();
		this.referralurgencies = vo.getReferralUrgencies() == null ? null : vo.getReferralUrgencies().getBeanCollection();
		this.noresponsiblehcp = vo.getNoResponsibleHCP();
	}

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

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

	public ims.framework.utils.beans.DateBean getFromDate()
	{
		return this.fromdate;
	}
	public void setFromDate(ims.framework.utils.beans.DateBean value)
	{
		this.fromdate = value;
	}
	public ims.framework.utils.beans.DateBean getToDate()
	{
		return this.todate;
	}
	public void setToDate(ims.framework.utils.beans.DateBean value)
	{
		this.todate = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public ims.vo.RefVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}
	public ims.core.vo.beans.ServiceShortVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.core.vo.beans.ServiceShortVoBean value)
	{
		this.service = value;
	}
	public ims.core.vo.beans.ServiceFunctionLiteVoBean getClinicType()
	{
		return this.clinictype;
	}
	public void setClinicType(ims.core.vo.beans.ServiceFunctionLiteVoBean value)
	{
		this.clinictype = value;
	}
	public ims.scheduling.vo.beans.DirectoryOfServiceLiteVoBean getDOS()
	{
		return this.dos;
	}
	public void setDOS(ims.scheduling.vo.beans.DirectoryOfServiceLiteVoBean value)
	{
		this.dos = value;
	}
	public Boolean getIsCAB()
	{
		return this.iscab;
	}
	public void setIsCAB(Boolean value)
	{
		this.iscab = value;
	}
	public Boolean getIsManual()
	{
		return this.ismanual;
	}
	public void setIsManual(Boolean value)
	{
		this.ismanual = value;
	}
	public Boolean getIsDAD()
	{
		return this.isdad;
	}
	public void setIsDAD(Boolean value)
	{
		this.isdad = value;
	}
	public ims.vo.LookupInstanceBean getReviewType()
	{
		return this.reviewtype;
	}
	public void setReviewType(ims.vo.LookupInstanceBean value)
	{
		this.reviewtype = value;
	}
	public Boolean getExcludeProviderCancellation()
	{
		return this.excludeprovidercancellation;
	}
	public void setExcludeProviderCancellation(Boolean value)
	{
		this.excludeprovidercancellation = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getLocation()
	{
		return this.location;
	}
	public void setLocation(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.location = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getAllocatedTo()
	{
		return this.allocatedto;
	}
	public void setAllocatedTo(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.allocatedto = value;
	}
	public ims.vo.LookupInstanceBean getReportSubCategory()
	{
		return this.reportsubcategory;
	}
	public void setReportSubCategory(ims.vo.LookupInstanceBean value)
	{
		this.reportsubcategory = value;
	}
	public ims.vo.LookupInstanceBean getTLTType()
	{
		return this.tlttype;
	}
	public void setTLTType(ims.vo.LookupInstanceBean value)
	{
		this.tlttype = value;
	}
	public ims.vo.LookupInstanceBean getOnwardReferralReason()
	{
		return this.onwardreferralreason;
	}
	public void setOnwardReferralReason(ims.vo.LookupInstanceBean value)
	{
		this.onwardreferralreason = value;
	}
	public ims.vo.LookupInstanceBean getNoteType()
	{
		return this.notetype;
	}
	public void setNoteType(ims.vo.LookupInstanceBean value)
	{
		this.notetype = value;
	}
	public ims.RefMan.vo.beans.ContractConfigForReferralDetailsComponentVoBean getContract()
	{
		return this.contract;
	}
	public void setContract(ims.RefMan.vo.beans.ContractConfigForReferralDetailsComponentVoBean value)
	{
		this.contract = value;
	}
	public ims.vo.LookupInstanceBean getSecondOpinionReason()
	{
		return this.secondopinionreason;
	}
	public void setSecondOpinionReason(ims.vo.LookupInstanceBean value)
	{
		this.secondopinionreason = value;
	}
	public ims.vo.RefVoBean getOPDSite()
	{
		return this.opdsite;
	}
	public void setOPDSite(ims.vo.RefVoBean value)
	{
		this.opdsite = value;
	}
	public ims.framework.utils.beans.DateBean getSfSFromDate()
	{
		return this.sfsfromdate;
	}
	public void setSfSFromDate(ims.framework.utils.beans.DateBean value)
	{
		this.sfsfromdate = value;
	}
	public ims.framework.utils.beans.DateBean getSfSToDate()
	{
		return this.sfstodate;
	}
	public void setSfSToDate(ims.framework.utils.beans.DateBean value)
	{
		this.sfstodate = value;
	}
	public String getNHSNumber()
	{
		return this.nhsnumber;
	}
	public void setNHSNumber(String value)
	{
		this.nhsnumber = value;
	}
	public ims.vo.RefVoBean getProcedure()
	{
		return this.procedure;
	}
	public void setProcedure(ims.vo.RefVoBean value)
	{
		this.procedure = value;
	}
	public ims.framework.utils.beans.DateBean getDischargeFromDate()
	{
		return this.dischargefromdate;
	}
	public void setDischargeFromDate(ims.framework.utils.beans.DateBean value)
	{
		this.dischargefromdate = value;
	}
	public ims.framework.utils.beans.DateBean getDischargeToDate()
	{
		return this.dischargetodate;
	}
	public void setDischargeToDate(ims.framework.utils.beans.DateBean value)
	{
		this.dischargetodate = value;
	}
	public ims.vo.RefVoBean[] getContractsForOrg()
	{
		return this.contractsfororg;
	}
	public void setContractsForOrg(ims.vo.RefVoBean[] value)
	{
		this.contractsfororg = value;
	}
	public ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean getTreatmentCenter()
	{
		return this.treatmentcenter;
	}
	public void setTreatmentCenter(ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean value)
	{
		this.treatmentcenter = value;
	}
	public ims.core.vo.beans.ServiceShortVoBean[] getServices()
	{
		return this.services;
	}
	public void setServices(ims.core.vo.beans.ServiceShortVoBean[] value)
	{
		this.services = value;
	}
	public java.util.Collection getReferralUrgencies()
	{
		return this.referralurgencies;
	}
	public void setReferralUrgencies(java.util.Collection value)
	{
		this.referralurgencies = value;
	}
	public void addReferralUrgencies(java.util.Collection value)
	{
		if(this.referralurgencies == null)
			this.referralurgencies = new java.util.ArrayList();
		this.referralurgencies.add(value);
	}
	public Boolean getNoResponsibleHCP()
	{
		return this.noresponsiblehcp;
	}
	public void setNoResponsibleHCP(Boolean value)
	{
		this.noresponsiblehcp = value;
	}

	private ims.framework.utils.beans.DateBean fromdate;
	private ims.framework.utils.beans.DateBean todate;
	private ims.vo.LookupInstanceBean status;
	private ims.vo.RefVoBean patient;
	private ims.core.vo.beans.ServiceShortVoBean service;
	private ims.core.vo.beans.ServiceFunctionLiteVoBean clinictype;
	private ims.scheduling.vo.beans.DirectoryOfServiceLiteVoBean dos;
	private Boolean iscab;
	private Boolean ismanual;
	private Boolean isdad;
	private ims.vo.LookupInstanceBean reviewtype;
	private Boolean excludeprovidercancellation;
	private ims.core.vo.beans.LocationLiteVoBean location;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean allocatedto;
	private ims.vo.LookupInstanceBean reportsubcategory;
	private ims.vo.LookupInstanceBean tlttype;
	private ims.vo.LookupInstanceBean onwardreferralreason;
	private ims.vo.LookupInstanceBean notetype;
	private ims.RefMan.vo.beans.ContractConfigForReferralDetailsComponentVoBean contract;
	private ims.vo.LookupInstanceBean secondopinionreason;
	private ims.vo.RefVoBean opdsite;
	private ims.framework.utils.beans.DateBean sfsfromdate;
	private ims.framework.utils.beans.DateBean sfstodate;
	private String nhsnumber;
	private ims.vo.RefVoBean procedure;
	private ims.framework.utils.beans.DateBean dischargefromdate;
	private ims.framework.utils.beans.DateBean dischargetodate;
	private ims.vo.RefVoBean[] contractsfororg;
	private ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean treatmentcenter;
	private ims.core.vo.beans.ServiceShortVoBean[] services;
	private java.util.Collection referralurgencies;
	private Boolean noresponsiblehcp;
}
