/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/ocrr/vo/beans/OrderSpecimenVoBean.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 OrderSpecimenVoBean extends ims.vo.ValueObjectBean
{
	public OrderSpecimenVoBean()
	{
	}
	public OrderSpecimenVoBean(ims.ocrr.vo.OrderSpecimenVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.colldatetimeplacer = vo.getCollDateTimePlacer() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCollDateTimePlacer().getBean();
		this.collectingmos = vo.getCollectingMos() == null ? null : new ims.vo.RefVoBean(vo.getCollectingMos().getBoId(), vo.getCollectingMos().getBoVersion());
		this.ispatientcollect = vo.getIsPatientCollect();
		this.isawaitingcollection = vo.getIsAwaitingCollection();
		this.specimensource = vo.getSpecimenSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecimenSource().getBean();
		this.discipline = vo.getDiscipline() == null ? null : new ims.vo.RefVoBean(vo.getDiscipline().getBoId(), vo.getDiscipline().getBoVersion());
		if(vo.getInvestigations() != null)
		{
			this.investigations = new ims.vo.RefVoBean[vo.getInvestigations().size()];
			for(int investigations_i = 0; investigations_i < vo.getInvestigations().size(); investigations_i++)
			{
				this.investigations[investigations_i] = new ims.vo.RefVoBean(vo.getInvestigations().get(investigations_i).getBoId(),vo.getInvestigations().get(investigations_i).getBoVersion());
			}
		}
		this.order = vo.getOrder() == null ? null : new ims.vo.RefVoBean(vo.getOrder().getBoId(), vo.getOrder().getBoVersion());
		this.containers = vo.getContainers() == null ? null : vo.getContainers().getBeanCollection();
		this.instructionstocollector = vo.getInstructionsToCollector();
		this.collectorcomment = vo.getCollectorComment();
		this.sitecd = vo.getSiteCd() == null ? null : (ims.vo.LookupInstanceBean)vo.getSiteCd().getBean();
		this.requestedtype = vo.getRequestedType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRequestedType().getBean();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.specimenworklistitem = vo.getSpecimenWorklistItem() == null ? null : (ims.ocrr.vo.beans.SpecimenWorkListItemVoBean)vo.getSpecimenWorklistItem().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocrr.vo.OrderSpecimenVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.colldatetimeplacer = vo.getCollDateTimePlacer() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCollDateTimePlacer().getBean();
		this.collectingmos = vo.getCollectingMos() == null ? null : new ims.vo.RefVoBean(vo.getCollectingMos().getBoId(), vo.getCollectingMos().getBoVersion());
		this.ispatientcollect = vo.getIsPatientCollect();
		this.isawaitingcollection = vo.getIsAwaitingCollection();
		this.specimensource = vo.getSpecimenSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecimenSource().getBean();
		this.discipline = vo.getDiscipline() == null ? null : new ims.vo.RefVoBean(vo.getDiscipline().getBoId(), vo.getDiscipline().getBoVersion());
		if(vo.getInvestigations() != null)
		{
			this.investigations = new ims.vo.RefVoBean[vo.getInvestigations().size()];
			for(int investigations_i = 0; investigations_i < vo.getInvestigations().size(); investigations_i++)
			{
				this.investigations[investigations_i] = new ims.vo.RefVoBean(vo.getInvestigations().get(investigations_i).getBoId(),vo.getInvestigations().get(investigations_i).getBoVersion());
			}
		}
		this.order = vo.getOrder() == null ? null : new ims.vo.RefVoBean(vo.getOrder().getBoId(), vo.getOrder().getBoVersion());
		this.containers = vo.getContainers() == null ? null : vo.getContainers().getBeanCollection();
		this.instructionstocollector = vo.getInstructionsToCollector();
		this.collectorcomment = vo.getCollectorComment();
		this.sitecd = vo.getSiteCd() == null ? null : (ims.vo.LookupInstanceBean)vo.getSiteCd().getBean();
		this.requestedtype = vo.getRequestedType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRequestedType().getBean();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.specimenworklistitem = vo.getSpecimenWorklistItem() == null ? null : (ims.ocrr.vo.beans.SpecimenWorkListItemVoBean)vo.getSpecimenWorklistItem().getBean(map);
	}

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

	public ims.ocrr.vo.OrderSpecimenVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocrr.vo.OrderSpecimenVo vo = null;
		if(map != null)
			vo = (ims.ocrr.vo.OrderSpecimenVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocrr.vo.OrderSpecimenVo();
			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 getCollDateTimePlacer()
	{
		return this.colldatetimeplacer;
	}
	public void setCollDateTimePlacer(ims.framework.utils.beans.DateTimeBean value)
	{
		this.colldatetimeplacer = value;
	}
	public ims.vo.RefVoBean getCollectingMos()
	{
		return this.collectingmos;
	}
	public void setCollectingMos(ims.vo.RefVoBean value)
	{
		this.collectingmos = value;
	}
	public Boolean getIsPatientCollect()
	{
		return this.ispatientcollect;
	}
	public void setIsPatientCollect(Boolean value)
	{
		this.ispatientcollect = value;
	}
	public Boolean getIsAwaitingCollection()
	{
		return this.isawaitingcollection;
	}
	public void setIsAwaitingCollection(Boolean value)
	{
		this.isawaitingcollection = value;
	}
	public ims.vo.LookupInstanceBean getSpecimenSource()
	{
		return this.specimensource;
	}
	public void setSpecimenSource(ims.vo.LookupInstanceBean value)
	{
		this.specimensource = value;
	}
	public ims.vo.RefVoBean getDiscipline()
	{
		return this.discipline;
	}
	public void setDiscipline(ims.vo.RefVoBean value)
	{
		this.discipline = value;
	}
	public ims.vo.RefVoBean[] getInvestigations()
	{
		return this.investigations;
	}
	public void setInvestigations(ims.vo.RefVoBean[] value)
	{
		this.investigations = value;
	}
	public ims.vo.RefVoBean getOrder()
	{
		return this.order;
	}
	public void setOrder(ims.vo.RefVoBean value)
	{
		this.order = value;
	}
	public ims.ocrr.vo.beans.OrderSpecimenContainerVoBean[] getContainers()
	{
		return this.containers;
	}
	public void setContainers(ims.ocrr.vo.beans.OrderSpecimenContainerVoBean[] value)
	{
		this.containers = value;
	}
	public String getInstructionsToCollector()
	{
		return this.instructionstocollector;
	}
	public void setInstructionsToCollector(String value)
	{
		this.instructionstocollector = value;
	}
	public String getCollectorComment()
	{
		return this.collectorcomment;
	}
	public void setCollectorComment(String value)
	{
		this.collectorcomment = value;
	}
	public ims.vo.LookupInstanceBean getSiteCd()
	{
		return this.sitecd;
	}
	public void setSiteCd(ims.vo.LookupInstanceBean value)
	{
		this.sitecd = value;
	}
	public ims.vo.LookupInstanceBean getRequestedType()
	{
		return this.requestedtype;
	}
	public void setRequestedType(ims.vo.LookupInstanceBean value)
	{
		this.requestedtype = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.ocrr.vo.beans.SpecimenWorkListItemVoBean getSpecimenWorklistItem()
	{
		return this.specimenworklistitem;
	}
	public void setSpecimenWorklistItem(ims.ocrr.vo.beans.SpecimenWorkListItemVoBean value)
	{
		this.specimenworklistitem = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateTimeBean colldatetimeplacer;
	private ims.vo.RefVoBean collectingmos;
	private Boolean ispatientcollect;
	private Boolean isawaitingcollection;
	private ims.vo.LookupInstanceBean specimensource;
	private ims.vo.RefVoBean discipline;
	private ims.vo.RefVoBean[] investigations;
	private ims.vo.RefVoBean order;
	private ims.ocrr.vo.beans.OrderSpecimenContainerVoBean[] containers;
	private String instructionstocollector;
	private String collectorcomment;
	private ims.vo.LookupInstanceBean sitecd;
	private ims.vo.LookupInstanceBean requestedtype;
	private ims.vo.SysInfoBean sysinfo;
	private ims.ocrr.vo.beans.SpecimenWorkListItemVoBean specimenworklistitem;
}
