/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/AdmissionDetailVoBean.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 AdmissionDetailVoBean extends ims.vo.ValueObjectBean
{
	public AdmissionDetailVoBean()
	{
	}
	public AdmissionDetailVoBean(ims.core.vo.AdmissionDetailVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventAdmitVoBean)vo.getPasEvent().getBean();
		this.admissiondatetime = vo.getAdmissionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAdmissionDateTime().getBean();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean();
		this.bed = vo.getBed() == null ? null : new ims.vo.RefVoBean(vo.getBed().getBoId(), vo.getBed().getBoVersion());
		this.consultant = vo.getConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getConsultant().getBean();
		this.specialty = vo.getSpecialty() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialty().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.methodofadmission = vo.getMethodOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getMethodOfAdmission().getBean();
		this.sourceofadmission = vo.getSourceOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfAdmission().getBean();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.ischaplainrequired = vo.getIsChaplainRequired();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean();
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.updatecfl = vo.getUpdateCFL();
		this.anticipatedstay = vo.getAnticipatedStay();
		this.casefoldercomments = vo.getCaseFolderComments();
		this.admissionepisode = vo.getAdmissionEpisode() == null ? null : (ims.core.vo.beans.EpisodeOfCareWithPrimaryDiagnosisVoBean)vo.getAdmissionEpisode().getBean();
		this.extendeddetails = vo.getExtendedDetails() == null ? null : (ims.core.vo.beans.ExtendedAdmissionDetailVoBean)vo.getExtendedDetails().getBean();
		this.transferhistory = vo.getTransferHistory() == null ? null : vo.getTransferHistory().getBeanCollection();
		this.ismaternity = vo.getIsMaternity();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean();
		this.extendedlengthofstayreason = vo.getExtendedLengthOfStayReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getExtendedLengthOfStayReason().getBean();
		this.medicallyfitfordischarge = vo.getMedicallyFitForDischarge() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicallyFitForDischarge().getBean();
		this.reasondelayeddischarge = vo.getReasonDelayedDischarge() == null ? null : vo.getReasonDelayedDischarge().getBeanCollection();
		this.patientrequirestransport = vo.getPatientRequiresTransport();
		this.transportdetails = vo.getTransportDetails() == null ? null : (ims.core.vo.beans.PatientTransportRequirementsVoBean)vo.getTransportDetails().getBean();
		this.abletogodischargelounge = vo.getAbleToGoDischargeLounge();
		this.reasoncannotgodischargelounge = vo.getReasonCannotGoDischargeLounge() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonCannotGoDischargeLounge().getBean();
		this.wardappointment = vo.getWardAppointment() == null ? null : (ims.RefMan.vo.beans.BookAppointmentForWardAttendersVoBean)vo.getWardAppointment().getBean();
		this.selfadmitpatient = vo.getSelfAdmitPatient();
		this.sourceofemergencyreferral = vo.getSourceOfEmergencyReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfEmergencyReferral().getBean();
		this.healthylodgerdetails = vo.getHealthyLodgerDetails() == null ? null : (ims.core.vo.beans.HealthyLodgerVoBean)vo.getHealthyLodgerDetails().getBean();
		this.pendingemergencytheatre = vo.getPendingEmergencyTheatre() == null ? null : (ims.scheduling.vo.beans.PendingEmergencyTheatreForAdmitVoBean)vo.getPendingEmergencyTheatre().getBean();
		this.admissionward = vo.getAdmissionWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAdmissionWard().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.AdmissionDetailVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventAdmitVoBean)vo.getPasEvent().getBean(map);
		this.admissiondatetime = vo.getAdmissionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getAdmissionDateTime().getBean();
		this.ward = vo.getWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getWard().getBean(map);
		this.bed = vo.getBed() == null ? null : new ims.vo.RefVoBean(vo.getBed().getBoId(), vo.getBed().getBoVersion());
		this.consultant = vo.getConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getConsultant().getBean(map);
		this.specialty = vo.getSpecialty() == null ? null : (ims.vo.LookupInstanceBean)vo.getSpecialty().getBean();
		this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean)vo.getWardType().getBean();
		this.methodofadmission = vo.getMethodOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getMethodOfAdmission().getBean();
		this.sourceofadmission = vo.getSourceOfAdmission() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfAdmission().getBean();
		this.reasonforadmission = vo.getReasonForAdmission();
		this.estdischargedate = vo.getEstDischargeDate() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEstDischargeDate().getBean();
		this.ischaplainrequired = vo.getIsChaplainRequired();
		this.referringconsultant = vo.getReferringConsultant() == null ? null : (ims.core.vo.beans.MedicVoBean)vo.getReferringConsultant().getBean(map);
		this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientStatus().getBean();
		this.updatecfl = vo.getUpdateCFL();
		this.anticipatedstay = vo.getAnticipatedStay();
		this.casefoldercomments = vo.getCaseFolderComments();
		this.admissionepisode = vo.getAdmissionEpisode() == null ? null : (ims.core.vo.beans.EpisodeOfCareWithPrimaryDiagnosisVoBean)vo.getAdmissionEpisode().getBean(map);
		this.extendeddetails = vo.getExtendedDetails() == null ? null : (ims.core.vo.beans.ExtendedAdmissionDetailVoBean)vo.getExtendedDetails().getBean(map);
		this.transferhistory = vo.getTransferHistory() == null ? null : vo.getTransferHistory().getBeanCollection();
		this.ismaternity = vo.getIsMaternity();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean(map);
		this.extendedlengthofstayreason = vo.getExtendedLengthOfStayReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getExtendedLengthOfStayReason().getBean();
		this.medicallyfitfordischarge = vo.getMedicallyFitForDischarge() == null ? null : (ims.vo.LookupInstanceBean)vo.getMedicallyFitForDischarge().getBean();
		this.reasondelayeddischarge = vo.getReasonDelayedDischarge() == null ? null : vo.getReasonDelayedDischarge().getBeanCollection();
		this.patientrequirestransport = vo.getPatientRequiresTransport();
		this.transportdetails = vo.getTransportDetails() == null ? null : (ims.core.vo.beans.PatientTransportRequirementsVoBean)vo.getTransportDetails().getBean(map);
		this.abletogodischargelounge = vo.getAbleToGoDischargeLounge();
		this.reasoncannotgodischargelounge = vo.getReasonCannotGoDischargeLounge() == null ? null : (ims.vo.LookupInstanceBean)vo.getReasonCannotGoDischargeLounge().getBean();
		this.wardappointment = vo.getWardAppointment() == null ? null : (ims.RefMan.vo.beans.BookAppointmentForWardAttendersVoBean)vo.getWardAppointment().getBean(map);
		this.selfadmitpatient = vo.getSelfAdmitPatient();
		this.sourceofemergencyreferral = vo.getSourceOfEmergencyReferral() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceOfEmergencyReferral().getBean();
		this.healthylodgerdetails = vo.getHealthyLodgerDetails() == null ? null : (ims.core.vo.beans.HealthyLodgerVoBean)vo.getHealthyLodgerDetails().getBean(map);
		this.pendingemergencytheatre = vo.getPendingEmergencyTheatre() == null ? null : (ims.scheduling.vo.beans.PendingEmergencyTheatreForAdmitVoBean)vo.getPendingEmergencyTheatre().getBean(map);
		this.admissionward = vo.getAdmissionWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getAdmissionWard().getBean(map);
	}

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

	public ims.core.vo.AdmissionDetailVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.AdmissionDetailVo vo = null;
		if(map != null)
			vo = (ims.core.vo.AdmissionDetailVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.AdmissionDetailVo();
			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.PasEventAdmitVoBean getPasEvent()
	{
		return this.pasevent;
	}
	public void setPasEvent(ims.core.vo.beans.PasEventAdmitVoBean value)
	{
		this.pasevent = value;
	}
	public ims.framework.utils.beans.DateTimeBean getAdmissionDateTime()
	{
		return this.admissiondatetime;
	}
	public void setAdmissionDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.admissiondatetime = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getWard()
	{
		return this.ward;
	}
	public void setWard(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.ward = value;
	}
	public ims.vo.RefVoBean getBed()
	{
		return this.bed;
	}
	public void setBed(ims.vo.RefVoBean value)
	{
		this.bed = value;
	}
	public ims.core.vo.beans.MedicVoBean getConsultant()
	{
		return this.consultant;
	}
	public void setConsultant(ims.core.vo.beans.MedicVoBean value)
	{
		this.consultant = value;
	}
	public ims.vo.LookupInstanceBean getSpecialty()
	{
		return this.specialty;
	}
	public void setSpecialty(ims.vo.LookupInstanceBean value)
	{
		this.specialty = value;
	}
	public ims.vo.LookupInstanceBean getWardType()
	{
		return this.wardtype;
	}
	public void setWardType(ims.vo.LookupInstanceBean value)
	{
		this.wardtype = value;
	}
	public ims.vo.LookupInstanceBean getMethodOfAdmission()
	{
		return this.methodofadmission;
	}
	public void setMethodOfAdmission(ims.vo.LookupInstanceBean value)
	{
		this.methodofadmission = value;
	}
	public ims.vo.LookupInstanceBean getSourceOfAdmission()
	{
		return this.sourceofadmission;
	}
	public void setSourceOfAdmission(ims.vo.LookupInstanceBean value)
	{
		this.sourceofadmission = value;
	}
	public String getReasonForAdmission()
	{
		return this.reasonforadmission;
	}
	public void setReasonForAdmission(String value)
	{
		this.reasonforadmission = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEstDischargeDate()
	{
		return this.estdischargedate;
	}
	public void setEstDischargeDate(ims.framework.utils.beans.DateTimeBean value)
	{
		this.estdischargedate = value;
	}
	public Boolean getIsChaplainRequired()
	{
		return this.ischaplainrequired;
	}
	public void setIsChaplainRequired(Boolean value)
	{
		this.ischaplainrequired = value;
	}
	public ims.core.vo.beans.MedicVoBean getReferringConsultant()
	{
		return this.referringconsultant;
	}
	public void setReferringConsultant(ims.core.vo.beans.MedicVoBean value)
	{
		this.referringconsultant = value;
	}
	public ims.vo.LookupInstanceBean getPatientStatus()
	{
		return this.patientstatus;
	}
	public void setPatientStatus(ims.vo.LookupInstanceBean value)
	{
		this.patientstatus = value;
	}
	public Boolean getUpdateCFL()
	{
		return this.updatecfl;
	}
	public void setUpdateCFL(Boolean value)
	{
		this.updatecfl = value;
	}
	public Integer getAnticipatedStay()
	{
		return this.anticipatedstay;
	}
	public void setAnticipatedStay(Integer value)
	{
		this.anticipatedstay = value;
	}
	public String getCaseFolderComments()
	{
		return this.casefoldercomments;
	}
	public void setCaseFolderComments(String value)
	{
		this.casefoldercomments = value;
	}
	public ims.core.vo.beans.EpisodeOfCareWithPrimaryDiagnosisVoBean getAdmissionEpisode()
	{
		return this.admissionepisode;
	}
	public void setAdmissionEpisode(ims.core.vo.beans.EpisodeOfCareWithPrimaryDiagnosisVoBean value)
	{
		this.admissionepisode = value;
	}
	public ims.core.vo.beans.ExtendedAdmissionDetailVoBean getExtendedDetails()
	{
		return this.extendeddetails;
	}
	public void setExtendedDetails(ims.core.vo.beans.ExtendedAdmissionDetailVoBean value)
	{
		this.extendeddetails = value;
	}
	public ims.core.vo.beans.TransferHistoryVoBean[] getTransferHistory()
	{
		return this.transferhistory;
	}
	public void setTransferHistory(ims.core.vo.beans.TransferHistoryVoBean[] value)
	{
		this.transferhistory = value;
	}
	public Boolean getIsMaternity()
	{
		return this.ismaternity;
	}
	public void setIsMaternity(Boolean value)
	{
		this.ismaternity = value;
	}
	public ims.core.vo.beans.ServiceLiteVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.core.vo.beans.ServiceLiteVoBean value)
	{
		this.service = value;
	}
	public ims.vo.LookupInstanceBean getExtendedLengthOfStayReason()
	{
		return this.extendedlengthofstayreason;
	}
	public void setExtendedLengthOfStayReason(ims.vo.LookupInstanceBean value)
	{
		this.extendedlengthofstayreason = value;
	}
	public ims.vo.LookupInstanceBean getMedicallyFitForDischarge()
	{
		return this.medicallyfitfordischarge;
	}
	public void setMedicallyFitForDischarge(ims.vo.LookupInstanceBean value)
	{
		this.medicallyfitfordischarge = value;
	}
	public ims.core.vo.beans.ReasonForDelayedDischargeVoBean[] getReasonDelayedDischarge()
	{
		return this.reasondelayeddischarge;
	}
	public void setReasonDelayedDischarge(ims.core.vo.beans.ReasonForDelayedDischargeVoBean[] value)
	{
		this.reasondelayeddischarge = value;
	}
	public Boolean getPatientRequiresTransport()
	{
		return this.patientrequirestransport;
	}
	public void setPatientRequiresTransport(Boolean value)
	{
		this.patientrequirestransport = value;
	}
	public ims.core.vo.beans.PatientTransportRequirementsVoBean getTransportDetails()
	{
		return this.transportdetails;
	}
	public void setTransportDetails(ims.core.vo.beans.PatientTransportRequirementsVoBean value)
	{
		this.transportdetails = value;
	}
	public Boolean getAbleToGoDischargeLounge()
	{
		return this.abletogodischargelounge;
	}
	public void setAbleToGoDischargeLounge(Boolean value)
	{
		this.abletogodischargelounge = value;
	}
	public ims.vo.LookupInstanceBean getReasonCannotGoDischargeLounge()
	{
		return this.reasoncannotgodischargelounge;
	}
	public void setReasonCannotGoDischargeLounge(ims.vo.LookupInstanceBean value)
	{
		this.reasoncannotgodischargelounge = value;
	}
	public ims.RefMan.vo.beans.BookAppointmentForWardAttendersVoBean getWardAppointment()
	{
		return this.wardappointment;
	}
	public void setWardAppointment(ims.RefMan.vo.beans.BookAppointmentForWardAttendersVoBean value)
	{
		this.wardappointment = value;
	}
	public Boolean getSelfAdmitPatient()
	{
		return this.selfadmitpatient;
	}
	public void setSelfAdmitPatient(Boolean value)
	{
		this.selfadmitpatient = value;
	}
	public ims.vo.LookupInstanceBean getSourceOfEmergencyReferral()
	{
		return this.sourceofemergencyreferral;
	}
	public void setSourceOfEmergencyReferral(ims.vo.LookupInstanceBean value)
	{
		this.sourceofemergencyreferral = value;
	}
	public ims.core.vo.beans.HealthyLodgerVoBean getHealthyLodgerDetails()
	{
		return this.healthylodgerdetails;
	}
	public void setHealthyLodgerDetails(ims.core.vo.beans.HealthyLodgerVoBean value)
	{
		this.healthylodgerdetails = value;
	}
	public ims.scheduling.vo.beans.PendingEmergencyTheatreForAdmitVoBean getPendingEmergencyTheatre()
	{
		return this.pendingemergencytheatre;
	}
	public void setPendingEmergencyTheatre(ims.scheduling.vo.beans.PendingEmergencyTheatreForAdmitVoBean value)
	{
		this.pendingemergencytheatre = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getAdmissionWard()
	{
		return this.admissionward;
	}
	public void setAdmissionWard(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.admissionward = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.PasEventAdmitVoBean pasevent;
	private ims.framework.utils.beans.DateTimeBean admissiondatetime;
	private ims.core.vo.beans.LocationLiteVoBean ward;
	private ims.vo.RefVoBean bed;
	private ims.core.vo.beans.MedicVoBean consultant;
	private ims.vo.LookupInstanceBean specialty;
	private ims.vo.LookupInstanceBean wardtype;
	private ims.vo.LookupInstanceBean methodofadmission;
	private ims.vo.LookupInstanceBean sourceofadmission;
	private String reasonforadmission;
	private ims.framework.utils.beans.DateTimeBean estdischargedate;
	private Boolean ischaplainrequired;
	private ims.core.vo.beans.MedicVoBean referringconsultant;
	private ims.vo.LookupInstanceBean patientstatus;
	private Boolean updatecfl;
	private Integer anticipatedstay;
	private String casefoldercomments;
	private ims.core.vo.beans.EpisodeOfCareWithPrimaryDiagnosisVoBean admissionepisode;
	private ims.core.vo.beans.ExtendedAdmissionDetailVoBean extendeddetails;
	private ims.core.vo.beans.TransferHistoryVoBean[] transferhistory;
	private Boolean ismaternity;
	private ims.core.vo.beans.ServiceLiteVoBean service;
	private ims.vo.LookupInstanceBean extendedlengthofstayreason;
	private ims.vo.LookupInstanceBean medicallyfitfordischarge;
	private ims.core.vo.beans.ReasonForDelayedDischargeVoBean[] reasondelayeddischarge;
	private Boolean patientrequirestransport;
	private ims.core.vo.beans.PatientTransportRequirementsVoBean transportdetails;
	private Boolean abletogodischargelounge;
	private ims.vo.LookupInstanceBean reasoncannotgodischargelounge;
	private ims.RefMan.vo.beans.BookAppointmentForWardAttendersVoBean wardappointment;
	private Boolean selfadmitpatient;
	private ims.vo.LookupInstanceBean sourceofemergencyreferral;
	private ims.core.vo.beans.HealthyLodgerVoBean healthylodgerdetails;
	private ims.scheduling.vo.beans.PendingEmergencyTheatreForAdmitVoBean pendingemergencytheatre;
	private ims.core.vo.beans.LocationLiteVoBean admissionward;
}
