/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PDSAdvancedSearchRequestVoBean.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 PDSAdvancedSearchRequestVoBean extends ims.vo.ValueObjectBean
{
	public PDSAdvancedSearchRequestVoBean()
	{
	}
	public PDSAdvancedSearchRequestVoBean(ims.core.vo.PDSAdvancedSearchRequestVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.sdsroleprofileid = vo.getSDSRoleProfileId();
		this.sdsuserid = vo.getSDSUserId();
		this.pdsack = vo.getPDSAck() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSAck().getBean();
		this.pdsackdetailtype = vo.getPDSAckDetailType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSAckDetailType().getBean();
		this.active = vo.getActive();
		this.comment = vo.getComment();
		this.requesttype = vo.getRequestType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRequestType().getBean();
		this.requestdate = vo.getRequestDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRequestDate().getBean();
		this.searchstatus = vo.getSearchStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getSearchStatus().getBean();
		this.searchtype = vo.getSearchType() == null ? null : (ims.vo.LookupInstanceBean)vo.getSearchType().getBean();
		this.historicdataflag = vo.getHistoricDataFlag() == null ? null : (ims.vo.LookupInstanceBean)vo.getHistoricDataFlag().getBean();
		this.ignorehistoryindicator = vo.getIgnoreHistoryIndicator() == null ? null : (ims.vo.LookupInstanceBean)vo.getIgnoreHistoryIndicator().getBean();
		this.nhsnumber = vo.getNHSNumber();
		this.surname = vo.getSurname();
		this.forename = vo.getForename();
		this.gender = vo.getGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getGender().getBean();
		this.fromdateofbirth = vo.getFromDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDateOfBirth().getBean();
		this.todateofbirth = vo.getToDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDateOfBirth().getBean();
		this.fromdateofdeath = vo.getFromDateOfDeath() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDateOfDeath().getBean();
		this.todateofdeath = vo.getToDateOfDeath() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDateOfDeath().getBean();
		this.searchresult = vo.getSearchResult() == null ? null : vo.getSearchResult().getBeanCollection();
		this.convid = vo.getConvId() == null ? null : new ims.vo.RefVoBean(vo.getConvId().getBoId(), vo.getConvId().getBoVersion());
		this.address = vo.getAddress() == null ? null : (ims.core.vo.beans.AddressVoBean)vo.getAddress().getBean();
		this.gppracticecode = vo.getGpPracticeCode();
		this.sdsjobrolecode = vo.getSDSJobRoleCode();
		this.postcode = vo.getPostcode();
		this.middlename = vo.getMiddleName();
		this.dobrangeunit = vo.getDOBRangeUnit() == null ? null : (ims.vo.LookupInstanceBean)vo.getDOBRangeUnit().getBean();
		this.dodrangeunit = vo.getDODRangeUnit() == null ? null : (ims.vo.LookupInstanceBean)vo.getDODRangeUnit().getBean();
		this.dobrangevalue = vo.getDOBRangeValue();
		this.dodrangevalue = vo.getDODRangeValue();
		this.dobpartialsearchby = vo.getDOBPartialSearchBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getDOBPartialSearchBy().getBean();
		this.dodpartialsearchby = vo.getDODPartialSearchBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getDODPartialSearchBy().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PDSAdvancedSearchRequestVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.sdsroleprofileid = vo.getSDSRoleProfileId();
		this.sdsuserid = vo.getSDSUserId();
		this.pdsack = vo.getPDSAck() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSAck().getBean();
		this.pdsackdetailtype = vo.getPDSAckDetailType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSAckDetailType().getBean();
		this.active = vo.getActive();
		this.comment = vo.getComment();
		this.requesttype = vo.getRequestType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRequestType().getBean();
		this.requestdate = vo.getRequestDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRequestDate().getBean();
		this.searchstatus = vo.getSearchStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getSearchStatus().getBean();
		this.searchtype = vo.getSearchType() == null ? null : (ims.vo.LookupInstanceBean)vo.getSearchType().getBean();
		this.historicdataflag = vo.getHistoricDataFlag() == null ? null : (ims.vo.LookupInstanceBean)vo.getHistoricDataFlag().getBean();
		this.ignorehistoryindicator = vo.getIgnoreHistoryIndicator() == null ? null : (ims.vo.LookupInstanceBean)vo.getIgnoreHistoryIndicator().getBean();
		this.nhsnumber = vo.getNHSNumber();
		this.surname = vo.getSurname();
		this.forename = vo.getForename();
		this.gender = vo.getGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getGender().getBean();
		this.fromdateofbirth = vo.getFromDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDateOfBirth().getBean();
		this.todateofbirth = vo.getToDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDateOfBirth().getBean();
		this.fromdateofdeath = vo.getFromDateOfDeath() == null ? null : (ims.framework.utils.beans.DateBean)vo.getFromDateOfDeath().getBean();
		this.todateofdeath = vo.getToDateOfDeath() == null ? null : (ims.framework.utils.beans.DateBean)vo.getToDateOfDeath().getBean();
		this.searchresult = vo.getSearchResult() == null ? null : vo.getSearchResult().getBeanCollection();
		this.convid = vo.getConvId() == null ? null : new ims.vo.RefVoBean(vo.getConvId().getBoId(), vo.getConvId().getBoVersion());
		this.address = vo.getAddress() == null ? null : (ims.core.vo.beans.AddressVoBean)vo.getAddress().getBean(map);
		this.gppracticecode = vo.getGpPracticeCode();
		this.sdsjobrolecode = vo.getSDSJobRoleCode();
		this.postcode = vo.getPostcode();
		this.middlename = vo.getMiddleName();
		this.dobrangeunit = vo.getDOBRangeUnit() == null ? null : (ims.vo.LookupInstanceBean)vo.getDOBRangeUnit().getBean();
		this.dodrangeunit = vo.getDODRangeUnit() == null ? null : (ims.vo.LookupInstanceBean)vo.getDODRangeUnit().getBean();
		this.dobrangevalue = vo.getDOBRangeValue();
		this.dodrangevalue = vo.getDODRangeValue();
		this.dobpartialsearchby = vo.getDOBPartialSearchBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getDOBPartialSearchBy().getBean();
		this.dodpartialsearchby = vo.getDODPartialSearchBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getDODPartialSearchBy().getBean();
	}

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

	public ims.core.vo.PDSAdvancedSearchRequestVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PDSAdvancedSearchRequestVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PDSAdvancedSearchRequestVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PDSAdvancedSearchRequestVo();
			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 String getSDSRoleProfileId()
	{
		return this.sdsroleprofileid;
	}
	public void setSDSRoleProfileId(String value)
	{
		this.sdsroleprofileid = value;
	}
	public String getSDSUserId()
	{
		return this.sdsuserid;
	}
	public void setSDSUserId(String value)
	{
		this.sdsuserid = value;
	}
	public ims.vo.LookupInstanceBean getPDSAck()
	{
		return this.pdsack;
	}
	public void setPDSAck(ims.vo.LookupInstanceBean value)
	{
		this.pdsack = value;
	}
	public ims.vo.LookupInstanceBean getPDSAckDetailType()
	{
		return this.pdsackdetailtype;
	}
	public void setPDSAckDetailType(ims.vo.LookupInstanceBean value)
	{
		this.pdsackdetailtype = value;
	}
	public Boolean getActive()
	{
		return this.active;
	}
	public void setActive(Boolean value)
	{
		this.active = value;
	}
	public String getComment()
	{
		return this.comment;
	}
	public void setComment(String value)
	{
		this.comment = value;
	}
	public ims.vo.LookupInstanceBean getRequestType()
	{
		return this.requesttype;
	}
	public void setRequestType(ims.vo.LookupInstanceBean value)
	{
		this.requesttype = value;
	}
	public ims.framework.utils.beans.DateTimeBean getRequestDate()
	{
		return this.requestdate;
	}
	public void setRequestDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.requestdate = value;
	}
	public ims.vo.LookupInstanceBean getSearchStatus()
	{
		return this.searchstatus;
	}
	public void setSearchStatus(ims.vo.LookupInstanceBean value)
	{
		this.searchstatus = value;
	}
	public ims.vo.LookupInstanceBean getSearchType()
	{
		return this.searchtype;
	}
	public void setSearchType(ims.vo.LookupInstanceBean value)
	{
		this.searchtype = value;
	}
	public ims.vo.LookupInstanceBean getHistoricDataFlag()
	{
		return this.historicdataflag;
	}
	public void setHistoricDataFlag(ims.vo.LookupInstanceBean value)
	{
		this.historicdataflag = value;
	}
	public ims.vo.LookupInstanceBean getIgnoreHistoryIndicator()
	{
		return this.ignorehistoryindicator;
	}
	public void setIgnoreHistoryIndicator(ims.vo.LookupInstanceBean value)
	{
		this.ignorehistoryindicator = value;
	}
	public String getNHSNumber()
	{
		return this.nhsnumber;
	}
	public void setNHSNumber(String value)
	{
		this.nhsnumber = value;
	}
	public String getSurname()
	{
		return this.surname;
	}
	public void setSurname(String value)
	{
		this.surname = value;
	}
	public String getForename()
	{
		return this.forename;
	}
	public void setForename(String value)
	{
		this.forename = value;
	}
	public ims.vo.LookupInstanceBean getGender()
	{
		return this.gender;
	}
	public void setGender(ims.vo.LookupInstanceBean value)
	{
		this.gender = value;
	}
	public ims.framework.utils.beans.DateBean getFromDateOfBirth()
	{
		return this.fromdateofbirth;
	}
	public void setFromDateOfBirth(ims.framework.utils.beans.DateBean value)
	{
		this.fromdateofbirth = value;
	}
	public ims.framework.utils.beans.DateBean getToDateOfBirth()
	{
		return this.todateofbirth;
	}
	public void setToDateOfBirth(ims.framework.utils.beans.DateBean value)
	{
		this.todateofbirth = value;
	}
	public ims.framework.utils.beans.DateBean getFromDateOfDeath()
	{
		return this.fromdateofdeath;
	}
	public void setFromDateOfDeath(ims.framework.utils.beans.DateBean value)
	{
		this.fromdateofdeath = value;
	}
	public ims.framework.utils.beans.DateBean getToDateOfDeath()
	{
		return this.todateofdeath;
	}
	public void setToDateOfDeath(ims.framework.utils.beans.DateBean value)
	{
		this.todateofdeath = value;
	}
	public ims.core.vo.beans.PDSAdvancedSearchResultVoBean[] getSearchResult()
	{
		return this.searchresult;
	}
	public void setSearchResult(ims.core.vo.beans.PDSAdvancedSearchResultVoBean[] value)
	{
		this.searchresult = value;
	}
	public ims.vo.RefVoBean getConvId()
	{
		return this.convid;
	}
	public void setConvId(ims.vo.RefVoBean value)
	{
		this.convid = value;
	}
	public ims.core.vo.beans.AddressVoBean getAddress()
	{
		return this.address;
	}
	public void setAddress(ims.core.vo.beans.AddressVoBean value)
	{
		this.address = value;
	}
	public String getGpPracticeCode()
	{
		return this.gppracticecode;
	}
	public void setGpPracticeCode(String value)
	{
		this.gppracticecode = value;
	}
	public String getSDSJobRoleCode()
	{
		return this.sdsjobrolecode;
	}
	public void setSDSJobRoleCode(String value)
	{
		this.sdsjobrolecode = value;
	}
	public String getPostcode()
	{
		return this.postcode;
	}
	public void setPostcode(String value)
	{
		this.postcode = value;
	}
	public String getMiddleName()
	{
		return this.middlename;
	}
	public void setMiddleName(String value)
	{
		this.middlename = value;
	}
	public ims.vo.LookupInstanceBean getDOBRangeUnit()
	{
		return this.dobrangeunit;
	}
	public void setDOBRangeUnit(ims.vo.LookupInstanceBean value)
	{
		this.dobrangeunit = value;
	}
	public ims.vo.LookupInstanceBean getDODRangeUnit()
	{
		return this.dodrangeunit;
	}
	public void setDODRangeUnit(ims.vo.LookupInstanceBean value)
	{
		this.dodrangeunit = value;
	}
	public Integer getDOBRangeValue()
	{
		return this.dobrangevalue;
	}
	public void setDOBRangeValue(Integer value)
	{
		this.dobrangevalue = value;
	}
	public Integer getDODRangeValue()
	{
		return this.dodrangevalue;
	}
	public void setDODRangeValue(Integer value)
	{
		this.dodrangevalue = value;
	}
	public ims.vo.LookupInstanceBean getDOBPartialSearchBy()
	{
		return this.dobpartialsearchby;
	}
	public void setDOBPartialSearchBy(ims.vo.LookupInstanceBean value)
	{
		this.dobpartialsearchby = value;
	}
	public ims.vo.LookupInstanceBean getDODPartialSearchBy()
	{
		return this.dodpartialsearchby;
	}
	public void setDODPartialSearchBy(ims.vo.LookupInstanceBean value)
	{
		this.dodpartialsearchby = value;
	}

	private Integer id;
	private int version;
	private String sdsroleprofileid;
	private String sdsuserid;
	private ims.vo.LookupInstanceBean pdsack;
	private ims.vo.LookupInstanceBean pdsackdetailtype;
	private Boolean active;
	private String comment;
	private ims.vo.LookupInstanceBean requesttype;
	private ims.framework.utils.beans.DateTimeBean requestdate;
	private ims.vo.LookupInstanceBean searchstatus;
	private ims.vo.LookupInstanceBean searchtype;
	private ims.vo.LookupInstanceBean historicdataflag;
	private ims.vo.LookupInstanceBean ignorehistoryindicator;
	private String nhsnumber;
	private String surname;
	private String forename;
	private ims.vo.LookupInstanceBean gender;
	private ims.framework.utils.beans.DateBean fromdateofbirth;
	private ims.framework.utils.beans.DateBean todateofbirth;
	private ims.framework.utils.beans.DateBean fromdateofdeath;
	private ims.framework.utils.beans.DateBean todateofdeath;
	private ims.core.vo.beans.PDSAdvancedSearchResultVoBean[] searchresult;
	private ims.vo.RefVoBean convid;
	private ims.core.vo.beans.AddressVoBean address;
	private String gppracticecode;
	private String sdsjobrolecode;
	private String postcode;
	private String middlename;
	private ims.vo.LookupInstanceBean dobrangeunit;
	private ims.vo.LookupInstanceBean dodrangeunit;
	private Integer dobrangevalue;
	private Integer dodrangevalue;
	private ims.vo.LookupInstanceBean dobpartialsearchby;
	private ims.vo.LookupInstanceBean dodpartialsearchby;
}
