gt: 				EDAssessmentComponent = new LocalFormName(129183);
context: //#############################################################################
  //#                                                                           #
  //#  Copyright (C) <2014>  <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/>.    #
  //#                                                                           #
  //#############################################################################
  //#EOH
  // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
  // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
  // WARNING: DO NOT MODIFY the content of this file
  
  package ims.emergency.forms.tracking;
  
  import ims.framework.*;
  import ims.framework.controls.*;
  import ims.framework.enumerations.*;
  import ims.framework.utils.RuntimeAnchoring;
  
  public class GenForm extends FormBridge
  {
  	private static final long serialVersionUID = 1L;
  
  	public boolean canProvideData(IReportSeed[] reportSeeds)
  	{
  		return new ReportDataProvider(reportSeeds, this.getFormReportFields()).canProvideData();
  	}
  	public boolean hasData(IReportSeed[] reportSeeds)
  	{
  		return new ReportDataProvider(reportSeeds, this.getFormReportFields()).hasData();
  	}
  	public IReportField[] getData(IReportSeed[] reportSeeds)
  	{
  		return getData(reportSeeds, false);
  	}
  	public IReportField[] getData(IReportSeed[] reportSeeds, boolean excludeNulls)
  	{
  		return new ReportDataProvider(reportSeeds, this.getFormReportFields(), excludeNulls).getData();
  	}
  	public static class grdTrackingCountRow extends GridRowBridge
  	{
  		private static final long serialVersionUID = 1L;
  		
  		protected grdTrackingCountRow(GridRow row)
  		{
  			super(row);
  		}
  		public void showOpened(int column)
  		{
  			super.row.showOpened(column);
  		}
  		public void setColAreaReadOnly(boolean value)
  		{
  			super.row.setReadOnly(0, value);
  		}
  		public boolean isColAreaReadOnly()
  		{
  			return super.row.isReadOnly(0);
  		}
  		public void showColAreaOpened()
  		{
  			super.row.showOpened(0);
  		}
  		public void setTooltipForColArea(String value)
  		{
  			super.row.setTooltip(0, value);
  		}
  		public String getColArea()
  		{
  			return (String)super.row.get(0);
  		}
  		public void setColArea(String value)
  		{
  			super.row.set(0, value);
  		}
  		public void setCellColAreaTooltip(String value)
  		{
  			super.row.setTooltip(0, value);
  		}
  		public void setColNumberOfPatientsReadOnly(boolean value)
  		{
  			super.row.setReadOnly(1, value);
  		}
  		public boolean isColNumberOfPatientsReadOnly()
  		{
  			return super.row.isReadOnly(1);
  		}
  		public void showColNumberOfPatientsOpened()
  		{
  			super.row.showOpened(1);
  		}
  		public void setTooltipForColNumberOfPatients(String value)
  		{
  			super.row.setTooltip(1, value);
  		}
  		public Integer getColNumberOfPatients()
  		{
  			return (Integer)super.row.get(1);
  		}
  		public void setColNumberOfPatients(Integer value)
  		{
  			super.row.set(1, value);
  		}
  		public void setCellColNumberOfPatientsTooltip(String value)
  		{
  			super.row.setTooltip(1, value);
  		}
  		public java.lang.Object getValue()
  		{
  			return super.row.getValue();
  		}
  		public void setValue(java.lang.Object value)
  		{
  			super.row.setValue(value);
  		}
  		public grdTrackingCountRow getParentRow()
  		{
  			return super.row.getParent() == null ? null : new grdTrackingCountRow(super.row.getParent());
  		}
  		public grdTrackingCountRowCollection getRows()
  		{
  			if(this.collection == null)
  				this.collection = new grdTrackingCountRowCollection(super.row.getRows());
  			return this.collection;
  		}
  		private grdTrackingCountRowCollection collection;
  	}
  	public static class grdTrackingCountRowCollection extends GridRowCollectionBridge
  	{
  		private static final long serialVersionUID = 1L;
  		
  		private grdTrackingCountRowCollection(GridRowCollection collection)
  		{
  			super(collection);
  		}
  		public grdTrackingCountRow get(int index)
  		{
  			return new grdTrackingCountRow(super.collection.get(index));
  		}
  		public grdTrackingCountRow newRow()
  		{
  			return new grdTrackingCountRow(super.collection.newRow());
  		}
  		public grdTrackingCountRow newRow(boolean autoSelect)
  		{
  			return new grdTrackingCountRow(super.collection.newRow(autoSelect));
  		}
  		public grdTrackingCountRow newRowAt(int index)
  		{
  			return new grdTrackingCountRow(super.collection.newRowAt(index));
  		}
  		public grdTrackingCountRow newRowAt(int index, boolean autoSelect)
  		{
  			return new grdTrackingCountRow(super.collection.newRowAt(index, autoSelect));
  		}
  	}
  	public static class grdTrackingCountGrid extends GridBridge
  	{
  		private static final long serialVersionUID = 1L;
  		
  		public GenForm.grdTrackingCountRow[] getAllRows()
  		{
  			java.util.ArrayList rows = new java.util.ArrayList();
  			for(int x = 0; x < getRows().size(); x++)
  			{
  				GenForm.grdTrackingCountRow row = getRows().get(x);
  				rows.add(row);
  				GenForm.grdTrackingCountRow[] childRows = getAllRows(row);
  				for(int i = 0; i < childRows.length; i++)
  				{
  					rows.add(childRows[i]);
  				}
  			}
  			GenForm.grdTrackingCountRow[] result = new GenForm.grdTrackingCountRow[rows.size()];
  			for(int x = 0; x < rows.size(); x++)
  			{
  				result[x] = (GenForm.grdTrackingCountRow)rows.get(x);
  			}
  			return result;
  		}
  		public GenForm.grdTrackingCountRow[] getAllRows(GenForm.grdTrackingCountRow parentRow)
  		{
  			java.util.ArrayList rows = new java.util.ArrayList();
  			for(int x = 0; x < parentRow.getRows().size(); x++)
  			{
  				GenForm.grdTrackingCountRow row = parentRow.getRows().get(x);
  				rows.add(row);
  				GenForm.grdTrackingCountRow[] childRows = getAllRows(row);
  				for(int i = 0; i < childRows.length; i++)
  				{
  					rows.add(childRows[i]);
  				}
  			}
  			GenForm.grdTrackingCountRow[] result = new GenForm.grdTrackingCountRow[rows.size()];
  			for(int x = 0; x < rows.size(); x++)
  			{
  				result[x] = (GenForm.grdTrackingCountRow)rows.get(x);
  			}
  			return result;
  		}
  		public void expandAll()
  		{
  			expandCollapseAll(true);
  		}
  		public void collapseAll()
  		{
  			expandCollapseAll(false);
  		}
  		private void expandCollapseAll(boolean expand)
  		{
  			for(int x = 0; x < getRows().size(); x++)
  			{
  				GenForm.grdTrackingCountRow row = getRows().get(x);
  				row.setExpanded(expand);
  				expandCollapseRow(row, expand);
  			}
  		}
  		private void expandCollapseRow(GenForm.grdTrackingCountRow parentRow, boolean expand)
  		{
  			for(int x = 0; x < parentRow.getRows().size(); x++)
  			{
  				GenForm.grdTrackingCountRow row = parentRow.getRows().get(x);
  				row.setExpanded(expand);
  				expandCollapseRow(row, expand);
  			}
  		}
  		public void setColAreaCaption(String value)
  		{
  			this.grid.setColumnCaption(0, value);
  		}
  		private void addTreeColumn(String caption, int captionAlignment, int width, boolean bold, boolean canGrow)
  		{
  			super.grid.addTreeColumn(caption, captionAlignment, width, bold, canGrow);
  		}
  		private void addIntColumn(String caption, int captionAlignment, int alignment, int width, boolean readOnly, boolean canBeEmpty, String validationString, boolean bold, int sortOrder, boolean canGrow)
  		{
  			super.grid.addIntColumn(caption, captionAlignment, alignment, width, readOnly, canBeEmpty, validationString, bold, sortOrder, canGrow);
  		}
  		public java.lang.Object[] getValues()
  		{
  			java.lang.Object[] listOfValues = new java.lang.Object[this.getRows().size()];
  			for(int x = 0; x < this.getRows().size(); x++)
  			{
  				listOfValues[x] = this.getRows().get(x).getValue();
  			}
  			return listOfValues;
  		}
  		public java.lang.Object getValue()
  		{
  			return super.grid.getValue();
  		}
  		public void setValue(java.lang.Object value)
  		{
  			super.grid.setValue(value);
  		}
  		public grdTrackingCountRow getSelectedRow()
  		{
  			return super.grid.getSelectedRow() == null ? null : new grdTrackingCountRow(super.grid.getSelectedRow());
  		}
  		public int getSelectedRowIndex()
  		{
  			return super.grid.getSelectedRowIndex();
  		}
  		public grdTrackingCountRowCollection getRows()
  		{
  			return new grdTrackingCountRowCollection(super.grid.getRows());
  		}
  		public grdTrackingCountRow getRowByValue(java.lang.Object value)
  		{
  			GridRow row = super.grid.getRowByValue(value);
  			return row == null?null:new grdTrackingCountRow(row);
  		}
  		public void setColAreaHeaderTooltip(String value)
  		{
  			super.grid.setColumnHeaderTooltip(0, value);
  		}
  		public String getColAreaHeaderTooltip()
  		{
  			return super.grid.getColumnHeaderTooltip(0);
  		}
  		public void setColNumberOfPatientsHeaderTooltip(String value)
  		{
  			super.grid.setColumnHeaderTooltip(1, value);
  		}
  		public String getColNumberOfPatientsHeaderTooltip()
  		{
  			return super.grid.getColumnHeaderTooltip(1);
  		}
  	}
  
  	public static class GroupDisplayRadioButton extends RadioButtonBridge
  	{
  		private static final long serialVersionUID = 1L;
  		
  		protected void setContext(Integer startTabIndex, ims.framework.utils.SizeInfo designSize, ims.framework.utils.SizeInfo runtimeSize)
  		{
  			if(startTabIndex == null)
  				throw new RuntimeException("Invalid startTabIndex ");
  			RuntimeAnchoring anchoringHelper1 = new RuntimeAnchoring(designSize, runtimeSize, 672, 45, 160, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(0, anchoringHelper1.getX(), anchoringHelper1.getY(), anchoringHelper1.getWidth(), "Current and Departed", startTabIndex.intValue() + 9);
  			RuntimeAnchoring anchoringHelper2 = new RuntimeAnchoring(designSize, runtimeSize, 528, 45, 80, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(1, anchoringHelper2.getX(), anchoringHelper2.getY(), anchoringHelper2.getWidth(), "Departed", startTabIndex.intValue() + 8);
  			RuntimeAnchoring anchoringHelper3 = new RuntimeAnchoring(designSize, runtimeSize, 384, 45, 112, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(2, anchoringHelper3.getX(), anchoringHelper3.getY(), anchoringHelper3.getWidth(), "Currently in Dept", startTabIndex.intValue() + 7);
  		}
  		public void setText(GroupDisplayEnumeration option, String value)
  		{
  			if(option != null && option.id >= 0 && value != null)
  				control.setText(option.id, value);
  		}
  		public GroupDisplayEnumeration getValue()
  		{
  			switch (super.control.getValue())
  			{
  				case -1: return GroupDisplayEnumeration.None;
  				case 0: return GroupDisplayEnumeration.rdoCurrentAndDeparted;
  				case 1: return GroupDisplayEnumeration.rdoDeparted;
  				case 2: return GroupDisplayEnumeration.rdoCurrentlyInDept;
  			}
  			return null;
  		}
  		public void setValue(GroupDisplayEnumeration value)
  		{
  			if(value != null)
  				super.control.setValue(value.id);
  			else
  				super.control.setValue(GroupDisplayEnumeration.None.id);
  		}
  		public boolean isEnabled(GroupDisplayEnumeration option)
  		{
  			return super.control.isEnabled(option.id);
  		}
  		public void setEnabled(GroupDisplayEnumeration option, boolean value)
  		{
  			super.control.setEnabled(option.id, value);
  		}
  		public boolean isVisible(GroupDisplayEnumeration option)
  		{
  			return super.control.isVisible(option.id);
  		}
  		public void setVisible(GroupDisplayEnumeration option, boolean value)
  		{
  			super.control.setVisible(option.id, value);
  		}
  		public void setVisible(boolean value)
  		{
  			super.control.setVisible(value);
  		}
  		public void setEnabled(boolean value)
  		{
  			super.control.setEnabled(value);
  		}
  	}
  	public static class GroupDisplayEnumeration implements java.io.Serializable
  	{
  		private static final long serialVersionUID = 1L;
  		public static GroupDisplayEnumeration None = new GroupDisplayEnumeration(-1);
  		public static GroupDisplayEnumeration rdoCurrentAndDeparted = new GroupDisplayEnumeration(0);
  		public static GroupDisplayEnumeration rdoDeparted = new GroupDisplayEnumeration(1);
  		public static GroupDisplayEnumeration rdoCurrentlyInDept = new GroupDisplayEnumeration(2);
  		private GroupDisplayEnumeration(int id)
  		{
  			this.id = id;
  		}
  		public boolean equals(Object o)
  		{
  			return this.id == ((GroupDisplayEnumeration)o).id;
  		}
  		private int id;
  	}
  
  	public static class GroupViewRadioButton extends RadioButtonBridge
  	{
  		private static final long serialVersionUID = 1L;
  		
  		protected void setContext(Integer startTabIndex, ims.framework.utils.SizeInfo designSize, ims.framework.utils.SizeInfo runtimeSize)
  		{
  			if(startTabIndex == null)
  				throw new RuntimeException("Invalid startTabIndex ");
  			RuntimeAnchoring anchoringHelper4 = new RuntimeAnchoring(designSize, runtimeSize, 672, 26, 107, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(0, anchoringHelper4.getX(), anchoringHelper4.getY(), anchoringHelper4.getWidth(), "View Unallocated", startTabIndex.intValue() + 6);
  			RuntimeAnchoring anchoringHelper5 = new RuntimeAnchoring(designSize, runtimeSize, 528, 26, 113, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(1, anchoringHelper5.getX(), anchoringHelper5.getY(), anchoringHelper5.getWidth(), "View 'My patients'", startTabIndex.intValue() + 5);
  			RuntimeAnchoring anchoringHelper6 = new RuntimeAnchoring(designSize, runtimeSize, 384, 26, 72, 16, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  			control.addButton(2, anchoringHelper6.getX(), anchoringHelper6.getY(), anchoringHelper6.getWidth(), "View All", startTabIndex.intValue() + 4);
  		}
  		public void setText(GroupViewEnumeration option, String value)
  		{
  			if(option != null && option.id >= 0 && value != null)
  				control.setText(option.id, value);
  		}
  		public GroupViewEnumeration getValue()
  		{
  			switch (super.control.getValue())
  			{
  				case -1: return GroupViewEnumeration.None;
  				case 0: return GroupViewEnumeration.rdoViewUnallocated;
  				case 1: return GroupViewEnumeration.rdoViewMyAllocated;
  				case 2: return GroupViewEnumeration.rdoViewAll;
  			}
  			return null;
  		}
  		public void setValue(GroupViewEnumeration value)
  		{
  			if(value != null)
  				super.control.setValue(value.id);
  			else
  				super.control.setValue(GroupViewEnumeration.None.id);
  		}
  		public boolean isEnabled(GroupViewEnumeration option)
  		{
  			return super.control.isEnabled(option.id);
  		}
  		public void setEnabled(GroupViewEnumeration option, boolean value)
  		{
  			super.control.setEnabled(option.id, value);
  		}
  		public boolean isVisible(GroupViewEnumeration option)
  		{
  			return super.control.isVisible(option.id);
  		}
  		public void setVisible(GroupViewEnumeration option, boolean value)
  		{
  			super.control.setVisible(option.id, value);
  		}
  		public void setVisible(boolean value)
  		{
  			super.control.setVisible(value);
  		}
  		public void setEnabled(boolean value)
  		{
  			super.control.setEnabled(value);
  		}
  	}
  	public static class GroupViewEnumeration implements java.io.Serializable
  	{
  		private static final long serialVersionUID = 1L;
  		public static GroupViewEnumeration None = new GroupViewEnumeration(-1);
  		public static GroupViewEnumeration rdoViewUnallocated = new GroupViewEnumeration(0);
  		public static GroupViewEnumeration rdoViewMyAllocated = new GroupViewEnumeration(1);
  		public static GroupViewEnumeration rdoViewAll = new GroupViewEnumeration(2);
  		private GroupViewEnumeration(int id)
  		{
  			this.id = id;
  		}
  		public boolean equals(Object o)
  		{
  			return this.id == ((GroupViewEnumeration)o).id;
  		}
  		private int id;
  	}
  	private void validateContext(ims.framework.Context context)
  	{
  		if(context == null)
  			return;
  		if(!context.isValidContextType(ims.core.vo.PatientShort.class))
  			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.PatientShort' of the global context variable 'Core.PatientShort' is not supported.");
  		if(!context.isValidContextType(ims.core.vo.CareContextShortVo.class))
  			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.CareContextShortVo' of the global context variable 'Core.CurrentCareContext' is not supported.");
  		if(!context.isValidContextType(Boolean.class))
  			throw new ims.framework.exceptions.CodingRuntimeException("The type 'Boolean' of the global context variable 'Emergency.TrackingPublicArea' is not supported.");
  		if(!context.isValidContextType(ims.core.vo.EpisodeofCareShortVo.class))
  			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.EpisodeofCareShortVo' of the global context variable 'Core.EpisodeofCareShort' is not supported.");
  	}
  	public boolean supportsRecordedInError()
  	{
  		return false;
  	}
  	public ims.vo.ValueObject getRecordedInErrorVo()
  	{
  		return null;
  	}
  	protected void setContext(FormLoader loader, Form form, ims.framework.interfaces.IAppForm appForm, UIFactory factory, Context context) throws Exception
  	{
  		setContext(loader, form, appForm, factory, context, Boolean.FALSE, new Integer(0), null, null, new Integer(0));
  	}
  	protected void setContext(FormLoader loader, Form form, ims.framework.interfaces.IAppForm appForm, UIFactory factory, Context context, Boolean skipContextValidation) throws Exception
  	{
  		setContext(loader, form, appForm, factory, context, skipContextValidation, new Integer(0), null, null, new Integer(0));
  	}
  	protected void setContext(FormLoader loader, Form form, ims.framework.interfaces.IAppForm appForm, UIFactory factory, ims.framework.Context context, Boolean skipContextValidation, Integer startControlID, ims.framework.utils.SizeInfo runtimeSize, ims.framework.Control control, Integer startTabIndex) throws Exception
  	{
  		if(loader == null); // this is to avoid eclipse warning only.
  		if(factory == null); // this is to avoid eclipse warning only.
  		if(runtimeSize == null); // this is to avoid eclipse warning only.
  		if(appForm == null)
  			throw new RuntimeException("Invalid application form");
  		if(startControlID == null)
  			throw new RuntimeException("Invalid startControlID");
  		if(control == null); // this is to avoid eclipse warning only.
  		if(startTabIndex == null)
  			throw new RuntimeException("Invalid startTabIndex");
  		this.context = context;
  		this.componentIdentifier = startControlID.toString();
  		this.formInfo = form.getFormInfo();
  		this.globalContext = new GlobalContext(context);
  	
  		if(skipContextValidation == null || !skipContextValidation.booleanValue())
  		{
  			validateContext(context);
  		}
  	
  		super.setContext(form);
  
  		ims.framework.utils.SizeInfo designSize = new ims.framework.utils.SizeInfo(848, 632);
  		if(runtimeSize == null)
  			runtimeSize = designSize;
  		form.setWidth(runtimeSize.getWidth());
  		form.setHeight(runtimeSize.getHeight());
  		super.setFormReferences(FormReferencesFlyweightFactory.getInstance().create(Forms.class));
  		super.setImageReferences(ImageReferencesFlyweightFactory.getInstance().create(Images.class));
  		super.setGlobalContext(ContextBridgeFlyweightFactory.getInstance().create(GlobalContextBridge.class, context, false));
  		super.setLocalContext(new LocalContext(context, form.getFormInfo(), componentIdentifier));
  
  		// Timers
  		timers = new Timers();
  		timers.AreaCountRefrresh = factory.createTimer(0, 60, false);
  		form.addTimer(timers.AreaCountRefrresh);
  
  		// Context Menus
  		contextMenus = new ContextMenus();
  		contextMenus.Emergency.contextMenuTrackingTriageMenu = factory.createMenu(startControlID.intValue() + 1);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuWHITE_BOARDItem = factory.createMenuItem(startControlID.intValue() + 1, "White Board", true, false, null, true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040016)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuWHITE_BOARDItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuASSESSMENT_DETAILSItem = factory.createMenuItem(startControlID.intValue() + 2, "Assessment Details", true, false, new Integer(129144), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040017)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuASSESSMENT_DETAILSItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuMOVEItem = factory.createMenuItem(startControlID.intValue() + 3, "Move", true, false, new Integer(129151), true, true);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040006)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuMOVEItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuALLOCATE_CUBICLEItem = factory.createMenuItem(startControlID.intValue() + 4, "Allocate Cubicle", true, false, new Integer(129143), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040009)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuALLOCATE_CUBICLEItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuTRANSFERItem = factory.createMenuItem(startControlID.intValue() + 5, "Transfer", true, false, new Integer(129104), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040003)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuTRANSFERItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuEVENT_HISTORYItem = factory.createMenuItem(startControlID.intValue() + 6, "Event History", true, false, new Integer(129150), true, true);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040001)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuEVENT_HISTORYItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuVIEW_HISTORYItem = factory.createMenuItem(startControlID.intValue() + 7, "View History", true, false, new Integer(129158), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040002)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuVIEW_HISTORYItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuPAT_STATUSItem = factory.createMenuItem(startControlID.intValue() + 8, "Pat Status", true, false, new Integer(129153), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040010)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuPAT_STATUSItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuREFER_TOItem = factory.createMenuItem(startControlID.intValue() + 9, "Refer To", true, false, new Integer(129154), true, true);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040007)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuREFER_TOItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuSEEN_COMPLETE_HCPItem = factory.createMenuItem(startControlID.intValue() + 10, "Seen/Complete HCP", true, false, new Integer(129157), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040008)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuSEEN_COMPLETE_HCPItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuDTAItem = factory.createMenuItem(startControlID.intValue() + 11, "DTA", true, false, new Integer(129149), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040018)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuDTAItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuXRAYItem = factory.createMenuItem(startControlID.intValue() + 12, "X-Ray", true, false, new Integer(129159), true, true);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040004)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuXRAYItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuORDERItem = factory.createMenuItem(startControlID.intValue() + 13, "Order", true, false, new Integer(129152), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040011)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuORDERItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuRESULTItem = factory.createMenuItem(startControlID.intValue() + 14, "Result", true, false, new Integer(129156), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040012)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuRESULTItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuREFRESHItem = factory.createMenuItem(startControlID.intValue() + 15, "Refresh", true, false, new Integer(129155), true, true);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040013)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuREFRESHItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuDNW_ADDItem = factory.createMenuItem(startControlID.intValue() + 16, "DNW +", true, false, new Integer(129148), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040014)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuDNW_ADDItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuDNW_MINUSItem = factory.createMenuItem(startControlID.intValue() + 17, "DNW -", true, false, new Integer(129147), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040015)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuDNW_MINUSItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuTriageItem = factory.createMenuItem(startControlID.intValue() + 18, "Start Triage", true, false, null, true, true);
  		contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuTriageItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuEDITTRIAGEItem = factory.createMenuItem(startControlID.intValue() + 19, "Edit Triage", true, false, null, true, false);
  		contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuEDITTRIAGEItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuVIEW_TRIAGEItem = factory.createMenuItem(startControlID.intValue() + 20, "View Triage Details", true, false, new Integer(102223), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040019)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuVIEW_TRIAGEItem);
  		contextMenus.Emergency.contextMenuTrackingTriageMenuBED_STATUSItem = factory.createMenuItem(startControlID.intValue() + 21, "Bed Status", true, false, new Integer(129145), true, false);
  		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(5040005)))
  			contextMenus.Emergency.contextMenuTrackingTriageMenu.add(contextMenus.Emergency.contextMenuTrackingTriageMenuBED_STATUSItem);
  		form.registerMenu(contextMenus.Emergency.contextMenuTrackingTriageMenu);
  
  
  		// Panel Controls
  		RuntimeAnchoring anchoringHelper7 = new RuntimeAnchoring(designSize, runtimeSize, 216, 0, 624, 32, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
  		super.addControl(factory.getControl(Panel.class, new Object[] { control, new Integer(startControlID.intValue() + 1000), new Integer(anchoringHelper7.getX()), new Integer(anchoringHelper7.getY()), new Integer(anchoringHelper7.getWidth()), new Integer(anchoringHelper7.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,"Patients currently in XYZ Area", new Integer(1), ""}));
  		RuntimeAnchoring anchoringHelper8 = new RuntimeAnchoring(designSize, runtimeSize, 8, 0, 200, 32, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
  		super.addControl(factory.getControl(Panel.class, new Object[] { control, new Integer(startControlID.intValue() + 1001), new Integer(anchoringHelper8.getX()), new Integer(anchoringHelper8.getY()), new Integer(anchoringHelper8.getWidth()), new Integer(anchoringHelper8.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT,"Tracking Count", new Integer(1), ""}));
  
  		// Label Controls
  		RuntimeAnchoring anchoringHelper9 = new RuntimeAnchoring(designSize, runtimeSize, 648, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1002), new Integer(anchoringHelper9.getX()), new Integer(anchoringHelper9.getY()), new Integer(anchoringHelper9.getWidth()), new Integer(anchoringHelper9.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper10 = new RuntimeAnchoring(designSize, runtimeSize, 232, 45, 149, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1003), new Integer(anchoringHelper10.getX()), new Integer(anchoringHelper10.getY()), new Integer(anchoringHelper10.getWidth()), new Integer(anchoringHelper10.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Display patients who are:", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper11 = new RuntimeAnchoring(designSize, runtimeSize, 328, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1004), new Integer(anchoringHelper11.getX()), new Integer(anchoringHelper11.getY()), new Integer(anchoringHelper11.getWidth()), new Integer(anchoringHelper11.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper12 = new RuntimeAnchoring(designSize, runtimeSize, 408, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1005), new Integer(anchoringHelper12.getX()), new Integer(anchoringHelper12.getY()), new Integer(anchoringHelper12.getWidth()), new Integer(anchoringHelper12.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper13 = new RuntimeAnchoring(designSize, runtimeSize, 488, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1006), new Integer(anchoringHelper13.getX()), new Integer(anchoringHelper13.getY()), new Integer(anchoringHelper13.getWidth()), new Integer(anchoringHelper13.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper14 = new RuntimeAnchoring(designSize, runtimeSize, 568, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1007), new Integer(anchoringHelper14.getX()), new Integer(anchoringHelper14.getY()), new Integer(anchoringHelper14.getWidth()), new Integer(anchoringHelper14.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  		RuntimeAnchoring anchoringHelper15 = new RuntimeAnchoring(designSize, runtimeSize, 245, 505, 8, 17, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1008), new Integer(anchoringHelper15.getX()), new Integer(anchoringHelper15.getY()), new Integer(anchoringHelper15.getWidth()), new Integer(anchoringHelper15.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, ":", new Integer(1), null, new Integer(0)}));
  
  		// Button Controls
  		RuntimeAnchoring anchoringHelper16 = new RuntimeAnchoring(designSize, runtimeSize, 8, 600, 136, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1009), new Integer(anchoringHelper16.getX()), new Integer(anchoringHelper16.getY()), new Integer(anchoringHelper16.getWidth()), new Integer(anchoringHelper16.getHeight()), new Integer(startTabIndex.intValue() + 13), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, "Public Area", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper17 = new RuntimeAnchoring(designSize, runtimeSize, 464, 576, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1010), new Integer(anchoringHelper17.getX()), new Integer(anchoringHelper17.getY()), new Integer(anchoringHelper17.getWidth()), new Integer(anchoringHelper17.getHeight()), new Integer(startTabIndex.intValue() + 22), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " DTA", Boolean.FALSE, "Decision To Admit", Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper18 = new RuntimeAnchoring(designSize, runtimeSize, 464, 552, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1011), new Integer(anchoringHelper18.getX()), new Integer(anchoringHelper18.getY()), new Integer(anchoringHelper18.getWidth()), new Integer(anchoringHelper18.getHeight()), new Integer(startTabIndex.intValue() + 21), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Seen/Complete", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper19 = new RuntimeAnchoring(designSize, runtimeSize, 8, 552, 136, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1012), new Integer(anchoringHelper19.getX()), new Integer(anchoringHelper19.getY()), new Integer(anchoringHelper19.getWidth()), new Integer(anchoringHelper19.getHeight()), new Integer(startTabIndex.intValue() + 12), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, "Assessment Details", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper20 = new RuntimeAnchoring(designSize, runtimeSize, 208, 576, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1013), new Integer(anchoringHelper20.getX()), new Integer(anchoringHelper20.getY()), new Integer(anchoringHelper20.getWidth()), new Integer(anchoringHelper20.getHeight()), new Integer(startTabIndex.intValue() + 15), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Allocate Cubicle", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper21 = new RuntimeAnchoring(designSize, runtimeSize, 720, 528, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1014), new Integer(anchoringHelper21.getX()), new Integer(anchoringHelper21.getY()), new Integer(anchoringHelper21.getWidth()), new Integer(anchoringHelper21.getHeight()), new Integer(startTabIndex.intValue() + 30), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Refresh", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper22 = new RuntimeAnchoring(designSize, runtimeSize, 8, 528, 136, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1015), new Integer(anchoringHelper22.getX()), new Integer(anchoringHelper22.getY()), new Integer(anchoringHelper22.getWidth()), new Integer(anchoringHelper22.getHeight()), new Integer(startTabIndex.intValue() + 11), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, "White Board", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper23 = new RuntimeAnchoring(designSize, runtimeSize, 208, 528, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1016), new Integer(anchoringHelper23.getX()), new Integer(anchoringHelper23.getY()), new Integer(anchoringHelper23.getWidth()), new Integer(anchoringHelper23.getHeight()), new Integer(startTabIndex.intValue() + 14), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Move", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper24 = new RuntimeAnchoring(designSize, runtimeSize, 464, 528, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1017), new Integer(anchoringHelper24.getX()), new Integer(anchoringHelper24.getY()), new Integer(anchoringHelper24.getWidth()), new Integer(anchoringHelper24.getHeight()), new Integer(startTabIndex.intValue() + 20), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Refer To", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper25 = new RuntimeAnchoring(designSize, runtimeSize, 592, 528, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1018), new Integer(anchoringHelper25.getX()), new Integer(anchoringHelper25.getY()), new Integer(anchoringHelper25.getWidth()), new Integer(anchoringHelper25.getHeight()), new Integer(startTabIndex.intValue() + 24), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " X-Ray", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper26 = new RuntimeAnchoring(designSize, runtimeSize, 720, 552, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1019), new Integer(anchoringHelper26.getX()), new Integer(anchoringHelper26.getY()), new Integer(anchoringHelper26.getWidth()), new Integer(anchoringHelper26.getHeight()), new Integer(startTabIndex.intValue() + 32), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " DNW +", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper27 = new RuntimeAnchoring(designSize, runtimeSize, 336, 552, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1020), new Integer(anchoringHelper27.getX()), new Integer(anchoringHelper27.getY()), new Integer(anchoringHelper27.getWidth()), new Integer(anchoringHelper27.getHeight()), new Integer(startTabIndex.intValue() + 18), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " View History", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper28 = new RuntimeAnchoring(designSize, runtimeSize, 336, 528, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1021), new Integer(anchoringHelper28.getX()), new Integer(anchoringHelper28.getY()), new Integer(anchoringHelper28.getWidth()), new Integer(anchoringHelper28.getHeight()), new Integer(startTabIndex.intValue() + 17), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Event History", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper29 = new RuntimeAnchoring(designSize, runtimeSize, 336, 576, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1022), new Integer(anchoringHelper29.getX()), new Integer(anchoringHelper29.getY()), new Integer(anchoringHelper29.getWidth()), new Integer(anchoringHelper29.getHeight()), new Integer(startTabIndex.intValue() + 19), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Pat Status", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper30 = new RuntimeAnchoring(designSize, runtimeSize, 208, 600, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1023), new Integer(anchoringHelper30.getX()), new Integer(anchoringHelper30.getY()), new Integer(anchoringHelper30.getWidth()), new Integer(anchoringHelper30.getHeight()), new Integer(startTabIndex.intValue() + 16), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Transfer", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper31 = new RuntimeAnchoring(designSize, runtimeSize, 592, 576, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1024), new Integer(anchoringHelper31.getX()), new Integer(anchoringHelper31.getY()), new Integer(anchoringHelper31.getWidth()), new Integer(anchoringHelper31.getHeight()), new Integer(startTabIndex.intValue() + 28), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Result", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper32 = new RuntimeAnchoring(designSize, runtimeSize, 592, 552, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1025), new Integer(anchoringHelper32.getX()), new Integer(anchoringHelper32.getY()), new Integer(anchoringHelper32.getWidth()), new Integer(anchoringHelper32.getHeight()), new Integer(startTabIndex.intValue() + 26), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " Order", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  		RuntimeAnchoring anchoringHelper33 = new RuntimeAnchoring(designSize, runtimeSize, 720, 576, 120, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
  		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1026), new Integer(anchoringHelper33.getX()), new Integer(anchoringHelper33.getY()), new Integer(anchoringHelper33.getWidth()), new Integer(anchoringHelper33.getHeight()), new Integer(startTabIndex.intValue() + 34), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, " DNW -", Boolean.FALSE, null, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
  
  		// CheckBox Controls
  		RuntimeAnchoring anchoringHelper34 = new RuntimeAnchoring(designSize, runtimeSize, 8, 48, 104, 16, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
  		super.addControl(factory.getControl(CheckBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1027), new Integer(anchoringHelper34.getX()), new Integer(anchoringHelper34.getY()), new Integer(anchoringHelper34.getWidth()), new Integer(anchoringHelper34.getHeight()), new Integer(startTabIndex.intValue() + 2), ControlState.UNKNOWN, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFT ,"View all EDs", Boolean.TRUE, null}));
  
  		// Grid Controls
  		RuntimeAnchoring anchoringHelper35 = new RuntimeAnchoring(designSize, runtimeSize, 8, 64, 200, 433, ims.framework.enumerations.ControlAnchoring.TOPBOTTOMLEFT);
  		Grid m_grdTrackingCountTemp = (Grid)factory.getControl(Grid.class, new Object[] { control, new Integer(startControlID.intValue() + 1028), new Integer(anchoringHelper35.getX()), new Integer(anchoringHelper35.getY()), new Integer(anchoringHelper35.getWidth()), new Integer(anchoringHelper35.getHeight()), new Integer(startTabIndex.intValue() + 3), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPBOTTOMLEFT,Boolean.TRUE, Boolean.FALSE, new Integer(24), Boolean.FALSE, null, Boolean.FALSE, Boolean.FALSE, new Integer(0), null, Boolean.FALSE, Boolean.TRUE});
  		addControl(m_grdTrackingCountTemp);
  		grdTrackingCountGrid grdTrackingCount = (grdTrackingCountGrid)GridFlyweightFactory.getInstance().createGridBridge(grdTrackingCountGrid.class, m_grdTrackingCountTemp);
  		grdTrackingCount.addTreeColumn("Area", 0, 150, false, true);
  		grdTrackingCount.addIntColumn("No.", 0, 0, -1, true, true, null, false, 0, true);
  		super.addGrid(grdTrackingCount);
  
  		// Dynamic Grid Controls
  		RuntimeAnchoring anchoringHelper36 = new RuntimeAnchoring(designSize, runtimeSize, 216, 64, 624, 433, ims.framework.enumerations.ControlAnchoring.ALL);
  		super.addControl(factory.getControl(DynamicGrid.class, new Object[] { control, new Integer(startControlID.intValue() + 1029), new Integer(anchoringHelper36.getX()), new Integer(anchoringHelper36.getY()), new Integer(anchoringHelper36.getWidth()), new Integer(anchoringHelper36.getHeight()), new Integer(startTabIndex.intValue() + 10), ControlState.READONLY, ControlState.READONLY, ims.framework.enumerations.ControlAnchoring.ALL, contextMenus.Emergency.contextMenuTrackingTriageMenu, Boolean.FALSE, Boolean.FALSE, Boolean.TRUE}));
  
  		// Image Buttons Controls
  		RuntimeAnchoring anchoringHelper37 = new RuntimeAnchoring(designSize, runtimeSize, 808, 8, 24, 24, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  		super.addControl(factory.getControl(ImageButton.class, new Object[] { control, new Integer(startControlID.intValue() + 1030), new Integer(anchoringHelper37.getX()), new Integer(anchoringHelper37.getY()), new Integer(anchoringHelper37.getWidth()), new Integer(anchoringHelper37.getHeight()), new Integer(startTabIndex.intValue() + 1), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, this.getImages().Core.Maximize, this.getImages().Core.Maximize, null, Boolean.FALSE, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null}));
  
  		// RadioButton Controls
  		RadioButton tmpGroupDisplay = (RadioButton)factory.getControl(RadioButton.class, new Object[] { control, new Integer(startControlID.intValue() + 1031), new Integer(0), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,Boolean.TRUE});
  		super.addControl(tmpGroupDisplay);
  		GroupDisplayRadioButton GroupDisplay = (GroupDisplayRadioButton)RadioButtonBridgeFlyweightFactory.getInstance().createRadioButtonBridge(GroupDisplayRadioButton.class, tmpGroupDisplay);
  		GroupDisplay.setContext(startTabIndex, designSize, runtimeSize);
  		super.addRadioButton(GroupDisplay);
  		RadioButton tmpGroupView = (RadioButton)factory.getControl(RadioButton.class, new Object[] { control, new Integer(startControlID.intValue() + 1032), new Integer(0), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,Boolean.TRUE});
  		super.addControl(tmpGroupView);
  		GroupViewRadioButton GroupView = (GroupViewRadioButton)RadioButtonBridgeFlyweightFactory.getInstance().createRadioButtonBridge(GroupViewRadioButton.class, tmpGroupView);
  		GroupView.setContext(startTabIndex, designSize, runtimeSize);
  		super.addRadioButton(GroupView);
  
  		// Horizontal Line Controls
  		RuntimeAnchoring anchoringHelper38 = new RuntimeAnchoring(designSize, runtimeSize, 232, 42, 584, 8, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
  		super.addControl(factory.getControl(HorizontalLine.class, new Object[] { control, new Integer(startControlID.intValue() + 1033), new Integer(anchoringHelper38.getX()), new Integer(anchoringHelper38.getY()), new Integer(anchoringHelper38.getWidth()), new Integer(anchoringHelper38.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,new Integer(1)}));
  
  		// Picture Controls
  		RuntimeAnchoring anchoringHelper39 = new RuntimeAnchoring(designSize, runtimeSize, 616, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1034), new Integer(anchoringHelper39.getX()), new Integer(anchoringHelper39.getY()), new Integer(anchoringHelper39.getWidth()), new Integer(anchoringHelper39.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  		RuntimeAnchoring anchoringHelper40 = new RuntimeAnchoring(designSize, runtimeSize, 536, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1035), new Integer(anchoringHelper40.getX()), new Integer(anchoringHelper40.getY()), new Integer(anchoringHelper40.getWidth()), new Integer(anchoringHelper40.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  		RuntimeAnchoring anchoringHelper41 = new RuntimeAnchoring(designSize, runtimeSize, 456, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1036), new Integer(anchoringHelper41.getX()), new Integer(anchoringHelper41.getY()), new Integer(anchoringHelper41.getWidth()), new Integer(anchoringHelper41.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  		RuntimeAnchoring anchoringHelper42 = new RuntimeAnchoring(designSize, runtimeSize, 376, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1037), new Integer(anchoringHelper42.getX()), new Integer(anchoringHelper42.getY()), new Integer(anchoringHelper42.getWidth()), new Integer(anchoringHelper42.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  		RuntimeAnchoring anchoringHelper43 = new RuntimeAnchoring(designSize, runtimeSize, 296, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1038), new Integer(anchoringHelper43.getX()), new Integer(anchoringHelper43.getY()), new Integer(anchoringHelper43.getWidth()), new Integer(anchoringHelper43.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  		RuntimeAnchoring anchoringHelper44 = new RuntimeAnchoring(designSize, runtimeSize, 216, 501, 24, 24, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT);
  		super.addControl(factory.getControl(Picture.class, new Object[] { control, new Integer(startControlID.intValue() + 1039), new Integer(anchoringHelper44.getX()), new Integer(anchoringHelper44.getY()), new Integer(anchoringHelper44.getWidth()), new Integer(anchoringHelper44.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.BOTTOMLEFT, Boolean.FALSE}));
  	}
  
  
  
  	public Forms getForms()
  	{
  		return (Forms)super.getFormReferences();
  	}
  
  	public Images getImages()
  	{
  		return (Images)super.getImageReferences();
  	}
  	public Panel pnlTrackPatients()
  	{
  		return (Panel)super.getControl(0);
  	}
  	public Label lblST()
  	{
  		return (Label)super.getControl(2);
  	}
  	public Label lblDisplayPatientWhoAre()
  	{
  		return (Label)super.getControl(3);
  	}
  	public Label lblP2()
  	{
  		return (Label)super.getControl(4);
  	}
  	public Label lblP3()
  	{
  		return (Label)super.getControl(5);
  	}
  	public Label lblP4()
  	{
  		return (Label)super.getControl(6);
  	}
  	public Label lblP5()
  	{
  		return (Label)super.getControl(7);
  	}
  	public Label lblP1()
  	{
  		return (Label)super.getControl(8);
  	}
  	public Button btnPublicPrivateArea()
  	{
  		return (Button)super.getControl(9);
  	}
  	public Button btnDTA()
  	{
  		return (Button)super.getControl(10);
  	}
  	public Button btnSeenCompleteHCP()
  	{
  		return (Button)super.getControl(11);
  	}
  	public Button btnAssessmentDetails()
  	{
  		return (Button)super.getControl(12);
  	}
  	public Button btnAllocatedCubicle()
  	{
  		return (Button)super.getControl(13);
  	}
  	public Button btnRefresh()
  	{
  		return (Button)super.getControl(14);
  	}
  	public Button btnWhiteBoard()
  	{
  		return (Button)super.getControl(15);
  	}
  	public Button btnMove()
  	{
  		return (Button)super.getControl(16);
  	}
  	public Button btnRefer()
  	{
  		return (Button)super.getControl(17);
  	}
  	public Button btnXray()
  	{
  		return (Button)super.getControl(18);
  	}
  	public Button btnDNWAdd()
  	{
  		return (Button)super.getControl(19);
  	}
  	public Button btnViewHistory()
  	{
  		return (Button)super.getControl(20);
  	}
  	public Button btnEventHistory()
  	{
  		return (Button)super.getControl(21);
  	}
  	public Button btnPatStatus()
  	{
  		return (Button)super.getControl(22);
  	}
  	public Button btnTransfer()
  	{
  		return (Button)super.getControl(23);
  	}
  	public Button btnResult()
  	{
  		return (Button)super.getControl(24);
  	}
  	public Button btnOrder()
  	{
  		return (Button)super.getControl(25);
  	}
  	public Button btnDNWMinus()
  	{
  		return (Button)super.getControl(26);
  	}
  	public CheckBox chkAllSites()
  	{
  		return (CheckBox)super.getControl(27);
  	}
  	public grdTrackingCountGrid grdTrackingCount()
  	{
  		return (grdTrackingCountGrid)super.getGrid(0);
  	}
  	public DynamicGrid dyngrdTrack()
  	{
  		return (DynamicGrid)super.getControl(29);
  	}
  	public ImageButton imbFormLayout()
  	{
  		return (ImageButton)super.getControl(30);
  	}
  	public GroupDisplayRadioButton GroupDisplay()
  	{
  		return (GroupDisplayRadioButton)super.getRadioButton(0);
  	}
  	public GroupViewRadioButton GroupView()
  	{
  		return (GroupViewRadioButton)super.getRadioButton(1);
  	}
  	public HorizontalLine hzlGroupDisplay()
  	{
  		return (HorizontalLine)super.getControl(33);
  	}
  	public Picture imgST()
  	{
  		return (Picture)super.getControl(34);
  	}
  	public Picture imgP5()
  	{
  		return (Picture)super.getControl(35);
  	}
  	public Picture imgP4()
  	{
  		return (Picture)super.getControl(36);
  	}
  	public Picture imgP3()
  	{
  		return (Picture)super.getControl(37);
  	}
  	public Picture imgP2()
  	{
  		return (Picture)super.getControl(38);
  	}
  	public Picture imgP1()
  	{
  		return (Picture)super.getControl(39);
  	}
  
  	public static class Forms implements java.io.Serializable
  	{
  		private static final long serialVersionUID = 1L;
  		protected final class LocalFormName extends FormName
  		{
  			private static final long serialVersionUID = 1L;
  		
  			private LocalFormName(int name)
  			{
  				super(name);
  			}
  		}
  
  		private Forms()
  		{
  			OCRR = new OCRRForms();
  			Emergency = new EmergencyForms();
  		}
  		public final class OCRRForms implements java.io.Serializable
  		{
  			private static final long serialVersionUID = 1L;
  			private OCRRForms()
  			{
  				SelectAndOrderDialog = new LocalFormName(116131);
  			}
  			public final FormName SelectAndOrderDialog;
  		}
  		public final class EmergencyForms implements java.io.Serializable
  		{
  			private static final long serialVersionUID = 1L;
  			private EmergencyForms()
  			{
  				AllocateCubicle = new LocalFormName(129132);
  				SendToXRay = new LocalFormName(129140);
  				TrackingStatusDialog = new LocalFormName(129153);
  				SendToAreaDialog = new LocalFormName(129121);
  				BedAwaitingBedAvailable = new LocalFormName(129154);
  				AttendanceHistory = new LocalFormName(129167);
  				EventHistoryDialog = new LocalFormName(129164);
  				AttendanceResultListDialog = new LocalFormName(129166);
  				Triage = new LocalFormName(129103);
  				TrackingSummary = new LocalFormName(129101);
  