/*******************************************************************************
 *  Copyright 2017-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.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MediastinumAnatomyFindingOrFeature;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_MediastinumAnatomyFindingOrFeature;


/**
 * This class represents MediastinumAnatomyFindingOrFeature - CID6113
 */
public class MediastinumAnatomyFindingOrFeature_CID6113 
{
	
	/**
	 * 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;
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Instantiates a new MediastinumAnatomyFindingOrFeature_CID6113 Template 
	 */
	public MediastinumAnatomyFindingOrFeature_CID6113()
	{

	}

	/**
	 * 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;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumMediastinumAnatomyFindingOrFeature Object of EnumCM_MediastinumAnatomyFindingOrFeature represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_MediastinumAnatomyFindingOrFeature enumMediastinumAnatomyFindingOrFeature)
	{
		switch(enumMediastinumAnatomyFindingOrFeature)
		{
		case ACROMIOCLAVICULAR_JOINT: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.ACROMIOCLAVICULAR_JOINT_T_15420.getValue(); break;
		case AORTIC_VALVE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.AORTIC_VALVE_T_35400.getValue(); break;
		case ATRIAL_SEPTAL_DEFECT: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.ATRIAL_SEPTAL_DEFECT_D4_31220.getValue(); break;
		case ATRIUM: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.ATRIUM_T_32100.getValue(); break;
		case AXILLARY_FASCIA: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.AXILLARY_FASCIA_T_18774.getValue(); break;
		case AZYGOESOPHAGEAL_RECESS_INTERFACE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.AZYGOESOPHAGEAL_RECESS_INTERFACE_112090.getValue(); break;
		case CARINA: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.CARINA_T_25201.getValue(); break;
		case CAROTID_BODY: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.CAROTID_BODY_T_B4000.getValue(); break;
		case COSTAL_CARTILAGE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.COSTAL_CARTILAGE_T_11240.getValue(); break;
		case ESOPHAGEAL_HIATUS: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.ESOPHAGEAL_HIATUS_T_D3412.getValue(); break;
		case ESOPHAGUS: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.ESOPHAGUS_T_56000.getValue(); break;
		case FASCIAL_LAYER: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.FASCIAL_LAYER_T_D0634.getValue(); break;
		case HEART: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.HEART_T_32000.getValue(); break;
		case HIATUS: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.HIATUS_112095.getValue(); break;
		case LEFT_MAIN_BRONCHUS: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.LEFT_MAIN_BRONCHUS_T_26500.getValue(); break;
		case LIGAMENTUM_ARTERIOSUM: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.LIGAMENTUM_ARTERIOSUM_T_42370.getValue(); break;
		case LYMPH_NODE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.LYMPH_NODE_T_C4000.getValue(); break;
		case MITRAL_VALVE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.MITRAL_VALVE_T_35300.getValue(); break;
		case PARASPINAL_LINE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.PARASPINAL_LINE_112091.getValue(); break;
		case POSTERIOR_TRACHEAL_STRIPE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.POSTERIOR_TRACHEAL_STRIPE_112092.getValue(); break;
		case PULMONARY_VALVE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.PULMONARY_VALVE_T_35200.getValue(); break;
		case RIGHT_MAIN_BRONCHUS: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.RIGHT_MAIN_BRONCHUS_T_26100.getValue(); break;
		case RIGHT_TRACHEAL_STRIPE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.RIGHT_TRACHEAL_STRIPE_112093.getValue(); break;
		case STRIPE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.STRIPE_112094.getValue(); break;
		case THORACIC_DUCT: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.THORACIC_DUCT_T_C6510.getValue(); break;
		case THYMUS_GLAND: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.THYMUS_GLAND_T_C8000.getValue(); break;
		case THYROID: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.THYROID_T_B6000.getValue(); break;
		case TRACHEA: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.TRACHEA_T_25000.getValue(); break;
		case TRAPEZIUS_MUSCLE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.TRAPEZIUS_MUSCLE_T_14171.getValue(); break;
		case TRICUSPID_VALVE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.TRICUSPID_VALVE_T_35100.getValue(); break;
		case VENTRICLE: this.strCodeValue =EnumCV_MediastinumAnatomyFindingOrFeature.VENTRICLE_T_32400.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumMediastinumAnatomyFindingorFeature Object of EnumCM_MediastinumAnatomyFindingorFeature represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_MediastinumAnatomyFindingOrFeature enumMediastinumAnatomyFindingOrFeature)
	{
		switch(enumMediastinumAnatomyFindingOrFeature)
		{
		case ACROMIOCLAVICULAR_JOINT : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ACROMIOCLAVICULAR_JOINT.getSNOMEDCTID(); break;
		case AORTIC_VALVE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.AORTIC_VALVE.getSNOMEDCTID(); break;
		case ATRIAL_SEPTAL_DEFECT : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ATRIAL_SEPTAL_DEFECT.getSNOMEDCTID(); break;
		case ATRIUM : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ATRIUM.getSNOMEDCTID(); break;
		case AXILLARY_FASCIA : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.AXILLARY_FASCIA.getSNOMEDCTID(); break;
		case CARINA : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CARINA.getSNOMEDCTID(); break;
		case CAROTID_BODY : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CAROTID_BODY.getSNOMEDCTID(); break;
		case COSTAL_CARTILAGE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.COSTAL_CARTILAGE.getSNOMEDCTID(); break;
		case ESOPHAGEAL_HIATUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ESOPHAGEAL_HIATUS.getSNOMEDCTID(); break;
		case ESOPHAGUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ESOPHAGUS.getSNOMEDCTID(); break;
		case FASCIAL_LAYER : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.FASCIAL_LAYER.getSNOMEDCTID(); break;
		case HEART : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.HEART.getSNOMEDCTID(); break;
		case LEFT_MAIN_BRONCHUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.LEFT_MAIN_BRONCHUS.getSNOMEDCTID(); break;
		case LIGAMENTUM_ARTERIOSUM : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.LIGAMENTUM_ARTERIOSUM.getSNOMEDCTID(); break;
		case LYMPH_NODE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.LYMPH_NODE.getSNOMEDCTID(); break;
		case MITRAL_VALVE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.MITRAL_VALVE.getSNOMEDCTID(); break;
		case PULMONARY_VALVE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.PULMONARY_VALVE.getSNOMEDCTID(); break;
		case RIGHT_MAIN_BRONCHUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.RIGHT_MAIN_BRONCHUS.getSNOMEDCTID(); break;
		case THORACIC_DUCT : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.THORACIC_DUCT.getSNOMEDCTID(); break;
		case THYMUS_GLAND : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.THYMUS_GLAND.getSNOMEDCTID(); break;
		case THYROID : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.THYROID.getSNOMEDCTID(); break;
		case TRACHEA : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.TRACHEA.getSNOMEDCTID(); break;
		case TRAPEZIUS_MUSCLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.TRAPEZIUS_MUSCLE.getSNOMEDCTID(); break;
		case TRICUSPID_VALVE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.TRICUSPID_VALVE.getSNOMEDCTID(); break;
		case VENTRICLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.VENTRICLE.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for MediastinumAnatomyFindingOrFeature
	 * @param enumMediastinumAnatomyFindingOrFeature Object of EnumCM_MediastinumAnatomyFindingOrFeature.
	 */
	public void setMediastinumAnatomyFindingOrFeature(EnumCM_MediastinumAnatomyFindingOrFeature enumMediastinumAnatomyFindingOrFeature)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumMediastinumAnatomyFindingOrFeature.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.AZYGOESOPHAGEAL_RECESS_INTERFACE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.PARASPINAL_LINE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.POSTERIOR_TRACHEAL_STRIPE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.RIGHT_TRACHEAL_STRIPE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.STRIPE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_MediastinumAnatomyFindingOrFeature.HIATUS.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumMediastinumAnatomyFindingOrFeature);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumMediastinumAnatomyFindingOrFeature);
	}
}
