/*******************************************************************************
 *  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.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_FiberTractsInBrainstem;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_FiberTractsInBrainstem;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumAnatomicSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;


/**
 * This class represents FiberTractsInBrainstem CID7701
 */
public class FiberTractsInBrainstem_CID7701 {

	/**
	 * 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 FiberTractsInBrainstem_CID7701 Template 
	 */
	public FiberTractsInBrainstem_CID7701()
	{

	}

	/**
	 * 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 enumFiberTractsInBrainstem Object of EnumCM_FiberTractsInBrainstem represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_FiberTractsInBrainstem enumFiberTractsInBrainstem)
	{
		switch(enumFiberTractsInBrainstem) //CV
		{
		case SUPERIOR_CEREBELLAR_PEDUNCLE: this.strCodeValue =EnumCV_FiberTractsInBrainstem.SUPERIOR_CEREBELLAR_PEDUNCLE_T_A6620.getValue(); break;
		case MIDDLE_CEREBELLAR_PEDUNCLE: this.strCodeValue =EnumCV_FiberTractsInBrainstem.MIDDLE_CEREBELLAR_PEDUNCLE_T_A6630.getValue(); break;
		case INFERIOR_CEREBELLAR_PEDUNCLE: this.strCodeValue =EnumCV_FiberTractsInBrainstem.INFERIOR_CEREBELLAR_PEDUNCLE_T_A6640.getValue(); break;
		case CORTICOSPINAL_TRACT_IN_BRAINSTEM: this.strCodeValue =EnumCV_FiberTractsInBrainstem.CORTICOSPINAL_TRACT_IN_BRAINSTEM_T_D07EA.getValue(); break;
		case MEDIAL_LEMNISCUS: this.strCodeValue =EnumCV_FiberTractsInBrainstem.MEDIAL_LEMNISCUS_T_A5271.getValue(); break;
		case LATERAL_LEMNISCUS: this.strCodeValue =EnumCV_FiberTractsInBrainstem.LATERAL_LEMNISCUS_T_A5272.getValue(); break;
		case MEDIAL_LONGITUDINAL_FASCICULUS: this.strCodeValue =EnumCV_FiberTractsInBrainstem.MEDIAL_LONGITUDINAL_FASCICULUS_T_A5250.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumFiberTractsInBrainstem Object of EnumCM_FiberTractsInBrainstem represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_FiberTractsInBrainstem enumFiberTractsInBrainstem)
	{
		switch(enumFiberTractsInBrainstem)
		{
		case SUPERIOR_CEREBELLAR_PEDUNCLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.SUPERIOR_CEREBELLAR_PEDUNCLE.getSNOMEDCTID(); break;
		case MIDDLE_CEREBELLAR_PEDUNCLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.MIDDLE_CEREBELLAR_PEDUNCLE.getSNOMEDCTID(); break;
		case INFERIOR_CEREBELLAR_PEDUNCLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.INFERIOR_CEREBELLAR_PEDUNCLE.getSNOMEDCTID(); break;
		case CORTICOSPINAL_TRACT_IN_BRAINSTEM : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CORTICOSPINAL_TRACT_IN_BRAINSTEM.getSNOMEDCTID(); break;
		case MEDIAL_LEMNISCUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.MEDIAL_LEMNISCUS.getSNOMEDCTID(); break;
		case LATERAL_LEMNISCUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.LATERAL_LEMNISCUS.getSNOMEDCTID(); break;
		case MEDIAL_LONGITUDINAL_FASCICULUS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.MEDIAL_LONGITUDINAL_FASCICULUS.getSNOMEDCTID(); break;
		}
	}

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

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