/*******************************************************************************
 *  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.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_InterventionActionsAndStatus;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_InterventionActionsAndStatus;


/**
 * This class represents InterventionActionsAndStatus - CID3412
 */
public class InterventionActionsAndStatus_CID3412 
{
	
	/**
	 * 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;

	/**
	 * Instantiates a new InterventionActionsAndStatus_CID3412 Template 
	 */
	public InterventionActionsAndStatus_CID3412()
	{

	}

	/**
	 * 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;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumInterventionActionsAndStatus Object of EnumCM_InterventionActionsAndStatus represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_InterventionActionsAndStatus enumInterventionActionsAndStatus)
	{
		switch(enumInterventionActionsAndStatus)
		{
		case GUIDEWIRE_CROSSING_LESION_UNSUCCESSFUL: this.strCodeValue =EnumCV_InterventionActionsAndStatus.GUIDEWIRE_CROSSING_LESION_UNSUCCESSFUL_122301.getValue(); break;
		case GUIDEWIRE_CROSSING_LESION_SUCCESSFUL: this.strCodeValue =EnumCV_InterventionActionsAndStatus.GUIDEWIRE_CROSSING_LESION_SUCCESSFUL_122302.getValue(); break;
		case ANGIOPLASTY_BALLOON_INFLATED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.ANGIOPLASTY_BALLOON_INFLATED_122303.getValue(); break;
		case ANGIOPLASTY_BALLOON_DEFLATED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.ANGIOPLASTY_BALLOON_DEFLATED_122304.getValue(); break;
		case DEVICE_DEPLOYED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.DEVICE_DEPLOYED_122305.getValue(); break;
		case STENT_RE_EXPANDED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.STENT_RE_EXPANDED_122306.getValue(); break;
		case OBJECT_REMOVED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.OBJECT_REMOVED_122307.getValue(); break;
		case RADIATION_APPLIED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.RADIATION_APPLIED_122308.getValue(); break;
		case RADIATION_REMOVED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.RADIATION_REMOVED_122309.getValue(); break;
		case INTERVENTIONAL_DEVICE_PLACEMENT_UNSUCCESSFUL: this.strCodeValue =EnumCV_InterventionActionsAndStatus.INTERVENTIONAL_DEVICE_PLACEMENT_UNSUCCESSFUL_122310.getValue(); break;
		case INTERVENTIONAL_DEVICE_PLACED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.INTERVENTIONAL_DEVICE_PLACED_122311.getValue(); break;
		case INTERVENTION_PERFORMED: this.strCodeValue =EnumCV_InterventionActionsAndStatus.INTERVENTION_PERFORMED_122312.getValue(); break;
		case INTERVENTIONAL_DEVICE_WITHDRAWN: this.strCodeValue =EnumCV_InterventionActionsAndStatus.INTERVENTIONAL_DEVICE_WITHDRAWN_122313.getValue(); break;
		}
	}

	/**
	 * Sets the value for InterventionActionsAndStatus
	 * @param enumInterventionActionsAndStatus Object of EnumCM_InterventionActionsAndStatus.
	 */
	public void setInterventionActionsAndStatus(EnumCM_InterventionActionsAndStatus enumInterventionActionsAndStatus)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumInterventionActionsAndStatus.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumInterventionActionsAndStatus);
	}
}
