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


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

	}

	/**
	 * 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 enumIndicationsForPharmacologicalStressTest Object of EnumCM_IndicationsForPharmacologicalStressTest represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_IndicationsForPharmacologicalStressTest enumIndicationsForPharmacologicalStressTest)
	{
		switch(enumIndicationsForPharmacologicalStressTest)
		{
		case LEFT_BUNDLE_BRANCH_BLOCK: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.LEFT_BUNDLE_BRANCH_BLOCK_D3_33120.getValue(); break;
		case PATIENT_HAS_PACEMAKER: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.PATIENT_HAS_PACEMAKER_R_0039E.getValue(); break;
		case PARALYTIC_SYNDROME: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.PARALYTIC_SYNDROME_DA_26000.getValue(); break;
		case ATAXIA_OR_INCOORDINATION: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.ATAXIA_OR_INCOORDINATION_F_A4580.getValue(); break;
		case PERIPHERAL_VASCULAR_DISEASE: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.PERIPHERAL_VASCULAR_DISEASE_D3_8005B.getValue(); break;
		case PULMONARY_DISEASE: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.PULMONARY_DISEASE_D2_50000.getValue(); break;
		case GAIT_PROBLEM: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.GAIT_PROBLEM_F_18002.getValue(); break;
		case TRANSIENT_LIMB_PARALYSIS: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.TRANSIENT_LIMB_PARALYSIS_F_A0846.getValue(); break;
		case ASTHENIA_DEBILITY: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.ASTHENIA_DEBILITY_F_01380.getValue(); break;
		case CACHEXIA: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.CACHEXIA_F_029F7.getValue(); break;
		case FRACTURE_OF_LOWER_LIMB: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.FRACTURE_OF_LOWER_LIMB_DD_13000.getValue(); break;
		case OPEN_WOUND_OF_LOWER_LIMB: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.OPEN_WOUND_OF_LOWER_LIMB_DD_33500.getValue(); break;
		case LOWER_LIMB_AMPUTATION: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.LOWER_LIMB_AMPUTATION_G_02BD.getValue(); break;
		case REQUEST_BY_PHYSICIAN: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.REQUEST_BY_PHYSICIAN_G_0202.getValue(); break;
		case DEPENDENCE_ON_ENABLING_MACHINE_OR_DEVICE: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.DEPENDENCE_ON_ENABLING_MACHINE_OR_DEVICE_S_20570.getValue(); break;
		case RECENT_MYOCARDIAL_INFARCTION: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.RECENT_MYOCARDIAL_INFARCTION_G_044D.getValue(); break;
		case CANNOT_REACH_TARGET_HEART_RATE: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.CANNOT_REACH_TARGET_HEART_RATE_F_33019.getValue(); break;
		case PATIENT_WEIGHT_EXCEEDS_EQUIPMENT_LIMIT: this.strCodeValue =EnumCV_IndicationsForPharmacologicalStressTest.PATIENT_WEIGHT_EXCEEDS_EQUIPMENT_LIMIT_122764.getValue(); break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumIndicationsForPharmacologicalStressTest Object of EnumCM_IndicationsForPharmacologicalStressTest represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_IndicationsForPharmacologicalStressTest enumIndicationsForPharmacologicalStressTest)
	{
		switch(enumIndicationsForPharmacologicalStressTest)
		{
		case LEFT_BUNDLE_BRANCH_BLOCK: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LEFT_BUNDLE_BRANCH_BLOCK.getSNOMEDCTID(); break;
		case PATIENT_HAS_PACEMAKER: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PATIENT_HAS_PACEMAKER.getSNOMEDCTID(); break;
		case PARALYTIC_SYNDROME: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PARALYTIC_SYNDROME.getSNOMEDCTID(); break;
		case ATAXIA_OR_INCOORDINATION: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ATAXIA_OR_INCOORDINATION.getSNOMEDCTID(); break;
		case PERIPHERAL_VASCULAR_DISEASE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PERIPHERAL_VASCULAR_DISEASE.getSNOMEDCTID(); break;
		case PULMONARY_DISEASE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PULMONARY_DISEASE.getSNOMEDCTID(); break;
		case GAIT_PROBLEM: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.GAIT_PROBLEM.getSNOMEDCTID(); break;
		case TRANSIENT_LIMB_PARALYSIS: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.TRANSIENT_LIMB_PARALYSIS.getSNOMEDCTID(); break;
		case ASTHENIA_DEBILITY: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ASTHENIA_DEBILITY.getSNOMEDCTID(); break;
		case CACHEXIA: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CACHEXIA.getSNOMEDCTID(); break;
		case FRACTURE_OF_LOWER_LIMB: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.FRACTURE_OF_LOWER_LIMB.getSNOMEDCTID(); break;
		case OPEN_WOUND_OF_LOWER_LIMB: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.OPEN_WOUND_OF_LOWER_LIMB.getSNOMEDCTID(); break;
		case LOWER_LIMB_AMPUTATION: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LOWER_LIMB_AMPUTATION.getSNOMEDCTID(); break;
		case REQUEST_BY_PHYSICIAN: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.REQUEST_BY_PHYSICIAN.getSNOMEDCTID(); break;
		case DEPENDENCE_ON_ENABLING_MACHINE_OR_DEVICE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.DEPENDENCE_ON_ENABLING_MACHINE_OR_DEVICE.getSNOMEDCTID(); break;
		case RECENT_MYOCARDIAL_INFARCTION: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.RECENT_MYOCARDIAL_INFARCTION.getSNOMEDCTID(); break;
		case CANNOT_REACH_TARGET_HEART_RATE: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CANNOT_REACH_TARGET_HEART_RATE.getSNOMEDCTID(); break;

		}
	}

	/**
	 * Sets the value for IndicationsForPharmacologicalStressTest
	 * @param enumIndicationsForPharmacologicalStressTest Object of EnumCM_IndicationsForPharmacologicalStressTest.
	 */
	public void setIndicationsForPharmacologicalStressTest(EnumCM_IndicationsForPharmacologicalStressTest enumIndicationsForPharmacologicalStressTest)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumIndicationsForPharmacologicalStressTest.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_IndicationsForPharmacologicalStressTest.PATIENT_WEIGHT_EXCEEDS_EQUIPMENT_LIMIT.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumIndicationsForPharmacologicalStressTest);

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