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

public class CaseNoteForWorklistVoBean extends ims.vo.ValueObjectBean
{
	public CaseNoteForWorklistVoBean()
	{
	}
	public CaseNoteForWorklistVoBean(ims.core.vo.CaseNoteForWorklistVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientLite_IdentifiersVoBean)vo.getPatient().getBean();
		this.type = vo.getType() == null ? null : (ims.vo.LookupInstanceBean)vo.getType().getBean();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.trackingid = vo.getTrackingID();
		this.currentlocation = vo.getCurrentLocation() == null ? null : (ims.core.vo.beans.LocationForCaseNoteWorklistVoBean)vo.getCurrentLocation().getBean();
		this.createdby = vo.getCreatedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getCreatedBy().getBean();
		this.creationdate = vo.getCreationDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCreationDate().getBean();
		this.casenoterequest = vo.getCaseNoteRequest() == null ? null : (ims.core.vo.beans.CaseNoteRequestForWorklistVoBean)vo.getCaseNoteRequest().getBean();
		this.folder = vo.getFolder() == null ? null : (ims.vo.LookupInstanceBean)vo.getFolder().getBean();
		this.lasttransferdate = vo.getLastTransferDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastTransferDate().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.CaseNoteForWorklistVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientLite_IdentifiersVoBean)vo.getPatient().getBean(map);
		this.type = vo.getType() == null ? null : (ims.vo.LookupInstanceBean)vo.getType().getBean();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.trackingid = vo.getTrackingID();
		this.currentlocation = vo.getCurrentLocation() == null ? null : (ims.core.vo.beans.LocationForCaseNoteWorklistVoBean)vo.getCurrentLocation().getBean(map);
		this.createdby = vo.getCreatedBy() == null ? null : (ims.core.vo.beans.MemberOfStaffLiteVoBean)vo.getCreatedBy().getBean(map);
		this.creationdate = vo.getCreationDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getCreationDate().getBean();
		this.casenoterequest = vo.getCaseNoteRequest() == null ? null : (ims.core.vo.beans.CaseNoteRequestForWorklistVoBean)vo.getCaseNoteRequest().getBean(map);
		this.folder = vo.getFolder() == null ? null : (ims.vo.LookupInstanceBean)vo.getFolder().getBean();
		this.lasttransferdate = vo.getLastTransferDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastTransferDate().getBean();
	}

	public ims.core.vo.CaseNoteForWorklistVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.core.vo.CaseNoteForWorklistVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.CaseNoteForWorklistVo vo = null;
		if(map != null)
			vo = (ims.core.vo.CaseNoteForWorklistVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.CaseNoteForWorklistVo();
			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.core.vo.beans.PatientLite_IdentifiersVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientLite_IdentifiersVoBean value)
	{
		this.patient = value;
	}
	public ims.vo.LookupInstanceBean getType()
	{
		return this.type;
	}
	public void setType(ims.vo.LookupInstanceBean value)
	{
		this.type = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public String getTrackingID()
	{
		return this.trackingid;
	}
	public void setTrackingID(String value)
	{
		this.trackingid = value;
	}
	public ims.core.vo.beans.LocationForCaseNoteWorklistVoBean getCurrentLocation()
	{
		return this.currentlocation;
	}
	public void setCurrentLocation(ims.core.vo.beans.LocationForCaseNoteWorklistVoBean value)
	{
		this.currentlocation = value;
	}
	public ims.core.vo.beans.MemberOfStaffLiteVoBean getCreatedBy()
	{
		return this.createdby;
	}
	public void setCreatedBy(ims.core.vo.beans.MemberOfStaffLiteVoBean value)
	{
		this.createdby = value;
	}
	public ims.framework.utils.beans.DateTimeBean getCreationDate()
	{
		return this.creationdate;
	}
	public void setCreationDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.creationdate = value;
	}
	public ims.core.vo.beans.CaseNoteRequestForWorklistVoBean getCaseNoteRequest()
	{
		return this.casenoterequest;
	}
	public void setCaseNoteRequest(ims.core.vo.beans.CaseNoteRequestForWorklistVoBean value)
	{
		this.casenoterequest = value;
	}
	public ims.vo.LookupInstanceBean getFolder()
	{
		return this.folder;
	}
	public void setFolder(ims.vo.LookupInstanceBean value)
	{
		this.folder = value;
	}
	public ims.framework.utils.beans.DateTimeBean getLastTransferDate()
	{
		return this.lasttransferdate;
	}
	public void setLastTransferDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.lasttransferdate = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PatientLite_IdentifiersVoBean patient;
	private ims.vo.LookupInstanceBean type;
	private ims.vo.LookupInstanceBean status;
	private String trackingid;
	private ims.core.vo.beans.LocationForCaseNoteWorklistVoBean currentlocation;
	private ims.core.vo.beans.MemberOfStaffLiteVoBean createdby;
	private ims.framework.utils.beans.DateTimeBean creationdate;
	private ims.core.vo.beans.CaseNoteRequestForWorklistVoBean casenoterequest;
	private ims.vo.LookupInstanceBean folder;
	private ims.framework.utils.beans.DateTimeBean lasttransferdate;
}
