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

public class NewResultSearchListVoBean extends ims.vo.ValueObjectBean
{
	public NewResultSearchListVoBean()
	{
	}
	public NewResultSearchListVoBean(ims.ocrr.vo.NewResultSearchListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.repdatetime = vo.getRepDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRepDateTime().getBean();
		this.reptimesupplied = vo.getRepTimeSupplied();
		this.allocateddateforreview = vo.getAllocatedDateForReview() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAllocatedDateForReview().getBean();
		this.patientsurname = vo.getPatientSurname();
		this.patientforename = vo.getPatientForename();
		this.patientidentifier = vo.getPatientIdentifier();
		this.investigationname = vo.getInvestigationName();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.resultstatus = vo.getResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultStatus().getBean();
		this.abnormalresult = vo.getAbnormalResult();
		this.ordinvresultstatus = vo.getOrdInvResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrdInvResultStatus().getBean();
		this.discipline = vo.getDiscipline();
		this.locationname = vo.getLocationName();
		this.clinicianname = vo.getClinicianName();
		this.investigationeventtype = vo.getInvestigationEventType() == null ? null : (ims.vo.LookupInstanceBean)vo.getInvestigationEventType().getBean();
		this.orderdetails = vo.getOrderDetails() == null ? null : new ims.vo.RefVoBean(vo.getOrderDetails().getBoId(), vo.getOrderDetails().getBoVersion());
		this.service = vo.getService() == null ? null : new ims.vo.RefVoBean(vo.getService().getBoId(), vo.getService().getBoVersion());
		this.securitylevel = vo.getSecurityLevel() == null ? null : (ims.ocrr.vo.beans.SecurityLevelConfigVoBean)vo.getSecurityLevel().getBean();
		this.ordinvresultstatusreason = vo.getOrdInvResultStatusReason();
		this.allocatedforreviewsurname = vo.getAllocatedForReviewSurname();
		this.allocatedforreviewforename = vo.getAllocatedForReviewForename();
		this.ordinvstatuschangedatetime = vo.getOrdInvStatusChangeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getOrdInvStatusChangeDateTime().getBean();
		this.colfilldatetimesupplied = vo.getColFillDateTimeSupplied();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		if(vo.getSpecimen() != null)
		{
			this.specimen = new ims.vo.RefVoBean[vo.getSpecimen().size()];
			for(int specimen_i = 0; specimen_i < vo.getSpecimen().size(); specimen_i++)
			{
				this.specimen[specimen_i] = new ims.vo.RefVoBean(vo.getSpecimen().get(specimen_i).getBoId(),vo.getSpecimen().get(specimen_i).getBoVersion());
			}
		}
		this.hospitalnumber = vo.getHospitalNumber();
		this.nhsnumber = vo.getNHSNumber();
		this.resultsortdate = vo.getResultSortDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResultSortDate().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocrr.vo.NewResultSearchListVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.repdatetime = vo.getRepDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRepDateTime().getBean();
		this.reptimesupplied = vo.getRepTimeSupplied();
		this.allocateddateforreview = vo.getAllocatedDateForReview() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAllocatedDateForReview().getBean();
		this.patientsurname = vo.getPatientSurname();
		this.patientforename = vo.getPatientForename();
		this.patientidentifier = vo.getPatientIdentifier();
		this.investigationname = vo.getInvestigationName();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.resultstatus = vo.getResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultStatus().getBean();
		this.abnormalresult = vo.getAbnormalResult();
		this.ordinvresultstatus = vo.getOrdInvResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrdInvResultStatus().getBean();
		this.discipline = vo.getDiscipline();
		this.locationname = vo.getLocationName();
		this.clinicianname = vo.getClinicianName();
		this.investigationeventtype = vo.getInvestigationEventType() == null ? null : (ims.vo.LookupInstanceBean)vo.getInvestigationEventType().getBean();
		this.orderdetails = vo.getOrderDetails() == null ? null : new ims.vo.RefVoBean(vo.getOrderDetails().getBoId(), vo.getOrderDetails().getBoVersion());
		this.service = vo.getService() == null ? null : new ims.vo.RefVoBean(vo.getService().getBoId(), vo.getService().getBoVersion());
		this.securitylevel = vo.getSecurityLevel() == null ? null : (ims.ocrr.vo.beans.SecurityLevelConfigVoBean)vo.getSecurityLevel().getBean(map);
		this.ordinvresultstatusreason = vo.getOrdInvResultStatusReason();
		this.allocatedforreviewsurname = vo.getAllocatedForReviewSurname();
		this.allocatedforreviewforename = vo.getAllocatedForReviewForename();
		this.ordinvstatuschangedatetime = vo.getOrdInvStatusChangeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getOrdInvStatusChangeDateTime().getBean();
		this.colfilldatetimesupplied = vo.getColFillDateTimeSupplied();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		if(vo.getSpecimen() != null)
		{
			this.specimen = new ims.vo.RefVoBean[vo.getSpecimen().size()];
			for(int specimen_i = 0; specimen_i < vo.getSpecimen().size(); specimen_i++)
			{
				this.specimen[specimen_i] = new ims.vo.RefVoBean(vo.getSpecimen().get(specimen_i).getBoId(),vo.getSpecimen().get(specimen_i).getBoVersion());
			}
		}
		this.hospitalnumber = vo.getHospitalNumber();
		this.nhsnumber = vo.getNHSNumber();
		this.resultsortdate = vo.getResultSortDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResultSortDate().getBean();
	}

