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

public class TIIGVoBean extends ims.vo.ValueObjectBean
{
	public TIIGVoBean()
	{
	}
	public TIIGVoBean(ims.emergency.vo.TIIGVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.episode = vo.getEpisode() == null ? null : new ims.vo.RefVoBean(vo.getEpisode().getBoId(), vo.getEpisode().getBoVersion());
		this.attendance = vo.getAttendance() == null ? null : new ims.vo.RefVoBean(vo.getAttendance().getBoId(), vo.getAttendance().getBoVersion());
		this.hadpatientconsumedalcohol = vo.getHadPatientConsumedAlcohol() == null ? null : (ims.vo.LookupInstanceBean)vo.getHadPatientConsumedAlcohol().getBean();
		this.assaultweapon = vo.getAssaultWeapon() == null ? null : (ims.vo.LookupInstanceBean)vo.getAssaultWeapon().getBean();
		this.assaultlocation = vo.getAssaultLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getAssaultLocation().getBean();
		this.relationshiptoattacker = vo.getRelationshipToAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getRelationshipToAttacker().getBean();
		this.intendtoinformpolice = vo.getIntendToInformPolice() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntendToInformPolice().getBean();
		this.consumedorpurchasedalcoholfrom = vo.getConsumedOrPurchasedAlcoholFrom() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsumedOrPurchasedAlcoholFrom().getBean();
		this.numberofattackers = vo.getNumberOfAttackers() == null ? null : (ims.vo.LookupInstanceBean)vo.getNumberOfAttackers().getBean();
		this.genderofattacker = vo.getGenderofAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderofAttacker().getBean();
		this.previouslyassulatedbyattacker = vo.getPreviouslyAssulatedByAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreviouslyAssulatedByAttacker().getBean();
		this.assaultlocationdetails = vo.getAssaultLocationDetails();
		this.relationshiptoattackerdetails = vo.getRelationshipToAttackerDetails();
		this.assaultweapondetails = vo.getAssaultWeaponDetails();
		this.lastdrinklocationdetails = vo.getLastDrinkLocationDetails();
		this.attackerhadconsumedalcohol = vo.getAttackerHadConsumedAlcohol() == null ? null : (ims.vo.LookupInstanceBean)vo.getAttackerHadConsumedAlcohol().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.emergency.vo.TIIGVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.episode = vo.getEpisode() == null ? null : new ims.vo.RefVoBean(vo.getEpisode().getBoId(), vo.getEpisode().getBoVersion());
		this.attendance = vo.getAttendance() == null ? null : new ims.vo.RefVoBean(vo.getAttendance().getBoId(), vo.getAttendance().getBoVersion());
		this.hadpatientconsumedalcohol = vo.getHadPatientConsumedAlcohol() == null ? null : (ims.vo.LookupInstanceBean)vo.getHadPatientConsumedAlcohol().getBean();
		this.assaultweapon = vo.getAssaultWeapon() == null ? null : (ims.vo.LookupInstanceBean)vo.getAssaultWeapon().getBean();
		this.assaultlocation = vo.getAssaultLocation() == null ? null : (ims.vo.LookupInstanceBean)vo.getAssaultLocation().getBean();
		this.relationshiptoattacker = vo.getRelationshipToAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getRelationshipToAttacker().getBean();
		this.intendtoinformpolice = vo.getIntendToInformPolice() == null ? null : (ims.vo.LookupInstanceBean)vo.getIntendToInformPolice().getBean();
		this.consumedorpurchasedalcoholfrom = vo.getConsumedOrPurchasedAlcoholFrom() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsumedOrPurchasedAlcoholFrom().getBean();
		this.numberofattackers = vo.getNumberOfAttackers() == null ? null : (ims.vo.LookupInstanceBean)vo.getNumberOfAttackers().getBean();
		this.genderofattacker = vo.getGenderofAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderofAttacker().getBean();
		this.previouslyassulatedbyattacker = vo.getPreviouslyAssulatedByAttacker() == null ? null : (ims.vo.LookupInstanceBean)vo.getPreviouslyAssulatedByAttacker().getBean();
		this.assaultlocationdetails = vo.getAssaultLocationDetails();
		this.relationshiptoattackerdetails = vo.getRelationshipToAttackerDetails();
		this.assaultweapondetails = vo.getAssaultWeaponDetails();
		this.lastdrinklocationdetails = vo.getLastDrinkLocationDetails();
		this.attackerhadconsumedalcohol = vo.getAttackerHadConsumedAlcohol() == null ? null : (ims.vo.LookupInstanceBean)vo.getAttackerHadConsumedAlcohol().getBean();
	}

