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

public class ServiceTriageActionVoBean extends ims.vo.ValueObjectBean
{
	public ServiceTriageActionVoBean()
	{
	}
	public ServiceTriageActionVoBean(ims.core.vo.ServiceTriageActionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.service = vo.getService() == null ? null : new ims.vo.RefVoBean(vo.getService().getBoId(), vo.getService().getBoVersion());
		this.opa = vo.getOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getOPA().getBean();
		this.directtolist = vo.getDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getDirectToList().getBean();
		this.directtolistandopa = vo.getDirectToListAndOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getDirectToListAndOPA().getBean();
		this.spr = vo.getSPR();
		this.linkeddiagnostic = vo.getLinkedDiagnostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedDiagnostic().getBean();
		this.consultant = vo.getConsultant();
		this.associatespecialist = vo.getAssociateSpecialist();
		this.anydoctortosee = vo.getAnyDoctorToSee();
		this.otherhcp = vo.getOtherHCP();
		this.otherhcpvalues = vo.getOtherHCPValues() == null ? null : vo.getOtherHCPValues().getBeanCollection();
		this.linkedopasanddiagnostic = vo.getLinkedOPAsAndDiagnostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedOPAsAndDiagnostic().getBean();
		this.opaandlinkeddiagostic = vo.getOPAAndLinkedDiagostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getOPAAndLinkedDiagostic().getBean();
		this.linkedopas = vo.getLinkedOPAs() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedOPAs().getBean();
		this.defaultactionformanualreferral = vo.getDefaultActionForManualReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDefaultActionForManualReferral().getBean();
		this.defaultactionforcabreferral = vo.getDefaultActionForCABReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDefaultActionForCABReferral().getBean();
		this.changecabopa = vo.getChangeCABOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getChangeCABOPA().getBean();
		this.changecabopaanddirecttolist = vo.getChangeCABOPAandDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getChangeCABOPAandDirectToList().getBean();
		this.cabopaanddirecttolist = vo.getCABOPAandDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getCABOPAandDirectToList().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.ServiceTriageActionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.service = vo.getService() == null ? null : new ims.vo.RefVoBean(vo.getService().getBoId(), vo.getService().getBoVersion());
		this.opa = vo.getOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getOPA().getBean();
		this.directtolist = vo.getDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getDirectToList().getBean();
		this.directtolistandopa = vo.getDirectToListAndOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getDirectToListAndOPA().getBean();
		this.spr = vo.getSPR();
		this.linkeddiagnostic = vo.getLinkedDiagnostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedDiagnostic().getBean();
		this.consultant = vo.getConsultant();
		this.associatespecialist = vo.getAssociateSpecialist();
		this.anydoctortosee = vo.getAnyDoctorToSee();
		this.otherhcp = vo.getOtherHCP();
		this.otherhcpvalues = vo.getOtherHCPValues() == null ? null : vo.getOtherHCPValues().getBeanCollection();
		this.linkedopasanddiagnostic = vo.getLinkedOPAsAndDiagnostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedOPAsAndDiagnostic().getBean();
		this.opaandlinkeddiagostic = vo.getOPAAndLinkedDiagostic() == null ? null : (ims.vo.LookupInstanceBean)vo.getOPAAndLinkedDiagostic().getBean();
		this.linkedopas = vo.getLinkedOPAs() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedOPAs().getBean();
		this.defaultactionformanualreferral = vo.getDefaultActionForManualReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDefaultActionForManualReferral().getBean();
		this.defaultactionforcabreferral = vo.getDefaultActionForCABReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getDefaultActionForCABReferral().getBean();
		this.changecabopa = vo.getChangeCABOPA() == null ? null : (ims.vo.LookupInstanceBean)vo.getChangeCABOPA().getBean();
		this.changecabopaanddirecttolist = vo.getChangeCABOPAandDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getChangeCABOPAandDirectToList().getBean();
		this.cabopaanddirecttolist = vo.getCABOPAandDirectToList() == null ? null : (ims.vo.LookupInstanceBean)vo.getCABOPAandDirectToList().getBean();
	}