	public ims.ocrr.vo.NewResultSearchListVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.ocrr.vo.NewResultSearchListVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocrr.vo.NewResultSearchListVo vo = null;
		if(map != null)
			vo = (ims.ocrr.vo.NewResultSearchListVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocrr.vo.NewResultSearchListVo();
			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.framework.utils.beans.DateTimeBean getRepDateTime()
	{
		return this.repdatetime;
	}
	public void setRepDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.repdatetime = value;
	}
	public Boolean getRepTimeSupplied()
	{
		return this.reptimesupplied;
	}
	public void setRepTimeSupplied(Boolean value)
	{
		this.reptimesupplied = value;
	}
	public ims.framework.utils.beans.DateTimeBean getAllocatedDateForReview()
	{
		return this.allocateddateforreview;
	}
	public void setAllocatedDateForReview(ims.framework.utils.beans.DateTimeBean value)
	{
		this.allocateddateforreview = value;
	}
	public String getPatientSurname()
	{
		return this.patientsurname;
	}
	public void setPatientSurname(String value)
	{
		this.patientsurname = value;
	}
	public String getPatientForename()
	{
		return this.patientforename;
	}
	public void setPatientForename(String value)
	{
		this.patientforename = value;
	}
	public String getPatientIdentifier()
	{
		return this.patientidentifier;
	}
	public void setPatientIdentifier(String value)
	{
		this.patientidentifier = value;
	}
	public String getInvestigationName()
	{
		return this.investigationname;
	}
	public void setInvestigationName(String value)
	{
		this.investigationname = value;
	}
	public ims.vo.LookupInstanceBean getCategory()
	{
		return this.category;
	}
	public void setCategory(ims.vo.LookupInstanceBean value)
	{
		this.category = value;
	}
	public ims.vo.LookupInstanceBean getResultStatus()
	{
		return this.resultstatus;
	}
	public void setResultStatus(ims.vo.LookupInstanceBean value)
	{
		this.resultstatus = value;
	}
	public Boolean getAbnormalResult()
	{
		return this.abnormalresult;
	}
	public void setAbnormalResult(Boolean value)
	{
		this.abnormalresult = value;
	}
	public ims.vo.LookupInstanceBean getOrdInvResultStatus()
	{
		return this.ordinvresultstatus;
	}
	public void setOrdInvResultStatus(ims.vo.LookupInstanceBean value)
	{
		this.ordinvresultstatus = value;
	}
	public String getDiscipline()
	{
		return this.discipline;
	}
	public void setDiscipline(String value)
	{
		this.discipline = value;
	}
	public String getLocationName()
	{
		return this.locationname;
	}
	public void setLocationName(String value)
	{
		this.locationname = value;
	}
	public String getClinicianName()
	{
		return this.clinicianname;
	}
	public void setClinicianName(String value)
	{
		this.clinicianname = value;
	}
	public ims.vo.LookupInstanceBean getInvestigationEventType()
	{
		return this.investigationeventtype;
	}
	public void setInvestigationEventType(ims.vo.LookupInstanceBean value)
	{
		this.investigationeventtype = value;
	}
	public ims.vo.RefVoBean getOrderDetails()
	{
		return this.orderdetails;
	}
	public void setOrderDetails(ims.vo.RefVoBean value)
	{
		this.orderdetails = value;
	}
	public ims.vo.RefVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.vo.RefVoBean value)
	{
		this.service = value;
	}
	public ims.ocrr.vo.beans.SecurityLevelConfigVoBean getSecurityLevel()
	{
		return this.securitylevel;
	}
	public void setSecurityLevel(ims.ocrr.vo.beans.SecurityLevelConfigVoBean value)
	{
		this.securitylevel = value;
	}
	public String getOrdInvResultStatusReason()
	{
		return this.ordinvresultstatusreason;
	}
	public void setOrdInvResultStatusReason(String value)
	{
		this.ordinvresultstatusreason = value;
	}
	public String getAllocatedForReviewSurname()
	{
		return this.allocatedforreviewsurname;
	}
	public void setAllocatedForReviewSurname(String value)
	{
		this.allocatedforreviewsurname = value;
	}
	public String getAllocatedForReviewForename()
	{
		return this.allocatedforreviewforename;
	}
	public void setAllocatedForReviewForename(String value)
	{
		this.allocatedforreviewforename = value;
	}
	public ims.framework.utils.beans.DateTimeBean getOrdInvStatusChangeDateTime()
	{
		return this.ordinvstatuschangedatetime;
	}
	public void setOrdInvStatusChangeDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.ordinvstatuschangedatetime = value;
	}
	public Boolean getColFillDateTimeSupplied()
	{
		return this.colfilldatetimesupplied;
	}
	public void setColFillDateTimeSupplied(Boolean value)
	{
		this.colfilldatetimesupplied = value;
	}
	public ims.vo.RefVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}
	public ims.vo.RefVoBean[] getSpecimen()
	{
		return this.specimen;
	}
	public void setSpecimen(ims.vo.RefVoBean[] value)
	{
		this.specimen = value;
	}
	public String getHospitalNumber()
	{
		return this.hospitalnumber;
	}
	public void setHospitalNumber(String value)
	{
		this.hospitalnumber = value;
	}
	public String getNHSNumber()
	{
		return this.nhsnumber;
	}
	public void setNHSNumber(String value)
	{
		this.nhsnumber = value;
	}
	public ims.framework.utils.beans.DateTimeBean getResultSortDate()
	{
		return this.resultsortdate;
	}
	public void setResultSortDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.resultsortdate = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateTimeBean repdatetime;
	private Boolean reptimesupplied;
	private ims.framework.utils.beans.DateTimeBean allocateddateforreview;
	private String patientsurname;
	private String patientforename;
	private String patientidentifier;
	private String investigationname;
	private ims.vo.LookupInstanceBean category;
	private ims.vo.LookupInstanceBean resultstatus;
	private Boolean abnormalresult;
	private ims.vo.LookupInstanceBean ordinvresultstatus;
	private String discipline;
	private String locationname;
	private String clinicianname;
	private ims.vo.LookupInstanceBean investigationeventtype;
	private ims.vo.RefVoBean orderdetails;
	private ims.vo.RefVoBean service;
	private ims.ocrr.vo.beans.SecurityLevelConfigVoBean securitylevel;
	private String ordinvresultstatusreason;
	private String allocatedforreviewsurname;
	private String allocatedforreviewforename;
	private ims.framework.utils.beans.DateTimeBean ordinvstatuschangedatetime;
	private Boolean colfilldatetimesupplied;
	private ims.vo.RefVoBean patient;
	private ims.vo.RefVoBean[] specimen;
	private String hospitalnumber;
	private String nhsnumber;
	private ims.framework.utils.beans.DateTimeBean resultsortdate;
}
