//#############################################################################
//#                                                                           #
//#  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.correspondence.forms.correspondenceoutpatientlist;

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 cmbStatusOfLetterComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.lookups.DocumentStatus value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.lookups.DocumentStatus value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.lookups.DocumentStatus value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.lookups.DocumentStatus 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.DocumentStatus value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.lookups.DocumentStatus getValue()
		{
			return (ims.core.vo.lookups.DocumentStatus)super.control.getValue();
		}
		public void setValue(ims.core.vo.lookups.DocumentStatus value)
		{
			super.control.setValue(value);
		}
	}
	public static class cmbClinicComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.ClinicLiteVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.ClinicLiteVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.ClinicLiteVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.ClinicLiteVo 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.ClinicLiteVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.ClinicLiteVo getValue()
		{
			return (ims.core.vo.ClinicLiteVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.ClinicLiteVo value)
		{
			super.control.setValue(value);
		}
	}
	public static class cmbConsultantComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.MedicLiteVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.MedicLiteVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.MedicLiteVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.MedicLiteVo 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.MedicLiteVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.MedicLiteVo getValue()
		{
			return (ims.core.vo.MedicLiteVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.MedicLiteVo value)
		{
			super.control.setValue(value);
		}
	}
	public static class cmbSpecialtyComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.lookups.Specialty value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.lookups.Specialty value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.lookups.Specialty value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.lookups.Specialty 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.Specialty value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.lookups.Specialty getValue()
		{
			return (ims.core.vo.lookups.Specialty)super.control.getValue();
		}
		public void setValue(ims.core.vo.lookups.Specialty value)
		{
			super.control.setValue(value);
		}
	}
	public static class cmbLocationComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.LocationLiteVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.LocationLiteVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.LocationLiteVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.LocationLiteVo 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.LocationLiteVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.LocationLiteVo getValue()
		{
			return (ims.core.vo.LocationLiteVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.LocationLiteVo value)
		{
			super.control.setValue(value);
		}
	}
	public static class qmbDictatedByComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.MemberOfStaffShortVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.MemberOfStaffShortVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.MemberOfStaffShortVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.MemberOfStaffShortVo 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.MemberOfStaffShortVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.MemberOfStaffShortVo getValue()
		{
			return (ims.core.vo.MemberOfStaffShortVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.MemberOfStaffShortVo value)
		{
			super.control.setValue(value);
		}
		public void setEditedText(String text)
		{
			super.control.setEditedText(text);
		}
		public String getEditedText()
		{
			return super.control.getEditedText();
		}
	}
	public static class qmbClinicComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.ClinicLiteVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.ClinicLiteVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.ClinicLiteVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.ClinicLiteVo 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.ClinicLiteVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.ClinicLiteVo getValue()
		{
			return (ims.core.vo.ClinicLiteVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.ClinicLiteVo value)
		{
			super.control.setValue(value);
		}
		public void setEditedText(String text)
		{
			super.control.setEditedText(text);
		}
		public String getEditedText()
		{
			return super.control.getEditedText();
		}
	}
	public static class qmbConsultantComboBox extends ComboBoxBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void newRow(ims.core.vo.MedicLiteVo value, String text)
		{
			super.control.newRow(value, text);
		}
		public void newRow(ims.core.vo.MedicLiteVo value, String text, ims.framework.utils.Image image)
		{
			super.control.newRow(value, text, image);
		}
		public void newRow(ims.core.vo.MedicLiteVo value, String text, ims.framework.utils.Color textColor)
		{
			super.control.newRow(value, text, textColor);
		}
		public void newRow(ims.core.vo.MedicLiteVo 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.MedicLiteVo value)
		{
			return super.control.removeRow(value);
		}
		public ims.core.vo.MedicLiteVo getValue()
		{
			return (ims.core.vo.MedicLiteVo)super.control.getValue();
		}
		public void setValue(ims.core.vo.MedicLiteVo value)
		{
			super.control.setValue(value);
		}
		public void setEditedText(String text)
		{
			super.control.setEditedText(text);
		}
		public String getEditedText()
		{
			return super.control.getEditedText();
		}
	}
	public static class grdOutPatientRow extends GridRowBridge
	{
		private static final long serialVersionUID = 1L;
		
		protected grdOutPatientRow(GridRow row)
		{
			super(row);
		}
		public void showOpened(int column)
		{
			super.row.showOpened(column);
		}
		public void setcolHospnumReadOnly(boolean value)
		{
			super.row.setReadOnly(0, value);
		}
		public boolean iscolHospnumReadOnly()
		{
			return super.row.isReadOnly(0);
		}
		public void showcolHospnumOpened()
		{
			super.row.showOpened(0);
		}
		public void setTooltipForcolHospnum(String value)
		{
			super.row.setTooltip(0, value);
		}
		public String getcolHospnum()
		{
			return (String)super.row.get(0);
		}
		public void setcolHospnum(String value)
		{
			super.row.set(0, value);
		}
		public void setCellcolHospnumTooltip(String value)
		{
			super.row.setTooltip(0, value);
		}
		public void setcolSurnameReadOnly(boolean value)
		{
			super.row.setReadOnly(1, value);
		}
		public boolean iscolSurnameReadOnly()
		{
			return super.row.isReadOnly(1);
		}
		public void showcolSurnameOpened()
		{
			super.row.showOpened(1);
		}
		public void setTooltipForcolSurname(String value)
		{
			super.row.setTooltip(1, value);
		}
		public String getcolSurname()
		{
			return (String)super.row.get(1);
		}
		public void setcolSurname(String value)
		{
			super.row.set(1, value);
		}
		public void setCellcolSurnameTooltip(String value)
		{
			super.row.setTooltip(1, value);
		}
		public void setcolForenameReadOnly(boolean value)
		{
			super.row.setReadOnly(2, value);
		}
		public boolean iscolForenameReadOnly()
		{
			return super.row.isReadOnly(2);
		}
		public void showcolForenameOpened()
		{
			super.row.showOpened(2);
		}
		public void setTooltipForcolForename(String value)
		{
			super.row.setTooltip(2, value);
		}
		public String getcolForename()
		{
			return (String)super.row.get(2);
		}
		public void setcolForename(String value)
		{
			super.row.set(2, value);
		}
		public void setCellcolForenameTooltip(String value)
		{
			super.row.setTooltip(2, value);
		}
		public void setcolSexReadOnly(boolean value)
		{
			super.row.setReadOnly(3, value);
		}
		public boolean iscolSexReadOnly()
		{
			return super.row.isReadOnly(3);
		}
		public void showcolSexOpened()
		{
			super.row.showOpened(3);
		}
		public void setTooltipForcolSex(String value)
		{
			super.row.setTooltip(3, value);
		}
		public String getcolSex()
		{
			return (String)super.row.get(3);
		}
		public void setcolSex(String value)
		{
			super.row.set(3, value);
		}
		public void setCellcolSexTooltip(String value)
		{
			super.row.setTooltip(3, value);
		}
		public void setcolDobReadOnly(boolean value)
		{
			super.row.setReadOnly(4, value);
		}
		public boolean iscolDobReadOnly()
		{
			return super.row.isReadOnly(4);
		}
		public void showcolDobOpened()
		{
			super.row.showOpened(4);
		}
		public void setTooltipForcolDob(String value)
		{
			super.row.setTooltip(4, value);
		}
		public String getcolDob()
		{
			return (String)super.row.get(4);
		}
		public void setcolDob(String value)
		{
			super.row.set(4, value);
		}
		public void setCellcolDobTooltip(String value)
		{
			super.row.setTooltip(4, value);
		}
		public void setColAgeReadOnly(boolean value)
		{
			super.row.setReadOnly(5, value);
		}
		public boolean isColAgeReadOnly()
		{
			return super.row.isReadOnly(5);
		}
		public void showColAgeOpened()
		{
			super.row.showOpened(5);
		}
		public void setTooltipForColAge(String value)
		{
			super.row.setTooltip(5, value);
		}
		public String getColAge()
		{
			return (String)super.row.get(5);
		}
		public void setColAge(String value)
		{
			super.row.set(5, value);
		}
		public void setCellColAgeTooltip(String value)
		{
			super.row.setTooltip(5, value);
		}
		public void setcolClinicReadOnly(boolean value)
		{
			super.row.setReadOnly(6, value);
		}
		public boolean iscolClinicReadOnly()
		{
			return super.row.isReadOnly(6);
		}
		public void showcolClinicOpened()
		{
			super.row.showOpened(6);
		}
		public void setTooltipForcolClinic(String value)
		{
			super.row.setTooltip(6, value);
		}
		public String getcolClinic()
		{
			return (String)super.row.get(6);
		}
		public void setcolClinic(String value)
		{
			super.row.set(6, value);
		}
		public void setCellcolClinicTooltip(String value)
		{
			super.row.setTooltip(6, value);
		}
		public void setcolSpecialtyReadOnly(boolean value)
		{
			super.row.setReadOnly(7, value);
		}
		public boolean iscolSpecialtyReadOnly()
		{
			return super.row.isReadOnly(7);
		}
		public void showcolSpecialtyOpened()
		{
			super.row.showOpened(7);
		}
		public void setTooltipForcolSpecialty(String value)
		{
			super.row.setTooltip(7, value);
		}
		public String getcolSpecialty()
		{
			return (String)super.row.get(7);
		}
		public void setcolSpecialty(String value)
		{
			super.row.set(7, value);
		}
		public void setCellcolSpecialtyTooltip(String value)
		{
			super.row.setTooltip(7, value);
		}
		public void setcolClinicDateReadOnly(boolean value)
		{
			super.row.setReadOnly(8, value);
		}
		public boolean iscolClinicDateReadOnly()
		{
			return super.row.isReadOnly(8);
		}
		public void showcolClinicDateOpened()
		{
			super.row.showOpened(8);
		}
		public void setTooltipForcolClinicDate(String value)
		{
			super.row.setTooltip(8, value);
		}
		public String getcolClinicDate()
		{
			return (String)super.row.get(8);
		}
		public void setcolClinicDate(String value)
		{
			super.row.set(8, value);
		}
		public void setCellcolClinicDateTooltip(String value)
		{
			super.row.setTooltip(8, value);
		}
		public void setcolDocStatusReadOnly(boolean value)
		{
			super.row.setReadOnly(9, value);
		}
		public boolean iscolDocStatusReadOnly()
		{
			return super.row.isReadOnly(9);
		}
		public void showcolDocStatusOpened()
		{
			super.row.showOpened(9);
		}
		public void setTooltipForcolDocStatus(String value)
		{
			super.row.setTooltip(9, value);
		}
		public ims.framework.utils.Image getcolDocStatus()
		{
			return (ims.framework.utils.Image)super.row.get(9);
		}
		public void setcolDocStatus(ims.framework.utils.Image value)
		{
			super.row.set(9, value);
		}
		public void setCellcolDocStatusTooltip(String value)
		{
			super.row.setTooltip(9, value);
		}
		public ims.core.vo.OutPatientAttendanceVo getValue()
		{
			return (ims.core.vo.OutPatientAttendanceVo)super.row.getValue();
		}
		public void setValue(ims.core.vo.OutPatientAttendanceVo value)
		{
			super.row.setValue(value);
		}
	}
	public static class grdOutPatientRowCollection extends GridRowCollectionBridge
	{
		private static final long serialVersionUID = 1L;
		
		private grdOutPatientRowCollection(GridRowCollection collection)
		{
			super(collection);
		}
		public grdOutPatientRow get(int index)
		{
			return new grdOutPatientRow(super.collection.get(index));
		}
		public grdOutPatientRow newRow()
		{
			return new grdOutPatientRow(super.collection.newRow());
		}
		public grdOutPatientRow newRow(boolean autoSelect)
		{
			return new grdOutPatientRow(super.collection.newRow(autoSelect));
		}
		public grdOutPatientRow newRowAt(int index)
		{
			return new grdOutPatientRow(super.collection.newRowAt(index));
		}
		public grdOutPatientRow newRowAt(int index, boolean autoSelect)
		{
			return new grdOutPatientRow(super.collection.newRowAt(index, autoSelect));
		}
	}
	public static class grdOutPatientGrid extends GridBridge
	{
		private static final long serialVersionUID = 1L;
		
		public void setcolHospnumCaption(String value)
		{
			this.grid.setColumnCaption(0, value);
		}
		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);
		}
		public ims.core.vo.OutPatientAttendanceVoCollection getValues()
		{
			ims.core.vo.OutPatientAttendanceVoCollection listOfValues = new ims.core.vo.OutPatientAttendanceVoCollection();
			for(int x = 0; x < this.getRows().size(); x++)
			{
				listOfValues.add(this.getRows().get(x).getValue());
			}
			return listOfValues;
		}
		public ims.core.vo.OutPatientAttendanceVo getValue()
		{
			return (ims.core.vo.OutPatientAttendanceVo)super.grid.getValue();
		}
		public void setValue(ims.core.vo.OutPatientAttendanceVo value)
		{
			super.grid.setValue(value);
		}
		public grdOutPatientRow getSelectedRow()
		{
			return super.grid.getSelectedRow() == null ? null : new grdOutPatientRow(super.grid.getSelectedRow());
		}
		public int getSelectedRowIndex()
		{
			return super.grid.getSelectedRowIndex();
		}
		public grdOutPatientRowCollection getRows()
		{
			return new grdOutPatientRowCollection(super.grid.getRows());
		}
		public grdOutPatientRow getRowByValue(ims.core.vo.OutPatientAttendanceVo value)
		{
			GridRow row = super.grid.getRowByValue(value);
			return row == null?null:new grdOutPatientRow(row);
		}
		public void setcolHospnumHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(0, value);
		}
		public String getcolHospnumHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(0);
		}
		public void setcolSurnameHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(1, value);
		}
		public String getcolSurnameHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(1);
		}
		public void setcolForenameHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(2, value);
		}
		public String getcolForenameHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(2);
		}
		public void setcolSexHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(3, value);
		}
		public String getcolSexHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(3);
		}
		public void setcolDobHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(4, value);
		}
		public String getcolDobHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(4);
		}
		public void setColAgeHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(5, value);
		}
		public String getColAgeHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(5);
		}
		public void setcolClinicHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(6, value);
		}
		public String getcolClinicHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(6);
		}
		public void setcolSpecialtyHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(7, value);
		}
		public String getcolSpecialtyHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(7);
		}
		public void setcolClinicDateHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(8, value);
		}
		public String getcolClinicDateHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(8);
		}
		public void setcolDocStatusHeaderTooltip(String value)
		{
			super.grid.setColumnHeaderTooltip(9, value);
		}
		public String getcolDocStatusHeaderTooltip()
		{
			return super.grid.getColumnHeaderTooltip(9);
		}
	}
	private void validateContext(ims.framework.Context context)
	{
		if(context == null)
			return;
		if(!context.isValidContextType(ims.core.admin.pas.vo.PASEventRefVo.class))
			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.admin.pas.vo.PASEventRefVo' of the global context variable 'Core.PasEvent' is not supported.");
		if(!context.isValidContextType(ims.correspondence.vo.CorrespondenceDetailsRefVo.class))
			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.correspondence.vo.CorrespondenceDetailsRefVo' of the global context variable 'Correspondence.CorrespondenceDetails' is not supported.");
		if(!context.isValidContextType(ims.core.vo.PatientListsFilterVo.class))
			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.PatientListsFilterVo' of the global context variable 'Correspondence.PatientListSearchCriteria' 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.OutPatientListSearchCriteriaVo.class))
			throw new ims.framework.exceptions.CodingRuntimeException("The type 'ims.core.vo.OutPatientListSearchCriteriaVo' of the global context variable 'Core.OutPatientSearchCriteria' 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);

		form.setDarkHeight(105);
		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.contextMenuADTMenu = factory.createMenu(startControlID.intValue() + 1);
		contextMenus.contextMenuADTMenuAdmitItem = factory.createMenuItem(startControlID.intValue() + 1, "Admit Patient", true, false, null, true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuAdmitItem);
		contextMenus.contextMenuADTMenuTransferItem = factory.createMenuItem(startControlID.intValue() + 2, "Transfer Patient", true, false, new Integer(102112), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(1690002)))
			contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuTransferItem);
		contextMenus.contextMenuADTMenuDischargeItem = factory.createMenuItem(startControlID.intValue() + 3, "Discharge Patient", true, false, new Integer(102209), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuDischargeItem);
		contextMenus.contextMenuADTMenuDemographicsItem = factory.createMenuItem(startControlID.intValue() + 4, "Show Demographics", true, false, new Integer(103133), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuDemographicsItem);
		contextMenus.contextMenuADTMenuAddItem = factory.createMenuItem(startControlID.intValue() + 5, "New Correspondence", true, false, new Integer(111108), true, true);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuAddItem);
		contextMenus.contextMenuADTMenuViewItem = factory.createMenuItem(startControlID.intValue() + 6, "View Correspondence", true, false, new Integer(102223), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuViewItem);
		contextMenus.contextMenuADTMenuSetLetterRequiredItem = factory.createMenuItem(startControlID.intValue() + 7, "Set Letter Required", true, false, new Integer(102209), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuSetLetterRequiredItem);
		contextMenus.contextMenuADTMenuSetNoLetterRequiredItem = factory.createMenuItem(startControlID.intValue() + 8, "Set `No Letter Required", true, false, new Integer(111104), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuSetNoLetterRequiredItem);
		contextMenus.contextMenuADTMenuPreviewDocumentItem = factory.createMenuItem(startControlID.intValue() + 9, "Preview Document", true, false, new Integer(102221), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuPreviewDocumentItem);
		contextMenus.contextMenuADTMenuViewDocumentStatusHistoryItem = factory.createMenuItem(startControlID.intValue() + 10, "View Document Status History", true, false, new Integer(102202), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuViewDocumentStatusHistoryItem);
		contextMenus.contextMenuADTMenuEditDocumentStatusHistoryItem = factory.createMenuItem(startControlID.intValue() + 11, "Edit Document Status History", true, false, new Integer(102150), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuEditDocumentStatusHistoryItem);
		contextMenus.contextMenuADTMenuEditItem = factory.createMenuItem(startControlID.intValue() + 12, "Edit Correspondence", true, false, new Integer(103102), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuEditItem);
		contextMenus.contextMenuADTMenuBatchupdateofstatustoDictatedItem = factory.createMenuItem(startControlID.intValue() + 13, "Batch update of status to (Dictated)", true, false, new Integer(103102), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuBatchupdateofstatustoDictatedItem);
		contextMenus.contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem = factory.createMenuItem(startControlID.intValue() + 14, "Batch update of status to (No Letter Required)", true, false, new Integer(103102), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem);
		contextMenus.contextMenuADTMenuBatchupdateofstatustoSignedItem = factory.createMenuItem(startControlID.intValue() + 15, "Batch update of status to (Signed)", true, false, new Integer(103102), true, false);
		contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuBatchupdateofstatustoSignedItem);
		contextMenus.contextMenuADTMenuCancelAdmissionItem = factory.createMenuItem(startControlID.intValue() + 16, "Cancel Admission", true, false, new Integer(102249), true, false);
		if(factory.getUIEngine().getLoggedInRole().hasMenuActionRight(appForm, new ims.framework.MenuAction(1690001)))
			contextMenus.contextMenuADTMenu.add(contextMenus.contextMenuADTMenuCancelAdmissionItem);
		form.registerMenu(contextMenus.contextMenuADTMenu);


		// Label Controls
		RuntimeAnchoring anchoringHelper1 = new RuntimeAnchoring(designSize, runtimeSize, 575, 56, 26, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1000), new Integer(anchoringHelper1.getX()), new Integer(anchoringHelper1.getY()), new Integer(anchoringHelper1.getWidth()), new Integer(anchoringHelper1.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, " To:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper2 = new RuntimeAnchoring(designSize, runtimeSize, 576, 26, 38, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1001), new Integer(anchoringHelper2.getX()), new Integer(anchoringHelper2.getY()), new Integer(anchoringHelper2.getWidth()), new Integer(anchoringHelper2.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "From:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper3 = new RuntimeAnchoring(designSize, runtimeSize, 576, 40, 65, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1002), new Integer(anchoringHelper3.getX()), new Integer(anchoringHelper3.getY()), new Integer(anchoringHelper3.getWidth()), new Integer(anchoringHelper3.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Appt. Date", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper4 = new RuntimeAnchoring(designSize, runtimeSize, 576, 10, 65, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1003), new Integer(anchoringHelper4.getX()), new Integer(anchoringHelper4.getY()), new Integer(anchoringHelper4.getWidth()), new Integer(anchoringHelper4.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Appt. Date", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper5 = new RuntimeAnchoring(designSize, runtimeSize, 278, 74, 97, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1004), new Integer(anchoringHelper5.getX()), new Integer(anchoringHelper5.getY()), new Integer(anchoringHelper5.getWidth()), new Integer(anchoringHelper5.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Status of Letter:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper6 = new RuntimeAnchoring(designSize, runtimeSize, 278, 40, 74, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1005), new Integer(anchoringHelper6.getX()), new Integer(anchoringHelper6.getY()), new Integer(anchoringHelper6.getWidth()), new Integer(anchoringHelper6.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Dictated By:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper7 = new RuntimeAnchoring(designSize, runtimeSize, 278, 10, 60, 17, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1006), new Integer(anchoringHelper7.getX()), new Integer(anchoringHelper7.getY()), new Integer(anchoringHelper7.getWidth()), new Integer(anchoringHelper7.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, "Specialty:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper8 = new RuntimeAnchoring(designSize, runtimeSize, 4, 75, 70, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1007), new Integer(anchoringHelper8.getX()), new Integer(anchoringHelper8.getY()), new Integer(anchoringHelper8.getWidth()), new Integer(anchoringHelper8.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, "Consultant:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper9 = new RuntimeAnchoring(designSize, runtimeSize, 4, 9, 57, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1008), new Integer(anchoringHelper9.getX()), new Integer(anchoringHelper9.getY()), new Integer(anchoringHelper9.getWidth()), new Integer(anchoringHelper9.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, "Location:", new Integer(1), null, new Integer(0)}));
		RuntimeAnchoring anchoringHelper10 = new RuntimeAnchoring(designSize, runtimeSize, 4, 41, 39, 17, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		super.addControl(factory.getControl(Label.class, new Object[] { control, new Integer(startControlID.intValue() + 1009), new Integer(anchoringHelper10.getX()), new Integer(anchoringHelper10.getY()), new Integer(anchoringHelper10.getWidth()), new Integer(anchoringHelper10.getHeight()), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT, "Clinic:", new Integer(1), null, new Integer(0)}));

		// Date Controls
		RuntimeAnchoring anchoringHelper11 = new RuntimeAnchoring(designSize, runtimeSize, 664, 40, 120, 20, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(DateControl.class, new Object[] { control, new Integer(startControlID.intValue() + 1010), new Integer(anchoringHelper11.getX()), new Integer(anchoringHelper11.getY()), new Integer(anchoringHelper11.getWidth()), new Integer(anchoringHelper11.getHeight()), new Integer(startTabIndex.intValue() + 13), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,Boolean.TRUE, null, Boolean.FALSE, null, Boolean.TRUE, null}));
		RuntimeAnchoring anchoringHelper12 = new RuntimeAnchoring(designSize, runtimeSize, 664, 8, 120, 20, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(DateControl.class, new Object[] { control, new Integer(startControlID.intValue() + 1011), new Integer(anchoringHelper12.getX()), new Integer(anchoringHelper12.getY()), new Integer(anchoringHelper12.getWidth()), new Integer(anchoringHelper12.getHeight()), new Integer(startTabIndex.intValue() + 11), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,Boolean.TRUE, null, Boolean.FALSE, null, Boolean.FALSE, null}));

		// ComboBox Controls
		RuntimeAnchoring anchoringHelper13 = new RuntimeAnchoring(designSize, runtimeSize, 374, 72, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		ComboBox m_cmbStatusOfLetterTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1012), new Integer(anchoringHelper13.getX()), new Integer(anchoringHelper13.getY()), new Integer(anchoringHelper13.getWidth()), new Integer(anchoringHelper13.getHeight()), new Integer(startTabIndex.intValue() + 9), ControlState.UNKNOWN, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPRIGHT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
		addControl(m_cmbStatusOfLetterTemp);
		cmbStatusOfLetterComboBox cmbStatusOfLetter = (cmbStatusOfLetterComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbStatusOfLetterComboBox.class, m_cmbStatusOfLetterTemp);
		super.addComboBox(cmbStatusOfLetter);
		RuntimeAnchoring anchoringHelper14 = new RuntimeAnchoring(designSize, runtimeSize, 72, 40, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		ComboBox m_cmbClinicTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1013), new Integer(anchoringHelper14.getX()), new Integer(anchoringHelper14.getY()), new Integer(anchoringHelper14.getWidth()), new Integer(anchoringHelper14.getHeight()), new Integer(startTabIndex.intValue() + 2), ControlState.UNKNOWN, 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_cmbClinicTemp);
		cmbClinicComboBox cmbClinic = (cmbClinicComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbClinicComboBox.class, m_cmbClinicTemp);
		super.addComboBox(cmbClinic);
		RuntimeAnchoring anchoringHelper15 = new RuntimeAnchoring(designSize, runtimeSize, 72, 72, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		ComboBox m_cmbConsultantTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1014), new Integer(anchoringHelper15.getX()), new Integer(anchoringHelper15.getY()), new Integer(anchoringHelper15.getWidth()), new Integer(anchoringHelper15.getHeight()), new Integer(startTabIndex.intValue() + 4), ControlState.UNKNOWN, 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_cmbConsultantTemp);
		cmbConsultantComboBox cmbConsultant = (cmbConsultantComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbConsultantComboBox.class, m_cmbConsultantTemp);
		super.addComboBox(cmbConsultant);
		RuntimeAnchoring anchoringHelper16 = new RuntimeAnchoring(designSize, runtimeSize, 374, 8, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		ComboBox m_cmbSpecialtyTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1015), new Integer(anchoringHelper16.getX()), new Integer(anchoringHelper16.getY()), new Integer(anchoringHelper16.getWidth()), new Integer(anchoringHelper16.getHeight()), new Integer(startTabIndex.intValue() + 6), ControlState.UNKNOWN, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPRIGHT ,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
		addControl(m_cmbSpecialtyTemp);
		cmbSpecialtyComboBox cmbSpecialty = (cmbSpecialtyComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbSpecialtyComboBox.class, m_cmbSpecialtyTemp);
		super.addComboBox(cmbSpecialty);
		RuntimeAnchoring anchoringHelper17 = new RuntimeAnchoring(designSize, runtimeSize, 72, 8, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		ComboBox m_cmbLocationTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1016), new Integer(anchoringHelper17.getX()), new Integer(anchoringHelper17.getY()), new Integer(anchoringHelper17.getWidth()), new Integer(anchoringHelper17.getHeight()), new Integer(startTabIndex.intValue() + 1), ControlState.UNKNOWN, ControlState.UNKNOWN,ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT ,Boolean.TRUE, Boolean.TRUE, SortOrder.NONE, Boolean.FALSE, new Integer(1), null, Boolean.FALSE, new Integer(-1)});
		addControl(m_cmbLocationTemp);
		cmbLocationComboBox cmbLocation = (cmbLocationComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(cmbLocationComboBox.class, m_cmbLocationTemp);
		super.addComboBox(cmbLocation);

		// Query ComboBox Controls
		RuntimeAnchoring anchoringHelper18 = new RuntimeAnchoring(designSize, runtimeSize, 374, 40, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		ComboBox m_qmbDictatedByTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1017), new Integer(anchoringHelper18.getX()), new Integer(anchoringHelper18.getY()), new Integer(anchoringHelper18.getWidth()), new Integer(anchoringHelper18.getHeight()), new Integer(startTabIndex.intValue() + 7), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPRIGHT,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.TRUE, new Integer(1), null, Boolean.FALSE, new Integer(-1), Boolean.FALSE});
		addControl(m_qmbDictatedByTemp);
		qmbDictatedByComboBox qmbDictatedBy = (qmbDictatedByComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(qmbDictatedByComboBox.class, m_qmbDictatedByTemp);
		super.addComboBox(qmbDictatedBy);
		RuntimeAnchoring anchoringHelper19 = new RuntimeAnchoring(designSize, runtimeSize, 72, 40, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		ComboBox m_qmbClinicTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1018), new Integer(anchoringHelper19.getX()), new Integer(anchoringHelper19.getY()), new Integer(anchoringHelper19.getWidth()), new Integer(anchoringHelper19.getHeight()), new Integer(startTabIndex.intValue() + 3), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.TRUE, new Integer(1), null, Boolean.FALSE, new Integer(-1), Boolean.FALSE});
		addControl(m_qmbClinicTemp);
		qmbClinicComboBox qmbClinic = (qmbClinicComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(qmbClinicComboBox.class, m_qmbClinicTemp);
		super.addComboBox(qmbClinic);
		RuntimeAnchoring anchoringHelper20 = new RuntimeAnchoring(designSize, runtimeSize, 72, 72, 192, 21, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT);
		ComboBox m_qmbConsultantTemp = (ComboBox)factory.getControl(ComboBox.class, new Object[] { control, new Integer(startControlID.intValue() + 1019), new Integer(anchoringHelper20.getX()), new Integer(anchoringHelper20.getY()), new Integer(anchoringHelper20.getWidth()), new Integer(anchoringHelper20.getHeight()), new Integer(startTabIndex.intValue() + 5), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.TOPLEFTRIGHT,Boolean.TRUE, Boolean.FALSE, SortOrder.NONE, Boolean.TRUE, new Integer(1), null, Boolean.FALSE, new Integer(-1), Boolean.FALSE});
		addControl(m_qmbConsultantTemp);
		qmbConsultantComboBox qmbConsultant = (qmbConsultantComboBox)ComboBoxFlyweightFactory.getInstance().createComboBoxBridge(qmbConsultantComboBox.class, m_qmbConsultantTemp);
		super.addComboBox(qmbConsultant);

		// Grid Controls
		RuntimeAnchoring anchoringHelper21 = new RuntimeAnchoring(designSize, runtimeSize, 8, 112, 832, 504, ims.framework.enumerations.ControlAnchoring.ALL);
		Grid m_grdOutPatientTemp = (Grid)factory.getControl(Grid.class, new Object[] { control, new Integer(startControlID.intValue() + 1020), new Integer(anchoringHelper21.getX()), new Integer(anchoringHelper21.getY()), new Integer(anchoringHelper21.getWidth()), new Integer(anchoringHelper21.getHeight()), new Integer(startTabIndex.intValue() + 19), ControlState.UNKNOWN, ControlState.UNKNOWN, ims.framework.enumerations.ControlAnchoring.ALL,Boolean.TRUE, Boolean.FALSE, new Integer(24), Boolean.TRUE, contextMenus.contextMenuADTMenu, Boolean.FALSE, Boolean.FALSE, new Integer(0), null, Boolean.FALSE, Boolean.TRUE});
		addControl(m_grdOutPatientTemp);
		grdOutPatientGrid grdOutPatient = (grdOutPatientGrid)GridFlyweightFactory.getInstance().createGridBridge(grdOutPatientGrid.class, m_grdOutPatientTemp);
		grdOutPatient.addStringColumn("Hospital Number", 0, 0, 100, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Surname", 0, 0, 120, true, false, 1, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Forename", 0, 0, 100, true, false, 1, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Sex", 0, 0, 55, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("DOB", 0, 0, 70, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Age", 0, 0, 38, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Clinic", 0, 0, 120, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Specialty", 0, 0, 115, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addStringColumn("Clinic Date", 0, 0, 75, true, false, 0, 0, true, ims.framework.enumerations.CharacterCasing.NORMAL);
		grdOutPatient.addImageColumn(" ", 0, 0, -1, true, 0);
		super.addGrid(grdOutPatient);

		// Image Buttons Controls
		RuntimeAnchoring anchoringHelper22 = new RuntimeAnchoring(designSize, runtimeSize, 800, 44, 30, 30, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(ImageButton.class, new Object[] { control, new Integer(startControlID.intValue() + 1021), new Integer(anchoringHelper22.getX()), new Integer(anchoringHelper22.getY()), new Integer(anchoringHelper22.getWidth()), new Integer(anchoringHelper22.getHeight()), new Integer(startTabIndex.intValue() + 17), ControlState.UNKNOWN, ControlState.ENABLED, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, this.getImages().Core.ClearEnabled24, this.getImages().Core.ClearDisabled24, "Clear search criteria and ward list", Boolean.FALSE, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null}));
		RuntimeAnchoring anchoringHelper23 = new RuntimeAnchoring(designSize, runtimeSize, 800, 12, 30, 30, ims.framework.enumerations.ControlAnchoring.TOPRIGHT);
		super.addControl(factory.getControl(ImageButton.class, new Object[] { control, new Integer(startControlID.intValue() + 1022), new Integer(anchoringHelper23.getX()), new Integer(anchoringHelper23.getY()), new Integer(anchoringHelper23.getWidth()), new Integer(anchoringHelper23.getHeight()), new Integer(startTabIndex.intValue() + 15), ControlState.UNKNOWN, ControlState.ENABLED, ims.framework.enumerations.ControlAnchoring.TOPRIGHT, this.getImages().Core.FindEnabled24, this.getImages().Core.FindDisabled24, "List Outpatients matching search criteria", Boolean.FALSE, Boolean.FALSE, Boolean.TRUE, Boolean.FALSE, null}));
	}



	public Forms getForms()
	{
		return (Forms)super.getFormReferences();
	}

	public Images getImages()
	{
		return (Images)super.getImageReferences();
	}
	public Label lbl3()
	{
		return (Label)super.getControl(9);
	}
	public DateControl dteApptDateTo()
	{
		return (DateControl)super.getControl(10);
	}
	public DateControl dteApptDateFrom()
	{
		return (DateControl)super.getControl(11);
	}
	public cmbStatusOfLetterComboBox cmbStatusOfLetter()
	{
		return (cmbStatusOfLetterComboBox)super.getComboBox(0);
	}
	public cmbClinicComboBox cmbClinic()
	{
		return (cmbClinicComboBox)super.getComboBox(1);
	}
	public cmbConsultantComboBox cmbConsultant()
	{
		return (cmbConsultantComboBox)super.getComboBox(2);
	}
	public cmbSpecialtyComboBox cmbSpecialty()
	{
		return (cmbSpecialtyComboBox)super.getComboBox(3);
	}
	public cmbLocationComboBox cmbLocation()
	{
		return (cmbLocationComboBox)super.getComboBox(4);
	}
	public qmbDictatedByComboBox qmbDictatedBy()
	{
		return (qmbDictatedByComboBox)super.getComboBox(5);
	}
	public qmbClinicComboBox qmbClinic()
	{
		return (qmbClinicComboBox)super.getComboBox(6);
	}
	public qmbConsultantComboBox qmbConsultant()
	{
		return (qmbConsultantComboBox)super.getComboBox(7);
	}
	public grdOutPatientGrid grdOutPatient()
	{
		return (grdOutPatientGrid)super.getGrid(0);
	}
	public ImageButton imbClear()
	{
		return (ImageButton)super.getControl(21);
	}
	public ImageButton imbSearch()
	{
		return (ImageButton)super.getControl(22);
	}

	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()
		{
			Correspondence = new CorrespondenceForms();
		}
		public final class CorrespondenceForms implements java.io.Serializable
		{
			private static final long serialVersionUID = 1L;
			private CorrespondenceForms()
			{
				BatchUpdatePatientLists = new LocalFormName(111127);
				CorrespondenceDetail = new LocalFormName(111101);
				DocumentStatusDlg = new LocalFormName(111122);
			}
			public final FormName BatchUpdatePatientLists;
			public final FormName CorrespondenceDetail;
			public final FormName DocumentStatusDlg;
		}

		public CorrespondenceForms Correspondence;
	}


	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)
			{
				super(id, path, width, height);
			}
		}
		private Images()
		{
			Core = new CoreImages();
		}
		public final class CoreImages implements java.io.Serializable
		{
			private static final long serialVersionUID = 1L;
			private CoreImages()
			{
				FindDisabled24 = new ImageHelper(102172, "Images/Core/FindDisabled_24.png", new Integer(24), new Integer(24));
				FindEnabled24 = new ImageHelper(102175, "Images/Core/Find_24.png", new Integer(24), new Integer(24));
				ClearDisabled24 = new ImageHelper(102173, "Images/Core/ClearDisabled_24.png", new Integer(24), new Integer(24));
				ClearEnabled24 = new ImageHelper(102174, "Images/Core/ClearEnabled_24.png", new Integer(24), new Integer(24));
			}
			public final ims.framework.utils.Image FindDisabled24;
			public final ims.framework.utils.Image FindEnabled24;
			public final ims.framework.utils.Image ClearDisabled24;
			public final ims.framework.utils.Image ClearEnabled24;
		}
		public final CoreImages Core;
	}
	public GlobalContext getGlobalContext()
	{
		return this.globalContext;
	}
	public static class GlobalContextBridge extends ContextBridge
	{
		private static final long serialVersionUID = 1L;
	}
	public LocalContext getLocalContext()
	{
		return (LocalContext)super.getLocalCtx();
	}
	public class LocalContext extends ContextBridge
	{
		private static final long serialVersionUID = 1L;
		
		public LocalContext(Context context, ims.framework.FormInfo formInfo, String componentIdentifier)
		{
			super.setContext(context);
			String prefix = formInfo.getLocalVariablesPrefix();
			cxl_UserAccessVo = new ims.framework.ContextVariable("UserAccessVo", prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__UserAccessVo_" + componentIdentifier + "");
			cxl_SelectedCorrespondenceInstance = new ims.framework.ContextVariable("SelectedCorrespondenceInstance", prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier + "");
		}
		
		public boolean getUserAccessVoIsNotNull()
		{
			return !cxl_UserAccessVo.getValueIsNull(context);
		}
		public ims.correspondence.vo.UserAccessVo getUserAccessVo()
		{
			return (ims.correspondence.vo.UserAccessVo)cxl_UserAccessVo.getValue(context);
		}
		public void setUserAccessVo(ims.correspondence.vo.UserAccessVo value)
		{
			cxl_UserAccessVo.setValue(context, value);
		}
		private ims.framework.ContextVariable cxl_UserAccessVo = null;
		public boolean getSelectedCorrespondenceInstanceIsNotNull()
		{
			return !cxl_SelectedCorrespondenceInstance.getValueIsNull(context);
		}
		public ims.correspondence.vo.CorrespondenceDetailsVo getSelectedCorrespondenceInstance()
		{
			return (ims.correspondence.vo.CorrespondenceDetailsVo)cxl_SelectedCorrespondenceInstance.getValue(context);
		}
		public void setSelectedCorrespondenceInstance(ims.correspondence.vo.CorrespondenceDetailsVo value)
		{
			cxl_SelectedCorrespondenceInstance.setValue(context, value);
		}
		private ims.framework.ContextVariable cxl_SelectedCorrespondenceInstance = null;
	}

	public final class ContextMenus implements java.io.Serializable
	{
		private static final long serialVersionUID = 1L;
		public final class ADTMenu implements java.io.Serializable
		{
			private static final long serialVersionUID = 1L;
			public static final int Admit = 1;
			public static final int Transfer = 2;
			public static final int Discharge = 3;
			public static final int Demographics = 4;
			public static final int Add = 5;
			public static final int View = 6;
			public static final int SetLetterRequired = 7;
			public static final int SetNoLetterRequired = 8;
			public static final int PreviewDocument = 9;
			public static final int ViewDocumentStatusHistory = 10;
			public static final int EditDocumentStatusHistory = 11;
			public static final int Edit = 12;
			public static final int BatchupdateofstatustoDictated = 13;
			public static final int BatchupdateofstatustoNoLetterRequired = 14;
			public static final int BatchupdateofstatustoSigned = 15;
			public static final int CancelAdmission = 16;
		}
		public void disableAllADTMenuMenuItems()
		{
			this.contextMenuADTMenuAdmitItem.setEnabled(false);
			this.contextMenuADTMenuTransferItem.setEnabled(false);
			this.contextMenuADTMenuDischargeItem.setEnabled(false);
			this.contextMenuADTMenuDemographicsItem.setEnabled(false);
			this.contextMenuADTMenuAddItem.setEnabled(false);
			this.contextMenuADTMenuViewItem.setEnabled(false);
			this.contextMenuADTMenuSetLetterRequiredItem.setEnabled(false);
			this.contextMenuADTMenuSetNoLetterRequiredItem.setEnabled(false);
			this.contextMenuADTMenuPreviewDocumentItem.setEnabled(false);
			this.contextMenuADTMenuViewDocumentStatusHistoryItem.setEnabled(false);
			this.contextMenuADTMenuEditDocumentStatusHistoryItem.setEnabled(false);
			this.contextMenuADTMenuEditItem.setEnabled(false);
			this.contextMenuADTMenuBatchupdateofstatustoDictatedItem.setEnabled(false);
			this.contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem.setEnabled(false);
			this.contextMenuADTMenuBatchupdateofstatustoSignedItem.setEnabled(false);
			this.contextMenuADTMenuCancelAdmissionItem.setEnabled(false);
		}
		public void hideAllADTMenuMenuItems()
		{
			this.contextMenuADTMenuAdmitItem.setVisible(false);
			this.contextMenuADTMenuTransferItem.setVisible(false);
			this.contextMenuADTMenuDischargeItem.setVisible(false);
			this.contextMenuADTMenuDemographicsItem.setVisible(false);
			this.contextMenuADTMenuAddItem.setVisible(false);
			this.contextMenuADTMenuViewItem.setVisible(false);
			this.contextMenuADTMenuSetLetterRequiredItem.setVisible(false);
			this.contextMenuADTMenuSetNoLetterRequiredItem.setVisible(false);
			this.contextMenuADTMenuPreviewDocumentItem.setVisible(false);
			this.contextMenuADTMenuViewDocumentStatusHistoryItem.setVisible(false);
			this.contextMenuADTMenuEditDocumentStatusHistoryItem.setVisible(false);
			this.contextMenuADTMenuEditItem.setVisible(false);
			this.contextMenuADTMenuBatchupdateofstatustoDictatedItem.setVisible(false);
			this.contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem.setVisible(false);
			this.contextMenuADTMenuBatchupdateofstatustoSignedItem.setVisible(false);
			this.contextMenuADTMenuCancelAdmissionItem.setVisible(false);
		}
		private Menu contextMenuADTMenu;
		public MenuItem getADTMenuAdmitItem()
		{
			return this.contextMenuADTMenuAdmitItem;
		}
		private MenuItem contextMenuADTMenuAdmitItem;
		public MenuItem getADTMenuTransferItem()
		{
			return this.contextMenuADTMenuTransferItem;
		}
		private MenuItem contextMenuADTMenuTransferItem;
		public MenuItem getADTMenuDischargeItem()
		{
			return this.contextMenuADTMenuDischargeItem;
		}
		private MenuItem contextMenuADTMenuDischargeItem;
		public MenuItem getADTMenuDemographicsItem()
		{
			return this.contextMenuADTMenuDemographicsItem;
		}
		private MenuItem contextMenuADTMenuDemographicsItem;
		public MenuItem getADTMenuAddItem()
		{
			return this.contextMenuADTMenuAddItem;
		}
		private MenuItem contextMenuADTMenuAddItem;
		public MenuItem getADTMenuViewItem()
		{
			return this.contextMenuADTMenuViewItem;
		}
		private MenuItem contextMenuADTMenuViewItem;
		public MenuItem getADTMenuSetLetterRequiredItem()
		{
			return this.contextMenuADTMenuSetLetterRequiredItem;
		}
		private MenuItem contextMenuADTMenuSetLetterRequiredItem;
		public MenuItem getADTMenuSetNoLetterRequiredItem()
		{
			return this.contextMenuADTMenuSetNoLetterRequiredItem;
		}
		private MenuItem contextMenuADTMenuSetNoLetterRequiredItem;
		public MenuItem getADTMenuPreviewDocumentItem()
		{
			return this.contextMenuADTMenuPreviewDocumentItem;
		}
		private MenuItem contextMenuADTMenuPreviewDocumentItem;
		public MenuItem getADTMenuViewDocumentStatusHistoryItem()
		{
			return this.contextMenuADTMenuViewDocumentStatusHistoryItem;
		}
		private MenuItem contextMenuADTMenuViewDocumentStatusHistoryItem;
		public MenuItem getADTMenuEditDocumentStatusHistoryItem()
		{
			return this.contextMenuADTMenuEditDocumentStatusHistoryItem;
		}
		private MenuItem contextMenuADTMenuEditDocumentStatusHistoryItem;
		public ReadOnlyMenuItem getADTMenuEditItem()
		{
			return this.contextMenuADTMenuEditItem;
		}
		private MenuItem contextMenuADTMenuEditItem;
		public ReadOnlyMenuItem getADTMenuBatchupdateofstatustoDictatedItem()
		{
			return this.contextMenuADTMenuBatchupdateofstatustoDictatedItem;
		}
		private MenuItem contextMenuADTMenuBatchupdateofstatustoDictatedItem;
		public ReadOnlyMenuItem getADTMenuBatchupdateofstatustoNoLetterRequiredItem()
		{
			return this.contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem;
		}
		private MenuItem contextMenuADTMenuBatchupdateofstatustoNoLetterRequiredItem;
		public ReadOnlyMenuItem getADTMenuBatchupdateofstatustoSignedItem()
		{
			return this.contextMenuADTMenuBatchupdateofstatustoSignedItem;
		}
		private MenuItem contextMenuADTMenuBatchupdateofstatustoSignedItem;
		public ReadOnlyMenuItem getADTMenuCancelAdmissionItem()
		{
			return this.contextMenuADTMenuCancelAdmissionItem;
		}
		private MenuItem contextMenuADTMenuCancelAdmissionItem;
	}

	private ContextMenus contextMenus;
	public ContextMenus getContextMenus()
	{
		return this.contextMenus;
	}

	private IReportField[] getFormReportFields()
	{
		if(this.context == null)
			return null;
		if(this.reportFields == null)
			this.reportFields = new ReportFields(this.context, this.formInfo, this.componentIdentifier).getReportFields();
		return this.reportFields;
	}
	private class ReportFields
	{
		public ReportFields(Context context, ims.framework.FormInfo formInfo, String componentIdentifier)
		{
			this.context = context;
			this.formInfo = formInfo;
			this.componentIdentifier = componentIdentifier;
		}
		public IReportField[] getReportFields()
		{
			String prefix = formInfo.getLocalVariablesPrefix();
			IReportField[] fields = new IReportField[96];
			fields[0] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-ID", "ID_Patient");
			fields[1] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-SEX", "Sex");
			fields[2] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-DOB", "Dob");
			fields[3] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-DOD", "Dod");
			fields[4] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-RELIGION", "Religion");
			fields[5] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-ISACTIVE", "IsActive");
			fields[6] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-ETHNICORIGIN", "EthnicOrigin");
			fields[7] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-MARITALSTATUS", "MaritalStatus");
			fields[8] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-SCN", "SCN");
			fields[9] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-SOURCEOFINFORMATION", "SourceOfInformation");
			fields[10] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-TIMEOFDEATH", "TimeOfDeath");
			fields[11] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-ISQUICKREGISTRATIONPATIENT", "IsQuickRegistrationPatient");
			fields[12] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientShort", "BO-1001100000-CURRENTRESPONSIBLECONSULTANT", "CurrentResponsibleConsultant");
			fields[13] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientFilter", "BO-1001100000-ID", "ID_Patient");
			fields[14] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientFilter", "BO-1001100000-SEX", "Sex");
			fields[15] = new ims.framework.ReportField(this.context, "_cvp_Core.PatientFilter", "BO-1001100000-DOB", "Dob");
			fields[16] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-ID", "ID_ClinicalContact");
			fields[17] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-SPECIALTY", "Specialty");
			fields[18] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-CONTACTTYPE", "ContactType");
			fields[19] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-STARTDATETIME", "StartDateTime");
			fields[20] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-ENDDATETIME", "EndDateTime");
			fields[21] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-CARECONTEXT", "CareContext");
			fields[22] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentClinicalContact", "BO-1004100003-ISCLINICALNOTECREATED", "IsClinicalNoteCreated");
			fields[23] = new ims.framework.ReportField(this.context, "_cvp_Core.RecordingHCP", "BO-1006100000-ID", "ID_Hcp");
			fields[24] = new ims.framework.ReportField(this.context, "_cvp_Core.RecordingHCP", "BO-1006100000-HCPTYPE", "HcpType");
			fields[25] = new ims.framework.ReportField(this.context, "_cvp_Core.RecordingHCP", "BO-1006100000-ISACTIVE", "IsActive");
			fields[26] = new ims.framework.ReportField(this.context, "_cvp_Core.RecordingHCP", "BO-1006100000-ISHCPARESPONSIBLEHCP", "IsHCPaResponsibleHCP");
			fields[27] = new ims.framework.ReportField(this.context, "_cvp_Core.RecordingHCP", "BO-1006100000-ISARESPONSIBLEEDCLINICIAN", "IsAResponsibleEDClinician");
			fields[28] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-ID", "ID_CareContext");
			fields[29] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-CONTEXT", "Context");
			fields[30] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-ORDERINGHOSPITAL", "OrderingHospital");
			fields[31] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-ESTIMATEDDISCHARGEDATE", "EstimatedDischargeDate");
			fields[32] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-STARTDATETIME", "StartDateTime");
			fields[33] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-ENDDATETIME", "EndDateTime");
			fields[34] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-LOCATIONTYPE", "LocationType");
			fields[35] = new ims.framework.ReportField(this.context, "_cvp_Core.CurrentCareContext", "BO-1004100019-RESPONSIBLEHCP", "ResponsibleHCP");
			fields[36] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-ID", "ID_EpisodeOfCare");
			fields[37] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-CARESPELL", "CareSpell");
			fields[38] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-SPECIALTY", "Specialty");
			fields[39] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-RELATIONSHIP", "Relationship");
			fields[40] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-STARTDATE", "StartDate");
			fields[41] = new ims.framework.ReportField(this.context, "_cvp_Core.EpisodeofCareShort", "BO-1004100018-ENDDATE", "EndDate");
			fields[42] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-ID", "ID_ClinicalNotes");
			fields[43] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-CLINICALNOTE", "ClinicalNote");
			fields[44] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-NOTETYPE", "NoteType");
			fields[45] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-DISCIPLINE", "Discipline");
			fields[46] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-CLINICALCONTACT", "ClinicalContact");
			fields[47] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-ISDERIVEDNOTE", "IsDerivedNote");
			fields[48] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-FORREVIEW", "ForReview");
			fields[49] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-FORREVIEWDISCIPLINE", "ForReviewDiscipline");
			fields[50] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-REVIEWINGDATETIME", "ReviewingDateTime");
			fields[51] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-ISCORRECTED", "IsCorrected");
			fields[52] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-ISTRANSCRIBED", "IsTranscribed");
			fields[53] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-SOURCEOFNOTE", "SourceOfNote");
			fields[54] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-RECORDINGDATETIME", "RecordingDateTime");
			fields[55] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-INHOSPITALREPORT", "InHospitalReport");
			fields[56] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-CARECONTEXT", "CareContext");
			fields[57] = new ims.framework.ReportField(this.context, "_cvp_Clinical.CurrentClinicalNote", "BO-1011100000-NOTECLASSIFICATION", "NoteClassification");
			fields[58] = new ims.framework.ReportField(this.context, "_cvp_STHK.AvailableBedsListFilter", "BO-1014100009-ID", "ID_BedSpaceState");
			fields[59] = new ims.framework.ReportField(this.context, "_cvp_STHK.PendingEmergencyAdmissionsFilter", "BO-1014100011-ID", "ID_PendingEmergencyAdmission");
			fields[60] = new ims.framework.ReportField(this.context, "_cvp_STHK.PendingEmergencyAdmissionsFilter", "BO-1014100011-ADMISSIONSTATUS", "AdmissionStatus");
			fields[61] = new ims.framework.ReportField(this.context, "_cvp_STHK.PendingDischargesListFilter", "BO-1014100000-ID", "ID_InpatientEpisode");
			fields[62] = new ims.framework.ReportField(this.context, "_cvp_STHK.PendingDischargesListFilter", "BO-1014100000-ESTDISCHARGEDATE", "EstDischargeDate");
			fields[63] = new ims.framework.ReportField(this.context, "_cvp_Clinical.ExtendedClinicalNotesListFilter", "BO-1011100000-ID", "ID_ClinicalNotes");
			fields[64] = new ims.framework.ReportField(this.context, "_cvp_Clinical.ExtendedClinicalNotesListFilter", "BO-1011100000-FORREVIEW", "ForReview");
			fields[65] = new ims.framework.ReportField(this.context, "_cvp_Clinical.ExtendedClinicalNotesListFilter", "BO-1011100000-FORREVIEWDISCIPLINE", "ForReviewDiscipline");
			fields[66] = new ims.framework.ReportField(this.context, "_cvp_Clinical.ExtendedClinicalNotesListFilter", "BO-1011100000-NOTECLASSIFICATION", "NoteClassification");
			fields[67] = new ims.framework.ReportField(this.context, "_cvp_Clinical.ExtendedClinicalNotesListFilter", "BO-1011100000-CARECONTEXT", "CareContext");
			fields[68] = new ims.framework.ReportField(this.context, "_cvp_Core.PasEvent", "BO-1014100003-ID", "ID_PASEvent");
			fields[69] = new ims.framework.ReportField(this.context, "_cvp_Correspondence.CorrespondenceDetails", "BO-1052100001-ID", "ID_CorrespondenceDetails");
			fields[70] = new ims.framework.ReportField(this.context, "_cvp_CareUk.CatsReferral", "BO-1004100035-ID", "ID_CatsReferral");
			fields[71] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-ID", "ID_Patient");
			fields[72] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-SEX", "Sex");
			fields[73] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-DOB", "Dob");
			fields[74] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-DOD", "Dod");
			fields[75] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-RELIGION", "Religion");
			fields[76] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-ISACTIVE", "IsActive");
			fields[77] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-ETHNICORIGIN", "EthnicOrigin");
			fields[78] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-MARITALSTATUS", "MaritalStatus");
			fields[79] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-SCN", "SCN");
			fields[80] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-SOURCEOFINFORMATION", "SourceOfInformation");
			fields[81] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-TIMEOFDEATH", "TimeOfDeath");
			fields[82] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-ISQUICKREGISTRATIONPATIENT", "IsQuickRegistrationPatient");
			fields[83] = new ims.framework.ReportField(this.context, "_cv_Core.PatientToBeDisplayed", "BO-1001100000-CURRENTRESPONSIBLECONSULTANT", "CurrentResponsibleConsultant");
			fields[84] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__UserAccessVo_" + componentIdentifier, "BO-1053100011-ID", "ID_UserAccess");
			fields[85] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__UserAccessVo_" + componentIdentifier, "BO-1053100011-APPUSER", "AppUser");
			fields[86] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-ID", "ID_CorrespondenceDetails");
			fields[87] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-PASEVENT", "PasEvent");
			fields[88] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-CURRENTSTATUS", "CurrentStatus");
			fields[89] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-SPECIALINTEREST", "SpecialInterest");
			fields[90] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-DATEOFCLINIC", "DateOfClinic");
			fields[91] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-ADMISSIONDATE", "AdmissionDate");
			fields[92] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-DISCHARGEDATE", "DischargeDate");
			fields[93] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-DICTATEDBYINITIALS", "DictatedByInitials");
			fields[94] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-TYPEDBYINITIALS", "TypedByInitials");
			fields[95] = new ims.framework.ReportField(this.context, prefix + "_lv_Correspondence.CorrespondenceOutpatientList.__internal_x_context__SelectedCorrespondenceInstance_" + componentIdentifier, "BO-1052100001-WASTYPEDWITHOUTCASENOTES", "WasTypedWithoutCaseNotes");
			return fields;
		}
		protected Context context = null;
		protected ims.framework.FormInfo formInfo;
		protected String componentIdentifier;
	}
	public String getUniqueIdentifier()
	{
		return null;
	}
	private Context context = null;
	private ims.framework.FormInfo formInfo = null;
	private String componentIdentifier;
	private GlobalContext globalContext = null;
	private IReportField[] reportFields = null;
}
