/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/pci/vo/beans/CommunityCareVoBean.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 CommunityCareVoBean extends ims.vo.ValueObjectBean
{
	public CommunityCareVoBean()
	{
	}
	public CommunityCareVoBean(ims.pci.vo.CommunityCareVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.cca = vo.getCca() == null ? null : (ims.core.vo.beans.LocSiteLiteVoBean)vo.getCca().getBean();
		this.gpregistrationdate = vo.getGPRegistrationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getGPRegistrationDate().getBean();
		this.lho = vo.getLho() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getLho().getBean();
		this.sector = vo.getSector() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getSector().getBean();
		this.registeredgp = vo.getRegisteredGp() == null ? null : (ims.core.vo.beans.GpLiteWithNameVoBean)vo.getRegisteredGp().getBean();
		this.registeredgpsurgery = vo.getRegisteredGpSurgery() == null ? null : new ims.vo.RefVoBean(vo.getRegisteredGpSurgery().getBoId(), vo.getRegisteredGpSurgery().getBoVersion());
		this.phndistrict = vo.getPhnDistrict() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getPhnDistrict().getBean();
		this.ded = vo.getDED() == null ? null : (ims.core.vo.beans.DEDLiteVoBean)vo.getDED().getBean();
		this.userdefinedfield1 = vo.getUserDefinedField1() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField1().getBean();
		this.userdefinedfield2 = vo.getUserDefinedField2() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField2().getBean();
		this.userdefinedfield3 = vo.getUserDefinedField3() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField3().getBean();
		this.userdefinedfield4 = vo.getUserDefinedField4() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField4().getBean();
		this.userdefinedfield5 = vo.getUserDefinedField5() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField5().getBean();
		this.addresshistory = vo.getAddressHistory() == null ? null : vo.getAddressHistory().getBeanCollection();
		this.isextracted = vo.getIsExtracted();
		this.currentschool = vo.getCurrentSchool() == null ? null : (ims.core.vo.beans.SchoolShortVoBean)vo.getCurrentSchool().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.pci.vo.CommunityCareVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.cca = vo.getCca() == null ? null : (ims.core.vo.beans.LocSiteLiteVoBean)vo.getCca().getBean(map);
		this.gpregistrationdate = vo.getGPRegistrationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getGPRegistrationDate().getBean();
		this.lho = vo.getLho() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getLho().getBean(map);
		this.sector = vo.getSector() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getSector().getBean(map);
		this.registeredgp = vo.getRegisteredGp() == null ? null : (ims.core.vo.beans.GpLiteWithNameVoBean)vo.getRegisteredGp().getBean(map);
		this.registeredgpsurgery = vo.getRegisteredGpSurgery() == null ? null : new ims.vo.RefVoBean(vo.getRegisteredGpSurgery().getBoId(), vo.getRegisteredGpSurgery().getBoVersion());
		this.phndistrict = vo.getPhnDistrict() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getPhnDistrict().getBean(map);
		this.ded = vo.getDED() == null ? null : (ims.core.vo.beans.DEDLiteVoBean)vo.getDED().getBean(map);
		this.userdefinedfield1 = vo.getUserDefinedField1() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField1().getBean();
		this.userdefinedfield2 = vo.getUserDefinedField2() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField2().getBean();
		this.userdefinedfield3 = vo.getUserDefinedField3() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField3().getBean();
		this.userdefinedfield4 = vo.getUserDefinedField4() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField4().getBean();
		this.userdefinedfield5 = vo.getUserDefinedField5() == null ? null : (ims.vo.LookupInstanceBean)vo.getUserDefinedField5().getBean();
		this.addresshistory = vo.getAddressHistory() == null ? null : vo.getAddressHistory().getBeanCollection();
		this.isextracted = vo.getIsExtracted();
		this.currentschool = vo.getCurrentSchool() == null ? null : (ims.core.vo.beans.SchoolShortVoBean)vo.getCurrentSchool().getBean(map);
	}

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

	public ims.pci.vo.CommunityCareVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.pci.vo.CommunityCareVo vo = null;
		if(map != null)
			vo = (ims.pci.vo.CommunityCareVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.pci.vo.CommunityCareVo();
			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.LocSiteLiteVoBean getCca()
	{
		return this.cca;
	}
	public void setCca(ims.core.vo.beans.LocSiteLiteVoBean value)
	{
		this.cca = value;
	}
	public ims.framework.utils.beans.DateBean getGPRegistrationDate()
	{
		return this.gpregistrationdate;
	}
	public void setGPRegistrationDate(ims.framework.utils.beans.DateBean value)
	{
		this.gpregistrationdate = value;
	}
	public ims.core.vo.beans.OrgLiteVoBean getLho()
	{
		return this.lho;
	}
	public void setLho(ims.core.vo.beans.OrgLiteVoBean value)
	{
		this.lho = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getSector()
	{
		return this.sector;
	}
	public void setSector(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.sector = value;
	}
	public ims.core.vo.beans.GpLiteWithNameVoBean getRegisteredGp()
	{
		return this.registeredgp;
	}
	public void setRegisteredGp(ims.core.vo.beans.GpLiteWithNameVoBean value)
	{
		this.registeredgp = value;
	}
	public ims.vo.RefVoBean getRegisteredGpSurgery()
	{
		return this.registeredgpsurgery;
	}
	public void setRegisteredGpSurgery(ims.vo.RefVoBean value)
	{
		this.registeredgpsurgery = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getPhnDistrict()
	{
		return this.phndistrict;
	}
	public void setPhnDistrict(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.phndistrict = value;
	}
	public ims.core.vo.beans.DEDLiteVoBean getDED()
	{
		return this.ded;
	}
	public void setDED(ims.core.vo.beans.DEDLiteVoBean value)
	{
		this.ded = value;
	}
	public ims.vo.LookupInstanceBean getUserDefinedField1()
	{
		return this.userdefinedfield1;
	}
	public void setUserDefinedField1(ims.vo.LookupInstanceBean value)
	{
		this.userdefinedfield1 = value;
	}
	public ims.vo.LookupInstanceBean getUserDefinedField2()
	{
		return this.userdefinedfield2;
	}
	public void setUserDefinedField2(ims.vo.LookupInstanceBean value)
	{
		this.userdefinedfield2 = value;
	}
	public ims.vo.LookupInstanceBean getUserDefinedField3()
	{
		return this.userdefinedfield3;
	}
	public void setUserDefinedField3(ims.vo.LookupInstanceBean value)
	{
		this.userdefinedfield3 = value;
	}
	public ims.vo.LookupInstanceBean getUserDefinedField4()
	{
		return this.userdefinedfield4;
	}
	public void setUserDefinedField4(ims.vo.LookupInstanceBean value)
	{
		this.userdefinedfield4 = value;
	}
	public ims.vo.LookupInstanceBean getUserDefinedField5()
	{
		return this.userdefinedfield5;
	}
	public void setUserDefinedField5(ims.vo.LookupInstanceBean value)
	{
		this.userdefinedfield5 = value;
	}
	public ims.pci.vo.beans.PciAddressHistoryVoBean[] getAddressHistory()
	{
		return this.addresshistory;
	}
	public void setAddressHistory(ims.pci.vo.beans.PciAddressHistoryVoBean[] value)
	{
		this.addresshistory = value;
	}
	public Boolean getIsExtracted()
	{
		return this.isextracted;
	}
	public void setIsExtracted(Boolean value)
	{
		this.isextracted = value;
	}
	public ims.core.vo.beans.SchoolShortVoBean getCurrentSchool()
	{
		return this.currentschool;
	}
	public void setCurrentSchool(ims.core.vo.beans.SchoolShortVoBean value)
	{
		this.currentschool = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.LocSiteLiteVoBean cca;
	private ims.framework.utils.beans.DateBean gpregistrationdate;
	private ims.core.vo.beans.OrgLiteVoBean lho;
	private ims.core.vo.beans.LocationLiteVoBean sector;
	private ims.core.vo.beans.GpLiteWithNameVoBean registeredgp;
	private ims.vo.RefVoBean registeredgpsurgery;
	private ims.core.vo.beans.LocationLiteVoBean phndistrict;
	private ims.core.vo.beans.DEDLiteVoBean ded;
	private ims.vo.LookupInstanceBean userdefinedfield1;
	private ims.vo.LookupInstanceBean userdefinedfield2;
	private ims.vo.LookupInstanceBean userdefinedfield3;
	private ims.vo.LookupInstanceBean userdefinedfield4;
	private ims.vo.LookupInstanceBean userdefinedfield5;
	private ims.pci.vo.beans.PciAddressHistoryVoBean[] addresshistory;
	private Boolean isextracted;
	private ims.core.vo.beans.SchoolShortVoBean currentschool;
}
