/*******************************************************************************
 *  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.EnumVascularSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeVersion;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_VascularComplications;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_VascularComplications;


/**
 * This class represents VascularComplications - CID3754
 */
public class VascularComplications_CID3754  
{
	
	/**
	 * 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;
	
	/**
	 * The Coding Scheme Version for template.
	 */
	private String strCodingSchemeVersion;
	
	/**
	 * Instantiates a new VascularComplications_CID3754 Template 
	 */
	public VascularComplications_CID3754()
	{
		
	}
	
	/**
	 * 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 enumVascularComplications Object of EnumVascularComplications represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_VascularComplications enumVascularComplications)
	{
		switch(enumVascularComplications)
		{
		case BLEEDING: this.strCodeValue =EnumCV_VascularComplications.BLEEDING_M_37000.getValue(); break;
		case OCCLUSION_OF_ARTERY: this.strCodeValue =EnumCV_VascularComplications.OCCLUSION_OF_ARTERY_D3_89100.getValue(); break;
		case LOSS_OF_DISTAL_PULSE: this.strCodeValue =EnumCV_VascularComplications.LOSS_OF_DISTAL_PULSE_R_102B2.getValue(); break;
		case ARTERIAL_DISSECTION: this.strCodeValue =EnumCV_VascularComplications.ARTERIAL_DISSECTION_D3_81310.getValue(); break;
		case PSEUDOANEURYSM: this.strCodeValue =EnumCV_VascularComplications.PSEUDOANEURYSM_M_32390.getValue(); break;
		case AV_FISTULA: this.strCodeValue =EnumCV_VascularComplications.AV_FISTULA_M_39390.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumVascularComplications Object of EnumCM_VascularComplications represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_VascularComplications enumVascularComplications)
	{
		switch(enumVascularComplications)
		{
		case BLEEDING : this.strSNOMEDCTID =EnumVascularSNOMEDMap.BLEEDING.getSNOMEDCTID(); break;
		case OCCLUSION_OF_ARTERY : this.strSNOMEDCTID =EnumVascularSNOMEDMap.OCCLUSION_OF_ARTERY.getSNOMEDCTID(); break;
		case LOSS_OF_DISTAL_PULSE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.LOSS_OF_DISTAL_PULSE.getSNOMEDCTID(); break;
		case ARTERIAL_DISSECTION : this.strSNOMEDCTID =EnumVascularSNOMEDMap.ARTERIAL_DISSECTION.getSNOMEDCTID(); break;
		case PSEUDOANEURYSM : this.strSNOMEDCTID =EnumVascularSNOMEDMap.PSEUDOANEURYSM.getSNOMEDCTID(); break;
		case AV_FISTULA : this.strSNOMEDCTID =EnumVascularSNOMEDMap.AV_FISTULA.getSNOMEDCTID(); break;
		}
	}

	
	/**
	 * Sets the value for Vascular Complications
	 * @param enumVascularComplications Object of EnumVascularComplications.
	 */
	public void setVascularComplications(EnumCM_VascularComplications enumVascularComplications)
	{
		this.strCodeMeaning = enumVascularComplications.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		this.strCodingSchemeVersion = EnumCodingSchemeVersion.CSV_2_0b.getValue();
		setCodeValue(enumVascularComplications);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumVascularComplications);
	}
}
