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

public class AppointmentVoBean extends ims.vo.ValueObjectBean
{
	public AppointmentVoBean()
	{
	}
	public AppointmentVoBean(ims.dtomove.vo.AppointmentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pkey = vo.getPkey();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.numcancelled = vo.getNumCancelled();
		this.numdna = vo.getNumDNA();
		this.bookingsystype = vo.getBookingSysType();
		this.relatedappointment = vo.getRelatedAppointment() == null ? null : new ims.vo.RefVoBean(vo.getRelatedAppointment().getBoId(), vo.getRelatedAppointment().getBoVersion());
		this.patientletter = vo.getPatientLetter();
		this.gpletter = vo.getGpLetter();
		this.comments = vo.getComments();
		this.hcpbooking = vo.getHcpBooking() == null ? null : new ims.vo.RefVoBean(vo.getHcpBooking().getBoId(), vo.getHcpBooking().getBoVersion());
		this.datebooked = vo.getDateBooked() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateBooked().getBean();
		this.priordateoffered = vo.getPriorDateOffered() == null ? null : (ims.framework.utils.beans.DateBean)vo.getPriorDateOffered().getBean();
		this.headstatus = vo.getHeadStatus();
		this.transportrequired = vo.getTransportRequired();
		this.transportcomment = vo.getTransportComment();
		this.patstat = vo.getPatStat();
		this.episode = vo.getEpisode();
		if(vo.getApptDetail() != null)
		{
			this.apptdetail = new ims.vo.RefVoBean[vo.getApptDetail().size()];
			for(int apptdetail_i = 0; apptdetail_i < vo.getApptDetail().size(); apptdetail_i++)
			{
				this.apptdetail[apptdetail_i] = new ims.vo.RefVoBean(vo.getApptDetail().get(apptdetail_i).getBoId(),vo.getApptDetail().get(apptdetail_i).getBoVersion());
			}
		}
		this.treatplanactionid = vo.getTreatPlanActionId();
		this.firstapptid = vo.getFirstApptId();
		this.lastapptid = vo.getLastApptId();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.dtomove.vo.AppointmentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pkey = vo.getPkey();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.numcancelled = vo.getNumCancelled();
		this.numdna = vo.getNumDNA();
		this.bookingsystype = vo.getBookingSysType();
		this.relatedappointment = vo.getRelatedAppointment() == null ? null : new ims.vo.RefVoBean(vo.getRelatedAppointment().getBoId(), vo.getRelatedAppointment().getBoVersion());
		this.patientletter = vo.getPatientLetter();
		this.gpletter = vo.getGpLetter();
		this.comments = vo.getComments();
		this.hcpbooking = vo.getHcpBooking() == null ? null : new ims.vo.RefVoBean(vo.getHcpBooking().getBoId(), vo.getHcpBooking().getBoVersion());
		this.datebooked = vo.getDateBooked() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateBooked().getBean();
		this.priordateoffered = vo.getPriorDateOffered() == null ? null : (ims.framework.utils.beans.DateBean)vo.getPriorDateOffered().getBean();
		this.headstatus = vo.getHeadStatus();
		this.transportrequired = vo.getTransportRequired();
		this.transportcomment = vo.getTransportComment();
		this.patstat = vo.getPatStat();
		this.episode = vo.getEpisode();
		if(vo.getApptDetail() != null)
		{
			this.apptdetail = new ims.vo.RefVoBean[vo.getApptDetail().size()];
			for(int apptdetail_i = 0; apptdetail_i < vo.getApptDetail().size(); apptdetail_i++)
			{
				this.apptdetail[apptdetail_i] = new ims.vo.RefVoBean(vo.getApptDetail().get(apptdetail_i).getBoId(),vo.getApptDetail().get(apptdetail_i).getBoVersion());
			}
		}
		this.treatplanactionid = vo.getTreatPlanActionId();
		this.firstapptid = vo.getFirstApptId();
		this.lastapptid = vo.getLastApptId();
	}

