/*******************************************************************************
 *  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.dicomsnomedmap.EnumRadiologySNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ECGFindings;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ECGFindings;


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

	}

	/**
	 * 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 enumECGFindings Object of EnumCM_ECGFindings represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ECGFindings enumECGFindings)
	{
		switch(enumECGFindings)
		{
		case NORMAL: this.strCodeValue =EnumCV_ECGFindings.NORMAL_F_000B7.getValue(); break;
		case ATRIAL_PREMATURE_CONTRACTION: this.strCodeValue =EnumCV_ECGFindings.ATRIAL_PREMATURE_CONTRACTION_D3_30A03.getValue(); break;
		case VENTRICULAR_PREMATURE_CONTRACTION: this.strCodeValue =EnumCV_ECGFindings.VENTRICULAR_PREMATURE_CONTRACTION_D3_31740.getValue(); break;
		case ATRIAL_FIBRILLATION: this.strCodeValue =EnumCV_ECGFindings.ATRIAL_FIBRILLATION_D3_31520.getValue(); break;
		case SUPRAVENTRICULAR_TACHYCARDIA: this.strCodeValue =EnumCV_ECGFindings.SUPRAVENTRICULAR_TACHYCARDIA_D3_31290.getValue(); break;
		case NON_SUSTAINED_VENTRICULAR_TACHYCARDIA: this.strCodeValue =EnumCV_ECGFindings.NON_SUSTAINED_VENTRICULAR_TACHYCARDIA_D3_31710.getValue(); break;
		case VENTRICULAR_TACHYCARDIA: this.strCodeValue =EnumCV_ECGFindings.VENTRICULAR_TACHYCARDIA_D3_31700.getValue(); break;
		case VENTRICULAR_FIBRILLATION: this.strCodeValue =EnumCV_ECGFindings.VENTRICULAR_FIBRILLATION_D3_31720.getValue(); break;
		case INTRAVENTRICULAR_CONDUCTION_DISTURBANCE: this.strCodeValue =EnumCV_ECGFindings.INTRAVENTRICULAR_CONDUCTION_DISTURBANCE_D3_33000.getValue(); break;
		case LEFT_BUNDLE_BRANCH_BLOCK: this.strCodeValue =EnumCV_ECGFindings.LEFT_BUNDLE_BRANCH_BLOCK_D3_33120.getValue(); break;
		case RIGHT_BUNDLE_BRANCH_BLOCK: this.strCodeValue =EnumCV_ECGFindings.RIGHT_BUNDLE_BRANCH_BLOCK_D3_33110.getValue(); break;
		case INCOMPLETE_LEFT_BUNDLE_BRANCH_BLOCK: this.strCodeValue =EnumCV_ECGFindings.INCOMPLETE_LEFT_BUNDLE_BRANCH_BLOCK_D3_33122.getValue(); break;
		case INCOMPLETE_RIGHT_BUNDLE_BRANCH_BLOCK: this.strCodeValue =EnumCV_ECGFindings.INCOMPLETE_RIGHT_BUNDLE_BRANCH_BLOCK_D3_33112.getValue(); break;
		case BIFASCICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.BIFASCICULAR_BLOCK_D3_33200.getValue(); break;
		case LEFT_ANTERIOR_FASCICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.LEFT_ANTERIOR_FASCICULAR_BLOCK_D3_33140.getValue(); break;
		case LEFT_POSTERIOR_FASCICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.LEFT_POSTERIOR_FASCICULAR_BLOCK_D3_33150.getValue(); break;
		case FIRST_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.FIRST_DEGREE_ATRIOVENTRICULAR_BLOCK_D3_30001.getValue(); break;
		case SECOND_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.SECOND_DEGREE_ATRIOVENTRICULAR_BLOCK_R_F81AE.getValue(); break;
		case THIRD_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strCodeValue =EnumCV_ECGFindings.THIRD_DEGREE_ATRIOVENTRICULAR_BLOCK_D3_32102.getValue(); break;
		case VENTRICULAR_PRE_EXCITATION: this.strCodeValue =EnumCV_ECGFindings.VENTRICULAR_PRE_EXCITATION_D3_31351.getValue(); break;
		case ST_DEPRESSION: this.strCodeValue =EnumCV_ECGFindings.ST_DEPRESSION_F_38278.getValue(); break;
		case ST_ELEVATION: this.strCodeValue =EnumCV_ECGFindings.ST_ELEVATION_F_38277.getValue(); break;
		case EARLY_REPOLARIZATION: this.strCodeValue =EnumCV_ECGFindings.EARLY_REPOLARIZATION_F_380B3.getValue(); break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumECGFindings Object of EnumCM_ECGFindings represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_ECGFindings enumECGFindings)
	{
		switch(enumECGFindings)
		{
		case NORMAL: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.NORMAL.getSNOMEDCTID(); break;
		case ATRIAL_PREMATURE_CONTRACTION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ATRIAL_PREMATURE_CONTRACTION.getSNOMEDCTID(); break;
		case VENTRICULAR_PREMATURE_CONTRACTION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.VENTRICULAR_PREMATURE_CONTRACTION.getSNOMEDCTID(); break;
		case ATRIAL_FIBRILLATION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ATRIAL_FIBRILLATION.getSNOMEDCTID(); break;
		case SUPRAVENTRICULAR_TACHYCARDIA: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.SUPRAVENTRICULAR_TACHYCARDIA.getSNOMEDCTID(); break;
		case NON_SUSTAINED_VENTRICULAR_TACHYCARDIA: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.NON_SUSTAINED_VENTRICULAR_TACHYCARDIA.getSNOMEDCTID(); break;
		case VENTRICULAR_TACHYCARDIA: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.VENTRICULAR_TACHYCARDIA.getSNOMEDCTID(); break;
		case VENTRICULAR_FIBRILLATION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.VENTRICULAR_FIBRILLATION.getSNOMEDCTID(); break;
		case INTRAVENTRICULAR_CONDUCTION_DISTURBANCE: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INTRAVENTRICULAR_CONDUCTION_DISTURBANCE.getSNOMEDCTID(); break;
		case LEFT_BUNDLE_BRANCH_BLOCK: this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LEFT_BUNDLE_BRANCH_BLOCK.getSNOMEDCTID(); break;
		case RIGHT_BUNDLE_BRANCH_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.RIGHT_BUNDLE_BRANCH_BLOCK.getSNOMEDCTID(); break;
		case INCOMPLETE_LEFT_BUNDLE_BRANCH_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INCOMPLETE_LEFT_BUNDLE_BRANCH_BLOCK.getSNOMEDCTID(); break;
		case INCOMPLETE_RIGHT_BUNDLE_BRANCH_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INCOMPLETE_RIGHT_BUNDLE_BRANCH_BLOCK.getSNOMEDCTID(); break;
		case BIFASCICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.BIFASCICULAR_BLOCK.getSNOMEDCTID(); break;
		case LEFT_ANTERIOR_FASCICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.LEFT_ANTERIOR_FASCICULAR_BLOCK.getSNOMEDCTID(); break;
		case LEFT_POSTERIOR_FASCICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.LEFT_POSTERIOR_FASCICULAR_BLOCK.getSNOMEDCTID(); break;
		case FIRST_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.FIRST_DEGREE_ATRIOVENTRICULAR_BLOCK.getSNOMEDCTID(); break;
		case SECOND_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SECOND_DEGREE_ATRIOVENTRICULAR_BLOCK.getSNOMEDCTID(); break;
		case THIRD_DEGREE_ATRIOVENTRICULAR_BLOCK: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.THIRD_DEGREE_ATRIOVENTRICULAR_BLOCK.getSNOMEDCTID(); break;
		case VENTRICULAR_PRE_EXCITATION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.VENTRICULAR_PRE_EXCITATION.getSNOMEDCTID(); break;
		case ST_DEPRESSION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ST_DEPRESSION.getSNOMEDCTID(); break;
		case ST_ELEVATION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ST_ELEVATION.getSNOMEDCTID(); break;
		case EARLY_REPOLARIZATION: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.EARLY_REPOLARIZATION.getSNOMEDCTID(); break;
		case NONSPECIFIC_ST_T_ABNORMALITY: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.NONSPECIFIC_ST_T_ABNORMALITY.getSNOMEDCTID(); break;
		case SECONDARY_ST_T_ABNORMALITY: this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SECONDARY_ST_T_ABNORMALITY.getSNOMEDCTID(); break;
		}
	}

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

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