/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/emergency/vo/lookups/TriageTabs.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.emergency.vo.lookups;

import ims.framework.cn.data.TreeNode;
import java.util.ArrayList;
import ims.framework.utils.Image;
import ims.framework.utils.Color;

public class TriageTabs extends ims.vo.LookupInstVo implements TreeNode
{
	private static final long serialVersionUID = 1L;

	public TriageTabs()
	{
		super();
	}
	public TriageTabs(int id)
	{
		super(id, "", true);
	}
	public TriageTabs(int id, String text, boolean active)
	{
		super(id, text, active, null, null, null);
	}
	public TriageTabs(int id, String text, boolean active, TriageTabs parent, Image image)
	{
		super(id, text, active, parent, image);
	}
	public TriageTabs(int id, String text, boolean active, TriageTabs parent, Image image, Color color)
	{
		super(id, text, active, parent, image, color);
	}
	public TriageTabs(int id, String text, boolean active, TriageTabs parent, Image image, Color color, int order)
	{
		super(id, text, active, parent, image, color, order);
	}
	public static TriageTabs buildLookup(ims.vo.LookupInstanceBean bean)
	{
		return new TriageTabs(bean.getId(), bean.getText(), bean.isActive());
	}
	public String toString()
	{
		if(getText() != null)
			return getText();
		return "";
	}
	public TreeNode getParentNode()
	{
		return (TriageTabs)super.getParentInstance();
	}
	public TriageTabs getParent()
	{
		return (TriageTabs)super.getParentInstance();
	}
	public void setParent(TriageTabs parent)
	{
		super.setParentInstance(parent);
	}
	public TreeNode[] getChildren()
	{
		ArrayList children = super.getChildInstances();
		TriageTabs[] typedChildren = new TriageTabs[children.size()];
		for (int i = 0; i < children.size(); i++)
		{
			typedChildren[i] = (TriageTabs)children.get(i);
		}
		return typedChildren;
	}
	public int addChild(TreeNode child)
	{
		if (child instanceof TriageTabs)
		{
			super.addChild((TriageTabs)child);
		}
		return super.getChildInstances().size();
	}
	public int removeChild(TreeNode child)
	{
		if (child instanceof TriageTabs)
		{
			super.removeChild((TriageTabs)child);
		}
		return super.getChildInstances().size();
	}
	public Image getExpandedImage()
	{
		return super.getImage();
	}
	public Image getCollapsedImage()
	{
		return super.getImage();
	}
	public static ims.framework.IItemCollection getNegativeInstancesAsIItemCollection()
	{
		TriageTabsCollection result = new TriageTabsCollection();
		result.add(ED_NOTES_TAB);
		result.add(ED_OBS_TAB);
		result.add(ED_ICP_TAB);
		result.add(ED_SYS_REVIEW_TAB);
		result.add(ED_WOUND_IMAGES_TAB);
		result.add(ED_MEDS_TAB);
		result.add(ED_PMH_TAB);
		result.add(ED_SUPP_TAB);
		result.add(ED_DISC_TAB);
		result.add(ED_PRESCRIPTION_TAB);
		result.add(ED_OUTCOME_TAB);
		result.add(ED_CODING_TAB);
		return result;
	}
	public static TriageTabs[] getNegativeInstances()
	{
		TriageTabs[] instances = new TriageTabs[12];
		instances[0] = ED_NOTES_TAB;
		instances[1] = ED_OBS_TAB;
		instances[2] = ED_ICP_TAB;
		instances[3] = ED_SYS_REVIEW_TAB;
		instances[4] = ED_WOUND_IMAGES_TAB;
		instances[5] = ED_MEDS_TAB;
		instances[6] = ED_PMH_TAB;
		instances[7] = ED_SUPP_TAB;
		instances[8] = ED_DISC_TAB;
		instances[9] = ED_PRESCRIPTION_TAB;
		instances[10] = ED_OUTCOME_TAB;
		instances[11] = ED_CODING_TAB;
		return instances;
	}
	public static String[] getNegativeInstanceNames()
	{
		String[] negativeInstances = new String[12];
		negativeInstances[0] = "ED_NOTES_TAB";
		negativeInstances[1] = "ED_OBS_TAB";
		negativeInstances[2] = "ED_ICP_TAB";
		negativeInstances[3] = "ED_SYS_REVIEW_TAB";
		negativeInstances[4] = "ED_WOUND_IMAGES_TAB";
		negativeInstances[5] = "ED_MEDS_TAB";
		negativeInstances[6] = "ED_PMH_TAB";
		negativeInstances[7] = "ED_SUPP_TAB";
		negativeInstances[8] = "ED_DISC_TAB";
		negativeInstances[9] = "ED_PRESCRIPTION_TAB";
		negativeInstances[10] = "ED_OUTCOME_TAB";
		negativeInstances[11] = "ED_CODING_TAB";
		return negativeInstances;
	}
	public static TriageTabs getNegativeInstance(String name)
	{
		if(name == null)
			return null;
		String[] negativeInstances = getNegativeInstanceNames();
		for (int i = 0; i < negativeInstances.length; i++)
		{
			if(negativeInstances[i].equals(name))
				return getNegativeInstances()[i];
		}
		return null;
	}
	public static TriageTabs getNegativeInstance(Integer id)
	{
		if(id == null)
			return null;
		TriageTabs[] negativeInstances = getNegativeInstances();
		for (int i = 0; i < negativeInstances.length; i++)
		{
			if(negativeInstances[i].getID() == id)
				return negativeInstances[i];
		}
		return null;
	}
	public int getTypeId()
	{
		return TYPE_ID;
	}
	public static final int TYPE_ID = 1291063;
	public static final TriageTabs ED_NOTES_TAB = new TriageTabs(-2793, "Notes Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_OBS_TAB = new TriageTabs(-2794, "Observations Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_ICP_TAB = new TriageTabs(-2795, "ICP Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_SYS_REVIEW_TAB = new TriageTabs(-2796, "System Review Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_WOUND_IMAGES_TAB = new TriageTabs(-2797, "Wound Images Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_MEDS_TAB = new TriageTabs(-2798, "Medication Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_PMH_TAB = new TriageTabs(-2799, "PMH Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_SUPP_TAB = new TriageTabs(-2800, "Support Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_DISC_TAB = new TriageTabs(-2801, "Discharge Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_PRESCRIPTION_TAB = new TriageTabs(-2802, "Prescription Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_OUTCOME_TAB = new TriageTabs(-2803, "Outcome Tab", true, null, null, Color.Default);
	public static final TriageTabs ED_CODING_TAB = new TriageTabs(-2804, "Coding Tab", true, null, null, Color.Default);
}
