//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file
package ims.clinical.forms.edischargeallergiesetccomponent;
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;
	protected void fireCustomControlValueChanged()
	{
		super.fireValueChanged();
	}
	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 ctnAlertContainer extends ContainerBridge
	{
		private static final long serialVersionUID = 1L;
		public static class cmbAlertCategoryComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.AlertType value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.AlertType value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.AlertType getValue()
			{
				return (ims.core.vo.lookups.AlertType)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.AlertType value)
			{
				super.control.setValue(value);
			}
		}
		public static class cmbAlertAlertComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.AlertType value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.AlertType value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.AlertType value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.AlertType getValue()
			{
				return (ims.core.vo.lookups.AlertType)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.AlertType value)
			{
				super.control.setValue(value);
			}
		}
		public static class cmbAlertSourceComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.SourceofInformation value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.SourceofInformation getValue()
			{
				return (ims.core.vo.lookups.SourceofInformation)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.SourceofInformation value)
			{
				super.control.setValue(value);
			}
		}
		protected void setContext(Form form, ims.framework.interfaces.IAppForm appForm, Control control, FormLoader loader, Images form_images_local, ContextMenus contextMenus, Integer startControlID, ims.framework.utils.SizeInfo designSize, ims.framework.utils.SizeInfo runtimeSize, Integer startTabIndex, boolean skipContextValidation) throws Exception
		{
			if(form == null)
				throw new RuntimeException("Invalid form");
			if(appForm == null)
				throw new RuntimeException("Invalid application form");
			if(control == null); // this is to avoid eclipse warning only.
			if(loader == null); // this is to avoid eclipse warning only.
			if(form_images_local == null); // this is to avoid eclipse warning only.
			if(contextMenus == null); // this is to avoid eclipse warning only.
			if(startControlID == null)
				throw new RuntimeException("Invalid startControlID");
			if(designSize == null); // this is to avoid eclipse warning only.
			if(runtimeSize == null); // this is to avoid eclipse warning only.
			if(startTabIndex == null)
				throw new RuntimeException("Invalid startTabIndex");
	
	
			// Custom Controls
			ims.framework.CustomComponent instance1 = factory.getEmptyCustomComponent();
			RuntimeAnchoring anchoringHelper1 = new RuntimeAnchoring(designSize, runtimeSize, 448, 56, 344, 56, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
			ims.framework.FormUiLogic m_ccAlertAuthorForm = loader.loadComponent(102228, appForm, startControlID * 10 + 1000, anchoringHelper1.getSize(), instance1, startTabIndex.intValue() + 22, skipContextValidation);
			//ims.framework.Control m_ccAlertAuthorControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1000), new Integer(448), new Integer(56), new Integer(344), new Integer(56), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 22), m_ccAlertAuthorForm, instance1 } );
			ims.framework.Control m_ccAlertAuthorControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1001),  new Integer(anchoringHelper1.getX()), new Integer(anchoringHelper1.getY()), new Integer(anchoringHelper1.getWidth()), new Integer(anchoringHelper1.getHeight()), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 22), m_ccAlertAuthorForm, instance1, Boolean.FALSE } );
			super.addControl(m_ccAlertAuthorControl);
			Menu[] menus1 = m_ccAlertAuthorForm.getForm().getRegisteredMenus();
			for(int x = 0; x < menus1.length; x++)
			{
				form.registerMenu(menus1[x]);
			}
	
			// Label Controls
			RuntimeAnchoring anchoringHelper2 = new RuntimeAnchoring(designSize, runtimeSize, 8, 8, 60, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1002), new Integer(anchoringHelper2.getX()), new Integer(anchoringHelper2.getY()), new Integer(anchoringHelper2.getWidth()), new Integer(anchoringHelper2.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Category:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper3 = new RuntimeAnchoring(designSize, runtimeSize, 8, 32, 36, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1003), new Integer(anchoringHelper3.getX()), new Integer(anchoringHelper3.getY()), new Integer(anchoringHelper3.getWidth()), new Integer(anchoringHelper3.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Alert:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper4 = new RuntimeAnchoring(designSize, runtimeSize, 8, 56, 63, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1004), new Integer(anchoringHelper4.getX()), new Integer(anchoringHelper4.getY()), new Integer(anchoringHelper4.getWidth()), new Integer(anchoringHelper4.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Comment:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper5 = new RuntimeAnchoring(designSize, runtimeSize, 456, 8, 47, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1005), new Integer(anchoringHelper5.getX()), new Integer(anchoringHelper5.getY()), new Integer(anchoringHelper5.getWidth()), new Integer(anchoringHelper5.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Source:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper6 = new RuntimeAnchoring(designSize, runtimeSize, 456, 32, 95, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1006), new Integer(anchoringHelper6.getX()), new Integer(anchoringHelper6.getY()), new Integer(anchoringHelper6.getWidth()), new Integer(anchoringHelper6.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Date Identified:", new Integer(1), null, new Integer(0)}));
	
			// TextBox Controls
			RuntimeAnchoring anchoringHelper7 = new RuntimeAnchoring(designSize, runtimeSize, 120, 56, 304, 56, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(TextBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1007), new Integer(anchoringHelper7.getX()), new Integer(anchoringHelper7.getY()), new Integer(anchoringHelper7.getWidth()), new Integer(anchoringHelper7.getHeight()), new Integer(startTabIndex.intValue() + 19), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT,Boolean.TRUE, new Integer(255), Boolean.TRUE, Boolean.FALSE, null, null, Boolean.FALSE, ims.framework.enumerations.CharacterCasing.NORMAL, ims.framework.enumerations.TextTrimming.NONE, "", ""}));
	
			// PartialDateBox Controls
			RuntimeAnchoring anchoringHelper8 = new RuntimeAnchoring(designSize, runtimeSize, 586, 32, 142, 20, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(PartialDateBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1008), new Integer(anchoringHelper8.getX()), new Integer(anchoringHelper8.getY()), new Integer(anchoringHelper8.getWidth()), new Integer(anchoringHelper8.getHeight()), new Integer(startTabIndex.intValue() + 21), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Invalid date entered", Boolean.FALSE, Boolean.FALSE}));
	
			// ComboBox Controls
			RuntimeAnchoring anchoringHelper9 = new RuntimeAnchoring(designSize, runtimeSize, 120, 8, 304, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			ComboBox m_cmbAlertCategoryTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1009), new Integer(anchoringHelper9.getX()), new Integer(anchoringHelper9.getY()), new Integer(anchoringHelper9.getWidth()), new Integer(anchoringHelper9.getHeight()), new Integer(startTabIndex.intValue() + 16), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFT ,Boolean.TRUE, Boolean.TRUE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.TRUE, new Integer(-1)});
			addControl(m_cmbAlertCategoryTemp);
			cmbAlertCategoryComboBox cmbAlertCategory = (cmbAlertCategoryComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAlertCategoryComboBox.class, m_cmbAlertCategoryTemp);
			super.addComboBox(cmbAlertCategory);
			RuntimeAnchoring anchoringHelper10 = new RuntimeAnchoring(designSize, runtimeSize, 120, 32, 304, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			ComboBox m_cmbAlertAlertTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1010), new Integer(anchoringHelper10.getX()), new Integer(anchoringHelper10.getY()), new Integer(anchoringHelper10.getWidth()), new Integer(anchoringHelper10.getHeight()), new Integer(startTabIndex.intValue() + 18), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.TRUE, new Integer(-1)});
			addControl(m_cmbAlertAlertTemp);
			cmbAlertAlertComboBox cmbAlertAlert = (cmbAlertAlertComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAlertAlertComboBox.class, m_cmbAlertAlertTemp);
			super.addComboBox(cmbAlertAlert);
			RuntimeAnchoring anchoringHelper11 = new RuntimeAnchoring(designSize, runtimeSize, 586, 8, 191, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
			ComboBox m_cmbAlertSourceTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1011), new Integer(anchoringHelper11.getX()), new Integer(anchoringHelper11.getY()), new Integer(anchoringHelper11.getWidth()), new Integer(anchoringHelper11.getHeight()), new Integer(startTabIndex.intValue() + 20), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
			addControl(m_cmbAlertSourceTemp);
			cmbAlertSourceComboBox cmbAlertSource = (cmbAlertSourceComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAlertSourceComboBox.class, m_cmbAlertSourceTemp);
			super.addComboBox(cmbAlertSource);
		}
		public ims.core.forms.authoringinfo.IComponent ccAlertAuthor()
		{
			return (ims.core.forms.authoringinfo.IComponent)((ims.framework.cn.controls.CustomComponent)super.getControl(0)).getLogic();
		}
		public void setccAlertAuthorValueChangedEvent(ims.framework.delegates.ValueChanged delegate)
		{
			((CustomComponent)super.getControl(0)).setValueChangedEvent(delegate);
		}
		public void setccAlertAuthorVisible(boolean value)
		{
			((ims.framework.Control)super.getControl(0)).setVisible(value);
		}
		public boolean isccAlertAuthorVisible()
		{
			return ((ims.framework.Control)super.getControl(0)).isVisible();
		}
		public void setccAlertAuthorEnabled(boolean value)
		{
			((ims.framework.Control)super.getControl(0)).setEnabled(value);
		}
		public boolean isccAlertAuthorEnabled()
		{
			return ((ims.framework.Control)super.getControl(0)).isEnabled();
		}
		public TextBox txtAlertComment()
		{
			return (TextBox)super.getControl(6);
		}
		public PartialDateBox pdtAlertDateIdentified()
		{
			return (PartialDateBox)super.getControl(7);
		}
		public cmbAlertCategoryComboBox cmbAlertCategory()
		{
			return (cmbAlertCategoryComboBox)super.getComboBox(0);
		}
		public cmbAlertAlertComboBox cmbAlertAlert()
		{
			return (cmbAlertAlertComboBox)super.getComboBox(1);
		}
		public cmbAlertSourceComboBox cmbAlertSource()
		{
			return (cmbAlertSourceComboBox)super.getComboBox(2);
		}
	}
	public static class ctnAllergyContainer extends ContainerBridge
	{
		private static final long serialVersionUID = 1L;
		public static class cmbAllergyTypeComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.AllergenType value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.AllergenType value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.AllergenType value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.AllergenType value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.AllergenType value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.AllergenType getValue()
			{
				return (ims.core.vo.lookups.AllergenType)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.AllergenType value)
			{
				super.control.setValue(value);
			}
		}
		public static class cmbAllergyReactionComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.AllergyReaction value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.AllergyReaction value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.AllergyReaction value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.AllergyReaction value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.AllergyReaction value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.AllergyReaction getValue()
			{
				return (ims.core.vo.lookups.AllergyReaction)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.AllergyReaction value)
			{
				super.control.setValue(value);
			}
		}
		public static class cmbAllergySourceComboBox extends ComboBoxBridge
		{
			private static final long serialVersionUID = 1L;
			
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text)
			{
				super.control.newRow(value, text);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Image image)
			{
				super.control.newRow(value, text, image);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, textColor);
			}
			public void newRow(ims.core.vo.lookups.SourceofInformation value, String text, ims.framework.utils.Image image, ims.framework.utils.Color textColor)
			{
				super.control.newRow(value, text, image, textColor);
			}
			public boolean removeRow(ims.core.vo.lookups.SourceofInformation value)
			{
				return super.control.removeRow(value);
			}
			public ims.core.vo.lookups.SourceofInformation getValue()
			{
				return (ims.core.vo.lookups.SourceofInformation)super.control.getValue();
			}
			public void setValue(ims.core.vo.lookups.SourceofInformation value)
			{
				super.control.setValue(value);
			}
		}
		protected void setContext(Form form, ims.framework.interfaces.IAppForm appForm, Control control, FormLoader loader, Images form_images_local, ContextMenus contextMenus, Integer startControlID, ims.framework.utils.SizeInfo designSize, ims.framework.utils.SizeInfo runtimeSize, Integer startTabIndex, boolean skipContextValidation) throws Exception
		{
			if(form == null)
				throw new RuntimeException("Invalid form");
			if(appForm == null)
				throw new RuntimeException("Invalid application form");
			if(control == null); // this is to avoid eclipse warning only.
			if(loader == null); // this is to avoid eclipse warning only.
			if(form_images_local == null); // this is to avoid eclipse warning only.
			if(contextMenus == null); // this is to avoid eclipse warning only.
			if(startControlID == null)
				throw new RuntimeException("Invalid startControlID");
			if(designSize == null); // this is to avoid eclipse warning only.
			if(runtimeSize == null); // this is to avoid eclipse warning only.
			if(startTabIndex == null)
				throw new RuntimeException("Invalid startTabIndex");
	
	
			// Custom Controls
			ims.framework.CustomComponent instance1 = factory.getEmptyCustomComponent();
			RuntimeAnchoring anchoringHelper12 = new RuntimeAnchoring(designSize, runtimeSize, 448, 112, 344, 56, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
			ims.framework.FormUiLogic m_ccAllergyAuthorForm = loader.loadComponent(102228, appForm, startControlID * 10 + 2000, anchoringHelper12.getSize(), instance1, startTabIndex.intValue() + 11, skipContextValidation);
			//ims.framework.Control m_ccAllergyAuthorControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1012), new Integer(448), new Integer(112), new Integer(344), new Integer(56), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 11), m_ccAllergyAuthorForm, instance1 } );
			ims.framework.Control m_ccAllergyAuthorControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1013),  new Integer(anchoringHelper12.getX()), new Integer(anchoringHelper12.getY()), new Integer(anchoringHelper12.getWidth()), new Integer(anchoringHelper12.getHeight()), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 11), m_ccAllergyAuthorForm, instance1, Boolean.FALSE } );
			super.addControl(m_ccAllergyAuthorControl);
			Menu[] menus1 = m_ccAllergyAuthorForm.getForm().getRegisteredMenus();
			for(int x = 0; x < menus1.length; x++)
			{
				form.registerMenu(menus1[x]);
			}
			ims.framework.CustomComponent instance2 = factory.getEmptyCustomComponent();
			RuntimeAnchoring anchoringHelper13 = new RuntimeAnchoring(designSize, runtimeSize, 8, 8, 784, 64, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
			ims.framework.FormUiLogic m_ccAllergyTermForm = loader.loadComponent(123133, appForm, startControlID * 10 + 3000, anchoringHelper13.getSize(), instance2, startTabIndex.intValue() + 2, skipContextValidation);
			//ims.framework.Control m_ccAllergyTermControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1014), new Integer(8), new Integer(8), new Integer(784), new Integer(64), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 2), m_ccAllergyTermForm, instance2 } );
			ims.framework.Control m_ccAllergyTermControl = factory.getControl(CustomComponent.class, new Object[] { control, new Integer(startControlID.intValue() + 1015),  new Integer(anchoringHelper13.getX()), new Integer(anchoringHelper13.getY()), new Integer(anchoringHelper13.getWidth()), new Integer(anchoringHelper13.getHeight()), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, new Integer(startTabIndex.intValue() + 2), m_ccAllergyTermForm, instance2, Boolean.FALSE } );
			super.addControl(m_ccAllergyTermControl);
			Menu[] menus2 = m_ccAllergyTermForm.getForm().getRegisteredMenus();
			for(int x = 0; x < menus2.length; x++)
			{
				form.registerMenu(menus2[x]);
			}
	
			// Label Controls
			RuntimeAnchoring anchoringHelper14 = new RuntimeAnchoring(designSize, runtimeSize, 16, 72, 36, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1016), new Integer(anchoringHelper14.getX()), new Integer(anchoringHelper14.getY()), new Integer(anchoringHelper14.getWidth()), new Integer(anchoringHelper14.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Type:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper15 = new RuntimeAnchoring(designSize, runtimeSize, 16, 96, 58, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1017), new Integer(anchoringHelper15.getX()), new Integer(anchoringHelper15.getY()), new Integer(anchoringHelper15.getWidth()), new Integer(anchoringHelper15.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Reaction:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper16 = new RuntimeAnchoring(designSize, runtimeSize, 456, 72, 47, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1018), new Integer(anchoringHelper16.getX()), new Integer(anchoringHelper16.getY()), new Integer(anchoringHelper16.getWidth()), new Integer(anchoringHelper16.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Source:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper17 = new RuntimeAnchoring(designSize, runtimeSize, 16, 120, 41, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1019), new Integer(anchoringHelper17.getX()), new Integer(anchoringHelper17.getY()), new Integer(anchoringHelper17.getWidth()), new Integer(anchoringHelper17.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Effect:", new Integer(1), null, new Integer(0)}));
			RuntimeAnchoring anchoringHelper18 = new RuntimeAnchoring(designSize, runtimeSize, 456, 96, 95, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1020), new Integer(anchoringHelper18.getX()), new Integer(anchoringHelper18.getY()), new Integer(anchoringHelper18.getWidth()), new Integer(anchoringHelper18.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Date Identified:", new Integer(1), null, new Integer(0)}));
	
			// TextBox Controls
			RuntimeAnchoring anchoringHelper19 = new RuntimeAnchoring(designSize, runtimeSize, 120, 120, 304, 40, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(TextBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1021), new Integer(anchoringHelper19.getX()), new Integer(anchoringHelper19.getY()), new Integer(anchoringHelper19.getWidth()), new Integer(anchoringHelper19.getHeight()), new Integer(startTabIndex.intValue() + 8), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT,Boolean.TRUE, new Integer(250), Boolean.TRUE, Boolean.FALSE, null, null, Boolean.FALSE, ims.framework.enumerations.CharacterCasing.NORMAL, ims.framework.enumerations.TextTrimming.NONE, "", ""}));
	
			// PartialDateBox Controls
			RuntimeAnchoring anchoringHelper20 = new RuntimeAnchoring(designSize, runtimeSize, 586, 96, 142, 20, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			super.addControl(factory.getControl(PartialDateBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1022), new Integer(anchoringHelper20.getX()), new Integer(anchoringHelper20.getY()), new Integer(anchoringHelper20.getWidth()), new Integer(anchoringHelper20.getHeight()), new Integer(startTabIndex.intValue() + 10), ControlState.DISABLED, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFT, "Invalid date entered", Boolean.FALSE, Boolean.FALSE}));
	
			// ComboBox Controls
			RuntimeAnchoring anchoringHelper21 = new RuntimeAnchoring(designSize, runtimeSize, 120, 72, 304, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			ComboBox m_cmbAllergyTypeTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1023), new Integer(anchoringHelper21.getX()), new Integer(anchoringHelper21.getY()), new Integer(anchoringHelper21.getWidth()), new Integer(anchoringHelper21.getHeight()), new Integer(startTabIndex.intValue() + 6), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFT ,Boolean.TRUE, Boolean.TRUE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
			addControl(m_cmbAllergyTypeTemp);
			cmbAllergyTypeComboBox cmbAllergyType = (cmbAllergyTypeComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAllergyTypeComboBox.class, m_cmbAllergyTypeTemp);
			super.addComboBox(cmbAllergyType);
			RuntimeAnchoring anchoringHelper22 = new RuntimeAnchoring(designSize, runtimeSize, 120, 96, 304, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFT);
			ComboBox m_cmbAllergyReactionTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1024), new Integer(anchoringHelper22.getX()), new Integer(anchoringHelper22.getY()), new Integer(anchoringHelper22.getWidth()), new Integer(anchoringHelper22.getHeight()), new Integer(startTabIndex.intValue() + 7), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
			addControl(m_cmbAllergyReactionTemp);
			cmbAllergyReactionComboBox cmbAllergyReaction = (cmbAllergyReactionComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAllergyReactionComboBox.class, m_cmbAllergyReactionTemp);
			super.addComboBox(cmbAllergyReaction);
			RuntimeAnchoring anchoringHelper23 = new RuntimeAnchoring(designSize, runtimeSize, 586, 72, 191, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
			ComboBox m_cmbAllergySourceTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1025), new Integer(anchoringHelper23.getX()), new Integer(anchoringHelper23.getY()), new Integer(anchoringHelper23.getWidth()), new Integer(anchoringHelper23.getHeight()), new Integer(startTabIndex.intValue() + 9), ControlState.DISABLED, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.TRUE, new Integer(-1)});
			addControl(m_cmbAllergySourceTemp);
			cmbAllergySourceComboBox cmbAllergySource = (cmbAllergySourceComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbAllergySourceComboBox.class, m_cmbAllergySourceTemp);
			super.addComboBox(cmbAllergySource);
		}
		public ims.core.forms.authoringinfo.IComponent ccAllergyAuthor()
		{
			return (ims.core.forms.authoringinfo.IComponent)((ims.framework.cn.controls.CustomComponent)super.getControl(0)).getLogic();
		}
		public void setccAllergyAuthorValueChangedEvent(ims.framework.delegates.ValueChanged delegate)
		{
			((CustomComponent)super.getControl(0)).setValueChangedEvent(delegate);
		}
		public void setccAllergyAuthorVisible(boolean value)
		{
			((ims.framework.Control)super.getControl(0)).setVisible(value);
		}
		public boolean isccAllergyAuthorVisible()
		{
			return ((ims.framework.Control)super.getControl(0)).isVisible();
		}
		public void setccAllergyAuthorEnabled(boolean value)
		{
			((ims.framework.Control)super.getControl(0)).setEnabled(value);
		}
		public boolean isccAllergyAuthorEnabled()
		{
			return ((ims.framework.Control)super.getControl(0)).isEnabled();
		}
		public ims.clinical.forms.clinicalcoding.IComponent ccAllergyTerm()
		{
			return (ims.clinical.forms.clinicalcoding.IComponent)((ims.framework.cn.controls.CustomComponent)super.getControl(1)).getLogic();
		}
		public void setccAllergyTermValueChangedEvent(ims.framework.delegates.ValueChanged delegate)
		{
			((CustomComponent)super.getControl(1)).setValueChangedEvent(delegate);
		}
		public void setccAllergyTermVisible(boolean value)
		{
			((ims.framework.Control)super.getControl(1)).setVisible(value);
		}
		public boolean isccAllergyTermVisible()
		{
			return ((ims.framework.Control)super.getControl(1)).isVisible();
		}
		public void setccAllergyTermEnabled(boolean value)
		{
			((ims.framework.Control)super.getControl(1)).setEnabled(value);
		}
		public boolean isccAllergyTermEnabled()
		{
			return ((ims.framework.Control)super.getControl(1)).isEnabled();
		}
		public TextBox txtAllergyEffect()
		{
			return (TextBox)super.getControl(7);
		}
		public PartialDateBox pdtAllergyDateIdentified()
		{
			return (PartialDateBox)super.getControl(8);
		}
		public cmbAllergyTypeComboBox cmbAllergyType()
		{
			return (cmbAllergyTypeComboBox)super.getComboBox(0);
		}
		public cmbAllergyReactionComboBox cmbAllergyReaction()
		{
			return (cmbAllergyReactionComboBox)super.getComboBox(1);
		}
		public cmbAllergySourceComboBox cmbAllergySource()
		{
			return (cmbAllergySourceComboBox)super.getComboBox(2);
		}
	}
	public static class grdAlertsRow extends GridRowBridge
	{
		private static final long serialVersionUID = 1L;
		
		protected grdAlertsRow(GridRow row)
		{
			super(row);
		}
		public void showOpened(int column)
		{
			super.row.showOpened(column);
		}
		public void setColDateReadOnly(boolean value)
		{
			super.row.setReadOnly(0, value);
		}
		public boolean isColDateReadOnly()
		{
			return super.row.isReadOnly(0);
		}
		public void showColDateOpened()
		{
			super.row.showOpened(0);
		}
		public void setTooltipForColDate(String value)
		{
			super.row.setTooltip(0, value);
		}
		public String getColDate()
		{
			return (String)super.row.get(0);
		}
		public void setColDate(String value)
		{
			super.row.set(0, value);
		}
		public void setCellColDateTooltip(String value)
		{
			super.row.setTooltip(0, value);
		}
		public void setColCategoryReadOnly(boolean value)
		{
			super.row.setReadOnly(1, value);
		}
		public boolean isColCategoryReadOnly()
		{
			return super.row.isReadOnly(1);
		}
		public void showColCategoryOpened()
		{
			super.row.showOpened(1);
		}
		public void setTooltipForColCategory(String value)
		{
			super.row.setTooltip(1, value);
		}
		public String getColCategory()
		{
			return (String)super.row.get(1);
		}
		public void setColCategory(String value)
		{
			super.row.set(1, value);
		}
		public void setCellColCategoryTooltip(String value)
		{
			super.row.setTooltip(1, value);
		}
		public void setColAlertReadOnly(boolean value)
		{
			super.row.setReadOnly(2, value);
		}
		public boolean isColAlertReadOnly()
		{
			return super.row.isReadOnly(2);
		}
		public void showColAlertOpened()
		{
			super.row.showOpened(2);
		}
		public void setTooltipForColAlert(String value)
		{
			super.row.setTooltip(2, value);
		}
		public String getColAlert()
		{
			return (String)super.row.get(2);
		}
		public void setColAlert(String value)
		{
			super.row.set(2, value);
		}
		public void setCellColAlertTooltip(String value)
		{
			super.row.setTooltip(2, value);
		}
		public void setColSourceReadOnly(boolean value)
		{
			super.row.setReadOnly(3, value);
		}
		public boolean isColSourceReadOnly()
		{
			return super.row.isReadOnly(3);
		}
		public void showColSourceOpened()
		{
			super.row.showOpened(3);
		}
		public void setTooltipForColSource(String value)
		{
			super.row.setTooltip(3, value);
		}
		public String getColSource()
		{
			return (String)super.row.get(3);
		}
		public void setColSource(String value)
		{
			super.row.set(3, value);
		}
		public void setCellColSourceTooltip(String value)
		{
			super.row.setTooltip(3, value);
		}
		public void setColActiveReadOnly(boolean value)
		{
			super.row.setReadOnly(4, value);
		}
		public boolean isColActiveReadOnly()
		{
			return super.row.isReadOnly(4);
		}
		public void showColActiveOpened()
		{
			super.row.showOpened(4);
		}
		public void setTooltipForColActive(String value)
		{
			super.row.setTooltip(4, value);
		}
		public ims.framework.utils.Image getColActive()
		{
			return (ims.framework.utils.Image)super.row.get(4);
		}
		public void setColActive(ims.framework.utils.Image value)
		{
			super.row.set(4, value);
		}
		public void setCellColActiveTooltip(String value)
		{
			super.row.setTooltip(4, value);
		}
		public void setColAuditReadOnly(boolean value)
		{
			super.row.setReadOnly(5, value);
		}
		public boolean isColAuditReadOnly()
		{
			return super.row.isReadOnly(5);
		}
		public void showColAuditOpened()
		{
			super.row.showOpened(5);
		}
		public void setTooltipForColAudit(String value)
		{
			super.row.setTooltip(5, value);
		}
		public ims.framework.utils.Image getColAudit()
		{
			return (ims.framework.utils.Image)super.row.get(5);
		}
		public void setColAudit(ims.framework.utils.Image value)
		{
			super.row.set(5, value);
		}
		public void setCellColAuditTooltip(String value)
		{
			super.row.setTooltip(5, value);
		}
		public void setColIncludeReadOnly(boolean value)
		{
			super.row.setReadOnly(6, value);
		}
		public boolean isColIncludeReadOnly()
		{
			return super.row.isReadOnly(6);
		}
		public void showColIncludeOpened()
		{
			super.row.showOpened(6);
		}
		public void setTooltipForColInclude(String value)
		{
			super.row.setTooltip(6, value);
		}
		public boolean getColInclude()
		{
			return ((Boolean)super.row.get(6)).booleanValue();
		}
		public void setColInclude(boolean value)
		{
			super.row.set(6, new Boolean(value));
		}
		public void setCellColIncludeTooltip(String value)
		{
			super.row.setTooltip(6, value);
		}
		public ims.core.vo.PatientAlertEDischargeVo getValue()
		{
			return (ims.core.vo.PatientAlertEDischargeVo)super.row.getValue();
		}
		public void setValue(ims.core.vo.PatientAlertEDischargeVo value)
		{
			super.row.setValue(value);
		}
	}
	public static class grdAlertsRowCollection extends GridRowCollectionBridge
	{
		private static final long serialVersionUID = 1L;
		
		private grdAlertsRowCollection(GridRowCollection collection)
		{
			super(collection);
		}
		public grdAlertsRow get(int index)
		{
			return new grdAlertsRow(super.collection.get(index));
		}
		public grdAlertsRow newRow()
		{
			return new grdAlertsRow(super.collection.newRow());
		}
		public grdAlertsRow newRow(boolean autoSelect)
		{
			return new grdAlertsRow(super.collection.newRow(autoSelect));
		}
		public grdAlertsRow newRowAt(int index)
		{
			return new grdAlertsRow(super.collection.newRowAt(index));
		}
		public grdAlertsRow newRowAt(int index, boolean autoSelect)
		{
			return new grdAlertsRow(super.collection.newRowAt(index, autoSelect));
		}
	}
	public static class grdAlertsGrid extends GridBridge
	{
		private static final long serialVersionUID = 1L;
		
		private void addStringColumn(String caption, int captionAlignment, int alignment, int width, boolean readOnly, boolean bold, int sortOrder, int maxLength, boolean canGrow, ims.framework.enumerations.CharacterCasing casing)
		{
			super.grid.addStringColumn(caption, captionAlignment, alignment, width, readOnly, bold, sortOrder, maxLength, canGrow, casing);
		}
		private void addImageColumn(String caption, int captionAlignment, int alignment, int width, boolean canGrow, int sortOrder)
		{
			super.grid.addImageColumn(caption, captionAlignment, alignment, width, canGrow, sortOrder);
		}
		private void addBoolColumn(String caption, int captionAlignment, int alignment, int width, boolean readOnly, boolean autoPostBack, int sortOrder, boolean canGrow)
		{
			super.grid.addBoolColumn(caption, captionAlignment, alignment, width, readOnly, autoPostBack, sortOrder, canGrow);
		}
		public ims.core.vo.PatientAlertEDischargeVoCollection getValues()
		{
			ims.core.vo.PatientAlertEDischargeVoCollection listOfValues = new ims.core.vo.PatientAlertEDischargeVoCollection();
			for(int x = 0; x < this.getRows().size(); x++)
			{
				listOfValues.add(this.getRows().get(x).getValue());
			}
			return listOfValues;
		}
		public ims.core.vo.PatientAlertEDischargeVo getValue()
		{
			return (ims.core.vo.PatientAlertEDischargeVo)super.grid.getValue();
		}
		public void setValue(ims.core.vo.PatientAlertEDischargeVo value)
		{
			super.grid.setValue(value);
		}
		public grdAlertsRow getSelectedRow()
		{
			return super.grid.getSelectedRow() == null ? null : new grdAlertsRow(super.grid.getSelectedRow());
		}
		public int getSelectedRowIndex()
		{
			return super.grid.getSelectedRowIndex();
		}
		public grdAlertsRowCollection getRows()
		{
			return new grdAlertsRowCollection(super.grid.getRows());
		}
		public grdAlertsRow getRowByValue(ims.core.vo.PatientAlertEDischargeVo value)
		{
			GridRow row = super.grid.getRowByValue(value);
			return row == null?null:new grdAlertsRow(row);
		}
		public void setColDateHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(0, value);
		}
		public String getColDateHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(0);
		}
		public void setColCategoryHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(1, value);
		}
		public String getColCategoryHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(1);
		}
		public void setColAlertHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(2, value);
		}
		public String getColAlertHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(2);
		}
		public void setColSourceHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(3, value);
		}
		public String getColSourceHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(3);
		}
		public void setColActiveHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(4, value);
		}
		public String getColActiveHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(4);
		}
		public void setColAuditHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(5, value);
		}
		public String getColAuditHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(5);
		}
		public void setColIncludeHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(6, value);
		}
		public String getColIncludeHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(6);
		}
	}
	public static class grdAllergiesRow extends GridRowBridge
	{
		private static final long serialVersionUID = 1L;
		
		protected grdAllergiesRow(GridRow row)
		{
			super(row);
		}
		public void showOpened(int column)
		{
			super.row.showOpened(column);
		}
		public void setColDateReadOnly(boolean value)
		{
			super.row.setReadOnly(0, value);
		}
		public boolean isColDateReadOnly()
		{
			return super.row.isReadOnly(0);
		}
		public void showColDateOpened()
		{
			super.row.showOpened(0);
		}
		public void setTooltipForColDate(String value)
		{
			super.row.setTooltip(0, value);
		}
		public String getColDate()
		{
			return (String)super.row.get(0);
		}
		public void setColDate(String value)
		{
			super.row.set(0, value);
		}
		public void setCellColDateTooltip(String value)
		{
			super.row.setTooltip(0, value);
		}
		public void setColAllergenDesReadOnly(boolean value)
		{
			super.row.setReadOnly(1, value);
		}
		public boolean isColAllergenDesReadOnly()
		{
			return super.row.isReadOnly(1);
		}
		public void showColAllergenDesOpened()
		{
			super.row.showOpened(1);
		}
		public void setTooltipForColAllergenDes(String value)
		{
			super.row.setTooltip(1, value);
		}
		public String getColAllergenDes()
		{
			return (String)super.row.get(1);
		}
		public void setColAllergenDes(String value)
		{
			super.row.set(1, value);
		}
		public void setCellColAllergenDesTooltip(String value)
		{
			super.row.setTooltip(1, value);
		}
		public void setColReactionReadOnly(boolean value)
		{
			super.row.setReadOnly(2, value);
		}
		public boolean isColReactionReadOnly()
		{
			return super.row.isReadOnly(2);
		}
		public void showColReactionOpened()
		{
			super.row.showOpened(2);
		}
		public void setTooltipForColReaction(String value)
		{
			super.row.setTooltip(2, value);
		}
		public String getColReaction()
		{
			return (String)super.row.get(2);
		}
		public void setColReaction(String value)
		{
			super.row.set(2, value);
		}
		public void setCellColReactionTooltip(String value)
		{
			super.row.setTooltip(2, value);
		}
		public void setColSourceReadOnly(boolean value)
		{
			super.row.setReadOnly(3, value);
		}
		public boolean isColSourceReadOnly()
		{
			return super.row.isReadOnly(3);
		}
		public void showColSourceOpened()
		{
			super.row.showOpened(3);
		}
		public void setTooltipForColSource(String value)
		{
			super.row.setTooltip(3, value);
		}
		public String getColSource()
		{
			return (String)super.row.get(3);
		}
		public void setColSource(String value)
		{
			super.row.set(3, value);
		}
		public void setCellColSourceTooltip(String value)
		{
			super.row.setTooltip(3, value);
		}
		public void setColIsActiveReadOnly(boolean value)
		{
			super.row.setReadOnly(4, value);
		}
		public boolean isColIsActiveReadOnly()
		{
			return super.row.isReadOnly(4);
		}
		public void showColIsActiveOpened()
		{
			super.row.showOpened(4);
		}
		public void setTooltipForColIsActive(String value)
		{
			super.row.setTooltip(4, value);
		}
		public ims.framework.utils.Image getColIsActive()
		{
			return (ims.framework.utils.Image)super.row.get(4);
		}
		public void setColIsActive(ims.framework.utils.Image value)
		{
			super.row.set(4, value);
		}
		public void setCellColIsActiveTooltip(String value)
		{
			super.row.setTooltip(4, value);
		}
		public void setColAuditReadOnly(boolean value)
		{
			super.row.setReadOnly(5, value);
		}
		public boolean isColAuditReadOnly()
		{
			return super.row.isReadOnly(5);
		}
		public void showColAuditOpened()
		{
			super.row.showOpened(5);
		}
		public void setTooltipForColAudit(String value)
		{
			super.row.setTooltip(5, value);
		}
		public ims.framework.utils.Image getColAudit()
		{
			return (ims.framework.utils.Image)super.row.get(5);
		}
		public void setColAudit(ims.framework.utils.Image value)
		{
			super.row.set(5, value);
		}
		public void setCellColAuditTooltip(String value)
		{
			super.row.setTooltip(5, value);
		}
		public void setColIncludeReadOnly(boolean value)
		{
			super.row.setReadOnly(6, value);
		}
		public boolean isColIncludeReadOnly()
		{
			return super.row.isReadOnly(6);
		}
		public void showColIncludeOpened()
		{
			super.row.showOpened(6);
		}
		public void setTooltipForColInclude(String value)
		{
			super.row.setTooltip(6, value);
		}
		public boolean getColInclude()
		{
			return ((Boolean)super.row.get(6)).booleanValue();
		}
		public void setColInclude(boolean value)
		{
			super.row.set(6, new Boolean(value));
		}
		public void setCellColIncludeTooltip(String value)
		{
			super.row.setTooltip(6, value);
		}
		public ims.core.vo.PatientAllergyEDischargeVo getValue()
		{
			return (ims.core.vo.PatientAllergyEDischargeVo)super.row.getValue();
		}
		public void setValue(ims.core.vo.PatientAllergyEDischargeVo value)
		{
			super.row.setValue(value);
		}
	}
	public static class grdAllergiesRowCollection extends GridRowCollectionBridge
	{
		private static final long serialVersionUID = 1L;
		
		private grdAllergiesRowCollection(GridRowCollection collection)
		{
			super(collection);
		}
		public grdAllergiesRow get(int index)
		{
			return new grdAllergiesRow(super.collection.get(index));
		}
		public grdAllergiesRow newRow()
		{
			return new grdAllergiesRow(super.collection.newRow());
		}
		public grdAllergiesRow newRow(boolean autoSelect)
		{
			return new grdAllergiesRow(super.collection.newRow(autoSelect));
		}
		public grdAllergiesRow newRowAt(int index)
		{
			return new grdAllergiesRow(super.collection.newRowAt(index));
		}
		public grdAllergiesRow newRowAt(int index, boolean autoSelect)
		{
			return new grdAllergiesRow(super.collection.newRowAt(index, autoSelect));
		}
	}
	public static class grdAllergiesGrid extends GridBridge
	{
		private static final long serialVersionUID = 1L;
		
		private void addStringColumn(String caption, int captionAlignment, int alignment, int width, boolean readOnly, boolean bold, int sortOrder, int maxLength, boolean canGrow, ims.framework.enumerations.CharacterCasing casing)
		{
			super.grid.addStringColumn(caption, captionAlignment, alignment, width, readOnly, bold, sortOrder, maxLength, canGrow, casing);
		}
		private void addImageColumn(String caption, int captionAlignment, int alignment, int width, boolean canGrow, int sortOrder)
		{
			super.grid.addImageColumn(caption, captionAlignment, alignment, width, canGrow, sortOrder);
		}
		private void addBoolColumn(String caption, int captionAlignment, int alignment, int width, boolean readOnly, boolean autoPostBack, int sortOrder, boolean canGrow)
		{
			super.grid.addBoolColumn(caption, captionAlignment, alignment, width, readOnly, autoPostBack, sortOrder, canGrow);
		}
		public ims.core.vo.PatientAllergyEDischargeVoCollection getValues()
		{
			ims.core.vo.PatientAllergyEDischargeVoCollection listOfValues = new ims.core.vo.PatientAllergyEDischargeVoCollection();
			for(int x = 0; x < this.getRows().size(); x++)
			{
				listOfValues.add(this.getRows().get(x).getValue());
			}
			return listOfValues;
		}
		public ims.core.vo.PatientAllergyEDischargeVo getValue()
		{
			return (ims.core.vo.PatientAllergyEDischargeVo)super.grid.getValue();
		}
		public void setValue(ims.core.vo.PatientAllergyEDischargeVo value)
		{
			super.grid.setValue(value);
		}
		public grdAllergiesRow getSelectedRow()
		{
			return super.grid.getSelectedRow() == null ? null : new grdAllergiesRow(super.grid.getSelectedRow());
		}
		public int getSelectedRowIndex()
		{
			return super.grid.getSelectedRowIndex();
		}
		public grdAllergiesRowCollection getRows()
		{
			return new grdAllergiesRowCollection(super.grid.getRows());
		}
		public grdAllergiesRow getRowByValue(ims.core.vo.PatientAllergyEDischargeVo value)
		{
			GridRow row = super.grid.getRowByValue(value);
			return row == null?null:new grdAllergiesRow(row);
		}
		public void setColDateHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(0, value);
		}
		public String getColDateHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(0);
		}
		public void setColAllergenDesHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(1, value);
		}
		public String getColAllergenDesHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(1);
		}
		public void setColReactionHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(2, value);
		}
		public String getColReactionHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(2);
		}
		public void setColSourceHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(3, value);
		}
		public String getColSourceHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(3);
		}
		public void setColIsActiveHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(4, value);
		}
		public String getColIsActiveHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(4);
		}
		public void setColAuditHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(5, value);
		}
		public String getColAuditHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(5);
		}
		public void setColIncludeHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(6, value);
		}
		public String getColIncludeHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(6);
		}
	}
	private void validateContext(ims.framework.Context context)
	{
		if(context == null)
			return;
		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(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.EpisodeofCareShortVo.class))
			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.EpisodeofCareShortVo' of the global context variable 'Core.EpisodeofCareShort' is not supported.");
	}
	private void validateMandatoryContext(Context context)
	{
		if(new ims.framework.ContextVariable("Core.CurrentCareContext", "_cvp_Core.CurrentCareContext").getValueIsNull(context))
			throw new ims.framework.exceptions.FormMandatoryContextMissingException("The required context data 'Core.CurrentCareContext' is not available.");
		if(new ims.framework.ContextVariable("Core.PatientShort", "_cvp_Core.PatientShort").getValueIsNull(context))
			throw new ims.framework.exceptions.FormMandatoryContextMissingException("The required context data 'Core.PatientShort' is not available.");
		if(new ims.framework.ContextVariable("Core.EpisodeofCareShort", "_cvp_Core.EpisodeofCareShort").getValueIsNull(context))
			throw new ims.framework.exceptions.FormMandatoryContextMissingException("The required context data 'Core.EpisodeofCareShort' is not available.");
	}
	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);
			validateMandatoryContext(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));
		// Context Menus
		contextMenus = new ContextMenus();
		contextMenus.Clinical.contextMenuEdischargeAlertsEtc = factory.createMenu(startControlID.intValue() + 1);
		contextMenus.Clinical.contextMenuEdischargeAlertsEtcNewItem = factory.createMenuItem(startControlID.intValue() + 1, "New Alert", true, false, new Integer(102179), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(4400001)))
			contextMenus.Clinical.contextMenuEdischargeAlertsEtc.add(contextMenus.Clinical.contextMenuEdischargeAlertsEtcNewItem);
		contextMenus.Clinical.contextMenuEdischargeAlertsEtcEditItem = factory.createMenuItem(startControlID.intValue() + 2, "Edit Alert", true, false, new Integer(102150), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(4400002)))
			contextMenus.Clinical.contextMenuEdischargeAlertsEtc.add(contextMenus.Clinical.contextMenuEdischargeAlertsEtcEditItem);
		form.registerMenu(contextMenus.Clinical.contextMenuEdischargeAlertsEtc);
		contextMenus.Clinical.contextMenuEdischargeAllergiesEtc = factory.createMenu(startControlID.intValue() + 2);
		contextMenus.Clinical.contextMenuEdischargeAllergiesEtcNewItem = factory.createMenuItem(startControlID.intValue() + 3, "New Allergy", true, false, new Integer(102179), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(4390001)))
			contextMenus.Clinical.contextMenuEdischargeAllergiesEtc.add(contextMenus.Clinical.contextMenuEdischargeAllergiesEtcNewItem);
		contextMenus.Clinical.contextMenuEdischargeAllergiesEtcEditItem = factory.createMenuItem(startControlID.intValue() + 4, "Edit Allergy", true, false, new Integer(102150), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(4390002)))
			contextMenus.Clinical.contextMenuEdischargeAllergiesEtc.add(contextMenus.Clinical.contextMenuEdischargeAllergiesEtcEditItem);
		form.registerMenu(contextMenus.Clinical.contextMenuEdischargeAllergiesEtc);
		// Panel Controls
		RuntimeAnchoring anchoringHelper24 = new RuntimeAnchoring(designSize, runtimeSize, 8, 328, 832, 24, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		super.addControl(factory.getControl(Panel.class, new Object[] { control, new Integer(startControlID.intValue() + 1026), new Integer(anchoringHelper24.getX()), new Integer(anchoringHelper24.getY()), new Integer(anchoringHelper24.getWidth()), new Integer(anchoringHelper24.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,"Alerts", new Integer(1), ""}));
		RuntimeAnchoring anchoringHelper25 = new RuntimeAnchoring(designSize, runtimeSize, 8, 0, 832, 24, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		super.addControl(factory.getControl(Panel.class, new Object[] { control, new Integer(startControlID.intValue() + 1027), new Integer(anchoringHelper25.getX()), new Integer(anchoringHelper25.getY()), new Integer(anchoringHelper25.getWidth()), new Integer(anchoringHelper25.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,"Allergies", new Integer(1), ""}));
		// Container Clasess
		RuntimeAnchoring anchoringHelper26 = new RuntimeAnchoring(designSize, runtimeSize, 24, 440, 808, 152, ims.framework.enumerations.ControlAnchoring.ALL);
		Container m_ctnAlert = (Container)factory.getControl(Container.class, new Object[] { control, new Integer(startControlID.intValue() + 1028), new Integer(anchoringHelper26.getX()), new Integer(anchoringHelper26.getY()), new Integer(anchoringHelper26.getWidth()), new Integer(anchoringHelper26.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.ALL, null, new Boolean(false)});
		addControl(m_ctnAlert);
		ctnAlertContainer ctnAlert = (ctnAlertContainer)ContainerBridgeFlyweightFactory.getInstance().createContainerBridge(ctnAlertContainer.class, m_ctnAlert, factory);
		ims.framework.utils.SizeInfo m_ctnAlertDesignSize = new ims.framework.utils.SizeInfo(808, 152);
		ims.framework.utils.SizeInfo m_ctnAlertRuntimeSize = new ims.framework.utils.SizeInfo(anchoringHelper26.getWidth(), anchoringHelper26.getHeight());
		ctnAlert.setContext(form, appForm, m_ctnAlert, loader, this.getImages(), contextMenus, startControlID, m_ctnAlertDesignSize, m_ctnAlertRuntimeSize, startTabIndex, skipContextValidation);
		super.addContainer(ctnAlert);
		RuntimeAnchoring anchoringHelper27 = new RuntimeAnchoring(designSize, runtimeSize, 24, 144, 816, 176, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		Container m_ctnAllergy = (Container)factory.getControl(Container.class, new Object[] { control, new Integer(startControlID.intValue() + 1029), new Integer(anchoringHelper27.getX()), new Integer(anchoringHelper27.getY()), new Integer(anchoringHelper27.getWidth()), new Integer(anchoringHelper27.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, null, new Boolean(false)});
		addControl(m_ctnAllergy);
		ctnAllergyContainer ctnAllergy = (ctnAllergyContainer)ContainerBridgeFlyweightFactory.getInstance().createContainerBridge(ctnAllergyContainer.class, m_ctnAllergy, factory);
		ims.framework.utils.SizeInfo m_ctnAllergyDesignSize = new ims.framework.utils.SizeInfo(816, 176);
		ims.framework.utils.SizeInfo m_ctnAllergyRuntimeSize = new ims.framework.utils.SizeInfo(anchoringHelper27.getWidth(), anchoringHelper27.getHeight());
		ctnAllergy.setContext(form, appForm, m_ctnAllergy, loader, this.getImages(), contextMenus, startControlID, m_ctnAllergyDesignSize, m_ctnAllergyRuntimeSize, startTabIndex, skipContextValidation);
		super.addContainer(ctnAllergy);
		// Button Controls
		RuntimeAnchoring anchoringHelper28 = new RuntimeAnchoring(designSize, runtimeSize, 674, 600, 75, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1030), new Integer(anchoringHelper28.getX()), new Integer(anchoringHelper28.getY()), new Integer(anchoringHelper28.getWidth()), new Integer(anchoringHelper28.getHeight()), new Integer(startTabIndex.intValue() + 25), ControlState.HIDDEN, ControlState.ENABLED, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, "Save", 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, 754, 600, 75, 23, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT);
		super.addControl(factory.getControl(Button.class, new Object[] { control, new Integer(startControlID.intValue() + 1031), new Integer(anchoringHelper29.getX()), new Integer(anchoringHelper29.getY()), new Integer(anchoringHelper29.getWidth()), new Integer(anchoringHelper29.getHeight()), new Integer(startTabIndex.intValue() + 26), ControlState.HIDDEN, ControlState.ENABLED, ims.framework.enumerations.ControlAnchoring.BOTTOMRIGHT, "Cancel", Boolean.FALSE, null, Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, null, ims.framework.utils.Color.Default, ims.framework.utils.Color.Default }));
		// Grid Controls
		RuntimeAnchoring anchoringHelper30 = new RuntimeAnchoring(designSize, runtimeSize, 24, 360, 808, 76, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		Grid m_grdAlertsTemp = (Grid)factory.getControl(Grid.class, new Object[] { control, new Integer(startControlID.intValue() + 1032), new Integer(anchoringHelper30.getX()), new Integer(anchoringHelper30.getY()), new Integer(anchoringHelper30.getWidth()), new Integer(anchoringHelper30.getHeight()), new Integer(startTabIndex.intValue() + 14), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,Boolean.TRUE, Boolean.FALSE, new Integer(24), Boolean.TRUE, contextMenus.Clinical.contextMenuEdischargeAlertsEtc, Boolean.FALSE, Boolean.FALSE, new Integer(0), null, Boolean.FALSE, Boolean.TRUE});
		addControl(m_grdAlertsTemp);
		grdAlertsGrid grdAlerts = (grdAlertsGrid)GridFlyweightFactory.getInstance().createGridBridge(grdAlertsGrid.class, m_grdAlertsTemp);
		grdAlerts.addStringColumn("Date", 0, 0, 85, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAlerts.addStringColumn("Category", 0, 0, 200, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAlerts.addStringColumn("Alert", 0, 0, 200, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAlerts.addStringColumn("Source", 0, 0, 170, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAlerts.addImageColumn(" ", 1, 1, 40, false, 0);
		grdAlerts.addImageColumn(" ", 0, 0, 40, true, 0);
		grdAlerts.addBoolColumn("Include", 0, 0, -1, false, true, 0, true);
		super.addGrid(grdAlerts);
		RuntimeAnchoring anchoringHelper31 = new RuntimeAnchoring(designSize, runtimeSize, 24, 32, 808, 112, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		Grid m_grdAllergiesTemp = (Grid)factory.getControl(Grid.class, new Object[] { control, new Integer(startControlID.intValue() + 1033), new Integer(anchoringHelper31.getX()), new Integer(anchoringHelper31.getY()), new Integer(anchoringHelper31.getWidth()), new Integer(anchoringHelper31.getHeight()), new Integer(startTabIndex.intValue() + 1), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,Boolean.TRUE, Boolean.FALSE, new Integer(24), Boolean.TRUE, contextMenus.Clinical.contextMenuEdischargeAllergiesEtc, Boolean.FALSE, Boolean.FALSE, new Integer(0), null, Boolean.FALSE, Boolean.TRUE});
		addControl(m_grdAllergiesTemp);
		grdAllergiesGrid grdAllergies = (grdAllergiesGrid)GridFlyweightFactory.getInstance().createGridBridge(grdAllergiesGrid.class, m_grdAllergiesTemp);
		grdAllergies.addStringColumn("Date", 0, 0, 85, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAllergies.addStringColumn("Allergen Description", 0, 0, 200, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAllergies.addStringColumn("Reaction", 0, 0, 200, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAllergies.addStringColumn("Source", 0, 0, 170, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdAllergies.addImageColumn("  ", 1, 1, 40, true, 0);
		grdAllergies.addImageColumn(" ", 0, 0, 40, true, 0);
		grdAllergies.addBoolColumn("Include", 0, 0, -1, false, true, 0, true);
		super.addGrid(grdAllergies);
	}
	public Forms getForms()
	{
		return (Forms)super.getFormReferences();
	}
	public Images getImages()
	{
		return (Images)super.getImageReferences();
	}
	public ctnAlertContainer ctnAlert()
	{
		return (ctnAlertContainer)super.getContainer(0);
	}
	public ctnAllergyContainer ctnAllergy()
	{
		return (ctnAllergyContainer)super.getContainer(1);
	}
	public Button btnSave()
	{
		return (Button)super.getControl(4);
	}
	public Button btnCancel()
	{
		return (Button)super.getControl(5);
	}
	public grdAlertsGrid grdAlerts()
	{
		return (grdAlertsGrid)super.getGrid(0);
	}
	public grdAllergiesGrid grdAllergies()
	{
		return (grdAllergiesGrid)super.getGrid(1);
	}
	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()
		{
			Core = new CoreForms();
		}
		public final class CoreForms implements java.io.Serializable
		{
			private static final long serialVersionUID = 1L;
			private CoreForms()
			{
				YesNoDialog = new LocalFormName(102107);
			}
			public final FormName YesNoDialog;
		}
		public CoreForms Core;
	}
	public static class Images implements java.io.Serializable
	{
		private static final long serialVersionUID = 1L;
		private final class ImageHelper extends ims.framework.utils.ImagePath
		{
			private static final long serialVersionUID = 1L;
			
			private ImageHelper(int id, String path, Integer width, Integer height)
			{


Answer: 				super(id, path, width, height);