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

public class CorrespondenceDetailsVoBean extends ims.vo.ValueObjectBean
{
	public CorrespondenceDetailsVoBean()
	{
	}
	public CorrespondenceDetailsVoBean(ims.correspondence.vo.CorrespondenceDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : new ims.vo.RefVoBean(vo.getPasEvent().getBoId(), vo.getPasEvent().getBoVersion());
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getCurrentStatus().getBean();
		this.cspstatushistory = vo.getCspStatusHistory() == null ? null : vo.getCspStatusHistory().getBeanCollection();
		this.categories = vo.getCategories() == null ? null : vo.getCategories().getBeanCollection();
		this.recipients = vo.getRecipients() == null ? null : vo.getRecipients().getBeanCollection();
		this.currentdocument = vo.getCurrentDocument() == null ? null : (ims.core.vo.beans.DocumentVoBean)vo.getCurrentDocument().getBean();
		this.signedby = vo.getSignedBy() == null ? null : (ims.core.vo.beans.MedicLiteVoBean)vo.getSignedBy().getBean();
		this.specialinterest = vo.getSpecialInterest() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialInterest().getBean();
		this.dateofclinic = vo.getDateOfClinic() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfClinic().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.dictatedby = vo.getDictatedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getDictatedBy().getBean();
		this.dictatedbyinitials = vo.getDictatedByInitials();
		this.typedby = vo.getTypedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getTypedBy().getBean();
		this.typedbyinitials = vo.getTypedByInitials();
		this.enquiriesto = vo.getEnquiriesTo() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getEnquiriesTo().getBean();
		this.wastypedwithoutcasenotes = vo.getWasTypedWithoutCaseNotes();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.correspondence.vo.CorrespondenceDetailsVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : new ims.vo.RefVoBean(vo.getPasEvent().getBoId(), vo.getPasEvent().getBoVersion());
		this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getCurrentStatus().getBean();
		this.cspstatushistory = vo.getCspStatusHistory() == null ? null : vo.getCspStatusHistory().getBeanCollection();
		this.categories = vo.getCategories() == null ? null : vo.getCategories().getBeanCollection();
		this.recipients = vo.getRecipients() == null ? null : vo.getRecipients().getBeanCollection();
		this.currentdocument = vo.getCurrentDocument() == null ? null : (ims.core.vo.beans.DocumentVoBean)vo.getCurrentDocument().getBean(map);
		this.signedby = vo.getSignedBy() == null ? null : (ims.core.vo.beans.MedicLiteVoBean)vo.getSignedBy().getBean(map);
		this.specialinterest = vo.getSpecialInterest() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialInterest().getBean();
		this.dateofclinic = vo.getDateOfClinic() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateOfClinic().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.dictatedby = vo.getDictatedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getDictatedBy().getBean(map);
		this.dictatedbyinitials = vo.getDictatedByInitials();
		this.typedby = vo.getTypedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getTypedBy().getBean(map);
		this.typedbyinitials = vo.getTypedByInitials();
		this.enquiriesto = vo.getEnquiriesTo() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getEnquiriesTo().getBean(map);
		this.wastypedwithoutcasenotes = vo.getWasTypedWithoutCaseNotes();
	}

	public ims.correspondence.vo.CorrespondenceDetailsVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.correspondence.vo.CorrespondenceDetailsVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.correspondence.vo.CorrespondenceDetailsVo vo = null;
		if(map != null)
			vo = (ims.correspondence.vo.CorrespondenceDetailsVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.correspondence.vo.CorrespondenceDetailsVo();
			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 getPasEvent()
	{
		return this.pasevent;
	}
	public void setPasEvent(ims.vo.RefVoBean value)
	{
		this.pasevent = value;
	}
	public ims.vo.LookupInstanceBean getCurrentStatus()
	{
		return this.currentstatus;
	}
	public void setCurrentStatus(ims.vo.LookupInstanceBean value)
	{
		this.currentstatus = value;
	}
	public ims.correspondence.vo.beans.CorrespondenceStatusHistoryVoBean[] getCspStatusHistory()
	{
		return this.cspstatushistory;
	}
	public void setCspStatusHistory(ims.correspondence.vo.beans.CorrespondenceStatusHistoryVoBean[] value)
	{
		this.cspstatushistory = value;
	}
	public ims.correspondence.vo.beans.CategoryNotesVoBean[] getCategories()
	{
		return this.categories;
	}
	public void setCategories(ims.correspondence.vo.beans.CategoryNotesVoBean[] value)
	{
		this.categories = value;
	}
	public ims.correspondence.vo.beans.RecipientVoBean[] getRecipients()
	{
		return this.recipients;
	}
	public void setRecipients(ims.correspondence.vo.beans.RecipientVoBean[] value)
	{
		this.recipients = value;
	}
	public ims.core.vo.beans.DocumentVoBean getCurrentDocument()
	{
		return this.currentdocument;
	}
	public void setCurrentDocument(ims.core.vo.beans.DocumentVoBean value)
	{
		this.currentdocument = value;
	}
	public ims.core.vo.beans.MedicLiteVoBean getSignedBy()
	{
		return this.signedby;
	}
	public void setSignedBy(ims.core.vo.beans.MedicLiteVoBean value)
	{
		this.signedby = value;
	}
	public ims.vo.LookupInstanceBean getSpecialInterest()
	{
		return this.specialinterest;
	}
	public void setSpecialInterest(ims.vo.LookupInstanceBean value)
	{
		this.specialinterest = value;
	}
	public ims.framework.utils.beans.DateBean getDateOfClinic()
	{
		return this.dateofclinic;
	}
	public void setDateOfClinic(ims.framework.utils.beans.DateBean value)
	{
		this.dateofclinic = 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.core.vo.beans.MemberOfStaffLiteVoBean getDictatedBy()
	{
		return this.dictatedby;
	}
	public void setDictatedBy(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.dictatedby = value;
	}
	public String getDictatedByInitials()
	{
		return this.dictatedbyinitials;
	}
	public void setDictatedByInitials(String value)
	{
		this.dictatedbyinitials = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getTypedBy()
	{
		return this.typedby;
	}
	public void setTypedBy(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.typedby = value;
	}
	public String getTypedByInitials()
	{
		return this.typedbyinitials;
	}
	public void setTypedByInitials(String value)
	{
		this.typedbyinitials = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getEnquiriesTo()
	{
		return this.enquiriesto;
	}
	public void setEnquiriesTo(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.enquiriesto = value;
	}
	public Boolean getWasTypedWithoutCaseNotes()
	{
		return this.wastypedwithoutcasenotes;
	}
	public void setWasTypedWithoutCaseNotes(Boolean value)
	{
		this.wastypedwithoutcasenotes = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean pasevent;
	private ims.vo.LookupInstanceBean currentstatus;
	private ims.correspondence.vo.beans.CorrespondenceStatusHistoryVoBean[] cspstatushistory;
	private ims.correspondence.vo.beans.CategoryNotesVoBean[] categories;
	private ims.correspondence.vo.beans.RecipientVoBean[] recipients;
	private ims.core.vo.beans.DocumentVoBean currentdocument;
	private ims.core.vo.beans.MedicLiteVoBean signedby;
	private ims.vo.LookupInstanceBean specialinterest;
	private ims.framework.utils.beans.DateBean dateofclinic;
	private ims.framework.utils.beans.DateBean admissiondate;
	private ims.framework.utils.beans.DateBean dischargedate;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean dictatedby;
	private String dictatedbyinitials;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean typedby;
	private String typedbyinitials;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean enquiriesto;
	private Boolean wastypedwithoutcasenotes;
}
