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

public class DischargeSummaryPacuAndWardVoBean extends ims.vo.ValueObjectBean
{
	public DischargeSummaryPacuAndWardVoBean()
	{
	}
	public DischargeSummaryPacuAndWardVoBean(ims.RefMan.vo.DischargeSummaryPacuAndWardVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.catsreferral = vo.getCatsReferral() == null ? null : new ims.vo.RefVoBean(vo.getCatsReferral().getBoId(), vo.getCatsReferral().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.dischargedatetime = vo.getDischargeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDischargeDateTime().getBean();
		this.dischargetype = vo.getDischargeType() == null ? null : (ims.vo.LookupInstanceBean)vo.getDischargeType().getBean();
		this.dischargeepisode = vo.getDischargeEpisode() == null ? null : new ims.vo.RefVoBean(vo.getDischargeEpisode().getBoId(), vo.getDischargeEpisode().getBoVersion());
		this.iscurrent = vo.getIsCurrent();
		this.admissionsummary = vo.getAdmissionSummary();
		this.diagnosis = vo.getDiagnosis() == null ? null : vo.getDiagnosis().getBeanCollection();
		this.medicationondischarge = vo.getMedicationOnDischarge() == null ? null : vo.getMedicationOnDischarge().getBeanCollection();
		this.problemsandneeds = vo.getProblemsAndNeeds();
		this.additionalcomments = vo.getAdditionalComments();
		this.dressingsandaids = vo.getDressingsAndAids() == null ? null : vo.getDressingsAndAids().getBeanCollection();
		this.followuptype = vo.getFollowupType() == null ? null : (ims.vo.LookupInstanceBean)vo.getFollowupType().getBean();
		this.furthermanagementinstructions = vo.getFurtherManagementInstructions();
		this.medicallyincomplete = vo.getMedicallyIncomplete() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicallyIncomplete().getBean();
		this.incompletenoofdays = vo.getIncompleteNoOfDays();
		this.currentonwardreferral = vo.getCurrentOnwardReferral() == null ? null : new ims.vo.RefVoBean(vo.getCurrentOnwardReferral().getBoId(), vo.getCurrentOnwardReferral().getBoVersion());
		if(vo.getOnwardReferrals() != null)
		{
			this.onwardreferrals = new ims.vo.RefVoBean[vo.getOnwardReferrals().size()];
			for(int onwardreferrals_i = 0; onwardreferrals_i < vo.getOnwardReferrals().size(); onwardreferrals_i++)
			{
				this.onwardreferrals[onwardreferrals_i] = new ims.vo.RefVoBean(vo.getOnwardReferrals().get(onwardreferrals_i).getBoId(),vo.getOnwardReferrals().get(onwardreferrals_i).getBoVersion());
			}
		}
		this.actionsforgpandcommunity = vo.getActionsforGPandCommunity();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.DischargeSummaryPacuAndWardVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.catsreferral = vo.getCatsReferral() == null ? null : new ims.vo.RefVoBean(vo.getCatsReferral().getBoId(), vo.getCatsReferral().getBoVersion());
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.dischargedatetime = vo.getDischargeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDischargeDateTime().getBean();
		this.dischargetype = vo.getDischargeType() == null ? null : (ims.vo.LookupInstanceBean)vo.getDischargeType().getBean();
		this.dischargeepisode = vo.getDischargeEpisode() == null ? null : new ims.vo.RefVoBean(vo.getDischargeEpisode().getBoId(), vo.getDischargeEpisode().getBoVersion());
		this.iscurrent = vo.getIsCurrent();
		this.admissionsummary = vo.getAdmissionSummary();
		this.diagnosis = vo.getDiagnosis() == null ? null : vo.getDiagnosis().getBeanCollection();
		this.medicationondischarge = vo.getMedicationOnDischarge() == null ? null : vo.getMedicationOnDischarge().getBeanCollection();
		this.problemsandneeds = vo.getProblemsAndNeeds();
		this.additionalcomments = vo.getAdditionalComments();
		this.dressingsandaids = vo.getDressingsAndAids() == null ? null : vo.getDressingsAndAids().getBeanCollection();
		this.followuptype = vo.getFollowupType() == null ? null : (ims.vo.LookupInstanceBean)vo.getFollowupType().getBean();
		this.furthermanagementinstructions = vo.getFurtherManagementInstructions();
		this.medicallyincomplete = vo.getMedicallyIncomplete() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicallyIncomplete().getBean();
		this.incompletenoofdays = vo.getIncompleteNoOfDays();
		this.currentonwardreferral = vo.getCurrentOnwardReferral() == null ? null : new ims.vo.RefVoBean(vo.getCurrentOnwardReferral().getBoId(), vo.getCurrentOnwardReferral().getBoVersion());
		if(vo.getOnwardReferrals() != null)
		{
			this.onwardreferrals = new ims.vo.RefVoBean[vo.getOnwardReferrals().size()];
			for(int onwardreferrals_i = 0; onwardreferrals_i < vo.getOnwardReferrals().size(); onwardreferrals_i++)
			{
				this.onwardreferrals[onwardreferrals_i] = new ims.vo.RefVoBean(vo.getOnwardReferrals().get(onwardreferrals_i).getBoId(),vo.getOnwardReferrals().get(onwardreferrals_i).getBoVersion());
			}
		}
		this.actionsforgpandcommunity = vo.getActionsforGPandCommunity();
	}

	public ims.RefMan.vo.DischargeSummaryPacuAndWardVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.RefMan.vo.DischargeSummaryPacuAndWardVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.DischargeSummaryPacuAndWardVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.DischargeSummaryPacuAndWardVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.DischargeSummaryPacuAndWardVo();
			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 getCatsReferral()
	{
		return this.catsreferral;
	}
	public void setCatsReferral(ims.vo.RefVoBean value)
	{
		this.catsreferral = 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.framework.utils.beans.DateTimeBean getDischargeDateTime()
	{
		return this.dischargedatetime;
	}
	public void setDischargeDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.dischargedatetime = value;
	}
	public ims.vo.LookupInstanceBean getDischargeType()
	{
		return this.dischargetype;
	}
	public void setDischargeType(ims.vo.LookupInstanceBean value)
	{
		this.dischargetype = value;
	}
	public ims.vo.RefVoBean getDischargeEpisode()
	{
		return this.dischargeepisode;
	}
	public void setDischargeEpisode(ims.vo.RefVoBean value)
	{
		this.dischargeepisode = value;
	}
	public Boolean getIsCurrent()
	{
		return this.iscurrent;
	}
	public void setIsCurrent(Boolean value)
	{
		this.iscurrent = value;
	}
	public String getAdmissionSummary()
	{
		return this.admissionsummary;
	}
	public void setAdmissionSummary(String value)
	{
		this.admissionsummary = value;
	}
	public ims.core.vo.beans.PatientDiagnosisLiteVoBean[] getDiagnosis()
	{
		return this.diagnosis;
	}
	public void setDiagnosis(ims.core.vo.beans.PatientDiagnosisLiteVoBean[] value)
	{
		this.diagnosis = value;
	}
	public ims.core.vo.beans.PatientMedicationVoBean[] getMedicationOnDischarge()
	{
		return this.medicationondischarge;
	}
	public void setMedicationOnDischarge(ims.core.vo.beans.PatientMedicationVoBean[] value)
	{
		this.medicationondischarge = value;
	}
	public String getProblemsAndNeeds()
	{
		return this.problemsandneeds;
	}
	public void setProblemsAndNeeds(String value)
	{
		this.problemsandneeds = value;
	}
	public String getAdditionalComments()
	{
		return this.additionalcomments;
	}
	public void setAdditionalComments(String value)
	{
		this.additionalcomments = value;
	}
	public ims.clinical.vo.beans.DressingAndAidsVoBean[] getDressingsAndAids()
	{
		return this.dressingsandaids;
	}
	public void setDressingsAndAids(ims.clinical.vo.beans.DressingAndAidsVoBean[] value)
	{
		this.dressingsandaids = value;
	}
	public ims.vo.LookupInstanceBean getFollowupType()
	{
		return this.followuptype;
	}
	public void setFollowupType(ims.vo.LookupInstanceBean value)
	{
		this.followuptype = value;
	}
	public String getFurtherManagementInstructions()
	{
		return this.furthermanagementinstructions;
	}
	public void setFurtherManagementInstructions(String value)
	{
		this.furthermanagementinstructions = value;
	}
	public ims.vo.LookupInstanceBean getMedicallyIncomplete()
	{
		return this.medicallyincomplete;
	}
	public void setMedicallyIncomplete(ims.vo.LookupInstanceBean value)
	{
		this.medicallyincomplete = value;
	}
	public Integer getIncompleteNoOfDays()
	{
		return this.incompletenoofdays;
	}
	public void setIncompleteNoOfDays(Integer value)
	{
		this.incompletenoofdays = value;
	}
	public ims.vo.RefVoBean getCurrentOnwardReferral()
	{
		return this.currentonwardreferral;
	}
	public void setCurrentOnwardReferral(ims.vo.RefVoBean value)
	{
		this.currentonwardreferral = value;
	}
	public ims.vo.RefVoBean[] getOnwardReferrals()
	{
		return this.onwardreferrals;
	}
	public void setOnwardReferrals(ims.vo.RefVoBean[] value)
	{
		this.onwardreferrals = value;
	}
	public String getActionsforGPandCommunity()
	{
		return this.actionsforgpandcommunity;
	}
	public void setActionsforGPandCommunity(String value)
	{
		this.actionsforgpandcommunity = value;
	}

	private Integer id;
	private int version;
	private ims.vo.RefVoBean catsreferral;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private ims.framework.utils.beans.DateTimeBean dischargedatetime;
	private ims.vo.LookupInstanceBean dischargetype;
	private ims.vo.RefVoBean dischargeepisode;
	private Boolean iscurrent;
	private String admissionsummary;
	private ims.core.vo.beans.PatientDiagnosisLiteVoBean[] diagnosis;
	private ims.core.vo.beans.PatientMedicationVoBean[] medicationondischarge;
	private String problemsandneeds;
	private String additionalcomments;
	private ims.clinical.vo.beans.DressingAndAidsVoBean[] dressingsandaids;
	private ims.vo.LookupInstanceBean followuptype;
	private String furthermanagementinstructions;
	private ims.vo.LookupInstanceBean medicallyincomplete;
	private Integer incompletenoofdays;
	private ims.vo.RefVoBean currentonwardreferral;
	private ims.vo.RefVoBean[] onwardreferrals;
	private String actionsforgpandcommunity;
}