	public ims.dtomove.vo.AppointmentVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.dtomove.vo.AppointmentVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.dtomove.vo.AppointmentVo vo = null;
		if(map != null)
			vo = (ims.dtomove.vo.AppointmentVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.dtomove.vo.AppointmentVo();
			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 Integer getPkey()
	{
		return this.pkey;
	}
	public void setPkey(Integer value)
	{
		this.pkey = value;
	}
	public ims.vo.RefVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}
	public Integer getNumCancelled()
	{
		return this.numcancelled;
	}
	public void setNumCancelled(Integer value)
	{
		this.numcancelled = value;
	}
	public Integer getNumDNA()
	{
		return this.numdna;
	}
	public void setNumDNA(Integer value)
	{
		this.numdna = value;
	}
	public Integer getBookingSysType()
	{
		return this.bookingsystype;
	}
	public void setBookingSysType(Integer value)
	{
		this.bookingsystype = value;
	}
	public ims.vo.RefVoBean getRelatedAppointment()
	{
		return this.relatedappointment;
	}
	public void setRelatedAppointment(ims.vo.RefVoBean value)
	{
		this.relatedappointment = value;
	}
	public String getPatientLetter()
	{
		return this.patientletter;
	}
	public void setPatientLetter(String value)
	{
		this.patientletter = value;
	}
	public String getGpLetter()
	{
		return this.gpletter;
	}
	public void setGpLetter(String value)
	{
		this.gpletter = value;
	}
	public String getComments()
	{
		return this.comments;
	}
	public void setComments(String value)
	{
		this.comments = value;
	}
	public ims.vo.RefVoBean getHcpBooking()
	{
		return this.hcpbooking;
	}
	public void setHcpBooking(ims.vo.RefVoBean value)
	{
		this.hcpbooking = value;
	}
	public ims.framework.utils.beans.DateBean getDateBooked()
	{
		return this.datebooked;
	}
	public void setDateBooked(ims.framework.utils.beans.DateBean value)
	{
		this.datebooked = value;
	}
	public ims.framework.utils.beans.DateBean getPriorDateOffered()
	{
		return this.priordateoffered;
	}
	public void setPriorDateOffered(ims.framework.utils.beans.DateBean value)
	{
		this.priordateoffered = value;
	}
	public Integer getHeadStatus()
	{
		return this.headstatus;
	}
	public void setHeadStatus(Integer value)
	{
		this.headstatus = value;
	}
	public String getTransportRequired()
	{
		return this.transportrequired;
	}
	public void setTransportRequired(String value)
	{
		this.transportrequired = value;
	}
	public String getTransportComment()
	{
		return this.transportcomment;
	}
	public void setTransportComment(String value)
	{
		this.transportcomment = value;
	}
	public Integer getPatStat()
	{
		return this.patstat;
	}
	public void setPatStat(Integer value)
	{
		this.patstat = value;
	}
	public Integer getEpisode()
	{
		return this.episode;
	}
	public void setEpisode(Integer value)
	{
		this.episode = value;
	}
	public ims.vo.RefVoBean[] getApptDetail()
	{
		return this.apptdetail;
	}
	public void setApptDetail(ims.vo.RefVoBean[] value)
	{
		this.apptdetail = value;
	}
	public Integer getTreatPlanActionId()
	{
		return this.treatplanactionid;
	}
	public void setTreatPlanActionId(Integer value)
	{
		this.treatplanactionid = value;
	}
	public Integer getFirstApptId()
	{
		return this.firstapptid;
	}
	public void setFirstApptId(Integer value)
	{
		this.firstapptid = value;
	}
	public Integer getLastApptId()
	{
		return this.lastapptid;
	}
	public void setLastApptId(Integer value)
	{
		this.lastapptid = value;
	}

	private Integer id;
	private int version;
	private Integer pkey;
	private ims.vo.RefVoBean patient;
	private Integer numcancelled;
	private Integer numdna;
	private Integer bookingsystype;
	private ims.vo.RefVoBean relatedappointment;
	private String patientletter;
	private String gpletter;
	private String comments;
	private ims.vo.RefVoBean hcpbooking;
	private ims.framework.utils.beans.DateBean datebooked;
	private ims.framework.utils.beans.DateBean priordateoffered;
	private Integer headstatus;
	private String transportrequired;
	private String transportcomment;
	private Integer patstat;
	private Integer episode;
	private ims.vo.RefVoBean[] apptdetail;
	private Integer treatplanactionid;
	private Integer firstapptid;
	private Integer lastapptid;
}