	public ims.emergency.vo.TIIGVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.emergency.vo.TIIGVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.emergency.vo.TIIGVo vo = null;
		if(map != null)
			vo = (ims.emergency.vo.TIIGVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.emergency.vo.TIIGVo();
			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 getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}
	public ims.vo.RefVoBean getEpisode()
	{
		return this.episode;
	}
	public void setEpisode(ims.vo.RefVoBean value)
	{
		this.episode = value;
	}
	public ims.vo.RefVoBean getAttendance()
	{
		return this.attendance;
	}
	public void setAttendance(ims.vo.RefVoBean value)
	{
		this.attendance = value;
	}
	public ims.vo.LookupInstanceBean getHadPatientConsumedAlcohol()
	{
		return this.hadpatientconsumedalcohol;
	}
	public void setHadPatientConsumedAlcohol(ims.vo.LookupInstanceBean value)
	{
		this.hadpatientconsumedalcohol = value;
	}
	public ims.vo.LookupInstanceBean getAssaultWeapon()
	{
		return this.assaultweapon;
	}
	public void setAssaultWeapon(ims.vo.LookupInstanceBean value)
	{
		this.assaultweapon = value;
	}
	public ims.vo.LookupInstanceBean getAssaultLocation()
	{
		return this.assaultlocation;
	}
	public void setAssaultLocation(ims.vo.LookupInstanceBean value)
	{
		this.assaultlocation = value;
	}
	public ims.vo.LookupInstanceBean getRelationshipToAttacker()
	{
		return this.relationshiptoattacker;
	}
	public void setRelationshipToAttacker(ims.vo.LookupInstanceBean value)
	{
		this.relationshiptoattacker = value;
	}
	public ims.vo.LookupInstanceBean getIntendToInformPolice()
	{
		return this.intendtoinformpolice;
	}
	public void setIntendToInformPolice(ims.vo.LookupInstanceBean value)
	{
		this.intendtoinformpolice = value;
	}
	public ims.vo.LookupInstanceBean getConsumedOrPurchasedAlcoholFrom()
	{
		return this.consumedorpurchasedalcoholfrom;
	}
	public void setConsumedOrPurchasedAlcoholFrom(ims.vo.LookupInstanceBean value)
	{
		this.consumedorpurchasedalcoholfrom = value;
	}
	public ims.vo.LookupInstanceBean getNumberOfAttackers()
	{
		return this.numberofattackers;
	}
	public void setNumberOfAttackers(ims.vo.LookupInstanceBean value)
	{
		this.numberofattackers = value;
	}
	public ims.vo.LookupInstanceBean getGenderofAttacker()
	{
		return this.genderofattacker;
	}
	public void setGenderofAttacker(ims.vo.LookupInstanceBean value)
	{
		this.genderofattacker = value;
	}
	public ims.vo.LookupInstanceBean getPreviouslyAssulatedByAttacker()
	{
		return this.previouslyassulatedbyattacker;
	}
	public void setPreviouslyAssulatedByAttacker(ims.vo.LookupInstanceBean value)
	{
		this.previouslyassulatedbyattacker = value;
	}
	public String getAssaultLocationDetails()
	{
		return this.assaultlocationdetails;
	}
	public void setAssaultLocationDetails(String value)
	{
		this.assaultlocationdetails = value;
	}
	public String getRelationshipToAttackerDetails()
	{
		return this.relationshiptoattackerdetails;
	}
	public void setRelationshipToAttackerDetails(String value)
	{
		this.relationshiptoattackerdetails = value;
	}
	public String getAssaultWeaponDetails()
	{
		return this.assaultweapondetails;
	}
	public void setAssaultWeaponDetails(String value)
	{
		this.assaultweapondetails = value;
	}
	public String getLastDrinkLocationDetails()
	{
		return this.lastdrinklocationdetails;
	}
	public void setLastDrinkLocationDetails(String value)
	{
		this.lastdrinklocationdetails = value;
	}
	public ims.vo.LookupInstanceBean getAttackerHadConsumedAlcohol()
	{
		return this.attackerhadconsumedalcohol;
	}
	public void setAttackerHadConsumedAlcohol(ims.vo.LookupInstanceBean value)
	{
		this.attackerhadconsumedalcohol = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean patient;
	private ims.vo.RefVoBean episode;
	private ims.vo.RefVoBean attendance;
	private ims.vo.LookupInstanceBean hadpatientconsumedalcohol;
	private ims.vo.LookupInstanceBean assaultweapon;
	private ims.vo.LookupInstanceBean assaultlocation;
	private ims.vo.LookupInstanceBean relationshiptoattacker;
	private ims.vo.LookupInstanceBean intendtoinformpolice;
	private ims.vo.LookupInstanceBean consumedorpurchasedalcoholfrom;
	private ims.vo.LookupInstanceBean numberofattackers;
	private ims.vo.LookupInstanceBean genderofattacker;
	private ims.vo.LookupInstanceBean previouslyassulatedbyattacker;
	private String assaultlocationdetails;
	private String relationshiptoattackerdetails;
	private String assaultweapondetails;
	private String lastdrinklocationdetails;
	private ims.vo.LookupInstanceBean attackerhadconsumedalcohol;
}
