gt: 			vo = new ims.core.vo.CDSOutpatientVo();
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.core.vo.beans;
  
  public class CDSOutpatientVoBean extends ims.vo.ValueObjectBean
  {
  	public CDSOutpatientVoBean()
  	{
  	}
  	public CDSOutpatientVoBean(ims.core.vo.CDSOutpatientVo vo)
  	{
  		this.id = vo.getBoId();
  		this.version = vo.getBoVersion();
  		this.ubrn = vo.getUBRN();
  		this.pathwayidentifier = vo.getPathwayIdentifier();
  		this.pathwayorgcode = vo.getPathwayOrgCode();
  		this.referraltotreatmentstatus = vo.getReferralToTreatmentStatus();
  		this.rttstartdate = vo.getRTTStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRTTStartDate().getBean();
  		this.rttenddate = vo.getRTTEndDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRTTEndDate().getBean();
  		this.leadcareactind = vo.getLeadCareActInd();
  		this.localpatientidentifier = vo.getLocalPatientIdentifier();
  		this.patidorgcode = vo.getPatIdOrgCode();
  		this.nhsnumber = vo.getNHSNumber();
  		this.nhsnumberstatusind = vo.getNHSNumberStatusInd();
  		this.patientname = vo.getPatientName();
  		this.patientaddress = vo.getPatientAddress();
  		this.postcode = vo.getPostCode();
  		this.pctorgcode = vo.getPCTOrgCode();
  		this.dateofbirth = vo.getDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfBirth().getBean();
  		this.persongender = vo.getPersonGender();
  		this.carersupportind = vo.getCarerSupportInd();
  		this.ethniccategory = vo.getEthnicCategory();
  		this.consultantcode = vo.getConsultantCode();
  		this.specialtycode = vo.getSpecialtyCode();
  		this.treatmentfunccode = vo.getTreatmentFuncCode();
  		if(vo.getICDDiagGroup() != null)
  		{
  			this.icddiaggroup = new ims.vo.RefVoBean[vo.getICDDiagGroup().size()];
  			for(int icddiaggroup_i = 0; icddiaggroup_i < vo.getICDDiagGroup().size(); icddiaggroup_i++)
  			{
  				this.icddiaggroup[icddiaggroup_i] = new ims.vo.RefVoBean(vo.getICDDiagGroup().get(icddiaggroup_i).getBoId(),vo.getICDDiagGroup().get(icddiaggroup_i).getBoVersion());
  			}
  		}
  		this.readdiaggroup = vo.getReadDiagGroup() == null ? null : new ims.vo.RefVoBean(vo.getReadDiagGroup().getBoId(), vo.getReadDiagGroup().getBoVersion());
  		this.attendanceidentifier = vo.getAttendanceIdentifier();
  		this.admincategory = vo.getAdminCategory();
  		this.attendedordna = vo.getAttendedOrDNA();
  		this.firstattendance = vo.getFirstAttendance();
  		this.medstafftype = vo.getMedStaffType();
  		this.operationstatus = vo.getOperationStatus();
  		this.attendoutcome = vo.getAttendOutcome();
  		this.apptdate = vo.getApptDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDate().getBean();
  		this.age = vo.getAge();
  		this.earliestofferdate = vo.getEarliestOfferDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEarliestOfferDate().getBean();
  		this.serialnumber = vo.getSerialNumber();
  		this.nhsserviceagreenum = vo.getNHSServiceAgreeNum();
  		this.providerrefnum = vo.getProviderRefNum();
  		this.commissionerrefnum = vo.getCommissionerRefNum();
  		this.orgcodeprovider = vo.getOrgCodeProvider();
  		this.orgcodecommissioner = vo.getOrgCodeCommissioner();
  		if(vo.getOPCSProcedure() != null)
  		{
  			this.opcsprocedure = new ims.vo.RefVoBean[vo.getOPCSProcedure().size()];
  			for(int opcsprocedure_i = 0; opcsprocedure_i < vo.getOPCSProcedure().size(); opcsprocedure_i++)
  			{
  				this.opcsprocedure[opcsprocedure_i] = new ims.vo.RefVoBean(vo.getOPCSProcedure().get(opcsprocedure_i).getBoId(),vo.getOPCSProcedure().get(opcsprocedure_i).getBoVersion());
  			}
  		}
  		this.readprocedure = vo.getREADProcedure() == null ? null : new ims.vo.RefVoBean(vo.getREADProcedure().getBoId(), vo.getREADProcedure().getBoVersion());
  		this.locationclass = vo.getLocationClass();
  		this.sitecodetreatment = vo.getSiteCodeTreatment();
  		this.gpcode = vo.getGPCode();
  		this.practicecode = vo.getPracticeCode();
  		this.prioritytype = vo.getPriorityType();
  		this.servicetypereq = vo.getServiceTypeReq();
  		this.referralsource = vo.getReferralSource();
  		this.referralreceiveddate = vo.getReferralReceivedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getReferralReceivedDate().getBean();
  		this.referrercode = vo.getReferrerCode();
  		this.orgcodereferrer = vo.getOrgCodeReferrer();
  		this.lastdnacanceldate = vo.getLastDNACancelDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastDNACancelDate().getBean();
  		this.resourcegrpcode = vo.getResourceGrpCode();
  		this.procedurescheme = vo.getProcedureScheme();
  		this.hrgdominantgrouping = vo.getHrgDominantGrouping();
  		this.cdsapplicabledate = vo.getCDSApplicableDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCDSApplicableDate().getBean();
  		this.cdssenderorgcode = vo.getCDSSenderOrgCode();
  		this.resourcegpversion = vo.getResourceGPVersion();
  	}
  
  	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.CDSOutpatientVo vo)
  	{
  		this.id = vo.getBoId();
  		this.version = vo.getBoVersion();
  		this.ubrn = vo.getUBRN();
  		this.pathwayidentifier = vo.getPathwayIdentifier();
  		this.pathwayorgcode = vo.getPathwayOrgCode();
  		this.referraltotreatmentstatus = vo.getReferralToTreatmentStatus();
  		this.rttstartdate = vo.getRTTStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRTTStartDate().getBean();
  		this.rttenddate = vo.getRTTEndDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getRTTEndDate().getBean();
  		this.leadcareactind = vo.getLeadCareActInd();
  		this.localpatientidentifier = vo.getLocalPatientIdentifier();
  		this.patidorgcode = vo.getPatIdOrgCode();
  		this.nhsnumber = vo.getNHSNumber();
  		this.nhsnumberstatusind = vo.getNHSNumberStatusInd();
  		this.patientname = vo.getPatientName();
  		this.patientaddress = vo.getPatientAddress();
  		this.postcode = vo.getPostCode();
  		this.pctorgcode = vo.getPCTOrgCode();
  		this.dateofbirth = vo.getDateOfBirth() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfBirth().getBean();
  		this.persongender = vo.getPersonGender();
  		this.carersupportind = vo.getCarerSupportInd();
  		this.ethniccategory = vo.getEthnicCategory();
  		this.consultantcode = vo.getConsultantCode();
  		this.specialtycode = vo.getSpecialtyCode();
  		this.treatmentfunccode = vo.getTreatmentFuncCode();
  		if(vo.getICDDiagGroup() != null)
  		{
  			this.icddiaggroup = new ims.vo.RefVoBean[vo.getICDDiagGroup().size()];
  			for(int icddiaggroup_i = 0; icddiaggroup_i < vo.getICDDiagGroup().size(); icddiaggroup_i++)
  			{
  				this.icddiaggroup[icddiaggroup_i] = new ims.vo.RefVoBean(vo.getICDDiagGroup().get(icddiaggroup_i).getBoId(),vo.getICDDiagGroup().get(icddiaggroup_i).getBoVersion());
  			}
  		}
  		this.readdiaggroup = vo.getReadDiagGroup() == null ? null : new ims.vo.RefVoBean(vo.getReadDiagGroup().getBoId(), vo.getReadDiagGroup().getBoVersion());
  		this.attendanceidentifier = vo.getAttendanceIdentifier();
  		this.admincategory = vo.getAdminCategory();
  		this.attendedordna = vo.getAttendedOrDNA();
  		this.firstattendance = vo.getFirstAttendance();
  		this.medstafftype = vo.getMedStaffType();
  		this.operationstatus = vo.getOperationStatus();
  		this.attendoutcome = vo.getAttendOutcome();
  		this.apptdate = vo.getApptDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getApptDate().getBean();
  		this.age = vo.getAge();
  		this.earliestofferdate = vo.getEarliestOfferDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEarliestOfferDate().getBean();
  		this.serialnumber = vo.getSerialNumber();
  		this.nhsserviceagreenum = vo.getNHSServiceAgreeNum();
  		this.providerrefnum = vo.getProviderRefNum();
  		this.commissionerrefnum = vo.getCommissionerRefNum();
  		this.orgcodeprovider = vo.getOrgCodeProvider();
  		this.orgcodecommissioner = vo.getOrgCodeCommissioner();
  		if(vo.getOPCSProcedure() != null)
  		{
  			this.opcsprocedure = new ims.vo.RefVoBean[vo.getOPCSProcedure().size()];
  			for(int opcsprocedure_i = 0; opcsprocedure_i < vo.getOPCSProcedure().size(); opcsprocedure_i++)
  			{
  				this.opcsprocedure[opcsprocedure_i] = new ims.vo.RefVoBean(vo.getOPCSProcedure().get(opcsprocedure_i).getBoId(),vo.getOPCSProcedure().get(opcsprocedure_i).getBoVersion());
  			}
  		}
  		this.readprocedure = vo.getREADProcedure() == null ? null : new ims.vo.RefVoBean(vo.getREADProcedure().getBoId(), vo.getREADProcedure().getBoVersion());
  		this.locationclass = vo.getLocationClass();
  		this.sitecodetreatment = vo.getSiteCodeTreatment();
  		this.gpcode = vo.getGPCode();
  		this.practicecode = vo.getPracticeCode();
  		this.prioritytype = vo.getPriorityType();
  		this.servicetypereq = vo.getServiceTypeReq();
  		this.referralsource = vo.getReferralSource();
  		this.referralreceiveddate = vo.getReferralReceivedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getReferralReceivedDate().getBean();
  		this.referrercode = vo.getReferrerCode();
  		this.orgcodereferrer = vo.getOrgCodeReferrer();
  		this.lastdnacanceldate = vo.getLastDNACancelDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastDNACancelDate().getBean();
  		this.resourcegrpcode = vo.getResourceGrpCode();
  		this.procedurescheme = vo.getProcedureScheme();
  		this.hrgdominantgrouping = vo.getHrgDominantGrouping();
  		this.cdsapplicabledate = vo.getCDSApplicableDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCDSApplicableDate().getBean();
  		this.cdssenderorgcode = vo.getCDSSenderOrgCode();
  		this.resourcegpversion = vo.getResourceGPVersion();
  	}
  
  	public ims.core.vo.CDSOutpatientVo buildVo()
  	{
  		return this.buildVo(new ims.vo.ValueObjectBeanMap());
  	}
  
  	public ims.core.vo.CDSOutpatientVo buildVo(ims.vo.ValueObjectBeanMap map)
  	{
  		ims.core.vo.CDSOutpatientVo vo = null;
  		if(map != null)
  			vo = (ims.core.vo.CDSOutpatientVo)map.getValueObject(this);
  		if(vo == null)
  		{
  