/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PatientHomeSituationVoBean.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 PatientHomeSituationVoBean extends ims.vo.ValueObjectBean
{
	public PatientHomeSituationVoBean()
	{
	}
	public PatientHomeSituationVoBean(ims.core.vo.PatientHomeSituationVo 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.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.accomtype = vo.getAccomType() == null ? null : (ims.vo.LookupInstanceBean)vo.getAccomType().getBean();
		this.accomtypeother = vo.getAccomTypeOther();
		this.ownership = vo.getOwnership() == null ? null : (ims.vo.LookupInstanceBean)vo.getOwnership().getBean();
		this.supervisedby = vo.getSupervisedBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getSupervisedBy().getBean();
		this.supervisename = vo.getSuperviseName();
		this.superviseaddress = vo.getSuperviseAddress();
		this.supervisephoneno = vo.getSupervisePhoneNo();
		this.floorlevel = vo.getFloorLevel() == null ? null : (ims.vo.LookupInstanceBean)vo.getFloorLevel().getBean();
		this.lift = vo.getLift() == null ? null : (ims.vo.LookupInstanceBean)vo.getLift().getBean();
		this.stairs = vo.getStairs() == null ? null : (ims.vo.LookupInstanceBean)vo.getStairs().getBean();
		this.stairslift = vo.getStairsLift();
		this.rails = vo.getRails() == null ? null : (ims.vo.LookupInstanceBean)vo.getRails().getBean();
		this.railside = vo.getRailSide() == null ? null : (ims.vo.LookupInstanceBean)vo.getRailSide().getBean();
		this.bathroom = vo.getBathroom();
		this.bathroomlocation = vo.getBathroomLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getBathroomLocation().getBean();
		this.toilet = vo.getToilet();
		this.toiletlocation = vo.getToiletLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getToiletLocation().getBean();
		this.shower = vo.getShower();
		this.showerlocation = vo.getShowerLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getShowerLocation().getBean();
		this.housekeys = vo.getHouseKeys();
		this.spareset = vo.getSpareSet();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.liveswith = vo.getLivesWith() == null ? null : (ims.vo.LookupInstanceBean)vo.getLivesWith().getBean();
		this.liveswithdetails = vo.getLivesWithDetails();
		this.fittocareforpatient = vo.getFitToCareForPatient() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToCareForPatient().getBean();
		this.fittotakehome = vo.getFitToTakeHome() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToTakeHome().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PatientHomeSituationVo 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.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.accomtype = vo.getAccomType() == null ? null : (ims.vo.LookupInstanceBean)vo.getAccomType().getBean();
		this.accomtypeother = vo.getAccomTypeOther();
		this.ownership = vo.getOwnership() == null ? null : (ims.vo.LookupInstanceBean)vo.getOwnership().getBean();
		this.supervisedby = vo.getSupervisedBy() == null ? null : (ims.vo.LookupInstanceBean)vo.getSupervisedBy().getBean();
		this.supervisename = vo.getSuperviseName();
		this.superviseaddress = vo.getSuperviseAddress();
		this.supervisephoneno = vo.getSupervisePhoneNo();
		this.floorlevel = vo.getFloorLevel() == null ? null : (ims.vo.LookupInstanceBean)vo.getFloorLevel().getBean();
		this.lift = vo.getLift() == null ? null : (ims.vo.LookupInstanceBean)vo.getLift().getBean();
		this.stairs = vo.getStairs() == null ? null : (ims.vo.LookupInstanceBean)vo.getStairs().getBean();
		this.stairslift = vo.getStairsLift();
		this.rails = vo.getRails() == null ? null : (ims.vo.LookupInstanceBean)vo.getRails().getBean();
		this.railside = vo.getRailSide() == null ? null : (ims.vo.LookupInstanceBean)vo.getRailSide().getBean();
		this.bathroom = vo.getBathroom();
		this.bathroomlocation = vo.getBathroomLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getBathroomLocation().getBean();
		this.toilet = vo.getToilet();
		this.toiletlocation = vo.getToiletLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getToiletLocation().getBean();
		this.shower = vo.getShower();
		this.showerlocation = vo.getShowerLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getShowerLocation().getBean();
		this.housekeys = vo.getHouseKeys();
		this.spareset = vo.getSpareSet();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.liveswith = vo.getLivesWith() == null ? null : (ims.vo.LookupInstanceBean)vo.getLivesWith().getBean();
		this.liveswithdetails = vo.getLivesWithDetails();
		this.fittocareforpatient = vo.getFitToCareForPatient() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToCareForPatient().getBean();
		this.fittotakehome = vo.getFitToTakeHome() == null ? null : (ims.vo.LookupInstanceBean)vo.getFitToTakeHome().getBean();
	}

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

	public ims.core.vo.PatientHomeSituationVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PatientHomeSituationVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PatientHomeSituationVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PatientHomeSituationVo();
			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.vo.RefVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.vo.RefVoBean value)
	{
		this.clinicalcontact = value;
	}
	public ims.vo.LookupInstanceBean getAccomType()
	{
		return this.accomtype;
	}
	public void setAccomType(ims.vo.LookupInstanceBean value)
	{
		this.accomtype = value;
	}
	public String getAccomTypeOther()
	{
		return this.accomtypeother;
	}
	public void setAccomTypeOther(String value)
	{
		this.accomtypeother = value;
	}
	public ims.vo.LookupInstanceBean getOwnership()
	{
		return this.ownership;
	}
	public void setOwnership(ims.vo.LookupInstanceBean value)
	{
		this.ownership = value;
	}
	public ims.vo.LookupInstanceBean getSupervisedBy()
	{
		return this.supervisedby;
	}
	public void setSupervisedBy(ims.vo.LookupInstanceBean value)
	{
		this.supervisedby = value;
	}
	public String getSuperviseName()
	{
		return this.supervisename;
	}
	public void setSuperviseName(String value)
	{
		this.supervisename = value;
	}
	public String getSuperviseAddress()
	{
		return this.superviseaddress;
	}
	public void setSuperviseAddress(String value)
	{
		this.superviseaddress = value;
	}
	public String getSupervisePhoneNo()
	{
		return this.supervisephoneno;
	}
	public void setSupervisePhoneNo(String value)
	{
		this.supervisephoneno = value;
	}
	public ims.vo.LookupInstanceBean getFloorLevel()
	{
		return this.floorlevel;
	}
	public void setFloorLevel(ims.vo.LookupInstanceBean value)
	{
		this.floorlevel = value;
	}
	public ims.vo.LookupInstanceBean getLift()
	{
		return this.lift;
	}
	public void setLift(ims.vo.LookupInstanceBean value)
	{
		this.lift = value;
	}
	public ims.vo.LookupInstanceBean getStairs()
	{
		return this.stairs;
	}
	public void setStairs(ims.vo.LookupInstanceBean value)
	{
		this.stairs = value;
	}
	public String getStairsLift()
	{
		return this.stairslift;
	}
	public void setStairsLift(String value)
	{
		this.stairslift = value;
	}
	public ims.vo.LookupInstanceBean getRails()
	{
		return this.rails;
	}
	public void setRails(ims.vo.LookupInstanceBean value)
	{
		this.rails = value;
	}
	public ims.vo.LookupInstanceBean getRailSide()
	{
		return this.railside;
	}
	public void setRailSide(ims.vo.LookupInstanceBean value)
	{
		this.railside = value;
	}
	public String getBathroom()
	{
		return this.bathroom;
	}
	public void setBathroom(String value)
	{
		this.bathroom = value;
	}
	public ims.vo.LookupInstanceBean getBathroomLocation()
	{
		return this.bathroomlocation;
	}
	public void setBathroomLocation(ims.vo.LookupInstanceBean value)
	{
		this.bathroomlocation = value;
	}
	public String getToilet()
	{
		return this.toilet;
	}
	public void setToilet(String value)
	{
		this.toilet = value;
	}
	public ims.vo.LookupInstanceBean getToiletLocation()
	{
		return this.toiletlocation;
	}
	public void setToiletLocation(ims.vo.LookupInstanceBean value)
	{
		this.toiletlocation = value;
	}
	public String getShower()
	{
		return this.shower;
	}
	public void setShower(String value)
	{
		this.shower = value;
	}
	public ims.vo.LookupInstanceBean getShowerLocation()
	{
		return this.showerlocation;
	}
	public void setShowerLocation(ims.vo.LookupInstanceBean value)
	{
		this.showerlocation = value;
	}
	public String getHouseKeys()
	{
		return this.housekeys;
	}
	public void setHouseKeys(String value)
	{
		this.housekeys = value;
	}
	public String getSpareSet()
	{
		return this.spareset;
	}
	public void setSpareSet(String value)
	{
		this.spareset = 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 getLivesWith()
	{
		return this.liveswith;
	}
	public void setLivesWith(ims.vo.LookupInstanceBean value)
	{
		this.liveswith = value;
	}
	public String getLivesWithDetails()
	{
		return this.liveswithdetails;
	}
	public void setLivesWithDetails(String value)
	{
		this.liveswithdetails = 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;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.RefVoBean clinicalcontact;
	private ims.vo.LookupInstanceBean accomtype;
	private String accomtypeother;
	private ims.vo.LookupInstanceBean ownership;
	private ims.vo.LookupInstanceBean supervisedby;
	private String supervisename;
	private String superviseaddress;
	private String supervisephoneno;
	private ims.vo.LookupInstanceBean floorlevel;
	private ims.vo.LookupInstanceBean lift;
	private ims.vo.LookupInstanceBean stairs;
	private String stairslift;
	private ims.vo.LookupInstanceBean rails;
	private ims.vo.LookupInstanceBean railside;
	private String bathroom;
	private ims.vo.LookupInstanceBean bathroomlocation;
	private String toilet;
	private ims.vo.LookupInstanceBean toiletlocation;
	private String shower;
	private ims.vo.LookupInstanceBean showerlocation;
	private String housekeys;
	private String spareset;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.vo.LookupInstanceBean liveswith;
	private String liveswithdetails;
	private ims.vo.LookupInstanceBean fittocareforpatient;
	private ims.vo.LookupInstanceBean fittotakehome;
}
