/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/ocs_if/vo/beans/IfOrderMessageVoBean.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 IfOrderMessageVoBean extends ims.vo.ValueObjectBean
{
	public IfOrderMessageVoBean()
	{
	}
	public IfOrderMessageVoBean(ims.ocs_if.vo.IfOrderMessageVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.orderdetails = vo.getOrderDetails() == null ? null : (ims.ocs_if.vo.beans.IfOcsOrderShortVoBean)vo.getOrderDetails().getBean();
		this.investigations = vo.getInvestigations() == null ? null : vo.getInvestigations().getBeanCollection();
		this.messagestatus = vo.getMessageStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getMessageStatus().getBean();
		this.providersystem = vo.getProviderSystem() == null ? null : (ims.ocrr.vo.beans.ProviderSystemVoBean)vo.getProviderSystem().getBean();
		this.placerordnum = vo.getPlacerOrdNum();
		this.hl7message = vo.getHL7Message();
		this.ordercategory = vo.getOrderCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrderCategory().getBean();
		this.failuremessage = vo.getFailureMessage();
		this.fillernumber = vo.getFillerNumber();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocs_if.vo.IfOrderMessageVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.orderdetails = vo.getOrderDetails() == null ? null : (ims.ocs_if.vo.beans.IfOcsOrderShortVoBean)vo.getOrderDetails().getBean(map);
		this.investigations = vo.getInvestigations() == null ? null : vo.getInvestigations().getBeanCollection();
		this.messagestatus = vo.getMessageStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getMessageStatus().getBean();
		this.providersystem = vo.getProviderSystem() == null ? null : (ims.ocrr.vo.beans.ProviderSystemVoBean)vo.getProviderSystem().getBean(map);
		this.placerordnum = vo.getPlacerOrdNum();
		this.hl7message = vo.getHL7Message();
		this.ordercategory = vo.getOrderCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getOrderCategory().getBean();
		this.failuremessage = vo.getFailureMessage();
		this.fillernumber = vo.getFillerNumber();
	}

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

	public ims.ocs_if.vo.IfOrderMessageVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocs_if.vo.IfOrderMessageVo vo = null;
		if(map != null)
			vo = (ims.ocs_if.vo.IfOrderMessageVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocs_if.vo.IfOrderMessageVo();
			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.ocs_if.vo.beans.IfOcsOrderShortVoBean getOrderDetails()
	{
		return this.orderdetails;
	}
	public void setOrderDetails(ims.ocs_if.vo.beans.IfOcsOrderShortVoBean value)
	{
		this.orderdetails = value;
	}
	public ims.ocs_if.vo.beans.IfOrderInvestigationVoBean[] getInvestigations()
	{
		return this.investigations;
	}
	public void setInvestigations(ims.ocs_if.vo.beans.IfOrderInvestigationVoBean[] value)
	{
		this.investigations = value;
	}
	public ims.vo.LookupInstanceBean getMessageStatus()
	{
		return this.messagestatus;
	}
	public void setMessageStatus(ims.vo.LookupInstanceBean value)
	{
		this.messagestatus = value;
	}
	public ims.ocrr.vo.beans.ProviderSystemVoBean getProviderSystem()
	{
		return this.providersystem;
	}
	public void setProviderSystem(ims.ocrr.vo.beans.ProviderSystemVoBean value)
	{
		this.providersystem = value;
	}
	public String getPlacerOrdNum()
	{
		return this.placerordnum;
	}
	public void setPlacerOrdNum(String value)
	{
		this.placerordnum = value;
	}
	public String getHL7Message()
	{
		return this.hl7message;
	}
	public void setHL7Message(String value)
	{
		this.hl7message = value;
	}
	public ims.vo.LookupInstanceBean getOrderCategory()
	{
		return this.ordercategory;
	}
	public void setOrderCategory(ims.vo.LookupInstanceBean value)
	{
		this.ordercategory = value;
	}
	public String getFailureMessage()
	{
		return this.failuremessage;
	}
	public void setFailureMessage(String value)
	{
		this.failuremessage = value;
	}
	public String getFillerNumber()
	{
		return this.fillernumber;
	}
	public void setFillerNumber(String value)
	{
		this.fillernumber = value;
	}

	private Integer id;
	private int version;
	private ims.ocs_if.vo.beans.IfOcsOrderShortVoBean orderdetails;
	private ims.ocs_if.vo.beans.IfOrderInvestigationVoBean[] investigations;
	private ims.vo.LookupInstanceBean messagestatus;
	private ims.ocrr.vo.beans.ProviderSystemVoBean providersystem;
	private String placerordnum;
	private String hl7message;
	private ims.vo.LookupInstanceBean ordercategory;
	private String failuremessage;
	private String fillernumber;
}
