gt: 		return this.episodeofcare != null;
context: //#############################################################################
  //#                                                                           #
  //#  Copyright (C) <2014>  <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/>.    #
  //#                                                                           #
  //#############################################################################
  //#EOH
  // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
  // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
  // WARNING: DO NOT MODIFY the content of this file
  
  package ims.oncology.vo;
  
  /**
   * Linked to Oncology.WaitingTimesAdjustmentsandReasons business object (ID: 1074100019).
   */
  public class WaitingTimesAdjustmentsAndReasonsVo extends ims.oncology.vo.WaitingTimesAdjustmentsandReasonsRefVo implements ims.vo.ImsCloneable, Comparable
  {
  	private static final long serialVersionUID = 1L;
  
  	public WaitingTimesAdjustmentsAndReasonsVo()
  	{
  	}
  	public WaitingTimesAdjustmentsAndReasonsVo(Integer id, int version)
  	{
  		super(id, version);
  	}
  	public WaitingTimesAdjustmentsAndReasonsVo(ims.oncology.vo.beans.WaitingTimesAdjustmentsAndReasonsVoBean bean)
  	{
  		this.id = bean.getId();
  		this.version = bean.getVersion();
  		this.carecontext = bean.getCareContext() == null ? null : new ims.core.admin.vo.CareContextRefVo(new Integer(bean.getCareContext().getId()), bean.getCareContext().getVersion());
  		this.adjreferralfirstseen = bean.getAdjReferralFirstSeen();
  		this.reasreferralfirstseen = bean.getReasReferralFirstSeen() == null ? null : ims.oncology.vo.lookups.DateReferralDateFirstSeenReason.buildLookup(bean.getReasReferralFirstSeen());
  		this.adjfirstseendectreat = bean.getAdjFirstSeenDecTreat();
  		this.reasfirstseendectreat = bean.getReasFirstSeenDecTreat() == null ? null : ims.oncology.vo.lookups.DateFirstSeenDateDecTreatReas.buildLookup(bean.getReasFirstSeenDecTreat());
  		this.adjdectreattreatment = bean.getAdjDecTreatTreatment();
  		this.reasdectreattreatment = bean.getReasDecTreatTreatment() == null ? null : ims.oncology.vo.lookups.ReasDateDecTreatTreatment.buildLookup(bean.getReasDecTreatTreatment());
  		this.delayreasreferraltreat = bean.getDelayReasReferralTreat() == null ? null : ims.oncology.vo.lookups.DelayReasReferralTreat.buildLookup(bean.getDelayReasReferralTreat());
  		this.notesreferraltreat = bean.getNotesReferralTreat();
  		this.delayreasdectreattreat = bean.getDelayReasDecTreatTreat() == null ? null : ims.oncology.vo.lookups.DelayReasDecTreatTreat.buildLookup(bean.getDelayReasDecTreatTreat());
  		this.notesdectreattreat = bean.getNotesDecTreatTreat();
  		this.episodeofcare = bean.getEpisodeofCare() == null ? null : new ims.core.admin.vo.EpisodeOfCareRefVo(new Integer(bean.getEpisodeofCare().getId()), bean.getEpisodeofCare().getVersion());
  	}
  	public void populate(ims.vo.ValueObjectBeanMap map, ims.oncology.vo.beans.WaitingTimesAdjustmentsAndReasonsVoBean bean)
  	{
  		this.id = bean.getId();
  		this.version = bean.getVersion();
  		this.carecontext = bean.getCareContext() == null ? null : new ims.core.admin.vo.CareContextRefVo(new Integer(bean.getCareContext().getId()), bean.getCareContext().getVersion());
  		this.adjreferralfirstseen = bean.getAdjReferralFirstSeen();
  		this.reasreferralfirstseen = bean.getReasReferralFirstSeen() == null ? null : ims.oncology.vo.lookups.DateReferralDateFirstSeenReason.buildLookup(bean.getReasReferralFirstSeen());
  		this.adjfirstseendectreat = bean.getAdjFirstSeenDecTreat();
  		this.reasfirstseendectreat = bean.getReasFirstSeenDecTreat() == null ? null : ims.oncology.vo.lookups.DateFirstSeenDateDecTreatReas.buildLookup(bean.getReasFirstSeenDecTreat());
  		this.adjdectreattreatment = bean.getAdjDecTreatTreatment();
  		this.reasdectreattreatment = bean.getReasDecTreatTreatment() == null ? null : ims.oncology.vo.lookups.ReasDateDecTreatTreatment.buildLookup(bean.getReasDecTreatTreatment());
  		this.delayreasreferraltreat = bean.getDelayReasReferralTreat() == null ? null : ims.oncology.vo.lookups.DelayReasReferralTreat.buildLookup(bean.getDelayReasReferralTreat());
  		this.notesreferraltreat = bean.getNotesReferralTreat();
  		this.delayreasdectreattreat = bean.getDelayReasDecTreatTreat() == null ? null : ims.oncology.vo.lookups.DelayReasDecTreatTreat.buildLookup(bean.getDelayReasDecTreatTreat());
  		this.notesdectreattreat = bean.getNotesDecTreatTreat();
  		this.episodeofcare = bean.getEpisodeofCare() == null ? null : new ims.core.admin.vo.EpisodeOfCareRefVo(new Integer(bean.getEpisodeofCare().getId()), bean.getEpisodeofCare().getVersion());
  	}
  	public ims.vo.ValueObjectBean getBean()
  	{
  		return this.getBean(new ims.vo.ValueObjectBeanMap());
  	}
  	public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map)
  	{
  		ims.oncology.vo.beans.WaitingTimesAdjustmentsAndReasonsVoBean bean = null;
  		if(map != null)
  			bean = (ims.oncology.vo.beans.WaitingTimesAdjustmentsAndReasonsVoBean)map.getValueObjectBean(this);
  		if (bean == null)
  		{
  			bean = new ims.oncology.vo.beans.WaitingTimesAdjustmentsAndReasonsVoBean();
  			map.addValueObjectBean(this, bean);
  			bean.populate(map, this);
  		}
  		return bean;
  	}
  	public Object getFieldValueByFieldName(String fieldName)
  	{
  		if(fieldName == null)
  			throw new ims.framework.exceptions.CodingRuntimeException("Invalid field name");
  		fieldName = fieldName.toUpperCase();
  		if(fieldName.equals("CARECONTEXT"))
  			return getCareContext();
  		if(fieldName.equals("ADJREFERRALFIRSTSEEN"))
  			return getAdjReferralFirstSeen();
  		if(fieldName.equals("REASREFERRALFIRSTSEEN"))
  			return getReasReferralFirstSeen();
  		if(fieldName.equals("ADJFIRSTSEENDECTREAT"))
  			return getAdjFirstSeenDecTreat();
  		if(fieldName.equals("REASFIRSTSEENDECTREAT"))
  			return getReasFirstSeenDecTreat();
  		if(fieldName.equals("ADJDECTREATTREATMENT"))
  			return getAdjDecTreatTreatment();
  		if(fieldName.equals("REASDECTREATTREATMENT"))
  			return getReasDecTreatTreatment();
  		if(fieldName.equals("DELAYREASREFERRALTREAT"))
  			return getDelayReasReferralTreat();
  		if(fieldName.equals("NOTESREFERRALTREAT"))
  			return getNotesReferralTreat();
  		if(fieldName.equals("DELAYREASDECTREATTREAT"))
  			return getDelayReasDecTreatTreat();
  		if(fieldName.equals("NOTESDECTREATTREAT"))
  			return getNotesDecTreatTreat();
  		if(fieldName.equals("EPISODEOFCARE"))
  			return getEpisodeofCare();
  		return super.getFieldValueByFieldName(fieldName);
  	}
  	public boolean getCareContextIsNotNull()
  	{
  		return this.carecontext != null;
  	}
  	public ims.core.admin.vo.CareContextRefVo getCareContext()
  	{
  		return this.carecontext;
  	}
  	public void setCareContext(ims.core.admin.vo.CareContextRefVo value)
  	{
  		this.isValidated = false;
  		this.carecontext = value;
  	}
  	public boolean getAdjReferralFirstSeenIsNotNull()
  	{
  		return this.adjreferralfirstseen != null;
  	}
  	public Integer getAdjReferralFirstSeen()
  	{
  		return this.adjreferralfirstseen;
  	}
  	public void setAdjReferralFirstSeen(Integer value)
  	{
  		this.isValidated = false;
  		this.adjreferralfirstseen = value;
  	}
  	public boolean getReasReferralFirstSeenIsNotNull()
  	{
  		return this.reasreferralfirstseen != null;
  	}
  	public ims.oncology.vo.lookups.DateReferralDateFirstSeenReason getReasReferralFirstSeen()
  	{
  		return this.reasreferralfirstseen;
  	}
  	public void setReasReferralFirstSeen(ims.oncology.vo.lookups.DateReferralDateFirstSeenReason value)
  	{
  		this.isValidated = false;
  		this.reasreferralfirstseen = value;
  	}
  	public boolean getAdjFirstSeenDecTreatIsNotNull()
  	{
  		return this.adjfirstseendectreat != null;
  	}
  	public Integer getAdjFirstSeenDecTreat()
  	{
  		return this.adjfirstseendectreat;
  	}
  	public void setAdjFirstSeenDecTreat(Integer value)
  	{
  		this.isValidated = false;
  		this.adjfirstseendectreat = value;
  	}
  	public boolean getReasFirstSeenDecTreatIsNotNull()
  	{
  		return this.reasfirstseendectreat != null;
  	}
  	public ims.oncology.vo.lookups.DateFirstSeenDateDecTreatReas getReasFirstSeenDecTreat()
  	{
  		return this.reasfirstseendectreat;
  	}
  	public void setReasFirstSeenDecTreat(ims.oncology.vo.lookups.DateFirstSeenDateDecTreatReas value)
  	{
  		this.isValidated = false;
  		this.reasfirstseendectreat = value;
  	}
  	public boolean getAdjDecTreatTreatmentIsNotNull()
  	{
  		return this.adjdectreattreatment != null;
  	}
  	public Integer getAdjDecTreatTreatment()
  	{
  		return this.adjdectreattreatment;
  	}
  	public void setAdjDecTreatTreatment(Integer value)
  	{
  		this.isValidated = false;
  		this.adjdectreattreatment = value;
  	}
  	public boolean getReasDecTreatTreatmentIsNotNull()
  	{
  		return this.reasdectreattreatment != null;
  	}
  	public ims.oncology.vo.lookups.ReasDateDecTreatTreatment getReasDecTreatTreatment()
  	{
  		return this.reasdectreattreatment;
  	}
  	public void setReasDecTreatTreatment(ims.oncology.vo.lookups.ReasDateDecTreatTreatment value)
  	{
  		this.isValidated = false;
  		this.reasdectreattreatment = value;
  	}
  	public boolean getDelayReasReferralTreatIsNotNull()
  	{
  		return this.delayreasreferraltreat != null;
  	}
  	public ims.oncology.vo.lookups.DelayReasReferralTreat getDelayReasReferralTreat()
  	{
  		return this.delayreasreferraltreat;
  	}
  	public void setDelayReasReferralTreat(ims.oncology.vo.lookups.DelayReasReferralTreat value)
  	{
  		this.isValidated = false;
  		this.delayreasreferraltreat = value;
  	}
  	public boolean getNotesReferralTreatIsNotNull()
  	{
  		return this.notesreferraltreat != null;
  	}
  	public String getNotesReferralTreat()
  	{
  		return this.notesreferraltreat;
  	}
  	public static int getNotesReferralTreatMaxLength()
  	{
  		return 255;
  	}
  	public void setNotesReferralTreat(String value)
  	{
  		this.isValidated = false;
  		this.notesreferraltreat = value;
  	}
  	public boolean getDelayReasDecTreatTreatIsNotNull()
  	{
  		return this.delayreasdectreattreat != null;
  	}
  	public ims.oncology.vo.lookups.DelayReasDecTreatTreat getDelayReasDecTreatTreat()
  	{
  		return this.delayreasdectreattreat;
  	}
  	public void setDelayReasDecTreatTreat(ims.oncology.vo.lookups.DelayReasDecTreatTreat value)
  	{
  		this.isValidated = false;
  		this.delayreasdectreattreat = value;
  	}
  	public boolean getNotesDecTreatTreatIsNotNull()
  	{
  		return this.notesdectreattreat != null;
  	}
  	public String getNotesDecTreatTreat()
  	{
  		return this.notesdectreattreat;
  	}
  	public static int getNotesDecTreatTreatMaxLength()
  	{
  		return 255;
  	}
  	public void setNotesDecTreatTreat(String value)
  	{
  		this.isValidated = false;
  		this.notesdectreattreat = value;
  	}
  	public boolean getEpisodeofCareIsNotNull()
  	{
  