/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/UrinalysisBean.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 UrinalysisBean extends ims.vo.ValueObjectBean
{
	public UrinalysisBean()
	{
	}
	public UrinalysisBean(ims.core.vo.Urinalysis vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.noabnormalitydetected = vo.getNoAbnormalityDetected();
		this.leucocytes = vo.getLeucocytes() == null ? null : (ims.vo.LookupInstanceBean)vo.getLeucocytes().getBean();
		this.protein = vo.getProtein() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtein().getBean();
		this.blood = vo.getBlood() == null ? null : (ims.vo.LookupInstanceBean)vo.getBlood().getBean();
		this.ketones = vo.getKetones() == null ? null : (ims.vo.LookupInstanceBean)vo.getKetones().getBean();
		this.ascorbicacid = vo.getAscorbicAcid() == null ? null : (ims.vo.LookupInstanceBean)vo.getAscorbicAcid().getBean();
		this.glucose = vo.getGlucose() == null ? null : (ims.vo.LookupInstanceBean)vo.getGlucose().getBean();
		this.bilirubin = vo.getBilirubin() == null ? null : (ims.vo.LookupInstanceBean)vo.getBilirubin().getBean();
		this.urobilinogen = vo.getUrobilinogen() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrobilinogen().getBean();
		this.nitrate = vo.getNitrate();
		this.ph = vo.getPH() == null ? null : (ims.vo.LookupInstanceBean)vo.getPH().getBean();
		this.specificgravity = vo.getSpecificGravity();
		this.nosample = vo.getNoSample();
		this.isactive = vo.getIsActive();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.Urinalysis vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.noabnormalitydetected = vo.getNoAbnormalityDetected();
		this.leucocytes = vo.getLeucocytes() == null ? null : (ims.vo.LookupInstanceBean)vo.getLeucocytes().getBean();
		this.protein = vo.getProtein() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtein().getBean();
		this.blood = vo.getBlood() == null ? null : (ims.vo.LookupInstanceBean)vo.getBlood().getBean();
		this.ketones = vo.getKetones() == null ? null : (ims.vo.LookupInstanceBean)vo.getKetones().getBean();
		this.ascorbicacid = vo.getAscorbicAcid() == null ? null : (ims.vo.LookupInstanceBean)vo.getAscorbicAcid().getBean();
		this.glucose = vo.getGlucose() == null ? null : (ims.vo.LookupInstanceBean)vo.getGlucose().getBean();
		this.bilirubin = vo.getBilirubin() == null ? null : (ims.vo.LookupInstanceBean)vo.getBilirubin().getBean();
		this.urobilinogen = vo.getUrobilinogen() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrobilinogen().getBean();
		this.nitrate = vo.getNitrate();
		this.ph = vo.getPH() == null ? null : (ims.vo.LookupInstanceBean)vo.getPH().getBean();
		this.specificgravity = vo.getSpecificGravity();
		this.nosample = vo.getNoSample();
		this.isactive = vo.getIsActive();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean(map);
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean(map);
	}

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

	public ims.core.vo.Urinalysis buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.Urinalysis vo = null;
		if(map != null)
			vo = (ims.core.vo.Urinalysis)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.Urinalysis();
			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 Boolean getNoAbnormalityDetected()
	{
		return this.noabnormalitydetected;
	}
	public void setNoAbnormalityDetected(Boolean value)
	{
		this.noabnormalitydetected = value;
	}
	public ims.vo.LookupInstanceBean getLeucocytes()
	{
		return this.leucocytes;
	}
	public void setLeucocytes(ims.vo.LookupInstanceBean value)
	{
		this.leucocytes = value;
	}
	public ims.vo.LookupInstanceBean getProtein()
	{
		return this.protein;
	}
	public void setProtein(ims.vo.LookupInstanceBean value)
	{
		this.protein = value;
	}
	public ims.vo.LookupInstanceBean getBlood()
	{
		return this.blood;
	}
	public void setBlood(ims.vo.LookupInstanceBean value)
	{
		this.blood = value;
	}
	public ims.vo.LookupInstanceBean getKetones()
	{
		return this.ketones;
	}
	public void setKetones(ims.vo.LookupInstanceBean value)
	{
		this.ketones = value;
	}
	public ims.vo.LookupInstanceBean getAscorbicAcid()
	{
		return this.ascorbicacid;
	}
	public void setAscorbicAcid(ims.vo.LookupInstanceBean value)
	{
		this.ascorbicacid = value;
	}
	public ims.vo.LookupInstanceBean getGlucose()
	{
		return this.glucose;
	}
	public void setGlucose(ims.vo.LookupInstanceBean value)
	{
		this.glucose = value;
	}
	public ims.vo.LookupInstanceBean getBilirubin()
	{
		return this.bilirubin;
	}
	public void setBilirubin(ims.vo.LookupInstanceBean value)
	{
		this.bilirubin = value;
	}
	public ims.vo.LookupInstanceBean getUrobilinogen()
	{
		return this.urobilinogen;
	}
	public void setUrobilinogen(ims.vo.LookupInstanceBean value)
	{
		this.urobilinogen = value;
	}
	public Boolean getNitrate()
	{
		return this.nitrate;
	}
	public void setNitrate(Boolean value)
	{
		this.nitrate = value;
	}
	public ims.vo.LookupInstanceBean getPH()
	{
		return this.ph;
	}
	public void setPH(ims.vo.LookupInstanceBean value)
	{
		this.ph = value;
	}
	public Float getSpecificGravity()
	{
		return this.specificgravity;
	}
	public void setSpecificGravity(Float value)
	{
		this.specificgravity = value;
	}
	public Boolean getNoSample()
	{
		return this.nosample;
	}
	public void setNoSample(Boolean value)
	{
		this.nosample = value;
	}
	public Boolean getIsActive()
	{
		return this.isactive;
	}
	public void setIsActive(Boolean value)
	{
		this.isactive = value;
	}
	public ims.core.vo.beans.ClinicalContactShortVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.core.vo.beans.ClinicalContactShortVoBean value)
	{
		this.clinicalcontact = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = 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.RecordingUserInformationVoBean getRecordingInformation()
	{
		return this.recordinginformation;
	}
	public void setRecordingInformation(ims.core.vo.beans.RecordingUserInformationVoBean value)
	{
		this.recordinginformation = value;
	}

	private Integer id;
	private int version;
	private Boolean noabnormalitydetected;
	private ims.vo.LookupInstanceBean leucocytes;
	private ims.vo.LookupInstanceBean protein;
	private ims.vo.LookupInstanceBean blood;
	private ims.vo.LookupInstanceBean ketones;
	private ims.vo.LookupInstanceBean ascorbicacid;
	private ims.vo.LookupInstanceBean glucose;
	private ims.vo.LookupInstanceBean bilirubin;
	private ims.vo.LookupInstanceBean urobilinogen;
	private Boolean nitrate;
	private ims.vo.LookupInstanceBean ph;
	private Float specificgravity;
	private Boolean nosample;
	private Boolean isactive;
	private ims.core.vo.beans.ClinicalContactShortVoBean clinicalcontact;
	private ims.vo.SysInfoBean sysinfo;
	private ims.vo.RefVoBean carecontext;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.core.vo.beans.RecordingUserInformationVoBean recordinginformation;
}
