/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/beans/AppointmentClinicalNotesVoBean.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 AppointmentClinicalNotesVoBean extends ims.vo.ValueObjectBean
{
	public AppointmentClinicalNotesVoBean()
	{
	}
	public AppointmentClinicalNotesVoBean(ims.RefMan.vo.AppointmentClinicalNotesVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.catsreferral = vo.getCatsReferral() == null ? null : new ims.vo.RefVoBean(vo.getCatsReferral().getBoId(), vo.getCatsReferral().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.clinicalnote = vo.getClinicalNote();
		this.clinicalnotetype = vo.getClinicalNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getClinicalNoteType().getBean();
		this.appointment = vo.getAppointment() == null ? null : new ims.vo.RefVoBean(vo.getAppointment().getBoId(), vo.getAppointment().getBoVersion());
		this.authoringuser = vo.getAuthoringUser() == null ? null : new ims.vo.RefVoBean(vo.getAuthoringUser().getBoId(), vo.getAuthoringUser().getBoVersion());
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.notetype = vo.getNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteType().getBean();
		this.notestatus = vo.getNoteStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteStatus().getBean();
		this.copytogp = vo.getCopyToGP();
		this.copytopatient = vo.getCopyToPatient();
		this.copytosecondarycare = vo.getCopyToSecondaryCare();
		this.correspondencemadeactivedatetime = vo.getCorrespondenceMadeActiveDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCorrespondenceMadeActiveDateTime().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.AppointmentClinicalNotesVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.catsreferral = vo.getCatsReferral() == null ? null : new ims.vo.RefVoBean(vo.getCatsReferral().getBoId(), vo.getCatsReferral().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.clinicalnote = vo.getClinicalNote();
		this.clinicalnotetype = vo.getClinicalNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getClinicalNoteType().getBean();
		this.appointment = vo.getAppointment() == null ? null : new ims.vo.RefVoBean(vo.getAppointment().getBoId(), vo.getAppointment().getBoVersion());
		this.authoringuser = vo.getAuthoringUser() == null ? null : new ims.vo.RefVoBean(vo.getAuthoringUser().getBoId(), vo.getAuthoringUser().getBoVersion());
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.notetype = vo.getNoteType() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteType().getBean();
		this.notestatus = vo.getNoteStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getNoteStatus().getBean();
		this.copytogp = vo.getCopyToGP();
		this.copytopatient = vo.getCopyToPatient();
		this.copytosecondarycare = vo.getCopyToSecondaryCare();
		this.correspondencemadeactivedatetime = vo.getCorrespondenceMadeActiveDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCorrespondenceMadeActiveDateTime().getBean();
	}

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

	public ims.RefMan.vo.AppointmentClinicalNotesVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.AppointmentClinicalNotesVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.AppointmentClinicalNotesVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.AppointmentClinicalNotesVo();
			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 getCatsReferral()
	{
		return this.catsreferral;
	}
	public void setCatsReferral(ims.vo.RefVoBean value)
	{
		this.catsreferral = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}
	public String getClinicalNote()
	{
		return this.clinicalnote;
	}
	public void setClinicalNote(String value)
	{
		this.clinicalnote = value;
	}
	public ims.vo.LookupInstanceBean getClinicalNoteType()
	{
		return this.clinicalnotetype;
	}
	public void setClinicalNoteType(ims.vo.LookupInstanceBean value)
	{
		this.clinicalnotetype = value;
	}
	public ims.vo.RefVoBean getAppointment()
	{
		return this.appointment;
	}
	public void setAppointment(ims.vo.RefVoBean value)
	{
		this.appointment = value;
	}
	public ims.vo.RefVoBean getAuthoringUser()
	{
		return this.authoringuser;
	}
	public void setAuthoringUser(ims.vo.RefVoBean value)
	{
		this.authoringuser = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.vo.LookupInstanceBean getNoteType()
	{
		return this.notetype;
	}
	public void setNoteType(ims.vo.LookupInstanceBean value)
	{
		this.notetype = value;
	}
	public ims.vo.LookupInstanceBean getNoteStatus()
	{
		return this.notestatus;
	}
	public void setNoteStatus(ims.vo.LookupInstanceBean value)
	{
		this.notestatus = value;
	}
	public Boolean getCopyToGP()
	{
		return this.copytogp;
	}
	public void setCopyToGP(Boolean value)
	{
		this.copytogp = value;
	}
	public Boolean getCopyToPatient()
	{
		return this.copytopatient;
	}
	public void setCopyToPatient(Boolean value)
	{
		this.copytopatient = value;
	}
	public Boolean getCopyToSecondaryCare()
	{
		return this.copytosecondarycare;
	}
	public void setCopyToSecondaryCare(Boolean value)
	{
		this.copytosecondarycare = value;
	}
	public ims.framework.utils.beans.DateTimeBean getCorrespondenceMadeActiveDateTime()
	{
		return this.correspondencemadeactivedatetime;
	}
	public void setCorrespondenceMadeActiveDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.correspondencemadeactivedatetime = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean catsreferral;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private String clinicalnote;
	private ims.vo.LookupInstanceBean clinicalnotetype;
	private ims.vo.RefVoBean appointment;
	private ims.vo.RefVoBean authoringuser;
	private ims.vo.SysInfoBean sysinfo;
	private ims.vo.LookupInstanceBean notetype;
	private ims.vo.LookupInstanceBean notestatus;
	private Boolean copytogp;
	private Boolean copytopatient;
	private Boolean copytosecondarycare;
	private ims.framework.utils.beans.DateTimeBean correspondencemadeactivedatetime;
}
