/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/lookups/PDSSynchronisationRelevantDatasetFields.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.core.vo.lookups;

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

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

	public PDSSynchronisationRelevantDatasetFields()
	{
		super();
	}
	public PDSSynchronisationRelevantDatasetFields(int id)
	{
		super(id, "", true);
	}
	public PDSSynchronisationRelevantDatasetFields(int id, String text, boolean active)
	{
		super(id, text, active, null, null, null);
	}
	public PDSSynchronisationRelevantDatasetFields(int id, String text, boolean active, PDSSynchronisationRelevantDatasetFields parent, Image image)
	{
		super(id, text, active, parent, image);
	}
	public PDSSynchronisationRelevantDatasetFields(int id, String text, boolean active, PDSSynchronisationRelevantDatasetFields parent, Image image, Color color)
	{
		super(id, text, active, parent, image, color);
	}
	public PDSSynchronisationRelevantDatasetFields(int id, String text, boolean active, PDSSynchronisationRelevantDatasetFields parent, Image image, Color color, int order)
	{
		super(id, text, active, parent, image, color, order);
	}
	public static PDSSynchronisationRelevantDatasetFields buildLookup(ims.vo.LookupInstanceBean bean)
	{
		return new PDSSynchronisationRelevantDatasetFields(bean.getId(), bean.getText(), bean.isActive());
	}
	public String toString()
	{
		if(getText() != null)
			return getText();
		return "";
	}
	public TreeNode getParentNode()
	{
		return (PDSSynchronisationRelevantDatasetFields)super.getParentInstance();
	}
	public PDSSynchronisationRelevantDatasetFields getParent()
	{
		return (PDSSynchronisationRelevantDatasetFields)super.getParentInstance();
	}
	public void setParent(PDSSynchronisationRelevantDatasetFields parent)
	{
		super.setParentInstance(parent);
	}
	public TreeNode[] getChildren()
	{
		ArrayList children = super.getChildInstances();
		PDSSynchronisationRelevantDatasetFields[] typedChildren = new PDSSynchronisationRelevantDatasetFields[children.size()];
		for (int i = 0; i < children.size(); i++)
		{
			typedChildren[i] = (PDSSynchronisationRelevantDatasetFields)children.get(i);
		}
		return typedChildren;
	}
	public int addChild(TreeNode child)
	{
		if (child instanceof PDSSynchronisationRelevantDatasetFields)
		{
			super.addChild((PDSSynchronisationRelevantDatasetFields)child);
		}
		return super.getChildInstances().size();
	}
	public int removeChild(TreeNode child)
	{
		if (child instanceof PDSSynchronisationRelevantDatasetFields)
		{
			super.removeChild((PDSSynchronisationRelevantDatasetFields)child);
		}
		return super.getChildInstances().size();
	}
	public Image getExpandedImage()
	{
		return super.getImage();
	}
	public Image getCollapsedImage()
	{
		return super.getImage();
	}
	public static ims.framework.IItemCollection getNegativeInstancesAsIItemCollection()
	{
		PDSSynchronisationRelevantDatasetFieldsCollection result = new PDSSynchronisationRelevantDatasetFieldsCollection();
		result.add(SCN);
		result.add(NAME);
		result.add(BEFF_DATE_FROM_TO);
		result.add(TITLE);
		result.add(SURNAME);
		result.add(MIDDLENAME);
		result.add(FORENAME);
		result.add(NAME_TYPE);
		result.add(SEX);
		result.add(DATE_OF_BIRTH);
		result.add(DATE_OF_DEATH);
		result.add(LANGUAGE);
		result.add(ADDRESS);
		result.add(BEFF_DATE_FROM_TO_ADDR);
		result.add(ADDRESS_LINE1);
		result.add(ADDRESS_LINE2);
		result.add(ADDRESS_LINE3);
		result.add(ADDRESS_LINE4);
		result.add(ADDRESS_LINE5);
		result.add(POSTCODE);
		result.add(ADDRESS_TYPE);
		result.add(PAF_KEY);
		result.add(IDENTIFIERS);
		result.add(NEXT_OF_KIN);
		result.add(MEDICAL_CARD_INFORMATION);
		result.add(COMMUNICATION_CHANNELS);
		result.add(GP);
		result.add(GP_SURGERY);
		result.add(TIME_OF_DEATH);
		result.add(DEATH_NOTIFICATION_STATUS);
		result.add(SENSITIVITY_INDICATOR);
		result.add(PREFERRED_CONTACT_METHOD);
		result.add(PREFERRED_CONTACT_TIMES);
		result.add(PREFERRED_WRITTEN_COMMUNICATION_FORMAT);
		result.add(CONSENT);
		result.add(CONSENT_DATE_LAST_CHANGED);
		result.add(PREFERRED_LANGUAGE);
		result.add(RELATED_PERSON_ROLE);
		result.add(RELATIONSHIP_TYPE);
		result.add(CONTACT_RANKING);
		result.add(NEXT_OF_KIN_INDICATOR);
		result.add(COPY_CORRESPONDENCE_INDICATOR);
		result.add(RELATIVE_BEFF_DATE_FROM_TO);
		result.add(GP_PRACTICE);
		result.add(INTERPRETER_REQUIRED);
		return result;
	}
	public static PDSSynchronisationRelevantDatasetFields[] getNegativeInstances()
	{
		PDSSynchronisationRelevantDatasetFields[] instances = new PDSSynchronisationRelevantDatasetFields[45];
		instances[0] = SCN;
		instances[1] = NAME;
		instances[2] = BEFF_DATE_FROM_TO;
		instances[3] = TITLE;
		instances[4] = SURNAME;
		instances[5] = MIDDLENAME;
		instances[6] = FORENAME;
		instances[7] = NAME_TYPE;
		instances[8] = SEX;
		instances[9] = DATE_OF_BIRTH;
		instances[10] = DATE_OF_DEATH;
		instances[11] = LANGUAGE;
		instances[12] = ADDRESS;
		instances[13] = BEFF_DATE_FROM_TO_ADDR;
		instances[14] = ADDRESS_LINE1;
		instances[15] = ADDRESS_LINE2;
		instances[16] = ADDRESS_LINE3;
		instances[17] = ADDRESS_LINE4;
		instances[18] = ADDRESS_LINE5;
		instances[19] = POSTCODE;
		instances[20] = ADDRESS_TYPE;
		instances[21] = PAF_KEY;
		instances[22] = IDENTIFIERS;
		instances[23] = NEXT_OF_KIN;
		instances[24] = MEDICAL_CARD_INFORMATION;
		instances[25] = COMMUNICATION_CHANNELS;
		instances[26] = GP;
		instances[27] = GP_SURGERY;
		instances[28] = TIME_OF_DEATH;
		instances[29] = DEATH_NOTIFICATION_STATUS;
		instances[30] = SENSITIVITY_INDICATOR;
		instances[31] = PREFERRED_CONTACT_METHOD;
		instances[32] = PREFERRED_CONTACT_TIMES;
		instances[33] = PREFERRED_WRITTEN_COMMUNICATION_FORMAT;
		instances[34] = CONSENT;
		instances[35] = CONSENT_DATE_LAST_CHANGED;
		instances[36] = PREFERRED_LANGUAGE;
		instances[37] = RELATED_PERSON_ROLE;
		instances[38] = RELATIONSHIP_TYPE;
		instances[39] = CONTACT_RANKING;
		instances[40] = NEXT_OF_KIN_INDICATOR;
		instances[41] = COPY_CORRESPONDENCE_INDICATOR;
		instances[42] = RELATIVE_BEFF_DATE_FROM_TO;
		instances[43] = GP_PRACTICE;
		instances[44] = INTERPRETER_REQUIRED;
		return instances;
	}
	public static String[] getNegativeInstanceNames()
	{
		String[] negativeInstances = new String[45];
		negativeInstances[0] = "SCN";
		negativeInstances[1] = "NAME";
		negativeInstances[2] = "BEFF_DATE_FROM_TO";
		negativeInstances[3] = "TITLE";
		negativeInstances[4] = "SURNAME";
		negativeInstances[5] = "MIDDLENAME";
		negativeInstances[6] = "FORENAME";
		negativeInstances[7] = "NAME_TYPE";
		negativeInstances[8] = "SEX";
		negativeInstances[9] = "DATE_OF_BIRTH";
		negativeInstances[10] = "DATE_OF_DEATH";
		negativeInstances[11] = "LANGUAGE";
		negativeInstances[12] = "ADDRESS";
		negativeInstances[13] = "BEFF_DATE_FROM_TO_ADDR";
		negativeInstances[14] = "ADDRESS_LINE1";
		negativeInstances[15] = "ADDRESS_LINE2";
		negativeInstances[16] = "ADDRESS_LINE3";
		negativeInstances[17] = "ADDRESS_LINE4";
		negativeInstances[18] = "ADDRESS_LINE5";
		negativeInstances[19] = "POSTCODE";
		negativeInstances[20] = "ADDRESS_TYPE";
		negativeInstances[21] = "PAF_KEY";
		negativeInstances[22] = "IDENTIFIERS";
		negativeInstances[23] = "NEXT_OF_KIN";
		negativeInstances[24] = "MEDICAL_CARD_INFORMATION";
		negativeInstances[25] = "COMMUNICATION_CHANNELS";
		negativeInstances[26] = "GP";
		negativeInstances[27] = "GP_SURGERY";
		negativeInstances[28] = "TIME_OF_DEATH";
		negativeInstances[29] = "DEATH_NOTIFICATION_STATUS";
		negativeInstances[30] = "SENSITIVITY_INDICATOR";
		negativeInstances[31] = "PREFERRED_CONTACT_METHOD";
		negativeInstances[32] = "PREFERRED_CONTACT_TIMES";
		negativeInstances[33] = "PREFERRED_WRITTEN_COMMUNICATION_FORMAT";
		negativeInstances[34] = "CONSENT";
		negativeInstances[35] = "CONSENT_DATE_LAST_CHANGED";
		negativeInstances[36] = "PREFERRED_LANGUAGE";
		negativeInstances[37] = "RELATED_PERSON_ROLE";
		negativeInstances[38] = "RELATIONSHIP_TYPE";
		negativeInstances[39] = "CONTACT_RANKING";
		negativeInstances[40] = "NEXT_OF_KIN_INDICATOR";
		negativeInstances[41] = "COPY_CORRESPONDENCE_INDICATOR";
		negativeInstances[42] = "RELATIVE_BEFF_DATE_FROM_TO";
		negativeInstances[43] = "GP_PRACTICE";
		negativeInstances[44] = "INTERPRETER_REQUIRED";
		return negativeInstances;
	}
	public static PDSSynchronisationRelevantDatasetFields 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 PDSSynchronisationRelevantDatasetFields getNegativeInstance(Integer id)
	{
		if(id == null)
			return null;
		PDSSynchronisationRelevantDatasetFields[] 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 = 1021308;
	public static final PDSSynchronisationRelevantDatasetFields SCN = new PDSSynchronisationRelevantDatasetFields(-2854, "SCN", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields NAME = new PDSSynchronisationRelevantDatasetFields(-2855, "Name", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields BEFF_DATE_FROM_TO = new PDSSynchronisationRelevantDatasetFields(-2866, "BEFF Date From/To", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields TITLE = new PDSSynchronisationRelevantDatasetFields(-2867, "Title", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields SURNAME = new PDSSynchronisationRelevantDatasetFields(-2868, "Surname", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields MIDDLENAME = new PDSSynchronisationRelevantDatasetFields(-2869, "Middlename", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields FORENAME = new PDSSynchronisationRelevantDatasetFields(-2870, "Forename", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields NAME_TYPE = new PDSSynchronisationRelevantDatasetFields(-3311, "Name Type", true, PDSSynchronisationRelevantDatasetFields.NAME, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields SEX = new PDSSynchronisationRelevantDatasetFields(-2856, "Sex", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields DATE_OF_BIRTH = new PDSSynchronisationRelevantDatasetFields(-2857, "Date of Birth", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields DATE_OF_DEATH = new PDSSynchronisationRelevantDatasetFields(-2858, "Date of Death", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields LANGUAGE = new PDSSynchronisationRelevantDatasetFields(-2863, "Language", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS = new PDSSynchronisationRelevantDatasetFields(-2864, "Address", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields BEFF_DATE_FROM_TO_ADDR = new PDSSynchronisationRelevantDatasetFields(-2871, "BEFF Date From/To", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_LINE1 = new PDSSynchronisationRelevantDatasetFields(-2872, "Address Line 1", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_LINE2 = new PDSSynchronisationRelevantDatasetFields(-2873, "Address Line 2", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_LINE3 = new PDSSynchronisationRelevantDatasetFields(-2874, "Address Line 3", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_LINE4 = new PDSSynchronisationRelevantDatasetFields(-2875, "Address Line 4", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_LINE5 = new PDSSynchronisationRelevantDatasetFields(-2876, "Address Line 5", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields POSTCODE = new PDSSynchronisationRelevantDatasetFields(-2877, "Post Code", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields ADDRESS_TYPE = new PDSSynchronisationRelevantDatasetFields(-2881, "Address Type", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields PAF_KEY = new PDSSynchronisationRelevantDatasetFields(-3312, "PAF Key", true, PDSSynchronisationRelevantDatasetFields.ADDRESS, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields IDENTIFIERS = new PDSSynchronisationRelevantDatasetFields(-2865, "Patient Identifiers", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields NEXT_OF_KIN = new PDSSynchronisationRelevantDatasetFields(-2885, "Next of Kin", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields MEDICAL_CARD_INFORMATION = new PDSSynchronisationRelevantDatasetFields(-2886, "Medical Card Information", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields COMMUNICATION_CHANNELS = new PDSSynchronisationRelevantDatasetFields(-2887, "Communication Channels", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields GP = new PDSSynchronisationRelevantDatasetFields(-2888, "Patient GP", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields GP_SURGERY = new PDSSynchronisationRelevantDatasetFields(-2889, "GP Surgery", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields TIME_OF_DEATH = new PDSSynchronisationRelevantDatasetFields(-3313, "Time of death", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields DEATH_NOTIFICATION_STATUS = new PDSSynchronisationRelevantDatasetFields(-3314, "Death Notification Status", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields SENSITIVITY_INDICATOR = new PDSSynchronisationRelevantDatasetFields(-3315, "Sensitivity Indicator", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields PREFERRED_CONTACT_METHOD = new PDSSynchronisationRelevantDatasetFields(-3316, "Preferred Contact method", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields PREFERRED_CONTACT_TIMES = new PDSSynchronisationRelevantDatasetFields(-3317, "Preferred Contact Times", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields PREFERRED_WRITTEN_COMMUNICATION_FORMAT = new PDSSynchronisationRelevantDatasetFields(-3318, "Preferred Written Communication Format", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields CONSENT = new PDSSynchronisationRelevantDatasetFields(-3319, "Consent", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields CONSENT_DATE_LAST_CHANGED = new PDSSynchronisationRelevantDatasetFields(-3320, "Consent Date Last Changed", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields PREFERRED_LANGUAGE = new PDSSynchronisationRelevantDatasetFields(-3321, "Preferred Language", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields RELATED_PERSON_ROLE = new PDSSynchronisationRelevantDatasetFields(-3322, "Related Person Role", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields RELATIONSHIP_TYPE = new PDSSynchronisationRelevantDatasetFields(-3323, "Relationship Type", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields CONTACT_RANKING = new PDSSynchronisationRelevantDatasetFields(-3324, "Contact Ranking", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields NEXT_OF_KIN_INDICATOR = new PDSSynchronisationRelevantDatasetFields(-3325, "Next Of Kin Indicator", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields COPY_CORRESPONDENCE_INDICATOR = new PDSSynchronisationRelevantDatasetFields(-3326, "Copy Correspondence Indicator", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields RELATIVE_BEFF_DATE_FROM_TO = new PDSSynchronisationRelevantDatasetFields(-3327, "Relative BEFF Date From/To", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields GP_PRACTICE = new PDSSynchronisationRelevantDatasetFields(-3368, "GP Practice", true, null, null, Color.Default);
	public static final PDSSynchronisationRelevantDatasetFields INTERPRETER_REQUIRED = new PDSSynchronisationRelevantDatasetFields(-3397, "Interpreter Required", true, null, null, Color.Default);
}
