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

public class NextOfKinBean extends ims.vo.ValueObjectBean
{
	public NextOfKinBean()
	{
	}
	public NextOfKinBean(ims.core.vo.NextOfKin 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.relationship = vo.getRelationship() == null ? null : (ims.vo.LookupInstanceBean)vo.getRelationship().getBean();
		this.commchannels = vo.getCommChannels() == null ? null : vo.getCommChannels().getBeanCollection();
		this.pdsupdatemode = vo.getPdsUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPdsUpdateMode().getBean();
		this.objectidentifier = vo.getObjectidentifier();
		this.role = vo.getRole() == null ? null : (ims.vo.LookupInstanceBean)vo.getRole().getBean();
		this.nhsnum = vo.getNhsNum();
		this.contactrank = vo.getContactRank();
		this.nokind = vo.getNokInd();
		this.cpycorresp = vo.getCpyCorresp();
		this.callbckcons = vo.getCallbckCons() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallbckCons().getBean();
		this.beffdatecnf = vo.getBeffdatecnf();
		this.betdatecnf = vo.getBetdatecnf();
		this.beffdate = vo.getBeffdate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getBeffdate().getBean();
		this.betdate = vo.getBetdate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getBetdate().getBean();
		this.dob = vo.getDob() == null ? null : (ims.framework.utils.beans.PartialDateBean)vo.getDob().getBean();
		this.active = vo.getActive();
		this.pdscontactpreferences = vo.getPDScontactPreferences() == null ? null : (ims.core.vo.beans.PDSRelativeContactPrefVoBean)vo.getPDScontactPreferences().getBean();
		this.pdslanguage = vo.getPDSlanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSlanguage().getBean();
		this.pdsinterpreterrequired = vo.getPDSInterpreterRequired();
		this.pending = vo.getPending();
		this.isconfidential = vo.getIsConfidential();
		this.timestamp = vo.getTimestamp();
		this.tempfield = vo.getTempField();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.NextOfKin 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.relationship = vo.getRelationship() == null ? null : (ims.vo.LookupInstanceBean)vo.getRelationship().getBean();
		this.commchannels = vo.getCommChannels() == null ? null : vo.getCommChannels().getBeanCollection();
		this.pdsupdatemode = vo.getPdsUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPdsUpdateMode().getBean();
		this.objectidentifier = vo.getObjectidentifier();
		this.role = vo.getRole() == null ? null : (ims.vo.LookupInstanceBean)vo.getRole().getBean();
		this.nhsnum = vo.getNhsNum();
		this.contactrank = vo.getContactRank();
		this.nokind = vo.getNokInd();
		this.cpycorresp = vo.getCpyCorresp();
		this.callbckcons = vo.getCallbckCons() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallbckCons().getBean();
		this.beffdatecnf = vo.getBeffdatecnf();
		this.betdatecnf = vo.getBetdatecnf();
		this.beffdate = vo.getBeffdate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getBeffdate().getBean();
		this.betdate = vo.getBetdate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getBetdate().getBean();
		this.dob = vo.getDob() == null ? null : (ims.framework.utils.beans.PartialDateBean)vo.getDob().getBean();
		this.active = vo.getActive();
		this.pdscontactpreferences = vo.getPDScontactPreferences() == null ? null : (ims.core.vo.beans.PDSRelativeContactPrefVoBean)vo.getPDScontactPreferences().getBean(map);
		this.pdslanguage = vo.getPDSlanguage() == null ? null : (ims.vo.LookupInstanceBean)vo.getPDSlanguage().getBean();
		this.pdsinterpreterrequired = vo.getPDSInterpreterRequired();
		this.pending = vo.getPending();
		this.isconfidential = vo.getIsConfidential();
		this.timestamp = vo.getTimestamp();
		this.tempfield = vo.getTempField();
	}

