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

public class ClientLiteVoBean extends ims.vo.ValueObjectBean
{
	public ClientLiteVoBean()
	{
	}
	public ClientLiteVoBean(ims.pci.vo.ClientLiteVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.name = vo.getName() == null ? null : (ims.core.vo.beans.PersonNameBean)vo.getName().getBean();
		this.address = vo.getAddress() == null ? null : (ims.core.vo.beans.PersonAddressBean)vo.getAddress().getBean();
		this.sex = vo.getSex() == null ? null : (ims.vo.LookupInstanceBean)vo.getSex().getBean();
		this.dob = vo.getDob() == null ? null : (ims.framework.utils.beans.PartialDateBean)vo.getDob().getBean();
		this.dod = vo.getDod() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDod().getBean();
		this.dodsource = vo.getDodSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getDodSource().getBean();
		this.nationality = vo.getNationality() == null ? null : (ims.vo.LookupInstanceBean)vo.getNationality().getBean();
		this.ethnicorigin = vo.getEthnicOrigin() == null ? null : (ims.vo.LookupInstanceBean)vo.getEthnicOrigin().getBean();
		this.religion = vo.getReligion() == null ? null : (ims.vo.LookupInstanceBean)vo.getReligion().getBean();
		this.language = vo.getLanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguage().getBean();
		this.occupation = vo.getOccupation() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupation().getBean();
		this.maritalstatus = vo.getMaritalStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getMaritalStatus().getBean();
		this.isactive = vo.getIsActive();
		this.isconfidential = vo.getIsConfidential();
		this.sourceofinformation = vo.getSourceOfInformation() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfInformation().getBean();
		this.ischild = vo.getIsChild();
		this.gp = vo.getGp() == null ? null : (ims.core.vo.beans.GpLiteWithNameVoBean)vo.getGp().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.pci.vo.ClientLiteVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.name = vo.getName() == null ? null : (ims.core.vo.beans.PersonNameBean)vo.getName().getBean(map);
		this.address = vo.getAddress() == null ? null : (ims.core.vo.beans.PersonAddressBean)vo.getAddress().getBean(map);
		this.sex = vo.getSex() == null ? null : (ims.vo.LookupInstanceBean)vo.getSex().getBean();
		this.dob = vo.getDob() == null ? null : (ims.framework.utils.beans.PartialDateBean)vo.getDob().getBean();
		this.dod = vo.getDod() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDod().getBean();
		this.dodsource = vo.getDodSource() == null ? null : (ims.vo.LookupInstanceBean)vo.getDodSource().getBean();
		this.nationality = vo.getNationality() == null ? null : (ims.vo.LookupInstanceBean)vo.getNationality().getBean();
		this.ethnicorigin = vo.getEthnicOrigin() == null ? null : (ims.vo.LookupInstanceBean)vo.getEthnicOrigin().getBean();
		this.religion = vo.getReligion() == null ? null : (ims.vo.LookupInstanceBean)vo.getReligion().getBean();
		this.language = vo.getLanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguage().getBean();
		this.occupation = vo.getOccupation() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupation().getBean();
		this.maritalstatus = vo.getMaritalStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getMaritalStatus().getBean();
		this.isactive = vo.getIsActive();
		this.isconfidential = vo.getIsConfidential();
		this.sourceofinformation = vo.getSourceOfInformation() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfInformation().getBean();
		this.ischild = vo.getIsChild();
		this.gp = vo.getGp() == null ? null : (ims.core.vo.beans.GpLiteWithNameVoBean)vo.getGp().getBean(map);
	}

