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

public class PlanOfCareVoBean extends ims.vo.ValueObjectBean
{
	public PlanOfCareVoBean()
	{
	}
	public PlanOfCareVoBean(ims.nursing.vo.PlanOfCareVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.group = vo.getGroup() == null ? null : (ims.vo.LookupInstanceBean)vo.getGroup().getBean();
		this.title = vo.getTitle();
		this.startdatetime = vo.getStartDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartDateTime().getBean();
		this.resolveddatetime = vo.getResolvedDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResolvedDateTime().getBean();
		this.assessmentquestion = vo.getAssessmentQuestion() == null ? null : (ims.core.vo.beans.AssessmentQuestionShortVoBean)vo.getAssessmentQuestion().getBean();
		this.levelofintervention = vo.getLevelOfIntervention() == null ? null : (ims.framework.utils.beans.ColorBean)vo.getLevelOfIntervention().getBean();
		this.actions = vo.getActions() == null ? null : vo.getActions().getBeanCollection();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.starthcp = vo.getStartHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getStartHCP().getBean();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.resolvinghcp = vo.getResolvingHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResolvingHCP().getBean();
		this.confirmingdatetime = vo.getConfirmingDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getConfirmingDateTime().getBean();
		this.confirminghcp = vo.getConfirmingHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getConfirmingHCP().getBean();
		this.answerhistory = vo.getAnswerHistory() == null ? null : vo.getAnswerHistory().getBeanCollection();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.nursing.vo.PlanOfCareVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.group = vo.getGroup() == null ? null : (ims.vo.LookupInstanceBean)vo.getGroup().getBean();
		this.title = vo.getTitle();
		this.startdatetime = vo.getStartDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getStartDateTime().getBean();
		this.resolveddatetime = vo.getResolvedDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getResolvedDateTime().getBean();
		this.assessmentquestion = vo.getAssessmentQuestion() == null ? null : (ims.core.vo.beans.AssessmentQuestionShortVoBean)vo.getAssessmentQuestion().getBean(map);
		this.levelofintervention = vo.getLevelOfIntervention() == null ? null : (ims.framework.utils.beans.ColorBean)vo.getLevelOfIntervention().getBean();
		this.actions = vo.getActions() == null ? null : vo.getActions().getBeanCollection();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : new ims.vo.RefVoBean(vo.getClinicalContact().getBoId(), vo.getClinicalContact().getBoVersion());
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.starthcp = vo.getStartHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getStartHCP().getBean(map);
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.resolvinghcp = vo.getResolvingHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResolvingHCP().getBean(map);
		this.confirmingdatetime = vo.getConfirmingDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getConfirmingDateTime().getBean();
		this.confirminghcp = vo.getConfirmingHCP() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getConfirmingHCP().getBean(map);
		this.answerhistory = vo.getAnswerHistory() == null ? null : vo.getAnswerHistory().getBeanCollection();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
	}

	public ims.nursing.vo.PlanOfCareVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.nursing.vo.PlanOfCareVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.nursing.vo.PlanOfCareVo vo = null;
		if(map != null)
			vo = (ims.nursing.vo.PlanOfCareVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.nursing.vo.PlanOfCareVo();
			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.LookupInstanceBean getGroup()
	{
		return this.group;
	}
	public void setGroup(ims.vo.LookupInstanceBean value)
	{
		this.group = value;
	}
	public String getTitle()
	{
		return this.title;
	}
	public void setTitle(String value)
	{
		this.title = value;
	}
	public ims.framework.utils.beans.DateTimeBean getStartDateTime()
	{
		return this.startdatetime;
	}
	public void setStartDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.startdatetime = value;
	}
	public ims.framework.utils.beans.DateTimeBean getResolvedDateTime()
	{
		return this.resolveddatetime;
	}
	public void setResolvedDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.resolveddatetime = value;
	}
	public ims.core.vo.beans.AssessmentQuestionShortVoBean getAssessmentQuestion()
	{
		return this.assessmentquestion;
	}
	public void setAssessmentQuestion(ims.core.vo.beans.AssessmentQuestionShortVoBean value)
	{
		this.assessmentquestion = value;
	}
	public ims.framework.utils.beans.ColorBean getLevelOfIntervention()
	{
		return this.levelofintervention;
	}
	public void setLevelOfIntervention(ims.framework.utils.beans.ColorBean value)
	{
		this.levelofintervention = value;
	}
	public ims.nursing.vo.beans.PlanOfCareActionsVoBean[] getActions()
	{
		return this.actions;
	}
	public void setActions(ims.nursing.vo.beans.PlanOfCareActionsVoBean[] value)
	{
		this.actions = value;
	}
	public ims.vo.RefVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.vo.RefVoBean value)
	{
		this.clinicalcontact = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getStartHCP()
	{
		return this.starthcp;
	}
	public void setStartHCP(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.starthcp = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getResolvingHCP()
	{
		return this.resolvinghcp;
	}
	public void setResolvingHCP(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.resolvinghcp = value;
	}
	public ims.framework.utils.beans.DateTimeBean getConfirmingDateTime()
	{
		return this.confirmingdatetime;
	}
	public void setConfirmingDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.confirmingdatetime = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getConfirmingHCP()
	{
		return this.confirminghcp;
	}
	public void setConfirmingHCP(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.confirminghcp = value;
	}
	public ims.nursing.vo.beans.PlanOfCareHistoryVoBean[] getAnswerHistory()
	{
		return this.answerhistory;
	}
	public void setAnswerHistory(ims.nursing.vo.beans.PlanOfCareHistoryVoBean[] value)
	{
		this.answerhistory = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean group;
	private String title;
	private ims.framework.utils.beans.DateTimeBean startdatetime;
	private ims.framework.utils.beans.DateTimeBean resolveddatetime;
	private ims.core.vo.beans.AssessmentQuestionShortVoBean assessmentquestion;
	private ims.framework.utils.beans.ColorBean levelofintervention;
	private ims.nursing.vo.beans.PlanOfCareActionsVoBean[] actions;
	private ims.vo.RefVoBean clinicalcontact;
	private ims.vo.RefVoBean carecontext;
	private ims.core.vo.beans.HcpLiteVoBean starthcp;
	private ims.vo.LookupInstanceBean status;
	private ims.core.vo.beans.HcpLiteVoBean resolvinghcp;
	private ims.framework.utils.beans.DateTimeBean confirmingdatetime;
	private ims.core.vo.beans.HcpLiteVoBean confirminghcp;
	private ims.nursing.vo.beans.PlanOfCareHistoryVoBean[] answerhistory;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
}
