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

public class IfOrderInvestigationVoBean extends ims.vo.ValueObjectBean
{
	public IfOrderInvestigationVoBean()
	{
	}
	public IfOrderInvestigationVoBean(ims.ocs_if.vo.IfOrderInvestigationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.orderpriority = vo.getOrderPriority() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrderPriority().getBean();
		this.repdatetime = vo.getRepDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRepDateTime().getBean();
		this.reptimesupplied = vo.getRepTimeSupplied();
		this.displaydatetime = vo.getDisplayDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDisplayDateTime().getBean();
		this.displayflag = vo.getDisplayFlag() == null ? null : (ims.vo.LookupInstanceBean)vo.getDisplayFlag().getBean();
		this.wasordered = vo.getWasOrdered();
		this.resultstatus = vo.getResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultStatus().getBean();
		this.ordinvcurrentstatus = vo.getOrdInvCurrentStatus() == null ? null : (ims.ocs_if.vo.beans.IfOrderInvCurrentStatusVoBean)vo.getOrdInvCurrentStatus().getBean();
		this.fillerordnum = vo.getFillerOrdNum();
		this.specimen = vo.getSpecimen() == null ? null : vo.getSpecimen().getBeanCollection();
		this.appointmentdate = vo.getAppointmentDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAppointmentDate().getBean();
		this.reasonforstudy = vo.getReasonForStudy();
		this.investigation = vo.getInvestigation() == null ? null : (ims.ocs_if.vo.beans.IfInvestigationLiteVoBean)vo.getInvestigation().getBean();
		this.orderdetails = vo.getOrderDetails() == null ? null : new ims.vo.RefVoBean(vo.getOrderDetails().getBoId(), vo.getOrderDetails().getBoVersion());
		this.displaytimesupplied = vo.getDisplayTimeSupplied();
		this.ordinvseq = vo.getOrdInvSeq();
		this.examreqonafterdate = vo.getExamReqOnAfterDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExamReqOnAfterDate().getBean();
		this.entertheatredate = vo.getEnterTheatreDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEnterTheatreDate().getBean();
		this.startproceduredate = vo.getStartProcedureDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartProcedureDate().getBean();
		this.endproceduredate = vo.getEndProcedureDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEndProcedureDate().getBean();
		this.leaverecoverydate = vo.getLeaveRecoveryDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLeaveRecoveryDate().getBean();
		this.accessionnumber = vo.getAccessionNumber();
		this.wassecondarymatchingused = vo.getWasSecondaryMatchingUsed();
		this.resultspecimentype = vo.getResultSpecimenType() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultSpecimenType().getBean();
		this.resultdemographics = vo.getResultDemographics() == null ? null : (ims.ocrr.vo.beans.ResultDemographicsVoBean)vo.getResultDemographics().getBean();
		this.resultdetails = vo.getResultDetails() == null ? null : (ims.ocs_if.vo.beans.IfResultDetailsVoBean)vo.getResultDetails().getBean();
		this.expecteddatetime = vo.getExpectedDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getExpectedDateTime().getBean();
		this.reorderreason = vo.getReorderReason();
		this.resultsortdate = vo.getResultSortDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResultSortDate().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocs_if.vo.IfOrderInvestigationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.orderpriority = vo.getOrderPriority() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrderPriority().getBean();
		this.repdatetime = vo.getRepDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRepDateTime().getBean();
		this.reptimesupplied = vo.getRepTimeSupplied();
		this.displaydatetime = vo.getDisplayDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDisplayDateTime().getBean();
		this.displayflag = vo.getDisplayFlag() == null ? null : (ims.vo.LookupInstanceBean)vo.getDisplayFlag().getBean();
		this.wasordered = vo.getWasOrdered();
		this.resultstatus = vo.getResultStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultStatus().getBean();
		this.ordinvcurrentstatus = vo.getOrdInvCurrentStatus() == null ? null : (ims.ocs_if.vo.beans.IfOrderInvCurrentStatusVoBean)vo.getOrdInvCurrentStatus().getBean(map);
		this.fillerordnum = vo.getFillerOrdNum();
		this.specimen = vo.getSpecimen() == null ? null : vo.getSpecimen().getBeanCollection();
		this.appointmentdate = vo.getAppointmentDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAppointmentDate().getBean();
		this.reasonforstudy = vo.getReasonForStudy();
		this.investigation = vo.getInvestigation() == null ? null : (ims.ocs_if.vo.beans.IfInvestigationLiteVoBean)vo.getInvestigation().getBean(map);
		this.orderdetails = vo.getOrderDetails() == null ? null : new ims.vo.RefVoBean(vo.getOrderDetails().getBoId(), vo.getOrderDetails().getBoVersion());
		this.displaytimesupplied = vo.getDisplayTimeSupplied();
		this.ordinvseq = vo.getOrdInvSeq();
		this.examreqonafterdate = vo.getExamReqOnAfterDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExamReqOnAfterDate().getBean();
		this.entertheatredate = vo.getEnterTheatreDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEnterTheatreDate().getBean();
		this.startproceduredate = vo.getStartProcedureDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartProcedureDate().getBean();
		this.endproceduredate = vo.getEndProcedureDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEndProcedureDate().getBean();
		this.leaverecoverydate = vo.getLeaveRecoveryDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLeaveRecoveryDate().getBean();
		this.accessionnumber = vo.getAccessionNumber();
		this.wassecondarymatchingused = vo.getWasSecondaryMatchingUsed();
		this.resultspecimentype = vo.getResultSpecimenType() == null ? null : (ims.vo.LookupInstanceBean)vo.getResultSpecimenType().getBean();
		this.resultdemographics = vo.getResultDemographics() == null ? null : (ims.ocrr.vo.beans.ResultDemographicsVoBean)vo.getResultDemographics().getBean(map);
		this.resultdetails = vo.getResultDetails() == null ? null : (ims.ocs_if.vo.beans.IfResultDetailsVoBean)vo.getResultDetails().getBean(map);
		this.expecteddatetime = vo.getExpectedDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getExpectedDateTime().getBean();
		this.reorderreason = vo.getReorderReason();
		this.resultsortdate = vo.getResultSortDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResultSortDate().getBean();
	}

