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

/**
 * Linked to Oncology.WaitingTimes.WaitingTimes business object (ID: 1098100000).
 */
public class WaitingTimesVo extends ims.oncology.waitingtimes.vo.WaitingTimesRefVo implements ims.vo.ImsCloneable, Comparable
{
	private static final long serialVersionUID = 1L;

	public WaitingTimesVo()
	{
	}
	public WaitingTimesVo(Integer id, int version)
	{
		super(id, version);
	}
	public WaitingTimesVo(ims.oncology.vo.beans.WaitingTimesVoBean bean)
	{
		this.id = bean.getId();
		this.version = bean.getVersion();
		this.nhsnumber = bean.getNHSNumber();
		this.referralsource = bean.getReferralSource();
		this.refdecisiondate = bean.getRefDecisionDate() == null ? null : bean.getRefDecisionDate().buildDate();
		this.refreceiveddate = bean.getRefReceivedDate() == null ? null : bean.getRefReceivedDate().buildDate();
		this.prioritycode = bean.getPriorityCode();
		this.referraltype = bean.getReferralType();
		this.firstseendate = bean.getFirstSeenDate() == null ? null : bean.getFirstSeenDate().buildDate();
		this.firstseenorgacode = bean.getFirstSeenOrgaCode();
		this.wtadjustmentfs = bean.getWTAdjustmentFS();
		this.wtadjustmentreasonfs = bean.getWTAdjustmentReasonFS();
		this.breachreason = bean.getBreachReason();
		this.delayreasonreffirstseen = bean.getDelayReasonRefFirstSeen();
		this.specreferraldate = bean.getSpecReferralDate() == null ? null : bean.getSpecReferralDate().buildDate();
		this.referredby = bean.getReferredBy();
		this.specdatefirstseen = bean.getSpecDateFirstSeen() == null ? null : bean.getSpecDateFirstSeen().buildDate();
		this.specorgcode = bean.getSpecOrgCode();
		this.clinlinterventiondate = bean.getClinlInterventionDate() == null ? null : bean.getClinlInterventionDate().buildDate();
		this.clininterventionorgcode = bean.getClinInterventionOrgCode();
		this.mdtdiscussind = bean.getMDTDiscussInd();
		this.mdtdiscussdate = bean.getMDTDiscussDate() == null ? null : bean.getMDTDiscussDate().buildDate();
		this.cancerstatus = bean.getCancerStatus();
		this.primarydiagnosis = bean.getPrimaryDiagnosis();
		this.tumourlaterality = bean.getTumourLaterality();
		this.ddtdatesurgery = bean.getDDTDateSurgery() == null ? null : bean.getDDTDateSurgery().buildDate();
		this.ddtdatechemo = bean.getDDTDateChemo() == null ? null : bean.getDDTDateChemo().buildDate();
		this.ddtdatetele = bean.getDDTDateTele() == null ? null : bean.getDDTDateTele().buildDate();
		this.ddtdatebrachy = bean.getDDTDateBrachy() == null ? null : bean.getDDTDateBrachy().buildDate();
		this.ddtdatepalliative = bean.getDDTDatePalliative() == null ? null : bean.getDDTDatePalliative().buildDate();
		this.ddtdateactivemon = bean.getDDTDateActiveMon() == null ? null : bean.getDDTDateActiveMon().buildDate();
		this.ddtorgcode = bean.getDDTOrgCode();
		this.wtadjustmenttreat = bean.getWTAdjustmentTreat();
		this.wtadjustmentreasontreat = bean.getWTAdjustmentReasonTreat();
		this.plancancertreattype = bean.getPlanCancerTreatType();
		this.firsttreatmentdatesurg = bean.getFirstTreatmentDateSurg() == null ? null : bean.getFirstTreatmentDateSurg().buildDate();
		this.firsttreatmentdatechemo = bean.getFirstTreatmentDateChemo() == null ? null : bean.getFirstTreatmentDateChemo().buildDate();
		this.firsttreatmentdatetele = bean.getFirstTreatmentDateTele() == null ? null : bean.getFirstTreatmentDateTele().buildDate();
		this.firsttreatmentdatebrachy = bean.getFirstTreatmentDateBrachy() == null ? null : bean.getFirstTreatmentDateBrachy().buildDate();
		this.firsttreatmentdatespcare = bean.getFirstTreatmentDateSPCare() == null ? null : bean.getFirstTreatmentDateSPCare().buildDate();
		this.firsttreatmentdateactivemon = bean.getFirstTreatmentDateActiveMon() == null ? null : bean.getFirstTreatmentDateActiveMon().buildDate();
		this.firsttreatmentorgcode = bean.getFirstTreatmentOrgCode();
		this.wtadjustfirsttreat = bean.getWTAdjustFirstTreat();
		this.wtadjustmentreasonft = bean.getWTAdjustmentReasonFT();
		this.delayreasondtt = bean.getDelayReasonDTT();
		this.delayreasonrtt = bean.getDelayReasonRTT();
		this.delaycodedtt = bean.getDelayCodeDTT();
		this.delaycodertt = bean.getDelayCodeRTT();
	}
	public void populate(ims.vo.ValueObjectBeanMap map, ims.oncology.vo.beans.WaitingTimesVoBean bean)
	{
		this.id = bean.getId();
		this.version = bean.getVersion();
		this.nhsnumber = bean.getNHSNumber();
		this.referralsource = bean.getReferralSource();
		this.refdecisiondate = bean.getRefDecisionDate() == null ? null : bean.getRefDecisionDate().buildDate();
		this.refreceiveddate = bean.getRefReceivedDate() == null ? null : bean.getRefReceivedDate().buildDate();
		this.prioritycode = bean.getPriorityCode();
		this.referraltype = bean.getReferralType();
		this.firstseendate = bean.getFirstSeenDate() == null ? null : bean.getFirstSeenDate().buildDate();
		this.firstseenorgacode = bean.getFirstSeenOrgaCode();
		this.wtadjustmentfs = bean.getWTAdjustmentFS();
		this.wtadjustmentreasonfs = bean.getWTAdjustmentReasonFS();
		this.breachreason = bean.getBreachReason();
		this.delayreasonreffirstseen = bean.getDelayReasonRefFirstSeen();
		this.specreferraldate = bean.getSpecReferralDate() == null ? null : bean.getSpecReferralDate().buildDate();
		this.referredby = bean.getReferredBy();
		this.specdatefirstseen = bean.getSpecDateFirstSeen() == null ? null : bean.getSpecDateFirstSeen().buildDate();
		this.specorgcode = bean.getSpecOrgCode();
		this.clinlinterventiondate = bean.getClinlInterventionDate() == null ? null : bean.getClinlInterventionDate().buildDate();
		this.clininterventionorgcode = bean.getClinInterventionOrgCode();
		this.mdtdiscussind = bean.getMDTDiscussInd();
		this.mdtdiscussdate = bean.getMDTDiscussDate() == null ? null : bean.getMDTDiscussDate().buildDate();
		this.cancerstatus = bean.getCancerStatus();
		this.primarydiagnosis = bean.getPrimaryDiagnosis();
		this.tumourlaterality = bean.getTumourLaterality();
		this.ddtdatesurgery = bean.getDDTDateSurgery() == null ? null : bean.getDDTDateSurgery().buildDate();
		this.ddtdatechemo = bean.getDDTDateChemo() == null ? null : bean.getDDTDateChemo().buildDate();
		this.ddtdatetele = bean.getDDTDateTele() == null ? null : bean.getDDTDateTele().buildDate();
		this.ddtdatebrachy = bean.getDDTDateBrachy() == null ? null : bean.getDDTDateBrachy().buildDate();
		this.ddtdatepalliative = bean.getDDTDatePalliative() == null ? null : bean.getDDTDatePalliative().buildDate();
		this.ddtdateactivemon = bean.getDDTDateActiveMon() == null ? null : bean.getDDTDateActiveMon().buildDate();
		this.ddtorgcode = bean.getDDTOrgCode();
		this.wtadjustmenttreat = bean.getWTAdjustmentTreat();
		this.wtadjustmentreasontreat = bean.getWTAdjustmentReasonTreat();
		this.plancancertreattype = bean.getPlanCancerTreatType();
		this.firsttreatmentdatesurg = bean.getFirstTreatmentDateSurg() == null ? null : bean.getFirstTreatmentDateSurg().buildDate();
		this.firsttreatmentdatechemo = bean.getFirstTreatmentDateChemo() == null ? null : bean.getFirstTreatmentDateChemo().buildDate();
		this.firsttreatmentdatetele = bean.getFirstTreatmentDateTele() == null ? null : bean.getFirstTreatmentDateTele().buildDate();
		this.firsttreatmentdatebrachy = bean.getFirstTreatmentDateBrachy() == null ? null : bean.getFirstTreatmentDateBrachy().buildDate();
		this.firsttreatmentdatespcare = bean.getFirstTreatmentDateSPCare() == null ? null : bean.getFirstTreatmentDateSPCare().buildDate();
		this.firsttreatmentdateactivemon = bean.getFirstTreatmentDateActiveMon() == null ? null : bean.getFirstTreatmentDateActiveMon().buildDate();
		this.firsttreatmentorgcode = bean.getFirstTreatmentOrgCode();
		this.wtadjustfirsttreat = bean.getWTAdjustFirstTreat();
		this.wtadjustmentreasonft = bean.getWTAdjustmentReasonFT();
		this.delayreasondtt = bean.getDelayReasonDTT();
		this.delayreasonrtt = bean.getDelayReasonRTT();
		this.delaycodedtt = bean.getDelayCodeDTT();
		this.delaycodertt = bean.getDelayCodeRTT();
	}
	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.WaitingTimesVoBean bean = null;
		if(map != null)
			bean = (ims.oncology.vo.beans.WaitingTimesVoBean)map.getValueObjectBean(this);
		if (bean == null)
		{
			bean = new ims.oncology.vo.beans.WaitingTimesVoBean();
			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("NHSNUMBER"))
			return getNHSNumber();
		if(fieldName.equals("REFERRALSOURCE"))
			return getReferralSource();
		if(fieldName.equals("REFDECISIONDATE"))
			return getRefDecisionDate();
		if(fieldName.equals("REFRECEIVEDDATE"))
			return getRefReceivedDate();
		if(fieldName.equals("PRIORITYCODE"))
			return getPriorityCode();
		if(fieldName.equals("REFERRALTYPE"))
			return getReferralType();
		if(fieldName.equals("FIRSTSEENDATE"))
			return getFirstSeenDate();
		if(fieldName.equals("FIRSTSEENORGACODE"))
			return getFirstSeenOrgaCode();
		if(fieldName.equals("WTADJUSTMENTFS"))
			return getWTAdjustmentFS();
		if(fieldName.equals("WTADJUSTMENTREASONFS"))
			return getWTAdjustmentReasonFS();
		if(fieldName.equals("BREACHREASON"))
			return getBreachReason();
		if(fieldName.equals("DELAYREASONREFFIRSTSEEN"))
			return getDelayReasonRefFirstSeen();
		if(fieldName.equals("SPECREFERRALDATE"))
			return getSpecReferralDate();
		if(fieldName.equals("REFERREDBY"))
			return getReferredBy();
		if(fieldName.equals("SPECDATEFIRSTSEEN"))
			return getSpecDateFirstSeen();
		if(fieldName.equals("SPECORGCODE"))
			return getSpecOrgCode();
		if(fieldName.equals("CLINLINTERVENTIONDATE"))
			return getClinlInterventionDate();
		if(fieldName.equals("CLININTERVENTIONORGCODE"))
			return getClinInterventionOrgCode();
		if(fieldName.equals("MDTDISCUSSIND"))
			return getMDTDiscussInd();
		if(fieldName.equals("MDTDISCUSSDATE"))
			return getMDTDiscussDate();
		if(fieldName.equals("CANCERSTATUS"))
			return getCancerStatus();
		if(fieldName.equals("PRIMARYDIAGNOSIS"))
			return getPrimaryDiagnosis();
		if(fieldName.equals("TUMOURLATERALITY"))
			return getTumourLaterality();
		if(fieldName.equals("DDTDATESURGERY"))
			return getDDTDateSurgery();
		if(fieldName.equals("DDTDATECHEMO"))
			return getDDTDateChemo();
		if(fieldName.equals("DDTDATETELE"))
			return getDDTDateTele();
		if(fieldName.equals("DDTDATEBRACHY"))
			return getDDTDateBrachy();
		if(fieldName.equals("DDTDATEPALLIATIVE"))
			return getDDTDatePalliative();
		if(fieldName.equals("DDTDATEACTIVEMON"))
			return getDDTDateActiveMon();
		if(fieldName.equals("DDTORGCODE"))
			return getDDTOrgCode();
		if(fieldName.equals("WTADJUSTMENTTREAT"))
			return getWTAdjustmentTreat();
		if(fieldName.equals("WTADJUSTMENTREASONTREAT"))
			return getWTAdjustmentReasonTreat();
		if(fieldName.equals("PLANCANCERTREATTYPE"))
			return getPlanCancerTreatType();
		if(fieldName.equals("FIRSTTREATMENTDATESURG"))
			return getFirstTreatmentDateSurg();
		if(fieldName.equals("FIRSTTREATMENTDATECHEMO"))
			return getFirstTreatmentDateChemo();
		if(fieldName.equals("FIRSTTREATMENTDATETELE"))
			return getFirstTreatmentDateTele();
		if(fieldName.equals("FIRSTTREATMENTDATEBRACHY"))
			return getFirstTreatmentDateBrachy();
		if(fieldName.equals("FIRSTTREATMENTDATESPCARE"))
			return getFirstTreatmentDateSPCare();
		if(fieldName.equals("FIRSTTREATMENTDATEACTIVEMON"))
			return getFirstTreatmentDateActiveMon();
		if(fieldName.equals("FIRSTTREATMENTORGCODE"))
			return getFirstTreatmentOrgCode();
		if(fieldName.equals("WTADJUSTFIRSTTREAT"))
			return getWTAdjustFirstTreat();
		if(fieldName.equals("WTADJUSTMENTREASONFT"))
			return getWTAdjustmentReasonFT();
		if(fieldName.equals("DELAYREASONDTT"))
			return getDelayReasonDTT();
		if(fieldName.equals("DELAYREASONRTT"))
			return getDelayReasonRTT();
		if(fieldName.equals("DELAYCODEDTT"))
			return getDelayCodeDTT();
		if(fieldName.equals("DELAYCODERTT"))
			return getDelayCodeRTT();
		return super.getFieldValueByFieldName(fieldName);
	}
	public boolean getNHSNumberIsNotNull()
	{
		return this.nhsnumber != null;
	}
	public String getNHSNumber()
	{
		return this.nhsnumber;
	}
	public static int getNHSNumberMaxLength()
	{
		return 10;
	}
	public void setNHSNumber(String value)
	{
		this.isValidated = false;
		this.nhsnumber = value;
	}
	public boolean getReferralSourceIsNotNull()
	{
		return this.referralsource != null;
	}
	public String getReferralSource()
	{
		return this.referralsource;
	}
	public static int getReferralSourceMaxLength()
	{
		return 15;
	}
	public void setReferralSource(String value)
	{
		this.isValidated = false;
		this.referralsource = value;
	}
	public boolean getRefDecisionDateIsNotNull()
	{
		return this.refdecisiondate != null;
	}
	public ims.framework.utils.Date getRefDecisionDate()
	{
		return this.refdecisiondate;
	}
	public void setRefDecisionDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.refdecisiondate = value;
	}
	public boolean getRefReceivedDateIsNotNull()
	{
		return this.refreceiveddate != null;
	}
	public ims.framework.utils.Date getRefReceivedDate()
	{
		return this.refreceiveddate;
	}
	public void setRefReceivedDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.refreceiveddate = value;
	}
	public boolean getPriorityCodeIsNotNull()
	{
		return this.prioritycode != null;
	}
	public String getPriorityCode()
	{
		return this.prioritycode;
	}
	public static int getPriorityCodeMaxLength()
	{
		return 15;
	}
	public void setPriorityCode(String value)
	{
		this.isValidated = false;
		this.prioritycode = value;
	}
	public boolean getReferralTypeIsNotNull()
	{
		return this.referraltype != null;
	}
	public String getReferralType()
	{
		return this.referraltype;
	}
	public static int getReferralTypeMaxLength()
	{
		return 15;
	}
	public void setReferralType(String value)
	{
		this.isValidated = false;
		this.referraltype = value;
	}
	public boolean getFirstSeenDateIsNotNull()
	{
		return this.firstseendate != null;
	}
	public ims.framework.utils.Date getFirstSeenDate()
	{
		return this.firstseendate;
	}
	public void setFirstSeenDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firstseendate = value;
	}
	public boolean getFirstSeenOrgaCodeIsNotNull()
	{
		return this.firstseenorgacode != null;
	}
	public String getFirstSeenOrgaCode()
	{
		return this.firstseenorgacode;
	}
	public static int getFirstSeenOrgaCodeMaxLength()
	{
		return 15;
	}
	public void setFirstSeenOrgaCode(String value)
	{
		this.isValidated = false;
		this.firstseenorgacode = value;
	}
	public boolean getWTAdjustmentFSIsNotNull()
	{
		return this.wtadjustmentfs != null;
	}
	public Integer getWTAdjustmentFS()
	{
		return this.wtadjustmentfs;
	}
	public void setWTAdjustmentFS(Integer value)
	{
		this.isValidated = false;
		this.wtadjustmentfs = value;
	}
	public boolean getWTAdjustmentReasonFSIsNotNull()
	{
		return this.wtadjustmentreasonfs != null;
	}
	public String getWTAdjustmentReasonFS()
	{
		return this.wtadjustmentreasonfs;
	}
	public static int getWTAdjustmentReasonFSMaxLength()
	{
		return 1;
	}
	public void setWTAdjustmentReasonFS(String value)
	{
		this.isValidated = false;
		this.wtadjustmentreasonfs = value;
	}
	public boolean getBreachReasonIsNotNull()
	{
		return this.breachreason != null;
	}
	public String getBreachReason()
	{
		return this.breachreason;
	}
	public static int getBreachReasonMaxLength()
	{
		return 1000;
	}
	public void setBreachReason(String value)
	{
		this.isValidated = false;
		this.breachreason = value;
	}
	public boolean getDelayReasonRefFirstSeenIsNotNull()
	{
		return this.delayreasonreffirstseen != null;
	}
	public String getDelayReasonRefFirstSeen()
	{
		return this.delayreasonreffirstseen;
	}
	public static int getDelayReasonRefFirstSeenMaxLength()
	{
		return 2;
	}
	public void setDelayReasonRefFirstSeen(String value)
	{
		this.isValidated = false;
		this.delayreasonreffirstseen = value;
	}
	public boolean getSpecReferralDateIsNotNull()
	{
		return this.specreferraldate != null;
	}
	public ims.framework.utils.Date getSpecReferralDate()
	{
		return this.specreferraldate;
	}
	public void setSpecReferralDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.specreferraldate = value;
	}
	public boolean getReferredByIsNotNull()
	{
		return this.referredby != null;
	}
	public String getReferredBy()
	{
		return this.referredby;
	}
	public static int getReferredByMaxLength()
	{
		return 5;
	}
	public void setReferredBy(String value)
	{
		this.isValidated = false;
		this.referredby = value;
	}
	public boolean getSpecDateFirstSeenIsNotNull()
	{
		return this.specdatefirstseen != null;
	}
	public ims.framework.utils.Date getSpecDateFirstSeen()
	{
		return this.specdatefirstseen;
	}
	public void setSpecDateFirstSeen(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.specdatefirstseen = value;
	}
	public boolean getSpecOrgCodeIsNotNull()
	{
		return this.specorgcode != null;
	}
	public String getSpecOrgCode()
	{
		return this.specorgcode;
	}
	public static int getSpecOrgCodeMaxLength()
	{
		return 5;
	}
	public void setSpecOrgCode(String value)
	{
		this.isValidated = false;
		this.specorgcode = value;
	}
	public boolean getClinlInterventionDateIsNotNull()
	{
		return this.clinlinterventiondate != null;
	}
	public ims.framework.utils.Date getClinlInterventionDate()
	{
		return this.clinlinterventiondate;
	}
	public void setClinlInterventionDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.clinlinterventiondate = value;
	}
	public boolean getClinInterventionOrgCodeIsNotNull()
	{
		return this.clininterventionorgcode != null;
	}
	public String getClinInterventionOrgCode()
	{
		return this.clininterventionorgcode;
	}
	public static int getClinInterventionOrgCodeMaxLength()
	{
		return 5;
	}
	public void setClinInterventionOrgCode(String value)
	{
		this.isValidated = false;
		this.clininterventionorgcode = value;
	}
	public boolean getMDTDiscussIndIsNotNull()
	{
		return this.mdtdiscussind != null;
	}
	public String getMDTDiscussInd()
	{
		return this.mdtdiscussind;
	}
	public static int getMDTDiscussIndMaxLength()
	{
		return 1;
	}
	public void setMDTDiscussInd(String value)
	{
		this.isValidated = false;
		this.mdtdiscussind = value;
	}
	public boolean getMDTDiscussDateIsNotNull()
	{
		return this.mdtdiscussdate != null;
	}
	public ims.framework.utils.Date getMDTDiscussDate()
	{
		return this.mdtdiscussdate;
	}
	public void setMDTDiscussDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.mdtdiscussdate = value;
	}
	public boolean getCancerStatusIsNotNull()
	{
		return this.cancerstatus != null;
	}
	public String getCancerStatus()
	{
		return this.cancerstatus;
	}
	public static int getCancerStatusMaxLength()
	{
		return 1;
	}
	public void setCancerStatus(String value)
	{
		this.isValidated = false;
		this.cancerstatus = value;
	}
	public boolean getPrimaryDiagnosisIsNotNull()
	{
		return this.primarydiagnosis != null;
	}
	public String getPrimaryDiagnosis()
	{
		return this.primarydiagnosis;
	}
	public static int getPrimaryDiagnosisMaxLength()
	{
		return 5;
	}
	public void setPrimaryDiagnosis(String value)
	{
		this.isValidated = false;
		this.primarydiagnosis = value;
	}
	public boolean getTumourLateralityIsNotNull()
	{
		return this.tumourlaterality != null;
	}
	public String getTumourLaterality()
	{
		return this.tumourlaterality;
	}
	public static int getTumourLateralityMaxLength()
	{
		return 1;
	}
	public void setTumourLaterality(String value)
	{
		this.isValidated = false;
		this.tumourlaterality = value;
	}
	public boolean getDDTDateSurgeryIsNotNull()
	{
		return this.ddtdatesurgery != null;
	}
	public ims.framework.utils.Date getDDTDateSurgery()
	{
		return this.ddtdatesurgery;
	}
	public void setDDTDateSurgery(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdatesurgery = value;
	}
	public boolean getDDTDateChemoIsNotNull()
	{
		return this.ddtdatechemo != null;
	}
	public ims.framework.utils.Date getDDTDateChemo()
	{
		return this.ddtdatechemo;
	}
	public void setDDTDateChemo(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdatechemo = value;
	}
	public boolean getDDTDateTeleIsNotNull()
	{
		return this.ddtdatetele != null;
	}
	public ims.framework.utils.Date getDDTDateTele()
	{
		return this.ddtdatetele;
	}
	public void setDDTDateTele(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdatetele = value;
	}
	public boolean getDDTDateBrachyIsNotNull()
	{
		return this.ddtdatebrachy != null;
	}
	public ims.framework.utils.Date getDDTDateBrachy()
	{
		return this.ddtdatebrachy;
	}
	public void setDDTDateBrachy(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdatebrachy = value;
	}
	public boolean getDDTDatePalliativeIsNotNull()
	{
		return this.ddtdatepalliative != null;
	}
	public ims.framework.utils.Date getDDTDatePalliative()
	{
		return this.ddtdatepalliative;
	}
	public void setDDTDatePalliative(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdatepalliative = value;
	}
	public boolean getDDTDateActiveMonIsNotNull()
	{
		return this.ddtdateactivemon != null;
	}
	public ims.framework.utils.Date getDDTDateActiveMon()
	{
		return this.ddtdateactivemon;
	}
	public void setDDTDateActiveMon(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.ddtdateactivemon = value;
	}
	public boolean getDDTOrgCodeIsNotNull()
	{
		return this.ddtorgcode != null;
	}
	public String getDDTOrgCode()
	{
		return this.ddtorgcode;
	}
	public static int getDDTOrgCodeMaxLength()
	{
		return 5;
	}
	public void setDDTOrgCode(String value)
	{
		this.isValidated = false;
		this.ddtorgcode = value;
	}
	public boolean getWTAdjustmentTreatIsNotNull()
	{
		return this.wtadjustmenttreat != null;
	}
	public Integer getWTAdjustmentTreat()
	{
		return this.wtadjustmenttreat;
	}
	public void setWTAdjustmentTreat(Integer value)
	{
		this.isValidated = false;
		this.wtadjustmenttreat = value;
	}
	public boolean getWTAdjustmentReasonTreatIsNotNull()
	{
		return this.wtadjustmentreasontreat != null;
	}
	public String getWTAdjustmentReasonTreat()
	{
		return this.wtadjustmentreasontreat;
	}
	public static int getWTAdjustmentReasonTreatMaxLength()
	{
		return 1;
	}
	public void setWTAdjustmentReasonTreat(String value)
	{
		this.isValidated = false;
		this.wtadjustmentreasontreat = value;
	}
	public boolean getPlanCancerTreatTypeIsNotNull()
	{
		return this.plancancertreattype != null;
	}
	public String getPlanCancerTreatType()
	{
		return this.plancancertreattype;
	}
	public static int getPlanCancerTreatTypeMaxLength()
	{
		return 2;
	}
	public void setPlanCancerTreatType(String value)
	{
		this.isValidated = false;
		this.plancancertreattype = value;
	}
	public boolean getFirstTreatmentDateSurgIsNotNull()
	{
		return this.firsttreatmentdatesurg != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateSurg()
	{
		return this.firsttreatmentdatesurg;
	}
	public void setFirstTreatmentDateSurg(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdatesurg = value;
	}
	public boolean getFirstTreatmentDateChemoIsNotNull()
	{
		return this.firsttreatmentdatechemo != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateChemo()
	{
		return this.firsttreatmentdatechemo;
	}
	public void setFirstTreatmentDateChemo(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdatechemo = value;
	}
	public boolean getFirstTreatmentDateTeleIsNotNull()
	{
		return this.firsttreatmentdatetele != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateTele()
	{
		return this.firsttreatmentdatetele;
	}
	public void setFirstTreatmentDateTele(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdatetele = value;
	}
	public boolean getFirstTreatmentDateBrachyIsNotNull()
	{
		return this.firsttreatmentdatebrachy != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateBrachy()
	{
		return this.firsttreatmentdatebrachy;
	}
	public void setFirstTreatmentDateBrachy(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdatebrachy = value;
	}
	public boolean getFirstTreatmentDateSPCareIsNotNull()
	{
		return this.firsttreatmentdatespcare != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateSPCare()
	{
		return this.firsttreatmentdatespcare;
	}
	public void setFirstTreatmentDateSPCare(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdatespcare = value;
	}
	public boolean getFirstTreatmentDateActiveMonIsNotNull()
	{
		return this.firsttreatmentdateactivemon != null;
	}
	public ims.framework.utils.Date getFirstTreatmentDateActiveMon()
	{
		return this.firsttreatmentdateactivemon;
	}
	public void setFirstTreatmentDateActiveMon(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.firsttreatmentdateactivemon = value;
	}
	public boolean getFirstTreatmentOrgCodeIsNotNull()
	{
		return this.firsttreatmentorgcode != null;
	}
	public String getFirstTreatmentOrgCode()
	{
		return this.firsttreatmentorgcode;
	}
	public static int getFirstTreatmentOrgCodeMaxLength()
	{
		return 5;
	}
	public void setFirstTreatmentOrgCode(String value)
	{
		this.isValidated = false;
		this.firsttreatmentorgcode = value;
	}
	public boolean getWTAdjustFirstTreatIsNotNull()
	{
		return this.wtadjustfirsttreat != null;
	}
	public Integer getWTAdjustFirstTreat()
	{
		return this.wtadjustfirsttreat;
	}
	public void setWTAdjustFirstTreat(Integer value)
	{
		this.isValidated = false;
		this.wtadjustfirsttreat = value;
	}
	public boolean getWTAdjustmentReasonFTIsNotNull()
	{
		return this.wtadjustmentreasonft != null;
	}
	public String getWTAdjustmentReasonFT()
	{
		return this.wtadjustmentreasonft;
	}
	public static int getWTAdjustmentReasonFTMaxLength()
	{
		return 1;
	}
	public void setWTAdjustmentReasonFT(String value)
	{
		this.isValidated = false;
		this.wtadjustmentreasonft = value;
	}
	public boolean getDelayReasonDTTIsNotNull()
	{
		return this.delayreasondtt != null;
	}
	public String getDelayReasonDTT()
	{
		return this.delayreasondtt;
	}
	public static int getDelayReasonDTTMaxLength()
	{
		return 255;
	}
	public void setDelayReasonDTT(String value)
	{
		this.isValidated = false;
		this.delayreasondtt = value;
	}
	public boolean getDelayReasonRTTIsNotNull()
	{
		return this.delayreasonrtt != null;
	}
	public String getDelayReasonRTT()
	{
		return this.delayreasonrtt;
	}
	public static int getDelayReasonRTTMaxLength()
	{
		return 255;
	}
	public void setDelayReasonRTT(String value)
	{
		this.isValidated = false;
		this.delayreasonrtt = value;
	}
	public boolean getDelayCodeDTTIsNotNull()
	{
		return this.delaycodedtt != null;
	}
	public String getDelayCodeDTT()
	{
		return this.delaycodedtt;
	}
	public static int getDelayCodeDTTMaxLength()
	{
		return 1;
	}
	public void setDelayCodeDTT(String value)
	{
		this.isValidated = false;
		this.delaycodedtt = value;
	}
	public boolean getDelayCodeRTTIsNotNull()
	{
		return this.delaycodertt != null;
	}
	public String getDelayCodeRTT()
	{
		return this.delaycodertt;
	}
	public static int getDelayCodeRTTMaxLength()
	{
		return 1;
	}
	public void setDelayCodeRTT(String value)
	{
		this.isValidated = false;
		this.delaycodertt = value;
	}
	public boolean isValidated()
	{
		if(this.isBusy)
			return true;
		this.isBusy = true;
	
		if(!this.isValidated)
		{
			this.isBusy = false;
			return false;
		}
		this.isBusy = false;
		return true;
	}
	public String[] validate()
	{
		return validate(null);
	}
	public String[] validate(String[] existingErrors)
	{
		if(this.isBusy)
			return null;
		this.isBusy = true;
	
		java.util.ArrayList<String> listOfErrors = new java.util.ArrayList<String>();
		if(existingErrors != null)
		{
			for(int x = 0; x < existingErrors.length; x++)
			{
				listOfErrors.add(existingErrors[x]);
			}
		}
		if(this.nhsnumber != null)
			if(this.nhsnumber.length() > 10)
				listOfErrors.add("The length of the field [nhsnumber] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 10");
		if(this.referralsource != null)
			if(this.referralsource.length() > 15)
				listOfErrors.add("The length of the field [referralsource] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 15");
		if(this.prioritycode != null)
			if(this.prioritycode.length() > 15)
				listOfErrors.add("The length of the field [prioritycode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 15");
		if(this.referraltype != null)
			if(this.referraltype.length() > 15)
				listOfErrors.add("The length of the field [referraltype] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 15");
		if(this.firstseenorgacode != null)
			if(this.firstseenorgacode.length() > 15)
				listOfErrors.add("The length of the field [firstseenorgacode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 15");
		if(this.wtadjustmentreasonfs != null)
			if(this.wtadjustmentreasonfs.length() > 1)
				listOfErrors.add("The length of the field [wtadjustmentreasonfs] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.breachreason != null)
			if(this.breachreason.length() > 1000)
				listOfErrors.add("The length of the field [breachreason] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1000");
		if(this.delayreasonreffirstseen != null)
			if(this.delayreasonreffirstseen.length() > 2)
				listOfErrors.add("The length of the field [delayreasonreffirstseen] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 2");
		if(this.referredby != null)
			if(this.referredby.length() > 5)
				listOfErrors.add("The length of the field [referredby] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.specorgcode != null)
			if(this.specorgcode.length() > 5)
				listOfErrors.add("The length of the field [specorgcode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.clininterventionorgcode != null)
			if(this.clininterventionorgcode.length() > 5)
				listOfErrors.add("The length of the field [clininterventionorgcode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.mdtdiscussind != null)
			if(this.mdtdiscussind.length() > 1)
				listOfErrors.add("The length of the field [mdtdiscussind] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.cancerstatus != null)
			if(this.cancerstatus.length() > 1)
				listOfErrors.add("The length of the field [cancerstatus] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.primarydiagnosis != null)
			if(this.primarydiagnosis.length() > 5)
				listOfErrors.add("The length of the field [primarydiagnosis] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.tumourlaterality != null)
			if(this.tumourlaterality.length() > 1)
				listOfErrors.add("The length of the field [tumourlaterality] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.ddtorgcode != null)
			if(this.ddtorgcode.length() > 5)
				listOfErrors.add("The length of the field [ddtorgcode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.wtadjustmentreasontreat != null)
			if(this.wtadjustmentreasontreat.length() > 1)
				listOfErrors.add("The length of the field [wtadjustmentreasontreat] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.plancancertreattype != null)
			if(this.plancancertreattype.length() > 2)
				listOfErrors.add("The length of the field [plancancertreattype] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 2");
		if(this.firsttreatmentorgcode != null)
			if(this.firsttreatmentorgcode.length() > 5)
				listOfErrors.add("The length of the field [firsttreatmentorgcode] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 5");
		if(this.wtadjustmentreasonft != null)
			if(this.wtadjustmentreasonft.length() > 1)
				listOfErrors.add("The length of the field [wtadjustmentreasonft] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.delayreasondtt != null)
			if(this.delayreasondtt.length() > 255)
				listOfErrors.add("The length of the field [delayreasondtt] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 255");
		if(this.delayreasonrtt != null)
			if(this.delayreasonrtt.length() > 255)
				listOfErrors.add("The length of the field [delayreasonrtt] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 255");
		if(this.delaycodedtt != null)
			if(this.delaycodedtt.length() > 1)
				listOfErrors.add("The length of the field [delaycodedtt] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		if(this.delaycodertt != null)
			if(this.delaycodertt.length() > 1)
				listOfErrors.add("The length of the field [delaycodertt] in the value object [ims.oncology.vo.WaitingTimesVo] is too big. It should be less or equal to 1");
		int errorCount = listOfErrors.size();
		if(errorCount == 0)
		{
			this.isBusy = false;
			this.isValidated = true;
			return null;
		}
		String[] result = new String[errorCount];
		for(int x = 0; x < errorCount; x++)
			result[x] = (String)listOfErrors.get(x);
		this.isBusy = false;
		this.isValidated = false;
		return result;
	}
	public void clearIDAndVersion()
	{
		this.id = null;
		this.version = 0;
	}
	public Object clone()
	{
		if(this.isBusy)
			return this;
		this.isBusy = true;
	
		WaitingTimesVo clone = new WaitingTimesVo(this.id, this.version);
		
		clone.nhsnumber = this.nhsnumber;
		clone.referralsource = this.referralsource;
		if(this.refdecisiondate == null)
			clone.refdecisiondate = null;
		else
			clone.refdecisiondate = (ims.framework.utils.Date)this.refdecisiondate.clone();
		if(this.refreceiveddate == null)
			clone.refreceiveddate = null;
		else
			clone.refreceiveddate = (ims.framework.utils.Date)this.refreceiveddate.clone();
		clone.prioritycode = this.prioritycode;
		clone.referraltype = this.referraltype;
		if(this.firstseendate == null)
			clone.firstseendate = null;
		else
			clone.firstseendate = (ims.framework.utils.Date)this.firstseendate.clone();
		clone.firstseenorgacode = this.firstseenorgacode;
		clone.wtadjustmentfs = this.wtadjustmentfs;
		clone.wtadjustmentreasonfs = this.wtadjustmentreasonfs;
		clone.breachreason = this.breachreason;
		clone.delayreasonreffirstseen = this.delayreasonreffirstseen;
		if(this.specreferraldate == null)
			clone.specreferraldate = null;
		else
			clone.specreferraldate = (ims.framework.utils.Date)this.specreferraldate.clone();
		clone.referredby = this.referredby;
		if(this.specdatefirstseen == null)
			clone.specdatefirstseen = null;
		else
			clone.specdatefirstseen = (ims.framework.utils.Date)this.specdatefirstseen.clone();
		clone.specorgcode = this.specorgcode;
		if(this.clinlinterventiondate == null)
			clone.clinlinterventiondate = null;
		else
			clone.clinlinterventiondate = (ims.framework.utils.Date)this.clinlinterventiondate.clone();
		clone.clininterventionorgcode = this.clininterventionorgcode;
		clone.mdtdiscussind = this.mdtdiscussind;
		if(this.mdtdiscussdate == null)
			clone.mdtdiscussdate = null;
		else
			clone.mdtdiscussdate = (ims.framework.utils.Date)this.mdtdiscussdate.clone();
		clone.cancerstatus = this.cancerstatus;
		clone.primarydiagnosis = this.primarydiagnosis;
		clone.tumourlaterality = this.tumourlaterality;
		if(this.ddtdatesurgery == null)
			clone.ddtdatesurgery = null;
		else
			clone.ddtdatesurgery = (ims.framework.utils.Date)this.ddtdatesurgery.clone();
		if(this.ddtdatechemo == null)
			clone.ddtdatechemo = null;
		else
			clone.ddtdatechemo = (ims.framework.utils.Date)this.ddtdatechemo.clone();
		if(this.ddtdatetele == null)
			clone.ddtdatetele = null;
		else
			clone.ddtdatetele = (ims.framework.utils.Date)this.ddtdatetele.clone();
		if(this.ddtdatebrachy == null)
			clone.ddtdatebrachy = null;
		else
			clone.ddtdatebrachy = (ims.framework.utils.Date)this.ddtdatebrachy.clone();
		if(this.ddtdatepalliative == null)
			clone.ddtdatepalliative = null;
		else
			clone.ddtdatepalliative = (ims.framework.utils.Date)this.ddtdatepalliative.clone();
		if(this.ddtdateactivemon == null)
			clone.ddtdateactivemon = null;
		else
			clone.ddtdateactivemon = (ims.framework.utils.Date)this.ddtdateactivemon.clone();
		clone.ddtorgcode = this.ddtorgcode;
		clone.wtadjustmenttreat = this.wtadjustmenttreat;
		clone.wtadjustmentreasontreat = this.wtadjustmentreasontreat;
		clone.plancancertreattype = this.plancancertreattype;
		if(this.firsttreatmentdatesurg == null)
			clone.firsttreatmentdatesurg = null;
		else
			clone.firsttreatmentdatesurg = (ims.framework.utils.Date)this.firsttreatmentdatesurg.clone();
		if(this.firsttreatmentdatechemo == null)
			clone.firsttreatmentdatechemo = null;
		else
			clone.firsttreatmentdatechemo = (ims.framework.utils.Date)this.firsttreatmentdatechemo.clone();
		if(this.firsttreatmentdatetele == null)
			clone.firsttreatmentdatetele = null;
		else
			clone.firsttreatmentdatetele = (ims.framework.utils.Date)this.firsttreatmentdatetele.clone();
		if(this.firsttreatmentdatebrachy == null)
			clone.firsttreatmentdatebrachy = null;
		else
			clone.firsttreatmentdatebrachy = (ims.framework.utils.Date)this.firsttreatmentdatebrachy.clone();
		if(this.firsttreatmentdatespcare == null)
			clone.firsttreatmentdatespcare = null;
		else
			clone.firsttreatmentdatespcare = (ims.framework.utils.Date)this.firsttreatmentdatespcare.clone();
		if(this.firsttreatmentdateactivemon == null)
			clone.firsttreatmentdateactivemon = null;
		else
			clone.firsttreatmentdateactivemon = (ims.framework.utils.Date)this.firsttreatmentdateactivemon.clone();
		clone.firsttreatmentorgcode = this.firsttreatmentorgcode;
		clone.wtadjustfirsttreat = this.wtadjustfirsttreat;
		clone.wtadjustmentreasonft = this.wtadjustmentreasonft;
		clone.delayreasondtt = this.delayreasondtt;
		clone.delayreasonrtt = this.delayreasonrtt;
		clone.delaycodedtt = this.delaycodedtt;
		clone.delaycodertt = this.delaycodertt;
		clone.isValidated = this.isValidated;
		
		this.isBusy = false;
		return clone;
	}
	public int compareTo(Object obj)
	{
		return compareTo(obj, true);
	}
	public int compareTo(Object obj, boolean caseInsensitive)
	{
		if (obj == null)
		{
			return -1;
		}
		if(caseInsensitive); // this is to avoid eclipse warning only.
		if (!(WaitingTimesVo.class.isAssignableFrom(obj.getClass())))
		{
			throw new ClassCastException("A WaitingTimesVo object cannot be compared an Object of type " + obj.getClass().getName());
		}
		if (this.id == null)
			return 1;
		if (((WaitingTimesVo)obj).getBoId() == null)
			return -1;
		return this.id.compareTo(((WaitingTimesVo)obj).getBoId());
	}
	public synchronized static int generateValueObjectUniqueID()
	{
		return ims.vo.ValueObject.generateUniqueID();
	}
	public int countFieldsWithValue()
	{
		int count = 0;
		if(this.nhsnumber != null)
			count++;
		if(this.referralsource != null)
			count++;
		if(this.refdecisiondate != null)
			count++;
		if(this.refreceiveddate != null)
			count++;
		if(this.prioritycode != null)
			count++;
		if(this.referraltype != null)
			count++;
		if(this.firstseendate != null)
			count++;
		if(this.firstseenorgacode != null)
			count++;
		if(this.wtadjustmentfs != null)
			count++;
		if(this.wtadjustmentreasonfs != null)
			count++;
		if(this.breachreason != null)
			count++;
		if(this.delayreasonreffirstseen != null)
			count++;
		if(this.specreferraldate != null)
			count++;
		if(this.referredby != null)
			count++;
		if(this.specdatefirstseen != null)
			count++;
		if(this.specorgcode != null)
			count++;
		if(this.clinlinterventiondate != null)
			count++;
		if(this.clininterventionorgcode != null)
			count++;
		if(this.mdtdiscussind != null)
			count++;
		if(this.mdtdiscussdate != null)
			count++;
		if(this.cancerstatus != null)
			count++;
		if(this.primarydiagnosis != null)
			count++;
		if(this.tumourlaterality != null)
			count++;
		if(this.ddtdatesurgery != null)
			count++;
		if(this.ddtdatechemo != null)
			count++;
		if(this.ddtdatetele != null)
			count++;
		if(this.ddtdatebrachy != null)
			count++;
		if(this.ddtdatepalliative != null)
			count++;
		if(this.ddtdateactivemon != null)
			count++;
		if(this.ddtorgcode != null)
			count++;
		if(this.wtadjustmenttreat != null)
			count++;
		if(this.wtadjustmentreasontreat != null)
			count++;
		if(this.plancancertreattype != null)
			count++;
		if(this.firsttreatmentdatesurg != null)
			count++;
		if(this.firsttreatmentdatechemo != null)
			count++;
		if(this.firsttreatmentdatetele != null)
			count++;
		if(this.firsttreatmentdatebrachy != null)
			count++;
		if(this.firsttreatmentdatespcare != null)
			count++;
		if(this.firsttreatmentdateactivemon != null)
			count++;
		if(this.firsttreatmentorgcode != null)
			count++;
		if(this.wtadjustfirsttreat != null)
			count++;
		if(this.wtadjustmentreasonft != null)
			count++;
		if(this.delayreasondtt != null)
			count++;
		if(this.delayreasonrtt != null)
			count++;
		if(this.delaycodedtt != null)
			count++;
		if(this.delaycodertt != null)
			count++;
		return count;
	}
	public int countValueObjectFields()
	{
		return 46;
	}
	protected String nhsnumber;
	protected String referralsource;
	protected ims.framework.utils.Date refdecisiondate;
	protected ims.framework.utils.Date refreceiveddate;
	protected String prioritycode;
	protected String referraltype;
	protected ims.framework.utils.Date firstseendate;
	protected String firstseenorgacode;
	protected Integer wtadjustmentfs;
	protected String wtadjustmentreasonfs;
	protected String breachreason;
	protected String delayreasonreffirstseen;
	protected ims.framework.utils.Date specreferraldate;
	protected String referredby;
	protected ims.framework.utils.Date specdatefirstseen;
	protected String specorgcode;
	protected ims.framework.utils.Date clinlinterventiondate;
	protected String clininterventionorgcode;
	protected String mdtdiscussind;
	protected ims.framework.utils.Date mdtdiscussdate;
	protected String cancerstatus;
	protected String primarydiagnosis;
	protected String tumourlaterality;
	protected ims.framework.utils.Date ddtdatesurgery;
	protected ims.framework.utils.Date ddtdatechemo;
	protected ims.framework.utils.Date ddtdatetele;
	protected ims.framework.utils.Date ddtdatebrachy;
	protected ims.framework.utils.Date ddtdatepalliative;
	protected ims.framework.utils.Date ddtdateactivemon;
	protected String ddtorgcode;
	protected Integer wtadjustmenttreat;
	protected String wtadjustmentreasontreat;
	protected String plancancertreattype;
	protected ims.framework.utils.Date firsttreatmentdatesurg;
	protected ims.framework.utils.Date firsttreatmentdatechemo;
	protected ims.framework.utils.Date firsttreatmentdatetele;
	protected ims.framework.utils.Date firsttreatmentdatebrachy;
	protected ims.framework.utils.Date firsttreatmentdatespcare;
	protected ims.framework.utils.Date firsttreatmentdateactivemon;
	protected String firsttreatmentorgcode;
	protected Integer wtadjustfirsttreat;
	protected String wtadjustmentreasonft;
	protected String delayreasondtt;
	protected String delayreasonrtt;
	protected String delaycodedtt;
	protected String delaycodertt;
	private boolean isValidated = false;
	private boolean isBusy = false;
}
