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

public class EmergencyAttendanceForTriageVoBean extends ims.vo.ValueObjectBean
{
	public EmergencyAttendanceForTriageVoBean()
	{
	}
	public EmergencyAttendanceForTriageVoBean(ims.emergency.vo.EmergencyAttendanceForTriageVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.registrationdatetime = vo.getRegistrationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRegistrationDateTime().getBean();
		this.ageatattendance = vo.getAgeAtAttendance();
		this.arrivaldatetime = vo.getArrivalDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getArrivalDateTime().getBean();
		this.dischargedatetime = vo.getDischargeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDischargeDateTime().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.urgencylevel = vo.getUrgencyLevel() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgencyLevel().getBean();
		this.conclusiondatetime = vo.getConclusionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getConclusionDateTime().getBean();
		this.bedtyperequested = vo.getBedTypeRequested() == null ? null : (ims.vo.LookupInstanceBean)vo.getBedTypeRequested().getBean();
		this.mc = vo.getMC();
		this.cota = vo.getCOTA();
		this.pcg1 = vo.getPCG1();
		this.pcg2 = vo.getPCG2();
		this.har = vo.getHAR();
		this.purchaser = vo.getPurchaser();
		this.sequencenumber = vo.getSequenceNumber();
		this.customid = vo.getCustomID();
		this.endofregistrationdatetime = vo.getEndOfRegistrationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEndOfRegistrationDateTime().getBean();
		this.modeofarrival = vo.getModeOfArrival() == null ? null : (ims.vo.LookupInstanceBean)vo.getModeOfArrival().getBean();
		this.registrationlocation = vo.getRegistrationLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getRegistrationLocation().getBean();
		this.outcome = vo.getOutcome() == null ? null : (ims.vo.LookupInstanceBean)vo.getOutcome().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.emergency.vo.EmergencyAttendanceForTriageVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.registrationdatetime = vo.getRegistrationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getRegistrationDateTime().getBean();
		this.ageatattendance = vo.getAgeAtAttendance();
		this.arrivaldatetime = vo.getArrivalDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getArrivalDateTime().getBean();
		this.dischargedatetime = vo.getDischargeDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getDischargeDateTime().getBean();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.urgencylevel = vo.getUrgencyLevel() == null ? null : (ims.vo.LookupInstanceBean)vo.getUrgencyLevel().getBean();
		this.conclusiondatetime = vo.getConclusionDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getConclusionDateTime().getBean();
		this.bedtyperequested = vo.getBedTypeRequested() == null ? null : (ims.vo.LookupInstanceBean)vo.getBedTypeRequested().getBean();
		this.mc = vo.getMC();
		this.cota = vo.getCOTA();
		this.pcg1 = vo.getPCG1();
		this.pcg2 = vo.getPCG2();
		this.har = vo.getHAR();
		this.purchaser = vo.getPurchaser();
		this.sequencenumber = vo.getSequenceNumber();
		this.customid = vo.getCustomID();
		this.endofregistrationdatetime = vo.getEndOfRegistrationDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getEndOfRegistrationDateTime().getBean();
		this.modeofarrival = vo.getModeOfArrival() == null ? null : (ims.vo.LookupInstanceBean)vo.getModeOfArrival().getBean();
		this.registrationlocation = vo.getRegistrationLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getRegistrationLocation().getBean(map);
		this.outcome = vo.getOutcome() == null ? null : (ims.vo.LookupInstanceBean)vo.getOutcome().getBean();
	}

