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

public class SurgeryDetailsVoBean extends ims.vo.ValueObjectBean
{
	public SurgeryDetailsVoBean()
	{
	}
	public SurgeryDetailsVoBean(ims.clinical.vo.SurgeryDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.patientprocedure = vo.getPatientProcedure() == null ? null : (ims.core.vo.beans.PatientProcedureVoBean)vo.getPatientProcedure().getBean();
		this.hospitalperformed = vo.getHospitalPerformed() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getHospitalPerformed().getBean();
		// Interface field type not supported.
		this.specialtyfunctioncode = vo.getSpecialtyFunctionCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialtyFunctionCode().getBean();
		this.admissiondate = vo.getAdmissionDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getAdmissionDate().getBean();
		this.dischargedate = vo.getDischargeDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeDate().getBean();
		this.dischargedestination = vo.getDischargeDestination() == null ? null : (ims.vo.LookupInstanceBean)vo.getDischargeDestination().getBean();
		this.asagrade = vo.getASAGrade() == null ? null : (ims.vo.LookupInstanceBean)vo.getASAGrade().getBean();
		this.consultantpresence = vo.getConsultantPresence() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsultantPresence().getBean();
		this.subprocedures = vo.getSubProcedures() == null ? null : vo.getSubProcedures().getBeanCollection();
		// Interface field type not supported.
		this.anaesthetistgrade = vo.getAnaesthetistGrade() == null ? null : (ims.vo.LookupInstanceBean)vo.getAnaesthetistGrade().getBean();
		this.assistants = vo.getAssistants() == null ? null : vo.getAssistants().getBeanCollection();
		this.proceduretype = vo.getProcedureType() == null ? null : (ims.vo.LookupInstanceBean)vo.getProcedureType().getBean();
		this.preoppossum = vo.getPreOpPossum() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getPreOpPossum().getBean();
		this.operativedetailspossum = vo.getOperativeDetailsPossum() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getOperativeDetailsPossum().getBean();
		this.operativefindings = vo.getOperativeFindings() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getOperativeFindings().getBean();
		this.proceduredetails = vo.getProcedureDetails() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getProcedureDetails().getBean();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.episodeofcare = vo.getEpisodeOfCare() == null ? null : new ims.vo.RefVoBean(vo.getEpisodeOfCare().getBoId(), vo.getEpisodeOfCare().getBoVersion());
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.SurgeryDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.patientprocedure = vo.getPatientProcedure() == null ? null : (ims.core.vo.beans.PatientProcedureVoBean)vo.getPatientProcedure().getBean(map);
		this.hospitalperformed = vo.getHospitalPerformed() == null ? null : (ims.core.vo.beans.OrgLiteVoBean)vo.getHospitalPerformed().getBean(map);
		// Interface field type not supported.
		this.specialtyfunctioncode = vo.getSpecialtyFunctionCode() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialtyFunctionCode().getBean();
		this.admissiondate = vo.getAdmissionDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getAdmissionDate().getBean();
		this.dischargedate = vo.getDischargeDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDischargeDate().getBean();
		this.dischargedestination = vo.getDischargeDestination() == null ? null : (ims.vo.LookupInstanceBean)vo.getDischargeDestination().getBean();
		this.asagrade = vo.getASAGrade() == null ? null : (ims.vo.LookupInstanceBean)vo.getASAGrade().getBean();
		this.consultantpresence = vo.getConsultantPresence() == null ? null : (ims.vo.LookupInstanceBean)vo.getConsultantPresence().getBean();
		this.subprocedures = vo.getSubProcedures() == null ? null : vo.getSubProcedures().getBeanCollection();
		// Interface field type not supported.
		this.anaesthetistgrade = vo.getAnaesthetistGrade() == null ? null : (ims.vo.LookupInstanceBean)vo.getAnaesthetistGrade().getBean();
		this.assistants = vo.getAssistants() == null ? null : vo.getAssistants().getBeanCollection();
		this.proceduretype = vo.getProcedureType() == null ? null : (ims.vo.LookupInstanceBean)vo.getProcedureType().getBean();
		this.preoppossum = vo.getPreOpPossum() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getPreOpPossum().getBean(map);
		this.operativedetailspossum = vo.getOperativeDetailsPossum() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getOperativeDetailsPossum().getBean(map);
		this.operativefindings = vo.getOperativeFindings() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getOperativeFindings().getBean(map);
		this.proceduredetails = vo.getProcedureDetails() == null ? null : (ims.assessment.vo.beans.PatientAssessmentVoBean)vo.getProcedureDetails().getBean(map);
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.episodeofcare = vo.getEpisodeOfCare() == null ? null : new ims.vo.RefVoBean(vo.getEpisodeOfCare().getBoId(), vo.getEpisodeOfCare().getBoVersion());
	}

