//#############################################################################
//#                                                                           #
//#  Copyright (C) <2014>  <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/>.    #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
// Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.nursing.vo.beans;

public class MUSTVoBean extends ims.vo.ValueObjectBean
{
	public MUSTVoBean()
	{
	}
	public MUSTVoBean(ims.nursing.vo.MUSTVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		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.previoushealthyweight = vo.getPreviousHealthyWeight();
		this.acutelyill = vo.getAcutelyIll();
		this.actiontaken = vo.getActionTaken();
		this.weightlossreason = vo.getWeightLossReason();
		this.management = vo.getManagement() == null ? null : (ims.vo.LookupInstanceBean)vo.getManagement().getBean();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.vitalsign = vo.getVitalSign() == null ? null : (ims.core.vo.beans.VitalSignsVoBean)vo.getVitalSign().getBean();
		this.bmiscore = vo.getBMIScore();
		this.uwlscore = vo.getUWLScore();
		this.adescore = vo.getADEScore();
		this.ormscore = vo.getORMScore();
		this.metrics = vo.getMetrics() == null ? null : (ims.core.vo.beans.VSMetricsBean)vo.getMetrics().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.nursing.vo.MUSTVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		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.previoushealthyweight = vo.getPreviousHealthyWeight();
		this.acutelyill = vo.getAcutelyIll();
		this.actiontaken = vo.getActionTaken();
		this.weightlossreason = vo.getWeightLossReason();
		this.management = vo.getManagement() == null ? null : (ims.vo.LookupInstanceBean)vo.getManagement().getBean();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.vitalsign = vo.getVitalSign() == null ? null : (ims.core.vo.beans.VitalSignsVoBean)vo.getVitalSign().getBean(map);
		this.bmiscore = vo.getBMIScore();
		this.uwlscore = vo.getUWLScore();
		this.adescore = vo.getADEScore();
		this.ormscore = vo.getORMScore();
		this.metrics = vo.getMetrics() == null ? null : (ims.core.vo.beans.VSMetricsBean)vo.getMetrics().getBean(map);
	}

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

	public ims.nursing.vo.MUSTVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.nursing.vo.MUSTVo vo = null;
		if(map != null)
			vo = (ims.nursing.vo.MUSTVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.nursing.vo.MUSTVo();
			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 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 Float getPreviousHealthyWeight()
	{
		return this.previoushealthyweight;
	}
	public void setPreviousHealthyWeight(Float value)
	{
		this.previoushealthyweight = value;
	}
	public Boolean getAcutelyIll()
	{
		return this.acutelyill;
	}
	public void setAcutelyIll(Boolean value)
	{
		this.acutelyill = value;
	}
	public String getActionTaken()
	{
		return this.actiontaken;
	}
	public void setActionTaken(String value)
	{
		this.actiontaken = value;
	}
	public String getWeightLossReason()
	{
		return this.weightlossreason;
	}
	public void setWeightLossReason(String value)
	{
		this.weightlossreason = value;
	}
	public ims.vo.LookupInstanceBean getManagement()
	{
		return this.management;
	}
	public void setManagement(ims.vo.LookupInstanceBean value)
	{
		this.management = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}
	public ims.core.vo.beans.VitalSignsVoBean getVitalSign()
	{
		return this.vitalsign;
	}
	public void setVitalSign(ims.core.vo.beans.VitalSignsVoBean value)
	{
		this.vitalsign = value;
	}
	public Integer getBMIScore()
	{
		return this.bmiscore;
	}
	public void setBMIScore(Integer value)
	{
		this.bmiscore = value;
	}
	public Integer getUWLScore()
	{
		return this.uwlscore;
	}
	public void setUWLScore(Integer value)
	{
		this.uwlscore = value;
	}
	public Integer getADEScore()
	{
		return this.adescore;
	}
	public void setADEScore(Integer value)
	{
		this.adescore = value;
	}
	public Integer getORMScore()
	{
		return this.ormscore;
	}
	public void setORMScore(Integer value)
	{
		this.ormscore = value;
	}
	public ims.core.vo.beans.VSMetricsBean getMetrics()
	{
		return this.metrics;
	}
	public void setMetrics(ims.core.vo.beans.VSMetricsBean value)
	{
		this.metrics = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean clinicalcontact;
	private ims.vo.RefVoBean carecontext;
	private Float previoushealthyweight;
	private Boolean acutelyill;
	private String actiontaken;
	private String weightlossreason;
	private ims.vo.LookupInstanceBean management;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.core.vo.beans.VitalSignsVoBean vitalsign;
	private Integer bmiscore;
	private Integer uwlscore;
	private Integer adescore;
	private Integer ormscore;
	private ims.core.vo.beans.VSMetricsBean metrics;
}