	public ims.core.vo.NextOfKin buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.core.vo.NextOfKin buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.NextOfKin vo = null;
		if(map != null)
			vo = (ims.core.vo.NextOfKin)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.NextOfKin();
			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 getRelationship()
	{
		return this.relationship;
	}
	public void setRelationship(ims.vo.LookupInstanceBean value)
	{
		this.relationship = value;
	}
	public ims.core.vo.beans.CommChannelVoBean[] getCommChannels()
	{
		return this.commchannels;
	}
	public void setCommChannels(ims.core.vo.beans.CommChannelVoBean[] value)
	{
		this.commchannels = value;
	}
	public ims.vo.LookupInstanceBean getPdsUpdateMode()
	{
		return this.pdsupdatemode;
	}
	public void setPdsUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.pdsupdatemode = value;
	}
	public String getObjectidentifier()
	{
		return this.objectidentifier;
	}
	public void setObjectidentifier(String value)
	{
		this.objectidentifier = value;
	}
	public ims.vo.LookupInstanceBean getRole()
	{
		return this.role;
	}
	public void setRole(ims.vo.LookupInstanceBean value)
	{
		this.role = value;
	}
	public String getNhsNum()
	{
		return this.nhsnum;
	}
	public void setNhsNum(String value)
	{
		this.nhsnum = value;
	}
	public String getContactRank()
	{
		return this.contactrank;
	}
	public void setContactRank(String value)
	{
		this.contactrank = value;
	}
	public Boolean getNokInd()
	{
		return this.nokind;
	}
	public void setNokInd(Boolean value)
	{
		this.nokind = value;
	}
	public Boolean getCpyCorresp()
	{
		return this.cpycorresp;
	}
	public void setCpyCorresp(Boolean value)
	{
		this.cpycorresp = value;
	}
	public ims.vo.LookupInstanceBean getCallbckCons()
	{
		return this.callbckcons;
	}
	public void setCallbckCons(ims.vo.LookupInstanceBean value)
	{
		this.callbckcons = value;
	}
	public Boolean getBeffdatecnf()
	{
		return this.beffdatecnf;
	}
	public void setBeffdatecnf(Boolean value)
	{
		this.beffdatecnf = value;
	}
	public Boolean getBetdatecnf()
	{
		return this.betdatecnf;
	}
	public void setBetdatecnf(Boolean value)
	{
		this.betdatecnf = value;
	}
	public ims.framework.utils.beans.DateBean getBeffdate()
	{
		return this.beffdate;
	}
	public void setBeffdate(ims.framework.utils.beans.DateBean value)
	{
		this.beffdate = value;
	}
	public ims.framework.utils.beans.DateBean getBetdate()
	{
		return this.betdate;
	}
	public void setBetdate(ims.framework.utils.beans.DateBean value)
	{
		this.betdate = value;
	}
	public ims.framework.utils.beans.PartialDateBean getDob()
	{
		return this.dob;
	}
	public void setDob(ims.framework.utils.beans.PartialDateBean value)
	{
		this.dob = value;
	}
	public Boolean getActive()
	{
		return this.active;
	}
	public void setActive(Boolean value)
	{
		this.active = value;
	}
	public ims.core.vo.beans.PDSRelativeContactPrefVoBean getPDScontactPreferences()
	{
		return this.pdscontactpreferences;
	}
	public void setPDScontactPreferences(ims.core.vo.beans.PDSRelativeContactPrefVoBean value)
	{
		this.pdscontactpreferences = value;
	}
	public ims.vo.LookupInstanceBean getPDSlanguage()
	{
		return this.pdslanguage;
	}
	public void setPDSlanguage(ims.vo.LookupInstanceBean value)
	{
		this.pdslanguage = value;
	}
	public Boolean getPDSInterpreterRequired()
	{
		return this.pdsinterpreterrequired;
	}
	public void setPDSInterpreterRequired(Boolean value)
	{
		this.pdsinterpreterrequired = value;
	}
	public Boolean getPending()
	{
		return this.pending;
	}
	public void setPending(Boolean value)
	{
		this.pending = value;
	}
	public Boolean getIsConfidential()
	{
		return this.isconfidential;
	}
	public void setIsConfidential(Boolean value)
	{
		this.isconfidential = value;
	}
	public String getTimestamp()
	{
		return this.timestamp;
	}
	public void setTimestamp(String value)
	{
		this.timestamp = value;
	}
	public String getTempField()
	{
		return this.tempfield;
	}
	public void setTempField(String value)
	{
		this.tempfield = 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 relationship;
	private ims.core.vo.beans.CommChannelVoBean[] commchannels;
	private ims.vo.LookupInstanceBean pdsupdatemode;
	private String objectidentifier;
	private ims.vo.LookupInstanceBean role;
	private String nhsnum;
	private String contactrank;
	private Boolean nokind;
	private Boolean cpycorresp;
	private ims.vo.LookupInstanceBean callbckcons;
	private Boolean beffdatecnf;
	private Boolean betdatecnf;
	private ims.framework.utils.beans.DateBean beffdate;
	private ims.framework.utils.beans.DateBean betdate;
	private ims.framework.utils.beans.PartialDateBean dob;
	private Boolean active;
	private ims.core.vo.beans.PDSRelativeContactPrefVoBean pdscontactpreferences;
	private ims.vo.LookupInstanceBean pdslanguage;
	private Boolean pdsinterpreterrequired;
	private Boolean pending;
	private Boolean isconfidential;
	private String timestamp;
	private String tempfield;
}