	public ims.clinical.vo.SurgeryDetailsVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.clinical.vo.SurgeryDetailsVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.SurgeryDetailsVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.SurgeryDetailsVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.SurgeryDetailsVo();
			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 getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.core.vo.beans.PatientProcedureVoBean getPatientProcedure()
	{
		return this.patientprocedure;
	}
	public void setPatientProcedure(ims.core.vo.beans.PatientProcedureVoBean value)
	{
		this.patientprocedure = value;
	}
	public ims.core.vo.beans.OrgLiteVoBean getHospitalPerformed()
	{
		return this.hospitalperformed;
	}
	public void setHospitalPerformed(ims.core.vo.beans.OrgLiteVoBean value)
	{
		this.hospitalperformed = value;
	}
	public ims.vo.LookupInstanceBean getSpecialtyFunctionCode()
	{
		return this.specialtyfunctioncode;
	}
	public void setSpecialtyFunctionCode(ims.vo.LookupInstanceBean value)
	{
		this.specialtyfunctioncode = value;
	}
	public ims.framework.utils.beans.DateBean getAdmissionDate()
	{
		return this.admissiondate;
	}
	public void setAdmissionDate(ims.framework.utils.beans.DateBean value)
	{
		this.admissiondate = value;
	}
	public ims.framework.utils.beans.DateBean getDischargeDate()
	{
		return this.dischargedate;
	}
	public void setDischargeDate(ims.framework.utils.beans.DateBean value)
	{
		this.dischargedate = value;
	}
	public ims.vo.LookupInstanceBean getDischargeDestination()
	{
		return this.dischargedestination;
	}
	public void setDischargeDestination(ims.vo.LookupInstanceBean value)
	{
		this.dischargedestination = value;
	}
	public ims.vo.LookupInstanceBean getASAGrade()
	{
		return this.asagrade;
	}
	public void setASAGrade(ims.vo.LookupInstanceBean value)
	{
		this.asagrade = value;
	}
	public ims.vo.LookupInstanceBean getConsultantPresence()
	{
		return this.consultantpresence;
	}
	public void setConsultantPresence(ims.vo.LookupInstanceBean value)
	{
		this.consultantpresence = value;
	}
	public ims.clinical.vo.beans.SubProceduresVoBean[] getSubProcedures()
	{
		return this.subprocedures;
	}
	public void setSubProcedures(ims.clinical.vo.beans.SubProceduresVoBean[] value)
	{
		this.subprocedures = value;
	}
	public ims.vo.LookupInstanceBean getAnaesthetistGrade()
	{
		return this.anaesthetistgrade;
	}
	public void setAnaesthetistGrade(ims.vo.LookupInstanceBean value)
	{
		this.anaesthetistgrade = value;
	}
	public ims.clinical.vo.beans.SurgeryAssistantsVoBean[] getAssistants()
	{
		return this.assistants;
	}
	public void setAssistants(ims.clinical.vo.beans.SurgeryAssistantsVoBean[] value)
	{
		this.assistants = value;
	}
	public ims.vo.LookupInstanceBean getProcedureType()
	{
		return this.proceduretype;
	}
	public void setProcedureType(ims.vo.LookupInstanceBean value)
	{
		this.proceduretype = value;
	}
	public ims.assessment.vo.beans.PatientAssessmentVoBean getPreOpPossum()
	{
		return this.preoppossum;
	}
	public void setPreOpPossum(ims.assessment.vo.beans.PatientAssessmentVoBean value)
	{
		this.preoppossum = value;
	}
	public ims.assessment.vo.beans.PatientAssessmentVoBean getOperativeDetailsPossum()
	{
		return this.operativedetailspossum;
	}
	public void setOperativeDetailsPossum(ims.assessment.vo.beans.PatientAssessmentVoBean value)
	{
		this.operativedetailspossum = value;
	}
	public ims.assessment.vo.beans.PatientAssessmentVoBean getOperativeFindings()
	{
		return this.operativefindings;
	}
	public void setOperativeFindings(ims.assessment.vo.beans.PatientAssessmentVoBean value)
	{
		this.operativefindings = value;
	}
	public ims.assessment.vo.beans.PatientAssessmentVoBean getProcedureDetails()
	{
		return this.proceduredetails;
	}
	public void setProcedureDetails(ims.assessment.vo.beans.PatientAssessmentVoBean value)
	{
		this.proceduredetails = 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.vo.RefVoBean getEpisodeOfCare()
	{
		return this.episodeofcare;
	}
	public void setEpisodeOfCare(ims.vo.RefVoBean value)
	{
		this.episodeofcare = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean carecontext;
	private ims.core.vo.beans.PatientProcedureVoBean patientprocedure;
	private ims.core.vo.beans.OrgLiteVoBean hospitalperformed;
	private ims.vo.LookupInstanceBean specialtyfunctioncode;
	private ims.framework.utils.beans.DateBean admissiondate;
	private ims.framework.utils.beans.DateBean dischargedate;
	private ims.vo.LookupInstanceBean dischargedestination;
	private ims.vo.LookupInstanceBean asagrade;
	private ims.vo.LookupInstanceBean consultantpresence;
	private ims.clinical.vo.beans.SubProceduresVoBean[] subprocedures;
	private ims.vo.LookupInstanceBean anaesthetistgrade;
	private ims.clinical.vo.beans.SurgeryAssistantsVoBean[] assistants;
	private ims.vo.LookupInstanceBean proceduretype;
	private ims.assessment.vo.beans.PatientAssessmentVoBean preoppossum;
	private ims.assessment.vo.beans.PatientAssessmentVoBean operativedetailspossum;
	private ims.assessment.vo.beans.PatientAssessmentVoBean operativefindings;
	private ims.assessment.vo.beans.PatientAssessmentVoBean proceduredetails;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.vo.RefVoBean episodeofcare;
}