	public ims.core.vo.ServiceTriageActionVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.core.vo.ServiceTriageActionVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.ServiceTriageActionVo vo = null;
		if(map != null)
			vo = (ims.core.vo.ServiceTriageActionVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.ServiceTriageActionVo();
			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.vo.RefVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.vo.RefVoBean value)
	{
		this.service = value;
	}
	public ims.vo.LookupInstanceBean getOPA()
	{
		return this.opa;
	}
	public void setOPA(ims.vo.LookupInstanceBean value)
	{
		this.opa = value;
	}
	public ims.vo.LookupInstanceBean getDirectToList()
	{
		return this.directtolist;
	}
	public void setDirectToList(ims.vo.LookupInstanceBean value)
	{
		this.directtolist = value;
	}
	public ims.vo.LookupInstanceBean getDirectToListAndOPA()
	{
		return this.directtolistandopa;
	}
	public void setDirectToListAndOPA(ims.vo.LookupInstanceBean value)
	{
		this.directtolistandopa = value;
	}
	public Boolean getSPR()
	{
		return this.spr;
	}
	public void setSPR(Boolean value)
	{
		this.spr = value;
	}
	public ims.vo.LookupInstanceBean getLinkedDiagnostic()
	{
		return this.linkeddiagnostic;
	}
	public void setLinkedDiagnostic(ims.vo.LookupInstanceBean value)
	{
		this.linkeddiagnostic = value;
	}
	public Boolean getConsultant()
	{
		return this.consultant;
	}
	public void setConsultant(Boolean value)
	{
		this.consultant = value;
	}
	public Boolean getAssociateSpecialist()
	{
		return this.associatespecialist;
	}
	public void setAssociateSpecialist(Boolean value)
	{
		this.associatespecialist = value;
	}
	public Boolean getAnyDoctorToSee()
	{
		return this.anydoctortosee;
	}
	public void setAnyDoctorToSee(Boolean value)
	{
		this.anydoctortosee = value;
	}
	public Boolean getOtherHCP()
	{
		return this.otherhcp;
	}
	public void setOtherHCP(Boolean value)
	{
		this.otherhcp = value;
	}
	public java.util.Collection getOtherHCPValues()
	{
		return this.otherhcpvalues;
	}
	public void setOtherHCPValues(java.util.Collection value)
	{
		this.otherhcpvalues = value;
	}
	public void addOtherHCPValues(java.util.Collection value)
	{
		if(this.otherhcpvalues == null)
			this.otherhcpvalues = new java.util.ArrayList();
		this.otherhcpvalues.add(value);
	}
	public ims.vo.LookupInstanceBean getLinkedOPAsAndDiagnostic()
	{
		return this.linkedopasanddiagnostic;
	}
	public void setLinkedOPAsAndDiagnostic(ims.vo.LookupInstanceBean value)
	{
		this.linkedopasanddiagnostic = value;
	}
	public ims.vo.LookupInstanceBean getOPAAndLinkedDiagostic()
	{
		return this.opaandlinkeddiagostic;
	}
	public void setOPAAndLinkedDiagostic(ims.vo.LookupInstanceBean value)
	{
		this.opaandlinkeddiagostic = value;
	}
	public ims.vo.LookupInstanceBean getLinkedOPAs()
	{
		return this.linkedopas;
	}
	public void setLinkedOPAs(ims.vo.LookupInstanceBean value)
	{
		this.linkedopas = value;
	}
	public ims.vo.LookupInstanceBean getDefaultActionForManualReferral()
	{
		return this.defaultactionformanualreferral;
	}
	public void setDefaultActionForManualReferral(ims.vo.LookupInstanceBean value)
	{
		this.defaultactionformanualreferral = value;
	}
	public ims.vo.LookupInstanceBean getDefaultActionForCABReferral()
	{
		return this.defaultactionforcabreferral;
	}
	public void setDefaultActionForCABReferral(ims.vo.LookupInstanceBean value)
	{
		this.defaultactionforcabreferral = value;
	}
	public ims.vo.LookupInstanceBean getChangeCABOPA()
	{
		return this.changecabopa;
	}
	public void setChangeCABOPA(ims.vo.LookupInstanceBean value)
	{
		this.changecabopa = value;
	}
	public ims.vo.LookupInstanceBean getChangeCABOPAandDirectToList()
	{
		return this.changecabopaanddirecttolist;
	}
	public void setChangeCABOPAandDirectToList(ims.vo.LookupInstanceBean value)
	{
		this.changecabopaanddirecttolist = value;
	}
	public ims.vo.LookupInstanceBean getCABOPAandDirectToList()
	{
		return this.cabopaanddirecttolist;
	}
	public void setCABOPAandDirectToList(ims.vo.LookupInstanceBean value)
	{
		this.cabopaanddirecttolist = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean service;
	private ims.vo.LookupInstanceBean opa;
	private ims.vo.LookupInstanceBean directtolist;
	private ims.vo.LookupInstanceBean directtolistandopa;
	private Boolean spr;
	private ims.vo.LookupInstanceBean linkeddiagnostic;
	private Boolean consultant;
	private Boolean associatespecialist;
	private Boolean anydoctortosee;
	private Boolean otherhcp;
	private java.util.Collection otherhcpvalues;
	private ims.vo.LookupInstanceBean linkedopasanddiagnostic;
	private ims.vo.LookupInstanceBean opaandlinkeddiagostic;
	private ims.vo.LookupInstanceBean linkedopas;
	private ims.vo.LookupInstanceBean defaultactionformanualreferral;
	private ims.vo.LookupInstanceBean defaultactionforcabreferral;
	private ims.vo.LookupInstanceBean changecabopa;
	private ims.vo.LookupInstanceBean changecabopaanddirecttolist;
	private ims.vo.LookupInstanceBean cabopaanddirecttolist;
}
