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

public class PatientJourneyVoBean extends ims.vo.ValueObjectBean
{
	public PatientJourneyVoBean()
	{
	}
	public PatientJourneyVoBean(ims.pathways.vo.PatientJourneyVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortBean)vo.getPatient().getBean();
		this.pathway = vo.getPathway() == null ? null : (ims.pathways.vo.beans.PathwayLiteVoBean)vo.getPathway().getBean();
		if(vo.getPatientTargets() != null)
		{
			this.patienttargets = new ims.vo.RefVoBean[vo.getPatientTargets().size()];
			for(int patienttargets_i = 0; patienttargets_i < vo.getPatientTargets().size(); patienttargets_i++)
			{
				this.patienttargets[patienttargets_i] = new ims.vo.RefVoBean(vo.getPatientTargets().get(patienttargets_i).getBoId(),vo.getPatientTargets().get(patienttargets_i).getBoVersion());
			}
		}
		this.referral = vo.getReferral() == null ? null : new ims.vo.RefVoBean(vo.getReferral().getBoId(), vo.getReferral().getBoVersion());
		this.startdate = vo.getStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getStartDate().getBean();
		this.currentstatus = vo.getCurrentStatus() == null ? null : new ims.vo.RefVoBean(vo.getCurrentStatus().getBoId(), vo.getCurrentStatus().getBoVersion());
		if(vo.getStatusHistory() != null)
		{
			this.statushistory = new ims.vo.RefVoBean[vo.getStatusHistory().size()];
			for(int statushistory_i = 0; statushistory_i < vo.getStatusHistory().size(); statushistory_i++)
			{
				this.statushistory[statushistory_i] = new ims.vo.RefVoBean(vo.getStatusHistory().get(statushistory_i).getBoId(),vo.getStatusHistory().get(statushistory_i).getBoVersion());
			}
		}
		this.endedondate = vo.getEndedOnDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndedOnDate().getBean();
		this.currentclock = vo.getCurrentClock() == null ? null : (ims.pathways.vo.beans.PathwayClockVoBean)vo.getCurrentClock().getBean();
		this.clockhistory = vo.getClockHistory() == null ? null : vo.getClockHistory().getBeanCollection();
		this.extreferralkey = vo.getExtReferralKey();
		this.pathwayhistory = vo.getPathwayHistory() == null ? null : vo.getPathwayHistory().getBeanCollection();
		this.responsibleconsultant = vo.getResponsibleConsultant() == null ? null : new ims.vo.RefVoBean(vo.getResponsibleConsultant().getBoId(), vo.getResponsibleConsultant().getBoVersion());
		this.linkedcomments = vo.getLinkedComments() == null ? null : vo.getLinkedComments().getBeanCollection();
		this.lastvalidationdate = vo.getLastValidationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastValidationDate().getBean();
		this.nextvalidationdate = vo.getNextValidationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getNextValidationDate().getBean();
		this.iscancerpathway = vo.getIsCancerPathway();
		this.cancerpathwaydate = vo.getCancerPathwayDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCancerPathwayDate().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.pathways.vo.PatientJourneyVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortBean)vo.getPatient().getBean(map);
		this.pathway = vo.getPathway() == null ? null : (ims.pathways.vo.beans.PathwayLiteVoBean)vo.getPathway().getBean(map);
		if(vo.getPatientTargets() != null)
		{
			this.patienttargets = new ims.vo.RefVoBean[vo.getPatientTargets().size()];
			for(int patienttargets_i = 0; patienttargets_i < vo.getPatientTargets().size(); patienttargets_i++)
			{
				this.patienttargets[patienttargets_i] = new ims.vo.RefVoBean(vo.getPatientTargets().get(patienttargets_i).getBoId(),vo.getPatientTargets().get(patienttargets_i).getBoVersion());
			}
		}
		this.referral = vo.getReferral() == null ? null : new ims.vo.RefVoBean(vo.getReferral().getBoId(), vo.getReferral().getBoVersion());
		this.startdate = vo.getStartDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getStartDate().getBean();
		this.currentstatus = vo.getCurrentStatus() == null ? null : new ims.vo.RefVoBean(vo.getCurrentStatus().getBoId(), vo.getCurrentStatus().getBoVersion());
		if(vo.getStatusHistory() != null)
		{
			this.statushistory = new ims.vo.RefVoBean[vo.getStatusHistory().size()];
			for(int statushistory_i = 0; statushistory_i < vo.getStatusHistory().size(); statushistory_i++)
			{
				this.statushistory[statushistory_i] = new ims.vo.RefVoBean(vo.getStatusHistory().get(statushistory_i).getBoId(),vo.getStatusHistory().get(statushistory_i).getBoVersion());
			}
		}
		this.endedondate = vo.getEndedOnDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getEndedOnDate().getBean();
		this.currentclock = vo.getCurrentClock() == null ? null : (ims.pathways.vo.beans.PathwayClockVoBean)vo.getCurrentClock().getBean(map);
		this.clockhistory = vo.getClockHistory() == null ? null : vo.getClockHistory().getBeanCollection();
		this.extreferralkey = vo.getExtReferralKey();
		this.pathwayhistory = vo.getPathwayHistory() == null ? null : vo.getPathwayHistory().getBeanCollection();
		this.responsibleconsultant = vo.getResponsibleConsultant() == null ? null : new ims.vo.RefVoBean(vo.getResponsibleConsultant().getBoId(), vo.getResponsibleConsultant().getBoVersion());
		this.linkedcomments = vo.getLinkedComments() == null ? null : vo.getLinkedComments().getBeanCollection();
		this.lastvalidationdate = vo.getLastValidationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getLastValidationDate().getBean();
		this.nextvalidationdate = vo.getNextValidationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getNextValidationDate().getBean();
		this.iscancerpathway = vo.getIsCancerPathway();
		this.cancerpathwaydate = vo.getCancerPathwayDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCancerPathwayDate().getBean();
	}

	public ims.pathways.vo.PatientJourneyVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.pathways.vo.PatientJourneyVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.pathways.vo.PatientJourneyVo vo = null;
		if(map != null)
			vo = (ims.pathways.vo.PatientJourneyVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.pathways.vo.PatientJourneyVo();
			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.PatientShortBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.core.vo.beans.PatientShortBean value)
	{
		this.patient = value;
	}
	public ims.pathways.vo.beans.PathwayLiteVoBean getPathway()
	{
		return this.pathway;
	}
	public void setPathway(ims.pathways.vo.beans.PathwayLiteVoBean value)
	{
		this.pathway = value;
	}
	public ims.vo.RefVoBean[] getPatientTargets()
	{
		return this.patienttargets;
	}
	public void setPatientTargets(ims.vo.RefVoBean[] value)
	{
		this.patienttargets = value;
	}
	public ims.vo.RefVoBean getReferral()
	{
		return this.referral;
	}
	public void setReferral(ims.vo.RefVoBean value)
	{
		this.referral = value;
	}
	public ims.framework.utils.beans.DateBean getStartDate()
	{
		return this.startdate;
	}
	public void setStartDate(ims.framework.utils.beans.DateBean value)
	{
		this.startdate = value;
	}
	public ims.vo.RefVoBean getCurrentStatus()
	{
		return this.currentstatus;
	}
	public void setCurrentStatus(ims.vo.RefVoBean value)
	{
		this.currentstatus = value;
	}
	public ims.vo.RefVoBean[] getStatusHistory()
	{
		return this.statushistory;
	}
	public void setStatusHistory(ims.vo.RefVoBean[] value)
	{
		this.statushistory = value;
	}
	public ims.framework.utils.beans.DateBean getEndedOnDate()
	{
		return this.endedondate;
	}
	public void setEndedOnDate(ims.framework.utils.beans.DateBean value)
	{
		this.endedondate = value;
	}
	public ims.pathways.vo.beans.PathwayClockVoBean getCurrentClock()
	{
		return this.currentclock;
	}
	public void setCurrentClock(ims.pathways.vo.beans.PathwayClockVoBean value)
	{
		this.currentclock = value;
	}
	public ims.pathways.vo.beans.PathwayClockVoBean[] getClockHistory()
	{
		return this.clockhistory;
	}
	public void setClockHistory(ims.pathways.vo.beans.PathwayClockVoBean[] value)
	{
		this.clockhistory = value;
	}
	public String getExtReferralKey()
	{
		return this.extreferralkey;
	}
	public void setExtReferralKey(String value)
	{
		this.extreferralkey = value;
	}
	public ims.pathways.vo.beans.PathwayHistoryVoBean[] getPathwayHistory()
	{
		return this.pathwayhistory;
	}
	public void setPathwayHistory(ims.pathways.vo.beans.PathwayHistoryVoBean[] value)
	{
		this.pathwayhistory = value;
	}
	public ims.vo.RefVoBean getResponsibleConsultant()
	{
		return this.responsibleconsultant;
	}
	public void setResponsibleConsultant(ims.vo.RefVoBean value)
	{
		this.responsibleconsultant = value;
	}
	public ims.pathways.vo.beans.PatientJourneyCommentVoBean[] getLinkedComments()
	{
		return this.linkedcomments;
	}
	public void setLinkedComments(ims.pathways.vo.beans.PatientJourneyCommentVoBean[] value)
	{
		this.linkedcomments = value;
	}
	public ims.framework.utils.beans.DateBean getLastValidationDate()
	{
		return this.lastvalidationdate;
	}
	public void setLastValidationDate(ims.framework.utils.beans.DateBean value)
	{
		this.lastvalidationdate = value;
	}
	public ims.framework.utils.beans.DateBean getNextValidationDate()
	{
		return this.nextvalidationdate;
	}
	public void setNextValidationDate(ims.framework.utils.beans.DateBean value)
	{
		this.nextvalidationdate = value;
	}
	public Boolean getIsCancerPathway()
	{
		return this.iscancerpathway;
	}
	public void setIsCancerPathway(Boolean value)
	{
		this.iscancerpathway = value;
	}
	public ims.framework.utils.beans.DateBean getCancerPathwayDate()
	{
		return this.cancerpathwaydate;
	}
	public void setCancerPathwayDate(ims.framework.utils.beans.DateBean value)
	{
		this.cancerpathwaydate = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PatientShortBean patient;
	private ims.pathways.vo.beans.PathwayLiteVoBean pathway;
	private ims.vo.RefVoBean[] patienttargets;
	private ims.vo.RefVoBean referral;
	private ims.framework.utils.beans.DateBean startdate;
	private ims.vo.RefVoBean currentstatus;
	private ims.vo.RefVoBean[] statushistory;
	private ims.framework.utils.beans.DateBean endedondate;
	private ims.pathways.vo.beans.PathwayClockVoBean currentclock;
	private ims.pathways.vo.beans.PathwayClockVoBean[] clockhistory;
	private String extreferralkey;
	private ims.pathways.vo.beans.PathwayHistoryVoBean[] pathwayhistory;
	private ims.vo.RefVoBean responsibleconsultant;
	private ims.pathways.vo.beans.PatientJourneyCommentVoBean[] linkedcomments;
	private ims.framework.utils.beans.DateBean lastvalidationdate;
	private ims.framework.utils.beans.DateBean nextvalidationdate;
	private Boolean iscancerpathway;
	private ims.framework.utils.beans.DateBean cancerpathwaydate;
}
