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

public class EnvironmentalVisitVoBean extends ims.vo.ValueObjectBean
{
	public EnvironmentalVisitVoBean()
	{
	}
	public EnvironmentalVisitVoBean(ims.therapies.vo.EnvironmentalVisitVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.visitdate = vo.getVisitDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getVisitDate().getBean();
		this.therapistpresent = vo.getTherapistPresent() == null ? null : (ims.core.vo.beans.HcpBean)vo.getTherapistPresent().getBean();
		this.otherspresent = vo.getOthersPresent();
		this.occupation = vo.getOccupation();
		this.jobrole = vo.getJobRole();
		this.location = vo.getLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getLocation().getBean();
		this.rooms = vo.getRooms() == null ? null : vo.getRooms().getBeanCollection();
		this.housedetails = vo.getHouseDetails() == null ? null : (ims.therapies.vo.beans.HomeDetailsVoBean)vo.getHouseDetails().getBean();
		this.visitsummary = vo.getVisitSummary() == null ? null : (ims.therapies.vo.beans.VisitSummaryVoBean)vo.getVisitSummary().getBean();
		this.visitassessmentdetails = vo.getVisitAssessmentDetails() == null ? null : vo.getVisitAssessmentDetails().getBeanCollection();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.authoringcp = vo.getAuthoringCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getAuthoringCP().getBean();
		this.authoringdatetime = vo.getAuthoringDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAuthoringDateTime().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.therapies.vo.EnvironmentalVisitVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.visitdate = vo.getVisitDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getVisitDate().getBean();
		this.therapistpresent = vo.getTherapistPresent() == null ? null : (ims.core.vo.beans.HcpBean)vo.getTherapistPresent().getBean(map);
		this.otherspresent = vo.getOthersPresent();
		this.occupation = vo.getOccupation();
		this.jobrole = vo.getJobRole();
		this.location = vo.getLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getLocation().getBean();
		this.rooms = vo.getRooms() == null ? null : vo.getRooms().getBeanCollection();
		this.housedetails = vo.getHouseDetails() == null ? null : (ims.therapies.vo.beans.HomeDetailsVoBean)vo.getHouseDetails().getBean(map);
		this.visitsummary = vo.getVisitSummary() == null ? null : (ims.therapies.vo.beans.VisitSummaryVoBean)vo.getVisitSummary().getBean(map);
		this.visitassessmentdetails = vo.getVisitAssessmentDetails() == null ? null : vo.getVisitAssessmentDetails().getBeanCollection();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.authoringcp = vo.getAuthoringCP() == null ? null : (ims.core.vo.beans.HcpBean)vo.getAuthoringCP().getBean(map);
		this.authoringdatetime = vo.getAuthoringDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAuthoringDateTime().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
	}

	public ims.therapies.vo.EnvironmentalVisitVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.therapies.vo.EnvironmentalVisitVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.therapies.vo.EnvironmentalVisitVo vo = null;
		if(map != null)
			vo = (ims.therapies.vo.EnvironmentalVisitVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.therapies.vo.EnvironmentalVisitVo();
			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.framework.utils.beans.DateBean getVisitDate()
	{
		return this.visitdate;
	}
	public void setVisitDate(ims.framework.utils.beans.DateBean value)
	{
		this.visitdate = value;
	}
	public ims.core.vo.beans.HcpBean getTherapistPresent()
	{
		return this.therapistpresent;
	}
	public void setTherapistPresent(ims.core.vo.beans.HcpBean value)
	{
		this.therapistpresent = value;
	}
	public String getOthersPresent()
	{
		return this.otherspresent;
	}
	public void setOthersPresent(String value)
	{
		this.otherspresent = value;
	}
	public String getOccupation()
	{
		return this.occupation;
	}
	public void setOccupation(String value)
	{
		this.occupation = value;
	}
	public String getJobRole()
	{
		return this.jobrole;
	}
	public void setJobRole(String value)
	{
		this.jobrole = value;
	}
	public ims.vo.LookupInstanceBean getLocation()
	{
		return this.location;
	}
	public void setLocation(ims.vo.LookupInstanceBean value)
	{
		this.location = value;
	}
	public ims.therapies.vo.beans.RoomDetailsVoBean[] getRooms()
	{
		return this.rooms;
	}
	public void setRooms(ims.therapies.vo.beans.RoomDetailsVoBean[] value)
	{
		this.rooms = value;
	}
	public ims.therapies.vo.beans.HomeDetailsVoBean getHouseDetails()
	{
		return this.housedetails;
	}
	public void setHouseDetails(ims.therapies.vo.beans.HomeDetailsVoBean value)
	{
		this.housedetails = value;
	}
	public ims.therapies.vo.beans.VisitSummaryVoBean getVisitSummary()
	{
		return this.visitsummary;
	}
	public void setVisitSummary(ims.therapies.vo.beans.VisitSummaryVoBean value)
	{
		this.visitsummary = value;
	}
	public ims.therapies.vo.beans.VisitAssessmentComponentVoBean[] getVisitAssessmentDetails()
	{
		return this.visitassessmentdetails;
	}
	public void setVisitAssessmentDetails(ims.therapies.vo.beans.VisitAssessmentComponentVoBean[] value)
	{
		this.visitassessmentdetails = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.core.vo.beans.HcpBean getAuthoringCP()
	{
		return this.authoringcp;
	}
	public void setAuthoringCP(ims.core.vo.beans.HcpBean value)
	{
		this.authoringcp = value;
	}
	public ims.framework.utils.beans.DateTimeBean getAuthoringDateTime()
	{
		return this.authoringdatetime;
	}
	public void setAuthoringDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.authoringdatetime = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.vo.RefVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.vo.RefVoBean value)
	{
		this.clinicalcontact = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateBean visitdate;
	private ims.core.vo.beans.HcpBean therapistpresent;
	private String otherspresent;
	private String occupation;
	private String jobrole;
	private ims.vo.LookupInstanceBean location;
	private ims.therapies.vo.beans.RoomDetailsVoBean[] rooms;
	private ims.therapies.vo.beans.HomeDetailsVoBean housedetails;
	private ims.therapies.vo.beans.VisitSummaryVoBean visitsummary;
	private ims.therapies.vo.beans.VisitAssessmentComponentVoBean[] visitassessmentdetails;
	private ims.vo.SysInfoBean sysinfo;
	private ims.core.vo.beans.HcpBean authoringcp;
	private ims.framework.utils.beans.DateTimeBean authoringdatetime;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.RefVoBean clinicalcontact;
}
