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

public class LoCallVoBean extends ims.vo.ValueObjectBean
{
	public LoCallVoBean()
	{
	}
	public LoCallVoBean(ims.ntpf.vo.LoCallVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.localldate = vo.getLoCallDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLoCallDate().getBean();
		this.waitinglistdetails = vo.getWaitingListDetails() == null ? null : vo.getWaitingListDetails().getBeanCollection();
		this.hascomments = vo.getHasComments();
		this.locallnumber = vo.getLoCallNumber();
		this.whereheard = vo.getWhereHeard() == null ? null : (ims.vo.LookupInstanceBean)vo.getWhereHeard().getBean();
		this.callername = vo.getCallerName();
		this.callernumber = vo.getCallerNumber();
		this.patientchecklist = vo.getPatientCheckList() == null ? null : vo.getPatientCheckList().getBeanCollection();
		this.callerrelationship = vo.getCallerRelationship() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallerRelationship().getBean();
		this.calltype = vo.getCallType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallType().getBean();
		this.medicalinsurance = vo.getMedicalInsurance() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicalInsurance().getBean();
		this.insurancetype = vo.getInsuranceType() == null ? null : (ims.vo.LookupInstanceBean)vo.getInsuranceType().getBean();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.gpdetails = vo.getGPDetails() == null ? null : (ims.ntpf.vo.beans.GPDetailsNTPFVoBean)vo.getGPDetails().getBean();
		this.locallcomments = vo.getLoCallComments() == null ? null : vo.getLoCallComments().getBeanCollection();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientBean)vo.getPatient().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ntpf.vo.LoCallVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.localldate = vo.getLoCallDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLoCallDate().getBean();
		this.waitinglistdetails = vo.getWaitingListDetails() == null ? null : vo.getWaitingListDetails().getBeanCollection();
		this.hascomments = vo.getHasComments();
		this.locallnumber = vo.getLoCallNumber();
		this.whereheard = vo.getWhereHeard() == null ? null : (ims.vo.LookupInstanceBean)vo.getWhereHeard().getBean();
		this.callername = vo.getCallerName();
		this.callernumber = vo.getCallerNumber();
		this.patientchecklist = vo.getPatientCheckList() == null ? null : vo.getPatientCheckList().getBeanCollection();
		this.callerrelationship = vo.getCallerRelationship() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallerRelationship().getBean();
		this.calltype = vo.getCallType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCallType().getBean();
		this.medicalinsurance = vo.getMedicalInsurance() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicalInsurance().getBean();
		this.insurancetype = vo.getInsuranceType() == null ? null : (ims.vo.LookupInstanceBean)vo.getInsuranceType().getBean();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.gpdetails = vo.getGPDetails() == null ? null : (ims.ntpf.vo.beans.GPDetailsNTPFVoBean)vo.getGPDetails().getBean(map);
		this.locallcomments = vo.getLoCallComments() == null ? null : vo.getLoCallComments().getBeanCollection();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientBean)vo.getPatient().getBean(map);
	}

	public ims.ntpf.vo.LoCallVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.ntpf.vo.LoCallVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ntpf.vo.LoCallVo vo = null;
		if(map != null)
			vo = (ims.ntpf.vo.LoCallVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ntpf.vo.LoCallVo();
			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.framework.utils.beans.DateBean getLoCallDate()
	{
		return this.localldate;
	}
	public void setLoCallDate(ims.framework.utils.beans.DateBean value)
	{
		this.localldate = value;
	}
	public ims.ntpf.vo.beans.LoCallWaitingListDetailsVoBean[] getWaitingListDetails()
	{
		return this.waitinglistdetails;
	}
	public void setWaitingListDetails(ims.ntpf.vo.beans.LoCallWaitingListDetailsVoBean[] value)
	{
		this.waitinglistdetails = value;
	}
	public Boolean getHasComments()
	{
		return this.hascomments;
	}
	public void setHasComments(Boolean value)
	{
		this.hascomments = value;
	}
	public String getLoCallNumber()
	{
		return this.locallnumber;
	}
	public void setLoCallNumber(String value)
	{
		this.locallnumber = value;
	}
	public ims.vo.LookupInstanceBean getWhereHeard()
	{
		return this.whereheard;
	}
	public void setWhereHeard(ims.vo.LookupInstanceBean value)
	{
		this.whereheard = value;
	}
	public String getCallerName()
	{
		return this.callername;
	}
	public void setCallerName(String value)
	{
		this.callername = value;
	}
	public String getCallerNumber()
	{
		return this.callernumber;
	}
	public void setCallerNumber(String value)
	{
		this.callernumber = value;
	}
	public ims.ntpf.vo.beans.PatientCheckListVoBean[] getPatientCheckList()
	{
		return this.patientchecklist;
	}
	public void setPatientCheckList(ims.ntpf.vo.beans.PatientCheckListVoBean[] value)
	{
		this.patientchecklist = value;
	}
	public ims.vo.LookupInstanceBean getCallerRelationship()
	{
		return this.callerrelationship;
	}
	public void setCallerRelationship(ims.vo.LookupInstanceBean value)
	{
		this.callerrelationship = value;
	}
	public ims.vo.LookupInstanceBean getCallType()
	{
		return this.calltype;
	}
	public void setCallType(ims.vo.LookupInstanceBean value)
	{
		this.calltype = value;
	}
	public ims.vo.LookupInstanceBean getMedicalInsurance()
	{
		return this.medicalinsurance;
	}
	public void setMedicalInsurance(ims.vo.LookupInstanceBean value)
	{
		this.medicalinsurance = value;
	}
	public ims.vo.LookupInstanceBean getInsuranceType()
	{
		return this.insurancetype;
	}
	public void setInsuranceType(ims.vo.LookupInstanceBean value)
	{
		this.insurancetype = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.ntpf.vo.beans.GPDetailsNTPFVoBean getGPDetails()
	{
		return this.gpdetails;
	}
	public void setGPDetails(ims.ntpf.vo.beans.GPDetailsNTPFVoBean value)
	{
		this.gpdetails = value;
	}
	public ims.ntpf.vo.beans.CommentVoBean[] getLoCallComments()
	{
		return this.locallcomments;
	}
	public void setLoCallComments(ims.ntpf.vo.beans.CommentVoBean[] value)
	{
		this.locallcomments = value;
	}
	public ims.core.vo.beans.PatientBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientBean value)
	{
		this.patient = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateBean localldate;
	private ims.ntpf.vo.beans.LoCallWaitingListDetailsVoBean[] waitinglistdetails;
	private Boolean hascomments;
	private String locallnumber;
	private ims.vo.LookupInstanceBean whereheard;
	private String callername;
	private String callernumber;
	private ims.ntpf.vo.beans.PatientCheckListVoBean[] patientchecklist;
	private ims.vo.LookupInstanceBean callerrelationship;
	private ims.vo.LookupInstanceBean calltype;
	private ims.vo.LookupInstanceBean medicalinsurance;
	private ims.vo.LookupInstanceBean insurancetype;
	private ims.vo.SysInfoBean sysinfo;
	private ims.ntpf.vo.beans.GPDetailsNTPFVoBean gpdetails;
	private ims.ntpf.vo.beans.CommentVoBean[] locallcomments;
	private ims.core.vo.beans.PatientBean patient;
}
