/*******************************************************************************
 *  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.dicomsnomedmap.EnumChestCardiacSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CathComplications;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CathComplications;


/**
 * This class represents CathComplications - CID3755
 */
public class CathComplications_CID3755  
{
	
	/**
	 * 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 Coding Scheme Version for template.
	 */
	private String strCodingSchemeVersion;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;	
	/**
	 * Instantiates a new VascularComplications_CID3754 Template 
	 */
	public CathComplications_CID3755()
	{
		
	}
	
	/**
	 * Retrieves the value for Code Meaning.
	 * @return String value for Code Meaning.
	 */
	public String getCodeMeaning()
	{
		return strCodeMeaning;
	}
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * 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 Coding Scheme Version
	 * @return String value for Coding Scheme Version
	 */
	public String getCodingSchemeVersion() {
		return strCodingSchemeVersion;
	}
	
	
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumCathComplications Object of EnumCM_CathComplications represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_CathComplications enumCathComplications)
	{
		switch(enumCathComplications)
		{
		case CARDIOGENIC_SHOCK: this.strCodeValue =EnumCV_CathComplications.CARDIOGENIC_SHOCK_D3_00200.getValue(); break;
		case ARRHYTHMIA: this.strCodeValue =EnumCV_CathComplications.ARRHYTHMIA_D3_30000.getValue(); break;
		case CEREBROVASCULAR_ACCIDENT_OR_STROKE: this.strCodeValue =EnumCV_CathComplications.CEREBROVASCULAR_ACCIDENT_OR_STROKE_D3_8900D.getValue(); break;
		case CARDIAC_TAMPONADE: this.strCodeValue =EnumCV_CathComplications.CARDIAC_TAMPONADE_D3_90100.getValue(); break;
		case CONTRAST_MEDIA_ADVERSE_REACTION: this.strCodeValue =EnumCV_CathComplications.CONTRAST_MEDIA_ADVERSE_REACTION_DF_10781.getValue(); break;
		case CONGESTIVE_HEART_FAILURE: this.strCodeValue =EnumCV_CathComplications.CONGESTIVE_HEART_FAILURE_D3_16010.getValue(); break;
		case RENAL_FAILURE: this.strCodeValue =EnumCV_CathComplications.RENAL_FAILURE_D7_11010.getValue(); break;
		case EMERGENCY_PERCUTANEOUS_CORONARY_INTERVENTION: this.strCodeValue =EnumCV_CathComplications.EMERGENCY_PERCUTANEOUS_CORONARY_INTERVENTION_R_102B5.getValue(); break;
		case EMERGENCY_CORONARY_ARTERY_BYPASS: this.strCodeValue =EnumCV_CathComplications.EMERGENCY_CORONARY_ARTERY_BYPASS_R_102B3.getValue(); break;
		case CARDIAC_ARREST: this.strCodeValue =EnumCV_CathComplications.CARDIAC_ARREST_D3_30800.getValue(); break;
			
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumCathComplications Object of EnumCM_CathComplications represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_CathComplications enumCathComplications)
	{
		switch(enumCathComplications)
		{
		case CARDIOGENIC_SHOCK : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIOGENIC_SHOCK.getSNOMEDCTID(); break;
		case ARRHYTHMIA : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.ARRHYTHMIA.getSNOMEDCTID(); break;
		case CEREBROVASCULAR_ACCIDENT_OR_STROKE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CEREBROVASCULAR_ACCIDENT_OR_STROKE.getSNOMEDCTID(); break;
		case CARDIAC_TAMPONADE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_TAMPONADE.getSNOMEDCTID(); break;
		case CONTRAST_MEDIA_ADVERSE_REACTION : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CONTRAST_MEDIA_ADVERSE_REACTION.getSNOMEDCTID(); break;
		case CONGESTIVE_HEART_FAILURE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CONGESTIVE_HEART_FAILURE.getSNOMEDCTID(); break;
		case RENAL_FAILURE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.RENAL_FAILURE.getSNOMEDCTID(); break;
		case EMERGENCY_PERCUTANEOUS_CORONARY_INTERVENTION : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.EMERGENCY_PERCUTANEOUS_CORONARY_INTERVENTION.getSNOMEDCTID(); break;
		case EMERGENCY_CORONARY_ARTERY_BYPASS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.EMERGENCY_CORONARY_ARTERY_BYPASS.getSNOMEDCTID(); break;
		case CARDIAC_ARREST : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_ARREST.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for Cath Complications
	 * @param enumCathComplications Object of EnumCM_CathComplications.
	 */
	public void setCathComplications(EnumCM_CathComplications enumCathComplications)
	{
		this.strCodeMeaning = enumCathComplications.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		
		setCodeValue(enumCathComplications);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumCathComplications);
	}
}
