/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/ocrr/vo/beans/ProviderSystemVoBean.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 ProviderSystemVoBean extends ims.vo.ValueObjectBean
{
	public ProviderSystemVoBean()
	{
	}
	public ProviderSystemVoBean(ims.ocrr.vo.ProviderSystemVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.systemname = vo.getSystemName();
		this.description = vo.getDescription();
		this.ipaddress = vo.getIPAddress();
		this.ipport = vo.getIPPort();
		this.hl7application = vo.getHl7Application();
		this.codesystem = vo.getCodeSystem() == null ? null : (ims.vo.LookupInstanceBean)vo.getCodeSystem().getBean();
		this.idtypecomponent = vo.getIdtypeComponent();
		this.primarypatientid = vo.getPrimaryPatientId() == null ? null : (ims.vo.LookupInstanceBean)vo.getPrimaryPatientId().getBean();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.configitems = vo.getConfigItems() == null ? null : vo.getConfigItems().getBeanCollection();
		this.sendreferralletter = vo.getSendReferralLetter();
		this.sendquestionnaire = vo.getSendQuestionnaire();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocrr.vo.ProviderSystemVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.systemname = vo.getSystemName();
		this.description = vo.getDescription();
		this.ipaddress = vo.getIPAddress();
		this.ipport = vo.getIPPort();
		this.hl7application = vo.getHl7Application();
		this.codesystem = vo.getCodeSystem() == null ? null : (ims.vo.LookupInstanceBean)vo.getCodeSystem().getBean();
		this.idtypecomponent = vo.getIdtypeComponent();
		this.primarypatientid = vo.getPrimaryPatientId() == null ? null : (ims.vo.LookupInstanceBean)vo.getPrimaryPatientId().getBean();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.configitems = vo.getConfigItems() == null ? null : vo.getConfigItems().getBeanCollection();
		this.sendreferralletter = vo.getSendReferralLetter();
		this.sendquestionnaire = vo.getSendQuestionnaire();
	}

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

	public ims.ocrr.vo.ProviderSystemVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocrr.vo.ProviderSystemVo vo = null;
		if(map != null)
			vo = (ims.ocrr.vo.ProviderSystemVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocrr.vo.ProviderSystemVo();
			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 String getSystemName()
	{
		return this.systemname;
	}
	public void setSystemName(String value)
	{
		this.systemname = value;
	}
	public String getDescription()
	{
		return this.description;
	}
	public void setDescription(String value)
	{
		this.description = value;
	}
	public String getIPAddress()
	{
		return this.ipaddress;
	}
	public void setIPAddress(String value)
	{
		this.ipaddress = value;
	}
	public Integer getIPPort()
	{
		return this.ipport;
	}
	public void setIPPort(Integer value)
	{
		this.ipport = value;
	}
	public String getHl7Application()
	{
		return this.hl7application;
	}
	public void setHl7Application(String value)
	{
		this.hl7application = value;
	}
	public ims.vo.LookupInstanceBean getCodeSystem()
	{
		return this.codesystem;
	}
	public void setCodeSystem(ims.vo.LookupInstanceBean value)
	{
		this.codesystem = value;
	}
	public Integer getIdtypeComponent()
	{
		return this.idtypecomponent;
	}
	public void setIdtypeComponent(Integer value)
	{
		this.idtypecomponent = value;
	}
	public ims.vo.LookupInstanceBean getPrimaryPatientId()
	{
		return this.primarypatientid;
	}
	public void setPrimaryPatientId(ims.vo.LookupInstanceBean value)
	{
		this.primarypatientid = value;
	}
	public ims.vo.LookupInstanceBean getCategory()
	{
		return this.category;
	}
	public void setCategory(ims.vo.LookupInstanceBean value)
	{
		this.category = value;
	}
	public ims.admin.vo.beans.ConfigPropertyVoBean[] getConfigItems()
	{
		return this.configitems;
	}
	public void setConfigItems(ims.admin.vo.beans.ConfigPropertyVoBean[] value)
	{
		this.configitems = value;
	}
	public Boolean getSendReferralLetter()
	{
		return this.sendreferralletter;
	}
	public void setSendReferralLetter(Boolean value)
	{
		this.sendreferralletter = value;
	}
	public Boolean getSendQuestionnaire()
	{
		return this.sendquestionnaire;
	}
	public void setSendQuestionnaire(Boolean value)
	{
		this.sendquestionnaire = value;
	}

	private Integer id;
	private int version;
	private String systemname;
	private String description;
	private String ipaddress;
	private Integer ipport;
	private String hl7application;
	private ims.vo.LookupInstanceBean codesystem;
	private Integer idtypecomponent;
	private ims.vo.LookupInstanceBean primarypatientid;
	private ims.vo.LookupInstanceBean category;
	private ims.admin.vo.beans.ConfigPropertyVoBean[] configitems;
	private Boolean sendreferralletter;
	private Boolean sendquestionnaire;
}