	public ims.emergency.vo.EmergencyAttendanceForTriageVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.emergency.vo.EmergencyAttendanceForTriageVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.emergency.vo.EmergencyAttendanceForTriageVo vo = null;
		if(map != null)
			vo = (ims.emergency.vo.EmergencyAttendanceForTriageVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.emergency.vo.EmergencyAttendanceForTriageVo();
			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.framework.utils.beans.DateTimeBean getRegistrationDateTime()
	{
		return this.registrationdatetime;
	}
	public void setRegistrationDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.registrationdatetime = value;
	}
	public Integer getAgeAtAttendance()
	{
		return this.ageatattendance;
	}
	public void setAgeAtAttendance(Integer value)
	{
		this.ageatattendance = value;
	}
	public ims.framework.utils.beans.DateTimeBean getArrivalDateTime()
	{
		return this.arrivaldatetime;
	}
	public void setArrivalDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.arrivaldatetime = 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.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.vo.LookupInstanceBean getUrgencyLevel()
	{
		return this.urgencylevel;
	}
	public void setUrgencyLevel(ims.vo.LookupInstanceBean value)
	{
		this.urgencylevel = value;
	}
	public ims.framework.utils.beans.DateTimeBean getConclusionDateTime()
	{
		return this.conclusiondatetime;
	}
	public void setConclusionDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.conclusiondatetime = value;
	}
	public ims.vo.LookupInstanceBean getBedTypeRequested()
	{
		return this.bedtyperequested;
	}
	public void setBedTypeRequested(ims.vo.LookupInstanceBean value)
	{
		this.bedtyperequested = value;
	}
	public String getMC()
	{
		return this.mc;
	}
	public void setMC(String value)
	{
		this.mc = value;
	}
	public String getCOTA()
	{
		return this.cota;
	}
	public void setCOTA(String value)
	{
		this.cota = value;
	}
	public String getPCG1()
	{
		return this.pcg1;
	}
	public void setPCG1(String value)
	{
		this.pcg1 = value;
	}
	public String getPCG2()
	{
		return this.pcg2;
	}
	public void setPCG2(String value)
	{
		this.pcg2 = value;
	}
	public String getHAR()
	{
		return this.har;
	}
	public void setHAR(String value)
	{
		this.har = value;
	}
	public String getPurchaser()
	{
		return this.purchaser;
	}
	public void setPurchaser(String value)
	{
		this.purchaser = value;
	}
	public String getSequenceNumber()
	{
		return this.sequencenumber;
	}
	public void setSequenceNumber(String value)
	{
		this.sequencenumber = value;
	}
	public String getCustomID()
	{
		return this.customid;
	}
	public void setCustomID(String value)
	{
		this.customid = value;
	}
	public ims.framework.utils.beans.DateTimeBean getEndOfRegistrationDateTime()
	{
		return this.endofregistrationdatetime;
	}
	public void setEndOfRegistrationDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.endofregistrationdatetime = value;
	}
	public ims.vo.LookupInstanceBean getModeOfArrival()
	{
		return this.modeofarrival;
	}
	public void setModeOfArrival(ims.vo.LookupInstanceBean value)
	{
		this.modeofarrival = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getRegistrationLocation()
	{
		return this.registrationlocation;
	}
	public void setRegistrationLocation(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.registrationlocation = value;
	}
	public ims.vo.LookupInstanceBean getOutcome()
	{
		return this.outcome;
	}
	public void setOutcome(ims.vo.LookupInstanceBean value)
	{
		this.outcome = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateTimeBean registrationdatetime;
	private Integer ageatattendance;
	private ims.framework.utils.beans.DateTimeBean arrivaldatetime;
	private ims.framework.utils.beans.DateTimeBean dischargedatetime;
	private ims.vo.RefVoBean carecontext;
	private ims.vo.LookupInstanceBean urgencylevel;
	private ims.framework.utils.beans.DateTimeBean conclusiondatetime;
	private ims.vo.LookupInstanceBean bedtyperequested;
	private String mc;
	private String cota;
	private String pcg1;
	private String pcg2;
	private String har;
	private String purchaser;
	private String sequencenumber;
	private String customid;
	private ims.framework.utils.beans.DateTimeBean endofregistrationdatetime;
	private ims.vo.LookupInstanceBean modeofarrival;
	private ims.core.vo.beans.LocationLiteVoBean registrationlocation;
	private ims.vo.LookupInstanceBean outcome;
}
