/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/SocialHistoryVoBean.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 SocialHistoryVoBean extends ims.vo.ValueObjectBean
{
	public SocialHistoryVoBean()
	{
	}
	public SocialHistoryVoBean(ims.core.vo.SocialHistoryVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.smokingstatus = vo.getSmokingStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getSmokingStatus().getBean();
		this.smokingdetails = vo.getSmokingDetails() == null ? null : vo.getSmokingDetails().getBeanCollection();
		this.alcohol = vo.getAlcohol() == null ? null : (ims.core.vo.beans.AlcoholVoBean)vo.getAlcohol().getBean();
		this.illicitdrugs = vo.getIllicitDrugs();
		this.occupation = vo.getOccupation() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupation().getBean();
		this.liveswith = vo.getLivesWith() == null ? null : (ims.vo.LookupInstanceBean)vo.getLivesWith().getBean();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean();
		this.fittocareforpatient = vo.getFitToCareForPatient() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToCareForPatient().getBean();
		this.fittotakehome = vo.getFitToTakeHome() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToTakeHome().getBean();
		this.occupationtext = vo.getOccupationText();
		this.socialhistorynotes = vo.getSocialHistoryNotes();
		this.maritalstatus = vo.getMaritalStatus() == null ? null : (ims.core.vo.beans.SocialHistoryMaritalStatusVoBean)vo.getMaritalStatus().getBean();
		this.mobilityindependence = vo.getMobilityIndependence();
		this.occupationstatus = vo.getOccupationStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupationStatus().getBean();
		this.diet = vo.getDiet() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiet().getBean();
		this.illicitdrugslist = vo.getIllicitDrugsList() == null ? null : (ims.core.vo.beans.IllicitDrugsVoBean)vo.getIllicitDrugsList().getBean();
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.SocialHistoryVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.smokingstatus = vo.getSmokingStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getSmokingStatus().getBean();
		this.smokingdetails = vo.getSmokingDetails() == null ? null : vo.getSmokingDetails().getBeanCollection();
		this.alcohol = vo.getAlcohol() == null ? null : (ims.core.vo.beans.AlcoholVoBean)vo.getAlcohol().getBean(map);
		this.illicitdrugs = vo.getIllicitDrugs();
		this.occupation = vo.getOccupation() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupation().getBean();
		this.liveswith = vo.getLivesWith() == null ? null : (ims.vo.LookupInstanceBean)vo.getLivesWith().getBean();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean(map);
		this.fittocareforpatient = vo.getFitToCareForPatient() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToCareForPatient().getBean();
		this.fittotakehome = vo.getFitToTakeHome() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToTakeHome().getBean();
		this.occupationtext = vo.getOccupationText();
		this.socialhistorynotes = vo.getSocialHistoryNotes();
		this.maritalstatus = vo.getMaritalStatus() == null ? null : (ims.core.vo.beans.SocialHistoryMaritalStatusVoBean)vo.getMaritalStatus().getBean(map);
		this.mobilityindependence = vo.getMobilityIndependence();
		this.occupationstatus = vo.getOccupationStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getOccupationStatus().getBean();
		this.diet = vo.getDiet() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiet().getBean();
		this.illicitdrugslist = vo.getIllicitDrugsList() == null ? null : (ims.core.vo.beans.IllicitDrugsVoBean)vo.getIllicitDrugsList().getBean(map);
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean(map);
	}

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

	public ims.core.vo.SocialHistoryVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.SocialHistoryVo vo = null;
		if(map != null)
			vo = (ims.core.vo.SocialHistoryVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.SocialHistoryVo();
			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.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}
	public ims.vo.LookupInstanceBean getSmokingStatus()
	{
		return this.smokingstatus;
	}
	public void setSmokingStatus(ims.vo.LookupInstanceBean value)
	{
		this.smokingstatus = value;
	}
	public ims.core.vo.beans.SmokingDetailsBean[] getSmokingDetails()
	{
		return this.smokingdetails;
	}
	public void setSmokingDetails(ims.core.vo.beans.SmokingDetailsBean[] value)
	{
		this.smokingdetails = value;
	}
	public ims.core.vo.beans.AlcoholVoBean getAlcohol()
	{
		return this.alcohol;
	}
	public void setAlcohol(ims.core.vo.beans.AlcoholVoBean value)
	{
		this.alcohol = value;
	}
	public String getIllicitDrugs()
	{
		return this.illicitdrugs;
	}
	public void setIllicitDrugs(String value)
	{
		this.illicitdrugs = value;
	}
	public ims.vo.LookupInstanceBean getOccupation()
	{
		return this.occupation;
	}
	public void setOccupation(ims.vo.LookupInstanceBean value)
	{
		this.occupation = value;
	}
	public ims.vo.LookupInstanceBean getLivesWith()
	{
		return this.liveswith;
	}
	public void setLivesWith(ims.vo.LookupInstanceBean value)
	{
		this.liveswith = value;
	}
	public ims.core.vo.beans.ClinicalContactShortVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.core.vo.beans.ClinicalContactShortVoBean value)
	{
		this.clinicalcontact = value;
	}
	public ims.vo.LookupInstanceBean getFitToCareForPatient()
	{
		return this.fittocareforpatient;
	}
	public void setFitToCareForPatient(ims.vo.LookupInstanceBean value)
	{
		this.fittocareforpatient = value;
	}
	public ims.vo.LookupInstanceBean getFitToTakeHome()
	{
		return this.fittotakehome;
	}
	public void setFitToTakeHome(ims.vo.LookupInstanceBean value)
	{
		this.fittotakehome = value;
	}
	public String getOccupationText()
	{
		return this.occupationtext;
	}
	public void setOccupationText(String value)
	{
		this.occupationtext = value;
	}
	public String getSocialHistoryNotes()
	{
		return this.socialhistorynotes;
	}
	public void setSocialHistoryNotes(String value)
	{
		this.socialhistorynotes = value;
	}
	public ims.core.vo.beans.SocialHistoryMaritalStatusVoBean getMaritalStatus()
	{
		return this.maritalstatus;
	}
	public void setMaritalStatus(ims.core.vo.beans.SocialHistoryMaritalStatusVoBean value)
	{
		this.maritalstatus = value;
	}
	public String getMobilityIndependence()
	{
		return this.mobilityindependence;
	}
	public void setMobilityIndependence(String value)
	{
		this.mobilityindependence = value;
	}
	public ims.vo.LookupInstanceBean getOccupationStatus()
	{
		return this.occupationstatus;
	}
	public void setOccupationStatus(ims.vo.LookupInstanceBean value)
	{
		this.occupationstatus = value;
	}
	public ims.vo.LookupInstanceBean getDiet()
	{
		return this.diet;
	}
	public void setDiet(ims.vo.LookupInstanceBean value)
	{
		this.diet = value;
	}
	public ims.core.vo.beans.IllicitDrugsVoBean getIllicitDrugsList()
	{
		return this.illicitdrugslist;
	}
	public void setIllicitDrugsList(ims.core.vo.beans.IllicitDrugsVoBean value)
	{
		this.illicitdrugslist = value;
	}
	public ims.core.vo.beans.RecordingUserInformationVoBean getRecordingInformation()
	{
		return this.recordinginformation;
	}
	public void setRecordingInformation(ims.core.vo.beans.RecordingUserInformationVoBean value)
	{
		this.recordinginformation = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean carecontext;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.vo.LookupInstanceBean smokingstatus;
	private ims.core.vo.beans.SmokingDetailsBean[] smokingdetails;
	private ims.core.vo.beans.AlcoholVoBean alcohol;
	private String illicitdrugs;
	private ims.vo.LookupInstanceBean occupation;
	private ims.vo.LookupInstanceBean liveswith;
	private ims.core.vo.beans.ClinicalContactShortVoBean clinicalcontact;
	private ims.vo.LookupInstanceBean fittocareforpatient;
	private ims.vo.LookupInstanceBean fittotakehome;
	private String occupationtext;
	private String socialhistorynotes;
	private ims.core.vo.beans.SocialHistoryMaritalStatusVoBean maritalstatus;
	private String mobilityindependence;
	private ims.vo.LookupInstanceBean occupationstatus;
	private ims.vo.LookupInstanceBean diet;
	private ims.core.vo.beans.IllicitDrugsVoBean illicitdrugslist;
	private ims.core.vo.beans.RecordingUserInformationVoBean recordinginformation;
}
