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

public class TTAMedicationAndPharmacyVoBean extends ims.vo.ValueObjectBean
{
	public TTAMedicationAndPharmacyVoBean()
	{
	}
	public TTAMedicationAndPharmacyVoBean(ims.clinical.vo.TTAMedicationAndPharmacyVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.patient = vo.getPatient() == null ? null : (ims.core.vo.beans.PatientShortBean)vo.getPatient().getBean();
		this.carecontext = vo.getCareContext() == null ? null : (ims.core.vo.beans.CareContextLiteVoBean)vo.getCareContext().getBean();
		this.bodyweightkg = vo.getBodyWeightKg();
		this.clinicalcommentstopharmacy = vo.getClinicalCommentsToPharmacy();
		this.orderingdatetime = vo.getOrderingDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getOrderingDateTime().getBean();
		this.clinicianbleepno = vo.getClinicianBleepNo();
		this.currentttastatus = vo.getCurrentTTAStatus() == null ? null : (ims.clinical.vo.beans.TTAStatusVoBean)vo.getCurrentTTAStatus().getBean();
		this.datesubmittedtopharmacy = vo.getDateSubmittedToPharmacy() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSubmittedToPharmacy().getBean();
		this.orderingclinician = vo.getOrderingClinician() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getOrderingClinician().getBean();
		this.responsiblepharmacist = vo.getResponsiblePharmacist() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResponsiblePharmacist().getBean();
		this.ttastatushistory = vo.getTTAStatusHistory() == null ? null : vo.getTTAStatusHistory().getBeanCollection();
		this.ttamedications = vo.getTTAMedications() == null ? null : vo.getTTAMedications().getBeanCollection();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.TTAMedicationAndPharmacyVo 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.carecontext = vo.getCareContext() == null ? null : (ims.core.vo.beans.CareContextLiteVoBean)vo.getCareContext().getBean(map);
		this.bodyweightkg = vo.getBodyWeightKg();
		this.clinicalcommentstopharmacy = vo.getClinicalCommentsToPharmacy();
		this.orderingdatetime = vo.getOrderingDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getOrderingDateTime().getBean();
		this.clinicianbleepno = vo.getClinicianBleepNo();
		this.currentttastatus = vo.getCurrentTTAStatus() == null ? null : (ims.clinical.vo.beans.TTAStatusVoBean)vo.getCurrentTTAStatus().getBean(map);
		this.datesubmittedtopharmacy = vo.getDateSubmittedToPharmacy() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDateSubmittedToPharmacy().getBean();
		this.orderingclinician = vo.getOrderingClinician() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getOrderingClinician().getBean(map);
		this.responsiblepharmacist = vo.getResponsiblePharmacist() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getResponsiblePharmacist().getBean(map);
		this.ttastatushistory = vo.getTTAStatusHistory() == null ? null : vo.getTTAStatusHistory().getBeanCollection();
		this.ttamedications = vo.getTTAMedications() == null ? null : vo.getTTAMedications().getBeanCollection();
	}

	public ims.clinical.vo.TTAMedicationAndPharmacyVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.clinical.vo.TTAMedicationAndPharmacyVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.TTAMedicationAndPharmacyVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.TTAMedicationAndPharmacyVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.TTAMedicationAndPharmacyVo();
			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.core.vo.beans.CareContextLiteVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.core.vo.beans.CareContextLiteVoBean value)
	{
		this.carecontext = value;
	}
	public Float getBodyWeightKg()
	{
		return this.bodyweightkg;
	}
	public void setBodyWeightKg(Float value)
	{
		this.bodyweightkg = value;
	}
	public String getClinicalCommentsToPharmacy()
	{
		return this.clinicalcommentstopharmacy;
	}
	public void setClinicalCommentsToPharmacy(String value)
	{
		this.clinicalcommentstopharmacy = value;
	}
	public ims.framework.utils.beans.DateTimeBean getOrderingDateTime()
	{
		return this.orderingdatetime;
	}
	public void setOrderingDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.orderingdatetime = value;
	}
	public String getClinicianBleepNo()
	{
		return this.clinicianbleepno;
	}
	public void setClinicianBleepNo(String value)
	{
		this.clinicianbleepno = value;
	}
	public ims.clinical.vo.beans.TTAStatusVoBean getCurrentTTAStatus()
	{
		return this.currentttastatus;
	}
	public void setCurrentTTAStatus(ims.clinical.vo.beans.TTAStatusVoBean value)
	{
		this.currentttastatus = value;
	}
	public ims.framework.utils.beans.DateBean getDateSubmittedToPharmacy()
	{
		return this.datesubmittedtopharmacy;
	}
	public void setDateSubmittedToPharmacy(ims.framework.utils.beans.DateBean value)
	{
		this.datesubmittedtopharmacy = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getOrderingClinician()
	{
		return this.orderingclinician;
	}
	public void setOrderingClinician(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.orderingclinician = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getResponsiblePharmacist()
	{
		return this.responsiblepharmacist;
	}
	public void setResponsiblePharmacist(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.responsiblepharmacist = value;
	}
	public ims.clinical.vo.beans.TTAStatusVoBean[] getTTAStatusHistory()
	{
		return this.ttastatushistory;
	}
	public void setTTAStatusHistory(ims.clinical.vo.beans.TTAStatusVoBean[] value)
	{
		this.ttastatushistory = value;
	}
	public ims.clinical.vo.beans.TTAMedicationDetailVoBean[] getTTAMedications()
	{
		return this.ttamedications;
	}
	public void setTTAMedications(ims.clinical.vo.beans.TTAMedicationDetailVoBean[] value)
	{
		this.ttamedications = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PatientShortBean patient;
	private ims.core.vo.beans.CareContextLiteVoBean carecontext;
	private Float bodyweightkg;
	private String clinicalcommentstopharmacy;
	private ims.framework.utils.beans.DateTimeBean orderingdatetime;
	private String clinicianbleepno;
	private ims.clinical.vo.beans.TTAStatusVoBean currentttastatus;
	private ims.framework.utils.beans.DateBean datesubmittedtopharmacy;
	private ims.core.vo.beans.HcpLiteVoBean orderingclinician;
	private ims.core.vo.beans.HcpLiteVoBean responsiblepharmacist;
	private ims.clinical.vo.beans.TTAStatusVoBean[] ttastatushistory;
	private ims.clinical.vo.beans.TTAMedicationDetailVoBean[] ttamedications;
}
