/*******************************************************************************
 *  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_StressTestProcedurePhases;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_StressTestProcedurePhases;


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

	}

	/**
	 * 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 enumStressTestProcedurePhases Object of EnumCM_StressTestProcedurePhases represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_StressTestProcedurePhases enumStressTestProcedurePhases)
	{
		switch(enumStressTestProcedurePhases)
		{
		case RESTING_STATE: this.strCodeValue =EnumCV_StressTestProcedurePhases.RESTING_STATE_F_01604.getValue(); break;
		case CARDIAC_STRESS_STATE: this.strCodeValue =EnumCV_StressTestProcedurePhases.CARDIAC_STRESS_STATE_F_05019.getValue(); break;
		case PEAK_CARDIAC_STRESS_STATE: this.strCodeValue =EnumCV_StressTestProcedurePhases.PEAK_CARDIAC_STRESS_STATE_F_05028.getValue(); break;
		case CARDIAC_STRESS_RECOVERY_STATE: this.strCodeValue =EnumCV_StressTestProcedurePhases.CARDIAC_STRESS_RECOVERY_STATE_F_05018.getValue(); break;
		case HYPERVENTILATION: this.strCodeValue =EnumCV_StressTestProcedurePhases.HYPERVENTILATION_F_25040.getValue(); break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumStressTestProcedurePhases Object of EnumCM_StressTestProcedurePhases represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_StressTestProcedurePhases enumStressTestProcedurePhases)
	{
		switch(enumStressTestProcedurePhases)
		{
		case RESTING_STATE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.RESTING_STATE.getSNOMEDCTID(); break;
		case CARDIAC_STRESS_STATE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CARDIAC_STRESS_STATE.getSNOMEDCTID(); break;
		case PEAK_CARDIAC_STRESS_STATE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PEAK_CARDIAC_STRESS_STATE.getSNOMEDCTID(); break;
		case CARDIAC_STRESS_RECOVERY_STATE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CARDIAC_STRESS_RECOVERY_STATE.getSNOMEDCTID(); break;
		case HYPERVENTILATION: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.HYPERVENTILATION.getSNOMEDCTID(); break;
		}
	}

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

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