	public ims.ocs_if.vo.IfOrderInvestigationVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.ocs_if.vo.IfOrderInvestigationVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocs_if.vo.IfOrderInvestigationVo vo = null;
		if(map != null)
			vo = (ims.ocs_if.vo.IfOrderInvestigationVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocs_if.vo.IfOrderInvestigationVo();
			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.LookupInstanceBean getOrderPriority()
	{
		return this.orderpriority;
	}
	public void setOrderPriority(ims.vo.LookupInstanceBean value)
	{
		this.orderpriority = 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 getDisplayDateTime()
	{
		return this.displaydatetime;
	}
	public void setDisplayDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.displaydatetime = value;
	}
	public ims.vo.LookupInstanceBean getDisplayFlag()
	{
		return this.displayflag;
	}
	public void setDisplayFlag(ims.vo.LookupInstanceBean value)
	{
		this.displayflag = value;
	}
	public Boolean getWasOrdered()
	{
		return this.wasordered;
	}
	public void setWasOrdered(Boolean value)
	{
		this.wasordered = value;
	}
	public ims.vo.LookupInstanceBean getResultStatus()
	{
		return this.resultstatus;
	}
	public void setResultStatus(ims.vo.LookupInstanceBean value)
	{
		this.resultstatus = value;
	}
	public ims.ocs_if.vo.beans.IfOrderInvCurrentStatusVoBean getOrdInvCurrentStatus()
	{
		return this.ordinvcurrentstatus;
	}
	public void setOrdInvCurrentStatus(ims.ocs_if.vo.beans.IfOrderInvCurrentStatusVoBean value)
	{
		this.ordinvcurrentstatus = value;
	}
	public String getFillerOrdNum()
	{
		return this.fillerordnum;
	}
	public void setFillerOrdNum(String value)
	{
		this.fillerordnum = value;
	}
	public ims.ocs_if.vo.beans.IfOrderSpecimenVoBean[] getSpecimen()
	{
		return this.specimen;
	}
	public void setSpecimen(ims.ocs_if.vo.beans.IfOrderSpecimenVoBean[] value)
	{
		this.specimen = value;
	}
	public ims.framework.utils.beans.DateTimeBean getAppointmentDate()
	{
		return this.appointmentdate;
	}
	public void setAppointmentDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.appointmentdate = value;
	}
	public String getReasonForStudy()
	{
		return this.reasonforstudy;
	}
	public void setReasonForStudy(String value)
	{
		this.reasonforstudy = value;
	}
	public ims.ocs_if.vo.beans.IfInvestigationLiteVoBean getInvestigation()
	{
		return this.investigation;
	}
	public void setInvestigation(ims.ocs_if.vo.beans.IfInvestigationLiteVoBean value)
	{
		this.investigation = value;
	}
	public ims.vo.RefVoBean getOrderDetails()
	{
		return this.orderdetails;
	}
	public void setOrderDetails(ims.vo.RefVoBean value)
	{
		this.orderdetails = value;
	}
	public Boolean getDisplayTimeSupplied()
	{
		return this.displaytimesupplied;
	}
	public void setDisplayTimeSupplied(Boolean value)
	{
		this.displaytimesupplied = value;
	}
	public Integer getOrdInvSeq()
	{
		return this.ordinvseq;
	}
	public void setOrdInvSeq(Integer value)
	{
		this.ordinvseq = value;
	}
	public ims.framework.utils.beans.DateBean getExamReqOnAfterDate()
	{
		return this.examreqonafterdate;
	}
	public void setExamReqOnAfterDate(ims.framework.utils.beans.DateBean value)
	{
		this.examreqonafterdate = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEnterTheatreDate()
	{
		return this.entertheatredate;
	}
	public void setEnterTheatreDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.entertheatredate = value;
	}
	public ims.framework.utils.beans.DateTimeBean getStartProcedureDate()
	{
		return this.startproceduredate;
	}
	public void setStartProcedureDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.startproceduredate = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEndProcedureDate()
	{
		return this.endproceduredate;
	}
	public void setEndProcedureDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.endproceduredate = value;
	}
	public ims.framework.utils.beans.DateTimeBean getLeaveRecoveryDate()
	{
		return this.leaverecoverydate;
	}
	public void setLeaveRecoveryDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.leaverecoverydate = value;
	}
	public String getAccessionNumber()
	{
		return this.accessionnumber;
	}
	public void setAccessionNumber(String value)
	{
		this.accessionnumber = value;
	}
	public Boolean getWasSecondaryMatchingUsed()
	{
		return this.wassecondarymatchingused;
	}
	public void setWasSecondaryMatchingUsed(Boolean value)
	{
		this.wassecondarymatchingused = value;
	}
	public ims.vo.LookupInstanceBean getResultSpecimenType()
	{
		return this.resultspecimentype;
	}
	public void setResultSpecimenType(ims.vo.LookupInstanceBean value)
	{
		this.resultspecimentype = value;
	}
	public ims.ocrr.vo.beans.ResultDemographicsVoBean getResultDemographics()
	{
		return this.resultdemographics;
	}
	public void setResultDemographics(ims.ocrr.vo.beans.ResultDemographicsVoBean value)
	{
		this.resultdemographics = value;
	}
	public ims.ocs_if.vo.beans.IfResultDetailsVoBean getResultDetails()
	{
		return this.resultdetails;
	}
	public void setResultDetails(ims.ocs_if.vo.beans.IfResultDetailsVoBean value)
	{
		this.resultdetails = value;
	}
	public ims.framework.utils.beans.DateTimeBean getExpectedDateTime()
	{
		return this.expecteddatetime;
	}
	public void setExpectedDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.expecteddatetime = value;
	}
	public String getReorderReason()
	{
		return this.reorderreason;
	}
	public void setReorderReason(String value)
	{
		this.reorderreason = 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.vo.LookupInstanceBean orderpriority;
	private ims.framework.utils.beans.DateTimeBean repdatetime;
	private Boolean reptimesupplied;
	private ims.framework.utils.beans.DateTimeBean displaydatetime;
	private ims.vo.LookupInstanceBean displayflag;
	private Boolean wasordered;
	private ims.vo.LookupInstanceBean resultstatus;
	private ims.ocs_if.vo.beans.IfOrderInvCurrentStatusVoBean ordinvcurrentstatus;
	private String fillerordnum;
	private ims.ocs_if.vo.beans.IfOrderSpecimenVoBean[] specimen;
	private ims.framework.utils.beans.DateTimeBean appointmentdate;
	private String reasonforstudy;
	private ims.ocs_if.vo.beans.IfInvestigationLiteVoBean investigation;
	private ims.vo.RefVoBean orderdetails;
	private Boolean displaytimesupplied;
	private Integer ordinvseq;
	private ims.framework.utils.beans.DateBean examreqonafterdate;
	private ims.framework.utils.beans.DateTimeBean entertheatredate;
	private ims.framework.utils.beans.DateTimeBean startproceduredate;
	private ims.framework.utils.beans.DateTimeBean endproceduredate;
	private ims.framework.utils.beans.DateTimeBean leaverecoverydate;
	private String accessionnumber;
	private Boolean wassecondarymatchingused;
	private ims.vo.LookupInstanceBean resultspecimentype;
	private ims.ocrr.vo.beans.ResultDemographicsVoBean resultdemographics;
	private ims.ocs_if.vo.beans.IfResultDetailsVoBean resultdetails;
	private ims.framework.utils.beans.DateTimeBean expecteddatetime;
	private String reorderreason;
	private ims.framework.utils.beans.DateTimeBean resultsortdate;
}
