/*******************************************************************************
 *  Copyright 2018 Centre for Development of Advanced Computing(C-DAC), Pune
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package cdac.medinfo.sdk.dcm30_04.templates.cid;


import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumAnatomicSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumChestCardiacSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CommonTissueSegmentationTypes;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CommonTissueSegmentationTypes;


/**
 * This class represents CommonTissueSegmentationTypes CID7166
 */
public class CommonTissueSegmentationTypes_CID7166 {

	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;

	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;

	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	/**
	 * Instantiates a new CommonTissueSegmentationTypes_CID7166 Template 
	 */
	public CommonTissueSegmentationTypes_CID7166()
	{

	}

	/**
	 * Retrieves the value for Code Meaning.
	 * @return String value for Code Meaning.
	 */
	public String getCodeMeaning()
	{
		return strCodeMeaning;
	}

	/**
	 * Retrieves the value for Code Value.
	 * @return String value for Code Value.
	 */
	public String getCodeValue() 
	{
		return strCodeValue;
	}

	/**
	 * Retrieves the value for Coding Scheme Designator.
	 * @return String value for Coding Scheme Designator.
	 */
	public String getCodingSchemeDesignator() 
	{
		return strCodingSchemeDesignator;
	}
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumCommonTissueSegmentationTypes Object of EnumCM_CommonTissueSegmentationTypes represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_CommonTissueSegmentationTypes enumCommonTissueSegmentationTypes)
	{
		switch(enumCommonTissueSegmentationTypes) 
		{
		case ARTERY:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.ARTERY_T_41066
					.getValue();
			break;
		case BILE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BILE_T_60650
					.getValue();
			break;
		case BLOOD:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BLOOD_T_C2000
					.getValue();
			break;
		case BLOOD_VESSEL:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BLOOD_VESSEL_T_40000
					.getValue();
			break;
		case BODY_FAT:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BODY_FAT_F_03D38
					.getValue();
			break;
		case BODY_FLUID:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BODY_FLUID_T_D0070
					.getValue();
			break;
		case BONE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.BONE_T_D016E
					.getValue();
			break;
		case CAPILLARY:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.CAPILLARY_T_40050
					.getValue();
			break;
		case CARTILAGE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.CARTILAGE_T_D021B
					.getValue();
			break;
		case CONNECTIVE_TISSUE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.CONNECTIVE_TISSUE_T_1A200
					.getValue();
			break;
		case FECES:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.FECES_T_59666
					.getValue();
			break;
		case GAS:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.GAS_C_10080
					.getValue();
			break;
		case LIGAMENT:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.LIGAMENT_T_18010
					.getValue();
			break;
		case LYMPH_NODE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.LYMPH_NODE_T_C4000
					.getValue();
			break;
		case LYMPHATIC_SYSTEM:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.LYMPHATIC_SYSTEM_T_C6000
					.getValue();
			break;
		case LYMPHATIC_VESSEL:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.LYMPHATIC_VESSEL_T_C6010
					.getValue();
			break;
		case MENISCUS:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.MENISCUS_T_15009
					.getValue();
			break;
		case MUSCLE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.MUSCLE_T_13001
					.getValue();
			break;
		case NERVE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.NERVE_T_D0598
					.getValue();
			break;
		case ORGAN:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.ORGAN_T_1A310
					.getValue();
			break;
		case SKIN:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.SKIN_T_01000
					.getValue();
			break;
		case TENDON:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.TENDON_T_17010
					.getValue();
			break;
		case TISSUE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.TISSUE_T_D0050
					.getValue();
			break;
		case URINE:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.URINE_T_70060
					.getValue();
			break;
		case VEIN:
			this.strCodeValue = EnumCV_CommonTissueSegmentationTypes.VEIN_T_4806E
					.getValue();
			break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumCommonTissueSegmentationTypes Object of EnumCM_CommonTissueSegmentationTypes represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_CommonTissueSegmentationTypes enumCommonTissueSegmentationTypes)
	{
		switch(enumCommonTissueSegmentationTypes)
		{
		case ARTERY:
			this.strSNOMEDCTID = EnumChestCardiacSNOMEDMap.ARTERY.getSNOMEDCTID();
			break;
		case BILE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.BILE.getSNOMEDCTID();
			break;
		case BLOOD:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.BLOOD.getSNOMEDCTID();
			break;
		case BLOOD_VESSEL:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.BLOOD_VESSEL
					.getSNOMEDCTID();
			break;
		case BODY_FAT:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.BODY_FAT.getSNOMEDCTID();
			break;
		case BODY_FLUID:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.BODY_FLUID.getSNOMEDCTID();
			break;
		case BONE:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.BONE.getSNOMEDCTID();
			break;
		case CAPILLARY:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.CAPILLARY.getSNOMEDCTID();
			break;
		case CARTILAGE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.CARTILAGE.getSNOMEDCTID();
			break;
		case CONNECTIVE_TISSUE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.CONNECTIVE_TISSUE
					.getSNOMEDCTID();
			break;
		case FECES:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.FECES.getSNOMEDCTID();
			break;
		case GAS:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.GAS.getSNOMEDCTID();
			break;
		case LIGAMENT:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.LIGAMENT.getSNOMEDCTID();
			break;
		case LYMPH_NODE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.LYMPH_NODE.getSNOMEDCTID();
			break;
		case LYMPHATIC_SYSTEM:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.LYMPHATIC_SYSTEM
					.getSNOMEDCTID();
			break;
		case LYMPHATIC_VESSEL:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.LYMPHATIC_VESSEL
					.getSNOMEDCTID();
			break;
		case MENISCUS:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.MENISCUS.getSNOMEDCTID();
			break;
		case MUSCLE:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.MUSCLE.getSNOMEDCTID();
			break;
		case NERVE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.NERVE.getSNOMEDCTID();
			break;
		case ORGAN:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.ORGAN.getSNOMEDCTID();
			break;
		case SKIN:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.SKIN.getSNOMEDCTID();
			break;
		case TENDON:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.TENDON.getSNOMEDCTID();
			break;
		case TISSUE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.TISSUE.getSNOMEDCTID();
			break;
		case URINE:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.URINE.getSNOMEDCTID();
			break;
		case VEIN:
			this.strSNOMEDCTID = EnumChestCardiacSNOMEDMap.VEIN.getSNOMEDCTID();
			break;
		}
	}

	/**
	 * Sets the value for CommonTissueSegmentationTypes
	 * @param enumCommonTissueSegmentationTypes Object of EnumCM_CommonTissueSegmentationTypes.
	 */
	public void setCommonTissueSegmentationTypes(EnumCM_CommonTissueSegmentationTypes enumCommonTissueSegmentationTypes)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumCommonTissueSegmentationTypes.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumCommonTissueSegmentationTypes);

		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumCommonTissueSegmentationTypes);
	}
}
