/*******************************************************************************
 *  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.EnumDICOMSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ECGControlVariablesNumeric;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ECGControlVariablesNumeric;

/**
 * This class represents ECGControlVariablesNumeric_CID3690
 */
public class ECGControlVariablesNumeric_CID3690 {
	/**
	 * 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;

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

	}

	/**
	 * 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 enumECGControlVariablesNumeric Object of EnumCM_ECGControlVariablesNumeric represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ECGControlVariablesNumeric enumECGControlVariablesNumeric)
	{
		switch(enumECGControlVariablesNumeric)
		{
		case SAMPLE_RATE: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.SAMPLE_RATE_10_11393.getValue(); break;
		case SENSITIVITY: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.SENSITIVITY_10_11394.getValue(); break;
		case ZERO_OFFSET: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.ZERO_OFFSET_10_11395.getValue(); break;
		case PAD_VALUE: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.PAD_VALUE_10_11397.getValue(); break;
		case TIME_SKEW: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.TIME_SKEW_10_11398.getValue(); break;
		case SAMPLE_SKEW: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.SAMPLE_SKEW_10_11399.getValue(); break;
		case TIME_OFFSET: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.TIME_OFFSET_10_11400.getValue(); break;
		case LOW_PASS_FILTER_CUTOFF_FREQ: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.LOW_PASS_FILTER_CUTOFF_FREQ_10_11403.getValue(); break;
		case NOTCH_FILTER_FREQUENCY: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.NOTCH_FILTER_FREQUENCY_10_11408.getValue(); break;
		case NOTCH_FILTER_BANDWIDTH: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.NOTCH_FILTER_BANDWIDTH_10_11409.getValue(); break;
		case INTERPOLATOR_SNR: this.strCodeValue =EnumCV_ECGControlVariablesNumeric.INTERPOLATOR_SNR_10_11418.getValue(); break;
		}
	}

	/**
	 * Sets the value for ECGControlVariablesNumeric
	 * @param enumECGControlVariablesNumeric Object of EnumCM_ECGControlVariablesNumeric.
	 */
	public void setECGControlVariablesNumeric(EnumCM_ECGControlVariablesNumeric enumECGControlVariablesNumeric)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumECGControlVariablesNumeric.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.MDC.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumECGControlVariablesNumeric);
	}
}
