/*******************************************************************************
 *  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.EnumChestCardiacSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_DegreeFindings;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_DegreeFindings;


/**
 * This class represents DegreeFindings - CID3642
 */
public class DegreeFindings_CID3642 
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;

	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

	/**
	 * Instantiates a new DegreeFindings_CID3642 Template 
	 */
	public DegreeFindings_CID3642()
	{

	}

	/**
	 * 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 enumDegreeFindings Object of EnumCM_DegreeFindings represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_DegreeFindings enumDegreeFindings)
	{
		switch(enumDegreeFindings)
		{
		case DECREASED:
			this.strCodeValue = EnumCV_DegreeFindings.DECREASED_G_A316.getValue();
			break;
		case ELEVATED:
			this.strCodeValue = EnumCV_DegreeFindings.ELEVATED_G_A373.getValue();
			break;
		case NORMAL_RANGE:
			this.strCodeValue = EnumCV_DegreeFindings.NORMAL_RANGE_R_40765.getValue();
			break;
		case SEVERELY_ELEVATED:
			this.strCodeValue = EnumCV_DegreeFindings.SEVERELY_ELEVATED_G_A37A.getValue();
			break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumDegreeFindings Object of EnumCM_DegreeFindings represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_DegreeFindings enumDegreeFindings)
	{
		switch(enumDegreeFindings)
		{
		case DECREASED : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.DECREASED.getSNOMEDCTID(); break;
		case ELEVATED : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.ELEVATED.getSNOMEDCTID(); break;
		case SEVERELY_ELEVATED : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.SEVERELY_ELEVATED.getSNOMEDCTID(); break;
		case NORMAL_RANGE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.NORMAL_RANGE.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for DegreeFindings
	 * @param enumDegreeFindings Object of EnumCM_DegreeFindings.
	 */
	public void setDegreeFindings(EnumCM_DegreeFindings enumDegreeFindings)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumDegreeFindings.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumDegreeFindings);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumDegreeFindings);
	}
}
