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


/**
 * This class represents ElectrophysiologyAnnotations - CID3339
 */
public class ElectrophysiologyAnnotations_CID3339 
{
	
	/**
	 * 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 ElectrophysiologyAnnotations_CID3339 Template 
	 */
	public ElectrophysiologyAnnotations_CID3339()
	{

	}

	/**
	 * 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 enumElectrophysiologyAnnotations Object of EnumCM_ElectrophysiologyAnnotations represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ElectrophysiologyAnnotations enumElectrophysiologyAnnotations)
	{
		switch(enumElectrophysiologyAnnotations)
		{
		case ABLATION_OFF: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.ABLATION_OFF_109038.getValue(); break;
		case ABLATION_ON: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.ABLATION_ON_109039.getValue(); break;
		case HIS_BUNDLE_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.HIS_BUNDLE_WAVE_109040.getValue(); break;
		case P_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.P_WAVE_109041.getValue(); break;
		case Q_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.Q_WAVE_109042.getValue(); break;
		case R_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.R_WAVE_109043.getValue(); break;
		case S_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.S_WAVE_109044.getValue(); break;
		case START_OF_ATRIAL_CONTRACTION: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.START_OF_ATRIAL_CONTRACTION_109045.getValue(); break;
		case START_OF_ATRIAL_CONTRACTION_SUBSEQUENT: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.START_OF_ATRIAL_CONTRACTION_SUBSEQUENT_109046.getValue(); break;
		case STIMULATION_AT_RATE_1_INTERVAL: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.STIMULATION_AT_RATE_1_INTERVAL_109047.getValue(); break;
		case STIMULATION_AT_RATE_2_INTERVAL: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.STIMULATION_AT_RATE_2_INTERVAL_109048.getValue(); break;
		case STIMULATION_AT_RATE_3_INTERVAL: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.STIMULATION_AT_RATE_3_INTERVAL_109049.getValue(); break;
		case STIMULATION_AT_RATE_4_INTERVAL: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.STIMULATION_AT_RATE_4_INTERVAL_109050.getValue(); break;
		case T_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.T_WAVE_109051.getValue(); break;
		case V_WAVE: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.V_WAVE_109052.getValue(); break;
		case V_WAVE_OF_NEXT_BEAT: this.strCodeValue =EnumCV_ElectrophysiologyAnnotations.V_WAVE_OF_NEXT_BEAT_109053.getValue(); break;
		}
	}

	/**
	 * Sets the value for ElectrophysiologyAnnotations
	 * @param enumElectrophysiologyAnnotations Object of EnumCM_ElectrophysiologyAnnotations.
	 */
	public void setElectrophysiologyAnnotations(EnumCM_ElectrophysiologyAnnotations enumElectrophysiologyAnnotations)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumElectrophysiologyAnnotations.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumElectrophysiologyAnnotations);
	}
}
