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


/**
 * This class represents IntracoronaryDevices - CID3411
 */
public class IntracoronaryDevices_CID3411  
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;
	
	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;
	
	/**
	 * Instantiates a new IntracoronaryDevices_CID3411 Template 
	 */
	public IntracoronaryDevices_CID3411()
	{
		
	}
	
	/**
	 * 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 SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}

	/**
	 * Retrieves the value for Coding Scheme Designator.
	 * @return String value for Coding Scheme Designator.
	 */
	public String getCodingSchemeDesignator() 
	{
		return strCodingSchemeDesignator;
	}
	
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumIntracoronaryDevices Object of EnumIntracoronaryDevices represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_IntracoronaryDevices enumIntracoronaryDevices)
	{
		switch(enumIntracoronaryDevices)
		{
		case PERCUTANEOUS_TRANSLUMINAL_ANGIOPLASTY_BALLOON: this.strCodeValue =EnumCV_IntracoronaryDevices.PERCUTANEOUS_TRANSLUMINAL_ANGIOPLASTY_BALLOON_A_26912.getValue(); break;
		case CUTTING_BALLOON_ANGIOPLASTY_CBA_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.CUTTING_BALLOON_ANGIOPLASTY_CBA_DEVICE_R_002F0.getValue(); break;
		case STENT: this.strCodeValue =EnumCV_IntracoronaryDevices.STENT_A_25500.getValue(); break;
		case DIRECTIONAL_CORONARY_ATHERECTOMY_DCA_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.DIRECTIONAL_CORONARY_ATHERECTOMY_DCA_DEVICE_R_002FD.getValue(); break;
		case ROTATIONAL_ATHERECTOMY_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.ROTATIONAL_ATHERECTOMY_DEVICE_A_25610.getValue(); break;
		case SALINE_THROMBECTOMY: this.strCodeValue =EnumCV_IntracoronaryDevices.SALINE_THROMBECTOMY_R_0036F.getValue(); break;
		case TRANSLUMINAL_EXTRACTION_CATHETER_TEC: this.strCodeValue =EnumCV_IntracoronaryDevices.TRANSLUMINAL_EXTRACTION_CATHETER_TEC_A_26920.getValue(); break;
		case LASER: this.strCodeValue =EnumCV_IntracoronaryDevices.LASER_A_81080.getValue(); break;
		case INTRAVASCULAR_ULTRASOUND_IVUS_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.INTRAVASCULAR_ULTRASOUND_IVUS_DEVICE_R_00312.getValue(); break;
		case INTRACORONARY_DOPPLER_GUIDE_WIRE: this.strCodeValue =EnumCV_IntracoronaryDevices.INTRACORONARY_DOPPLER_GUIDE_WIRE_R_00310.getValue(); break;
		case INTRACORONARY_PRESSURE_GUIDE_WIRE: this.strCodeValue =EnumCV_IntracoronaryDevices.INTRACORONARY_PRESSURE_GUIDE_WIRE_R_00311.getValue(); break;
		case BRACHYTHERAPY_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.BRACHYTHERAPY_DEVICE_A_040ED.getValue(); break;
		case RADIOFREQUENCY_ABLATION_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.RADIOFREQUENCY_ABLATION_DEVICE_R_00361.getValue(); break;
		case INTRAVASCULAR_OPTICAL_COHERENCE_TOMOGRAPHY_DEVICE: this.strCodeValue =EnumCV_IntracoronaryDevices.INTRAVASCULAR_OPTICAL_COHERENCE_TOMOGRAPHY_DEVICE_A_00D87.getValue(); break;
		case GUIDE_WIRE: this.strCodeValue =EnumCV_IntracoronaryDevices.GUIDE_WIRE_A_00927.getValue(); break;
		case GUIDING_CATHETER: this.strCodeValue =EnumCV_IntracoronaryDevices.GUIDING_CATHETER_A_26802.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumIntracoronaryDevices Object of EnumCM_IntracoronaryDevices represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_IntracoronaryDevices enumIntracoronaryDevices)
	{
		switch(enumIntracoronaryDevices)
		{
		case PERCUTANEOUS_TRANSLUMINAL_ANGIOPLASTY_BALLOON : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.PERCUTANEOUS_TRANSLUMINAL_ANGIOPLASTY_BALLOON.getSNOMEDCTID(); break;
		case CUTTING_BALLOON_ANGIOPLASTY_CBA_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CUTTING_BALLOON_ANGIOPLASTY_CBA_DEVICE.getSNOMEDCTID(); break;
		case STENT : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.STENT.getSNOMEDCTID(); break;
		case DIRECTIONAL_CORONARY_ATHERECTOMY_DCA_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.DIRECTIONAL_CORONARY_ATHERECTOMY_DCA_DEVICE.getSNOMEDCTID(); break;
		case ROTATIONAL_ATHERECTOMY_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.ROTATIONAL_ATHERECTOMY_DEVICE.getSNOMEDCTID(); break;
		case SALINE_THROMBECTOMY : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.SALINE_THROMBECTOMY.getSNOMEDCTID(); break;
		case TRANSLUMINAL_EXTRACTION_CATHETER_TEC : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.TRANSLUMINAL_EXTRACTION_CATHETER_TEC.getSNOMEDCTID(); break;
		case LASER : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.LASER.getSNOMEDCTID(); break;
		case INTRAVASCULAR_ULTRASOUND_IVUS_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.INTRAVASCULAR_ULTRASOUND_IVUS_DEVICE.getSNOMEDCTID(); break;
		case INTRACORONARY_DOPPLER_GUIDE_WIRE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.INTRACORONARY_DOPPLER_GUIDE_WIRE.getSNOMEDCTID(); break;
		case INTRACORONARY_PRESSURE_GUIDE_WIRE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.INTRACORONARY_PRESSURE_GUIDE_WIRE.getSNOMEDCTID(); break;
		case BRACHYTHERAPY_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.BRACHYTHERAPY_DEVICE.getSNOMEDCTID(); break;
		case RADIOFREQUENCY_ABLATION_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.RADIOFREQUENCY_ABLATION_DEVICE.getSNOMEDCTID(); break;
		case INTRAVASCULAR_OPTICAL_COHERENCE_TOMOGRAPHY_DEVICE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.INTRAVASCULAR_OPTICAL_COHERENCE_TOMOGRAPHY_DEVICE.getSNOMEDCTID(); break;
		case GUIDE_WIRE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.GUIDE_WIRE.getSNOMEDCTID(); break;
		case GUIDING_CATHETER : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.GUIDING_CATHETER.getSNOMEDCTID(); break;
		}
	}
	
	/**
	 * Sets the value for Intracoronary Devices
	 * @param enumIntracoronaryDevices Object of EnumIntracoronaryDevices.
	 */
	public void setIntracoronaryDevices(EnumCM_IntracoronaryDevices enumIntracoronaryDevices)
	{
		this.strCodeMeaning = enumIntracoronaryDevices.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		setCodeValue(enumIntracoronaryDevices);

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