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

public class ConsultationDetailsVoBean extends ims.vo.ValueObjectBean
{
	public ConsultationDetailsVoBean()
	{
	}
	public ConsultationDetailsVoBean(ims.RefMan.vo.ConsultationDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.referralsummary = vo.getReferralSummary() == null ? null : (ims.RefMan.vo.beans.PresentationReferralSummaryVoBean)vo.getReferralSummary().getBean();
		this.baselineobs = vo.getBaselineObs() == null ? null : (ims.RefMan.vo.beans.BaselineObservationsVoBean)vo.getBaselineObs().getBean();
		this.onexam = vo.getOnExam() == null ? null : (ims.RefMan.vo.beans.onExaminationVoBean)vo.getOnExam().getBean();
		this.atconsultation = vo.getAtConsultation() == null ? null : (ims.RefMan.vo.beans.AtConsultationVoBean)vo.getAtConsultation().getBean();
		this.outcome = vo.getOutcome() == null ? null : (ims.RefMan.vo.beans.ReferralOutcomeVoBean)vo.getOutcome().getBean();
		this.catsreferral = vo.getCATSReferral() == null ? null : new ims.vo.RefVoBean(vo.getCATSReferral().getBoId(), vo.getCATSReferral().getBoVersion());
		this.consultationtimes = vo.getConsultationTimes() == null ? null : vo.getConsultationTimes().getBeanCollection();
		this.tlttimes = vo.getTltTimes() == null ? null : vo.getTltTimes().getBeanCollection();
		this.clinicalcontacttime = vo.getClinicalContactTime() == null ? null : vo.getClinicalContactTime().getBeanCollection();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.ConsultationDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.referralsummary = vo.getReferralSummary() == null ? null : (ims.RefMan.vo.beans.PresentationReferralSummaryVoBean)vo.getReferralSummary().getBean(map);
		this.baselineobs = vo.getBaselineObs() == null ? null : (ims.RefMan.vo.beans.BaselineObservationsVoBean)vo.getBaselineObs().getBean(map);
		this.onexam = vo.getOnExam() == null ? null : (ims.RefMan.vo.beans.onExaminationVoBean)vo.getOnExam().getBean(map);
		this.atconsultation = vo.getAtConsultation() == null ? null : (ims.RefMan.vo.beans.AtConsultationVoBean)vo.getAtConsultation().getBean(map);
		this.outcome = vo.getOutcome() == null ? null : (ims.RefMan.vo.beans.ReferralOutcomeVoBean)vo.getOutcome().getBean(map);
		this.catsreferral = vo.getCATSReferral() == null ? null : new ims.vo.RefVoBean(vo.getCATSReferral().getBoId(), vo.getCATSReferral().getBoVersion());
		this.consultationtimes = vo.getConsultationTimes() == null ? null : vo.getConsultationTimes().getBeanCollection();
		this.tlttimes = vo.getTltTimes() == null ? null : vo.getTltTimes().getBeanCollection();
		this.clinicalcontacttime = vo.getClinicalContactTime() == null ? null : vo.getClinicalContactTime().getBeanCollection();
	}

	public ims.RefMan.vo.ConsultationDetailsVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.RefMan.vo.ConsultationDetailsVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.ConsultationDetailsVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.ConsultationDetailsVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.ConsultationDetailsVo();
			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.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}
	public ims.RefMan.vo.beans.PresentationReferralSummaryVoBean getReferralSummary()
	{
		return this.referralsummary;
	}
	public void setReferralSummary(ims.RefMan.vo.beans.PresentationReferralSummaryVoBean value)
	{
		this.referralsummary = value;
	}
	public ims.RefMan.vo.beans.BaselineObservationsVoBean getBaselineObs()
	{
		return this.baselineobs;
	}
	public void setBaselineObs(ims.RefMan.vo.beans.BaselineObservationsVoBean value)
	{
		this.baselineobs = value;
	}
	public ims.RefMan.vo.beans.onExaminationVoBean getOnExam()
	{
		return this.onexam;
	}
	public void setOnExam(ims.RefMan.vo.beans.onExaminationVoBean value)
	{
		this.onexam = value;
	}
	public ims.RefMan.vo.beans.AtConsultationVoBean getAtConsultation()
	{
		return this.atconsultation;
	}
	public void setAtConsultation(ims.RefMan.vo.beans.AtConsultationVoBean value)
	{
		this.atconsultation = value;
	}
	public ims.RefMan.vo.beans.ReferralOutcomeVoBean getOutcome()
	{
		return this.outcome;
	}
	public void setOutcome(ims.RefMan.vo.beans.ReferralOutcomeVoBean value)
	{
		this.outcome = value;
	}
	public ims.vo.RefVoBean getCATSReferral()
	{
		return this.catsreferral;
	}
	public void setCATSReferral(ims.vo.RefVoBean value)
	{
		this.catsreferral = value;
	}
	public ims.RefMan.vo.beans.ConsultationTimeVoBean[] getConsultationTimes()
	{
		return this.consultationtimes;
	}
	public void setConsultationTimes(ims.RefMan.vo.beans.ConsultationTimeVoBean[] value)
	{
		this.consultationtimes = value;
	}
	public ims.RefMan.vo.beans.TLTContactTimeVoBean[] getTltTimes()
	{
		return this.tlttimes;
	}
	public void setTltTimes(ims.RefMan.vo.beans.TLTContactTimeVoBean[] value)
	{
		this.tlttimes = value;
	}
	public ims.RefMan.vo.beans.ClinicalContactTimeVoBean[] getClinicalContactTime()
	{
		return this.clinicalcontacttime;
	}
	public void setClinicalContactTime(ims.RefMan.vo.beans.ClinicalContactTimeVoBean[] value)
	{
		this.clinicalcontacttime = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.RefMan.vo.beans.PresentationReferralSummaryVoBean referralsummary;
	private ims.RefMan.vo.beans.BaselineObservationsVoBean baselineobs;
	private ims.RefMan.vo.beans.onExaminationVoBean onexam;
	private ims.RefMan.vo.beans.AtConsultationVoBean atconsultation;
	private ims.RefMan.vo.beans.ReferralOutcomeVoBean outcome;
	private ims.vo.RefVoBean catsreferral;
	private ims.RefMan.vo.beans.ConsultationTimeVoBean[] consultationtimes;
	private ims.RefMan.vo.beans.TLTContactTimeVoBean[] tlttimes;
	private ims.RefMan.vo.beans.ClinicalContactTimeVoBean[] clinicalcontacttime;
}