	public ims.pci.vo.ClientLiteVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.pci.vo.ClientLiteVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.pci.vo.ClientLiteVo vo = null;
		if(map != null)
			vo = (ims.pci.vo.ClientLiteVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.pci.vo.ClientLiteVo();
			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.core.vo.beans.PersonNameBean getName()
	{
		return this.name;
	}
	public void setName(ims.core.vo.beans.PersonNameBean value)
	{
		this.name = value;
	}
	public ims.core.vo.beans.PersonAddressBean getAddress()
	{
		return this.address;
	}
	public void setAddress(ims.core.vo.beans.PersonAddressBean value)
	{
		this.address = value;
	}
	public ims.vo.LookupInstanceBean getSex()
	{
		return this.sex;
	}
	public void setSex(ims.vo.LookupInstanceBean value)
	{
		this.sex = value;
	}
	public ims.framework.utils.beans.PartialDateBean getDob()
	{
		return this.dob;
	}
	public void setDob(ims.framework.utils.beans.PartialDateBean value)
	{
		this.dob = value;
	}
	public ims.framework.utils.beans.DateBean getDod()
	{
		return this.dod;
	}
	public void setDod(ims.framework.utils.beans.DateBean value)
	{
		this.dod = value;
	}
	public ims.vo.LookupInstanceBean getDodSource()
	{
		return this.dodsource;
	}
	public void setDodSource(ims.vo.LookupInstanceBean value)
	{
		this.dodsource = value;
	}
	public ims.vo.LookupInstanceBean getNationality()
	{
		return this.nationality;
	}
	public void setNationality(ims.vo.LookupInstanceBean value)
	{
		this.nationality = value;
	}
	public ims.vo.LookupInstanceBean getEthnicOrigin()
	{
		return this.ethnicorigin;
	}
	public void setEthnicOrigin(ims.vo.LookupInstanceBean value)
	{
		this.ethnicorigin = value;
	}
	public ims.vo.LookupInstanceBean getReligion()
	{
		return this.religion;
	}
	public void setReligion(ims.vo.LookupInstanceBean value)
	{
		this.religion = value;
	}
	public ims.vo.LookupInstanceBean getLanguage()
	{
		return this.language;
	}
	public void setLanguage(ims.vo.LookupInstanceBean value)
	{
		this.language = value;
	}
	public ims.vo.LookupInstanceBean getOccupation()
	{
		return this.occupation;
	}
	public void setOccupation(ims.vo.LookupInstanceBean value)
	{
		this.occupation = value;
	}
	public ims.vo.LookupInstanceBean getMaritalStatus()
	{
		return this.maritalstatus;
	}
	public void setMaritalStatus(ims.vo.LookupInstanceBean value)
	{
		this.maritalstatus = value;
	}
	public Boolean getIsActive()
	{
		return this.isactive;
	}
	public void setIsActive(Boolean value)
	{
		this.isactive = value;
	}
	public Boolean getIsConfidential()
	{
		return this.isconfidential;
	}
	public void setIsConfidential(Boolean value)
	{
		this.isconfidential = value;
	}
	public ims.vo.LookupInstanceBean getSourceOfInformation()
	{
		return this.sourceofinformation;
	}
	public void setSourceOfInformation(ims.vo.LookupInstanceBean value)
	{
		this.sourceofinformation = value;
	}
	public Boolean getIsChild()
	{
		return this.ischild;
	}
	public void setIsChild(Boolean value)
	{
		this.ischild = value;
	}
	public ims.core.vo.beans.GpLiteWithNameVoBean getGp()
	{
		return this.gp;
	}
	public void setGp(ims.core.vo.beans.GpLiteWithNameVoBean value)
	{
		this.gp = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PersonNameBean name;
	private ims.core.vo.beans.PersonAddressBean address;
	private ims.vo.LookupInstanceBean sex;
	private ims.framework.utils.beans.PartialDateBean dob;
	private ims.framework.utils.beans.DateBean dod;
	private ims.vo.LookupInstanceBean dodsource;
	private ims.vo.LookupInstanceBean nationality;
	private ims.vo.LookupInstanceBean ethnicorigin;
	private ims.vo.LookupInstanceBean religion;
	private ims.vo.LookupInstanceBean language;
	private ims.vo.LookupInstanceBean occupation;
	private ims.vo.LookupInstanceBean maritalstatus;
	private Boolean isactive;
	private Boolean isconfidential;
	private ims.vo.LookupInstanceBean sourceofinformation;
	private Boolean ischild;
	private ims.core.vo.beans.GpLiteWithNameVoBean gp;
}
