/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/IPandOPSearchCriteriaVoBean.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 IPandOPSearchCriteriaVoBean extends ims.vo.ValueObjectBean
{
	public IPandOPSearchCriteriaVoBean()
	{
	}
	public IPandOPSearchCriteriaVoBean(ims.core.vo.IPandOPSearchCriteriaVo vo)
	{
		this.ward = vo.getWard() == null ? null : new ims.vo.RefVoBean(vo.getWard().getBoId(), vo.getWard().getBoVersion());
		// Interface field type not supported.
		this.hcpdiscipline = vo.getHcpDiscipline() == null ? null : (ims.vo.LookupInstanceBean)vo.getHcpDiscipline().getBean();
		this.hospital = vo.getHospital() == null ? null : new ims.vo.RefVoBean(vo.getHospital().getBoId(), vo.getHospital().getBoVersion());
		this.date = vo.getDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDate().getBean();
		this.clinic = vo.getClinic() == null ? null : new ims.vo.RefVoBean(vo.getClinic().getBoId(), vo.getClinic().getBoVersion());
		this.wastimeron = vo.getWasTimerOn();
		this.apptoutcome = vo.getApptOutcome() == null ? null : (ims.vo.LookupInstanceBean)vo.getApptOutcome().getBean();
		this.appointmentaction = vo.getAppointmentAction() == null ? null : (ims.vo.LookupInstanceBean)vo.getAppointmentAction().getBean();
		this.complete = vo.getComplete();
		this.apptdatefrom = vo.getApptDateFrom() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDateFrom().getBean();
		this.apptdateto = vo.getApptDateTo() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDateTo().getBean();
		this.listowners = vo.getListOwners() == null ? null : vo.getListOwners().getBeanCollection();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean();
		this.listtype = vo.getListType() == null ? null : (ims.vo.LookupInstanceBean)vo.getListType().getBean();
		this.outpatientlocation = vo.getOutPatientLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getOutPatientLocation().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.IPandOPSearchCriteriaVo vo)
	{
		this.ward = vo.getWard() == null ? null : new ims.vo.RefVoBean(vo.getWard().getBoId(), vo.getWard().getBoVersion());
		// Interface field type not supported.
		this.hcpdiscipline = vo.getHcpDiscipline() == null ? null : (ims.vo.LookupInstanceBean)vo.getHcpDiscipline().getBean();
		this.hospital = vo.getHospital() == null ? null : new ims.vo.RefVoBean(vo.getHospital().getBoId(), vo.getHospital().getBoVersion());
		this.date = vo.getDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDate().getBean();
		this.clinic = vo.getClinic() == null ? null : new ims.vo.RefVoBean(vo.getClinic().getBoId(), vo.getClinic().getBoVersion());
		this.wastimeron = vo.getWasTimerOn();
		this.apptoutcome = vo.getApptOutcome() == null ? null : (ims.vo.LookupInstanceBean)vo.getApptOutcome().getBean();
		this.appointmentaction = vo.getAppointmentAction() == null ? null : (ims.vo.LookupInstanceBean)vo.getAppointmentAction().getBean();
		this.complete = vo.getComplete();
		this.apptdatefrom = vo.getApptDateFrom() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDateFrom().getBean();
		this.apptdateto = vo.getApptDateTo() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDateTo().getBean();
		this.listowners = vo.getListOwners() == null ? null : vo.getListOwners().getBeanCollection();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean(map);
		this.listtype = vo.getListType() == null ? null : (ims.vo.LookupInstanceBean)vo.getListType().getBean();
		this.outpatientlocation = vo.getOutPatientLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getOutPatientLocation().getBean(map);
	}

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

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

	public ims.vo.RefVoBean getWard()
	{
		return this.ward;
	}
	public void setWard(ims.vo.RefVoBean value)
	{
		this.ward = value;
	}
	public ims.vo.LookupInstanceBean getHcpDiscipline()
	{
		return this.hcpdiscipline;
	}
	public void setHcpDiscipline(ims.vo.LookupInstanceBean value)
	{
		this.hcpdiscipline = value;
	}
	public ims.vo.RefVoBean getHospital()
	{
		return this.hospital;
	}
	public void setHospital(ims.vo.RefVoBean value)
	{
		this.hospital = value;
	}
	public ims.framework.utils.beans.DateBean getDate()
	{
		return this.date;
	}
	public void setDate(ims.framework.utils.beans.DateBean value)
	{
		this.date = value;
	}
	public ims.vo.RefVoBean getClinic()
	{
		return this.clinic;
	}
	public void setClinic(ims.vo.RefVoBean value)
	{
		this.clinic = value;
	}
	public Boolean getWasTimerOn()
	{
		return this.wastimeron;
	}
	public void setWasTimerOn(Boolean value)
	{
		this.wastimeron = value;
	}
	public ims.vo.LookupInstanceBean getApptOutcome()
	{
		return this.apptoutcome;
	}
	public void setApptOutcome(ims.vo.LookupInstanceBean value)
	{
		this.apptoutcome = value;
	}
	public ims.vo.LookupInstanceBean getAppointmentAction()
	{
		return this.appointmentaction;
	}
	public void setAppointmentAction(ims.vo.LookupInstanceBean value)
	{
		this.appointmentaction = value;
	}
	public Boolean getComplete()
	{
		return this.complete;
	}
	public void setComplete(Boolean value)
	{
		this.complete = value;
	}
	public ims.framework.utils.beans.DateBean getApptDateFrom()
	{
		return this.apptdatefrom;
	}
	public void setApptDateFrom(ims.framework.utils.beans.DateBean value)
	{
		this.apptdatefrom = value;
	}
	public ims.framework.utils.beans.DateBean getApptDateTo()
	{
		return this.apptdateto;
	}
	public void setApptDateTo(ims.framework.utils.beans.DateBean value)
	{
		this.apptdateto = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean[] getListOwners()
	{
		return this.listowners;
	}
	public void setListOwners(ims.core.vo.beans.HcpLiteVoBean[] value)
	{
		this.listowners = value;
	}
	public ims.core.vo.beans.ServiceLiteVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.core.vo.beans.ServiceLiteVoBean value)
	{
		this.service = value;
	}
	public ims.vo.LookupInstanceBean getListType()
	{
		return this.listtype;
	}
	public void setListType(ims.vo.LookupInstanceBean value)
	{
		this.listtype = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getOutPatientLocation()
	{
		return this.outpatientlocation;
	}
	public void setOutPatientLocation(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.outpatientlocation = value;
	}

	private ims.vo.RefVoBean ward;
	private ims.vo.LookupInstanceBean hcpdiscipline;
	private ims.vo.RefVoBean hospital;
	private ims.framework.utils.beans.DateBean date;
	private ims.vo.RefVoBean clinic;
	private Boolean wastimeron;
	private ims.vo.LookupInstanceBean apptoutcome;
	private ims.vo.LookupInstanceBean appointmentaction;
	private Boolean complete;
	private ims.framework.utils.beans.DateBean apptdatefrom;
	private ims.framework.utils.beans.DateBean apptdateto;
	private ims.core.vo.beans.HcpLiteVoBean[] listowners;
	private ims.core.vo.beans.ServiceLiteVoBean service;
	private ims.vo.LookupInstanceBean listtype;
	private ims.core.vo.beans.LocationLiteVoBean outpatientlocation;
}
