/*******************************************************************************
 *  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_StressProtocols;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_StressProtocols;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;
/**
 * This class represents StressProtocols CID3261
 */
public class StressProtocols_CID3261 {

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

	}

	/**
	 * 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 enumStressProtocols Object of EnumCM_StressProtocols represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_StressProtocols enumStressProtocols)
	{
		switch(enumStressProtocols) 
		{
		case BALKE_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.BALKE_PROTOCOL_P2_7131C.getValue(); break;
		case BRUCE_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.BRUCE_PROTOCOL_P2_7131A.getValue(); break;
		case ELLESTAD_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.ELLESTAD_PROTOCOL_P2_7131D.getValue(); break;
		case MODIFIED_BRUCE_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.MODIFIED_BRUCE_PROTOCOL_P2_7131B.getValue(); break;
		case MODIFIED_NAUGHTON_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.MODIFIED_NAUGHTON_PROTOCOL_P2_713A1.getValue(); break;
		case NAUGHTON_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.NAUGHTON_PROTOCOL_P2_713A0.getValue(); break;
		case PEPPER_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.PEPPER_PROTOCOL_P2_7131F.getValue(); break;
		case RAMP_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.RAMP_PROTOCOL_P2_7131E.getValue(); break;
		case EXERCISE_STRESS_ECG_TEST: this.strCodeValue =EnumCV_StressProtocols.EXERCISE_STRESS_ECG_TEST_P2_31010.getValue(); break;
		case STRESSTESTUSINGBICYCLEERGOMETER: this.strCodeValue =EnumCV_StressProtocols.STRESSTESTUSINGBICYCLEERGOMETER_P2_31102.getValue(); break;
		case PHARMACOLOGIC_STRESS_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.PHARMACOLOGIC_STRESS_PROTOCOL_P2_31107.getValue(); break;
		case DIPYRIDAMOLE_STRESS_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.DIPYRIDAMOLE_STRESS_PROTOCOL_P2_3110A.getValue(); break;
		case ADENOSINE_STRESS_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.ADENOSINE_STRESS_PROTOCOL_P2_31109.getValue(); break;
		case DOBUTAMINE_STRESS_PROTOCOL: this.strCodeValue =EnumCV_StressProtocols.DOBUTAMINE_STRESS_PROTOCOL_P2_31108.getValue(); break;
		case PHARMACOLOGIC_AND_EXERCISE_STRESS_TEST: this.strCodeValue =EnumCV_StressProtocols.PHARMACOLOGIC_AND_EXERCISE_STRESS_TEST_P2_31011.getValue(); break;
		case STRESS_TEST_USING_CARDIAC_PACING: this.strCodeValue =EnumCV_StressProtocols.STRESS_TEST_USING_CARDIAC_PACING_P2_3110B.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumStressProtocols Object of EnumCM_StressProtocols represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_StressProtocols enumStressProtocols)
	{
		switch(enumStressProtocols)
		{
		case BALKE_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.BALKE_PROTOCOL.getSNOMEDCTID(); break;
		case BRUCE_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.BRUCE_PROTOCOL.getSNOMEDCTID(); break;
		case ELLESTAD_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ELLESTAD_PROTOCOL.getSNOMEDCTID(); break;
		case MODIFIED_BRUCE_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.MODIFIED_BRUCE_PROTOCOL.getSNOMEDCTID(); break;
		case MODIFIED_NAUGHTON_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.MODIFIED_NAUGHTON_PROTOCOL.getSNOMEDCTID(); break;
		case NAUGHTON_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.NAUGHTON_PROTOCOL.getSNOMEDCTID(); break;
		case PEPPER_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PEPPER_PROTOCOL.getSNOMEDCTID(); break;
		case RAMP_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.RAMP_PROTOCOL.getSNOMEDCTID(); break;
		case EXERCISE_STRESS_ECG_TEST : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.EXERCISE_STRESS_ECG_TEST.getSNOMEDCTID(); break;
		case STRESSTESTUSINGBICYCLEERGOMETER : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.STRESSTESTUSINGBICYCLEERGOMETER.getSNOMEDCTID(); break;
		case PHARMACOLOGIC_STRESS_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PHARMACOLOGIC_STRESS_PROTOCOL.getSNOMEDCTID(); break;
		case DIPYRIDAMOLE_STRESS_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.DIPYRIDAMOLE_STRESS_PROTOCOL.getSNOMEDCTID(); break;
		case ADENOSINE_STRESS_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ADENOSINE_STRESS_PROTOCOL.getSNOMEDCTID(); break;
		case DOBUTAMINE_STRESS_PROTOCOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.DOBUTAMINE_STRESS_PROTOCOL.getSNOMEDCTID(); break;
		case PHARMACOLOGIC_AND_EXERCISE_STRESS_TEST : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PHARMACOLOGIC_AND_EXERCISE_STRESS_TEST.getSNOMEDCTID(); break;
		case STRESS_TEST_USING_CARDIAC_PACING : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.STRESS_TEST_USING_CARDIAC_PACING.getSNOMEDCTID(); break;
		}
	}

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

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