/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PDSPatientUpdateVoBean.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 PDSPatientUpdateVoBean extends ims.vo.ValueObjectBean
{
	public PDSPatientUpdateVoBean()
	{
	}
	public PDSPatientUpdateVoBean(ims.core.vo.PDSPatientUpdateVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.administrativegendercode = vo.getAdministrativeGenderCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdministrativeGenderCode().getBean();
		this.birthtime = vo.getBirthTime() == null ? null : (ims.vo.LookupInstanceBean)vo.getBirthTime().getBean();
		this.deceasedtime = vo.getDeceasedTime() == null ? null : (ims.vo.LookupInstanceBean)vo.getDeceasedTime().getBean();
		this.languagecodeupdatemode = vo.getLanguageCodeUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguageCodeUpdateMode().getBean();
		this.proficiencylevelcodeupdatemode = vo.getProficiencyLevelCodeUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getProficiencyLevelCodeUpdateMode().getBean();
		this.preferredcontactmethodupdatemode = vo.getPreferredContactMethodUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredContactMethodUpdateMode().getBean();
		this.preferredcontacttimesupdatemode = vo.getPreferredContactTimesUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredContactTimesUpdateMode().getBean();
		this.callcentrecallbackconsentupdatemode = vo.getCallCentreCallBackConsentUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallCentreCallBackConsentUpdateMode().getBean();
		this.nokrelationshipupdatemode = vo.getNokRelationshipUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokRelationshipUpdateMode().getBean();
		this.nokeffectivedatesupdatemode = vo.getNokEffectiveDatesUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokEffectiveDatesUpdateMode().getBean();
		this.nokcontactrankupdatemode = vo.getNokContactRankUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokContactRankUpdateMode().getBean();
		this.nokupdatemode = vo.getNokUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokUpdateMode().getBean();
		this.noklanguagecommunicationupdatemode = vo.getNokLanguageCommunicationUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokLanguageCommunicationUpdateMode().getBean();
		this.commchannels = vo.getCommChannels() == null ? null : vo.getCommChannels().getBeanCollection();
		this.address = vo.getAddress() == null ? null : vo.getAddress().getBeanCollection();
		this.names = vo.getNames() == null ? null : vo.getNames().getBeanCollection();
		this.nokaddress = vo.getNokAddress() == null ? null : (ims.core.vo.beans.PDSAddrVoBean)vo.getNokAddress().getBean();
		this.nokcommchannels = vo.getNokCommChannels() == null ? null : vo.getNokCommChannels().getBeanCollection();
		this.pdsupdaterequest = vo.getPDSUpdateRequest() == null ? null : (ims.core.vo.beans.PDSGeneralUpdateRequestVoBean)vo.getPDSUpdateRequest().getBean();
		this.relatives = vo.getRelatives() == null ? null : vo.getRelatives().getBeanCollection();
		this.genderupdatemode = vo.getGenderUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderUpdateMode().getBean();
		this.dateofbirthupdatemode = vo.getDateOfBirthUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDateOfBirthUpdateMode().getBean();
		this.dateofdeathupdatemode = vo.getDateOfDeathUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDateOfDeathUpdateMode().getBean();
		this.consentupdatemode = vo.getConsentUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsentUpdateMode().getBean();
		this.preferredwrittencommformatupdatemode = vo.getPreferredWrittenCommFormatUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredWrittenCommFormatUpdateMode().getBean();
		this.deathnotificationupdatemode = vo.getDeathNotificationUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDeathNotificationUpdateMode().getBean();
		this.scn = vo.getSCN();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PDSPatientUpdateVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.administrativegendercode = vo.getAdministrativeGenderCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getAdministrativeGenderCode().getBean();
		this.birthtime = vo.getBirthTime() == null ? null : (ims.vo.LookupInstanceBean)vo.getBirthTime().getBean();
		this.deceasedtime = vo.getDeceasedTime() == null ? null : (ims.vo.LookupInstanceBean)vo.getDeceasedTime().getBean();
		this.languagecodeupdatemode = vo.getLanguageCodeUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getLanguageCodeUpdateMode().getBean();
		this.proficiencylevelcodeupdatemode = vo.getProficiencyLevelCodeUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getProficiencyLevelCodeUpdateMode().getBean();
		this.preferredcontactmethodupdatemode = vo.getPreferredContactMethodUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredContactMethodUpdateMode().getBean();
		this.preferredcontacttimesupdatemode = vo.getPreferredContactTimesUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredContactTimesUpdateMode().getBean();
		this.callcentrecallbackconsentupdatemode = vo.getCallCentreCallBackConsentUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallCentreCallBackConsentUpdateMode().getBean();
		this.nokrelationshipupdatemode = vo.getNokRelationshipUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokRelationshipUpdateMode().getBean();
		this.nokeffectivedatesupdatemode = vo.getNokEffectiveDatesUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokEffectiveDatesUpdateMode().getBean();
		this.nokcontactrankupdatemode = vo.getNokContactRankUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokContactRankUpdateMode().getBean();
		this.nokupdatemode = vo.getNokUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokUpdateMode().getBean();
		this.noklanguagecommunicationupdatemode = vo.getNokLanguageCommunicationUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getNokLanguageCommunicationUpdateMode().getBean();
		this.commchannels = vo.getCommChannels() == null ? null : vo.getCommChannels().getBeanCollection();
		this.address = vo.getAddress() == null ? null : vo.getAddress().getBeanCollection();
		this.names = vo.getNames() == null ? null : vo.getNames().getBeanCollection();
		this.nokaddress = vo.getNokAddress() == null ? null : (ims.core.vo.beans.PDSAddrVoBean)vo.getNokAddress().getBean(map);
		this.nokcommchannels = vo.getNokCommChannels() == null ? null : vo.getNokCommChannels().getBeanCollection();
		this.pdsupdaterequest = vo.getPDSUpdateRequest() == null ? null : (ims.core.vo.beans.PDSGeneralUpdateRequestVoBean)vo.getPDSUpdateRequest().getBean(map);
		this.relatives = vo.getRelatives() == null ? null : vo.getRelatives().getBeanCollection();
		this.genderupdatemode = vo.getGenderUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderUpdateMode().getBean();
		this.dateofbirthupdatemode = vo.getDateOfBirthUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDateOfBirthUpdateMode().getBean();
		this.dateofdeathupdatemode = vo.getDateOfDeathUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDateOfDeathUpdateMode().getBean();
		this.consentupdatemode = vo.getConsentUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsentUpdateMode().getBean();
		this.preferredwrittencommformatupdatemode = vo.getPreferredWrittenCommFormatUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreferredWrittenCommFormatUpdateMode().getBean();
		this.deathnotificationupdatemode = vo.getDeathNotificationUpdateMode() == null ? null : (ims.vo.LookupInstanceBean)vo.getDeathNotificationUpdateMode().getBean();
		this.scn = vo.getSCN();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
	}

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

	public ims.core.vo.PDSPatientUpdateVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PDSPatientUpdateVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PDSPatientUpdateVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PDSPatientUpdateVo();
			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.vo.LookupInstanceBean getAdministrativeGenderCode()
	{
		return this.administrativegendercode;
	}
	public void setAdministrativeGenderCode(ims.vo.LookupInstanceBean value)
	{
		this.administrativegendercode = value;
	}
	public ims.vo.LookupInstanceBean getBirthTime()
	{
		return this.birthtime;
	}
	public void setBirthTime(ims.vo.LookupInstanceBean value)
	{
		this.birthtime = value;
	}
	public ims.vo.LookupInstanceBean getDeceasedTime()
	{
		return this.deceasedtime;
	}
	public void setDeceasedTime(ims.vo.LookupInstanceBean value)
	{
		this.deceasedtime = value;
	}
	public ims.vo.LookupInstanceBean getLanguageCodeUpdateMode()
	{
		return this.languagecodeupdatemode;
	}
	public void setLanguageCodeUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.languagecodeupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getProficiencyLevelCodeUpdateMode()
	{
		return this.proficiencylevelcodeupdatemode;
	}
	public void setProficiencyLevelCodeUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.proficiencylevelcodeupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getPreferredContactMethodUpdateMode()
	{
		return this.preferredcontactmethodupdatemode;
	}
	public void setPreferredContactMethodUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.preferredcontactmethodupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getPreferredContactTimesUpdateMode()
	{
		return this.preferredcontacttimesupdatemode;
	}
	public void setPreferredContactTimesUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.preferredcontacttimesupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getCallCentreCallBackConsentUpdateMode()
	{
		return this.callcentrecallbackconsentupdatemode;
	}
	public void setCallCentreCallBackConsentUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.callcentrecallbackconsentupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getNokRelationshipUpdateMode()
	{
		return this.nokrelationshipupdatemode;
	}
	public void setNokRelationshipUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.nokrelationshipupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getNokEffectiveDatesUpdateMode()
	{
		return this.nokeffectivedatesupdatemode;
	}
	public void setNokEffectiveDatesUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.nokeffectivedatesupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getNokContactRankUpdateMode()
	{
		return this.nokcontactrankupdatemode;
	}
	public void setNokContactRankUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.nokcontactrankupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getNokUpdateMode()
	{
		return this.nokupdatemode;
	}
	public void setNokUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.nokupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getNokLanguageCommunicationUpdateMode()
	{
		return this.noklanguagecommunicationupdatemode;
	}
	public void setNokLanguageCommunicationUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.noklanguagecommunicationupdatemode = value;
	}
	public ims.core.vo.beans.PDSCommChannelRemovedVoBean[] getCommChannels()
	{
		return this.commchannels;
	}
	public void setCommChannels(ims.core.vo.beans.PDSCommChannelRemovedVoBean[] value)
	{
		this.commchannels = value;
	}
	public ims.core.vo.beans.PDSAddrVoBean[] getAddress()
	{
		return this.address;
	}
	public void setAddress(ims.core.vo.beans.PDSAddrVoBean[] value)
	{
		this.address = value;
	}
	public ims.core.vo.beans.PDSNamesRemovedVoBean[] getNames()
	{
		return this.names;
	}
	public void setNames(ims.core.vo.beans.PDSNamesRemovedVoBean[] value)
	{
		this.names = value;
	}
	public ims.core.vo.beans.PDSAddrVoBean getNokAddress()
	{
		return this.nokaddress;
	}
	public void setNokAddress(ims.core.vo.beans.PDSAddrVoBean value)
	{
		this.nokaddress = value;
	}
	public ims.core.vo.beans.PDSCommChannelRemovedVoBean[] getNokCommChannels()
	{
		return this.nokcommchannels;
	}
	public void setNokCommChannels(ims.core.vo.beans.PDSCommChannelRemovedVoBean[] value)
	{
		this.nokcommchannels = value;
	}
	public ims.core.vo.beans.PDSGeneralUpdateRequestVoBean getPDSUpdateRequest()
	{
		return this.pdsupdaterequest;
	}
	public void setPDSUpdateRequest(ims.core.vo.beans.PDSGeneralUpdateRequestVoBean value)
	{
		this.pdsupdaterequest = value;
	}
	public ims.core.vo.beans.PDSRelativeRemoveVoBean[] getRelatives()
	{
		return this.relatives;
	}
	public void setRelatives(ims.core.vo.beans.PDSRelativeRemoveVoBean[] value)
	{
		this.relatives = value;
	}
	public ims.vo.LookupInstanceBean getGenderUpdateMode()
	{
		return this.genderupdatemode;
	}
	public void setGenderUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.genderupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getDateOfBirthUpdateMode()
	{
		return this.dateofbirthupdatemode;
	}
	public void setDateOfBirthUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.dateofbirthupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getDateOfDeathUpdateMode()
	{
		return this.dateofdeathupdatemode;
	}
	public void setDateOfDeathUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.dateofdeathupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getConsentUpdateMode()
	{
		return this.consentupdatemode;
	}
	public void setConsentUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.consentupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getPreferredWrittenCommFormatUpdateMode()
	{
		return this.preferredwrittencommformatupdatemode;
	}
	public void setPreferredWrittenCommFormatUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.preferredwrittencommformatupdatemode = value;
	}
	public ims.vo.LookupInstanceBean getDeathNotificationUpdateMode()
	{
		return this.deathnotificationupdatemode;
	}
	public void setDeathNotificationUpdateMode(ims.vo.LookupInstanceBean value)
	{
		this.deathnotificationupdatemode = value;
	}
	public Integer getSCN()
	{
		return this.scn;
	}
	public void setSCN(Integer value)
	{
		this.scn = value;
	}
	public ims.vo.RefVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean administrativegendercode;
	private ims.vo.LookupInstanceBean birthtime;
	private ims.vo.LookupInstanceBean deceasedtime;
	private ims.vo.LookupInstanceBean languagecodeupdatemode;
	private ims.vo.LookupInstanceBean proficiencylevelcodeupdatemode;
	private ims.vo.LookupInstanceBean preferredcontactmethodupdatemode;
	private ims.vo.LookupInstanceBean preferredcontacttimesupdatemode;
	private ims.vo.LookupInstanceBean callcentrecallbackconsentupdatemode;
	private ims.vo.LookupInstanceBean nokrelationshipupdatemode;
	private ims.vo.LookupInstanceBean nokeffectivedatesupdatemode;
	private ims.vo.LookupInstanceBean nokcontactrankupdatemode;
	private ims.vo.LookupInstanceBean nokupdatemode;
	private ims.vo.LookupInstanceBean noklanguagecommunicationupdatemode;
	private ims.core.vo.beans.PDSCommChannelRemovedVoBean[] commchannels;
	private ims.core.vo.beans.PDSAddrVoBean[] address;
	private ims.core.vo.beans.PDSNamesRemovedVoBean[] names;
	private ims.core.vo.beans.PDSAddrVoBean nokaddress;
	private ims.core.vo.beans.PDSCommChannelRemovedVoBean[] nokcommchannels;
	private ims.core.vo.beans.PDSGeneralUpdateRequestVoBean pdsupdaterequest;
	private ims.core.vo.beans.PDSRelativeRemoveVoBean[] relatives;
	private ims.vo.LookupInstanceBean genderupdatemode;
	private ims.vo.LookupInstanceBean dateofbirthupdatemode;
	private ims.vo.LookupInstanceBean dateofdeathupdatemode;
	private ims.vo.LookupInstanceBean consentupdatemode;
	private ims.vo.LookupInstanceBean preferredwrittencommformatupdatemode;
	private ims.vo.LookupInstanceBean deathnotificationupdatemode;
	private Integer scn;
	private ims.vo.RefVoBean patient;
}
