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


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

	}

	/**
	 * 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 enumVascularMorphology Object of EnumCM_VascularMorphology represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_VascularMorphology enumVascularMorphology)
	{
		switch(enumVascularMorphology)
		{
		case PLAQUE:
			this.strCodeValue = EnumCV_VascularMorphology.PLAQUE_M_01470
					.getValue();
			break;
		case STENOSIS:
			this.strCodeValue = EnumCV_VascularMorphology.STENOSIS_M_34200
					.getValue();
			break;
		case ANEURYSM:
			this.strCodeValue = EnumCV_VascularMorphology.ANEURYSM_M_32200
					.getValue();
			break;
		case ARTERIAL_DISSECTION:
			this.strCodeValue = EnumCV_VascularMorphology.ARTERIAL_DISSECTION_D3_81310
					.getValue();
			break;
		case STENT:
			this.strCodeValue = EnumCV_VascularMorphology.STENT_A_25500
					.getValue();
			break;
		case OCCLUSION:
			this.strCodeValue = EnumCV_VascularMorphology.OCCLUSION_M_34000
					.getValue();
			break;
		case ARTERIOVENOUS_FISTULA:
			this.strCodeValue = EnumCV_VascularMorphology.ARTERIOVENOUS_FISTULA_M_39390
					.getValue();
			break;
		case ANGIOMA:
			this.strCodeValue = EnumCV_VascularMorphology.ANGIOMA_M_91200
					.getValue();
			break;
		case DILATATION:
			this.strCodeValue = EnumCV_VascularMorphology.DILATATION_M_32000
					.getValue();
			break;
		case VASCULAR_COILING:
			this.strCodeValue = EnumCV_VascularMorphology.VASCULAR_COILING_R_FAB5E
					.getValue();
			break;
		case TORTUOSITY:
			this.strCodeValue = EnumCV_VascularMorphology.TORTUOSITY_M_31790
					.getValue();
			break;
		case DIVERTICULUM:
			this.strCodeValue = EnumCV_VascularMorphology.DIVERTICULUM_M_32700
					.getValue();
			break;
		case VASCULAR_SCLEROSIS:
			this.strCodeValue = EnumCV_VascularMorphology.VASCULAR_SCLEROSIS_M_520F8
					.getValue();
			break;
		case THROMBOSIS:
			this.strCodeValue = EnumCV_VascularMorphology.THROMBOSIS_D_80515
					.getValue();
			break;
		case PSEUDOANEURYSM:
			this.strCodeValue = EnumCV_VascularMorphology.PSEUDOANEURYSM_M_32390
					.getValue();
			break;
		case EMBOLISM:
			this.strCodeValue = EnumCV_VascularMorphology.EMBOLISM_M_35300
					.getValue();
			break;
		case FIBROMUSCULAR_DYSPLASIA:
			this.strCodeValue = EnumCV_VascularMorphology.FIBROMUSCULAR_DYSPLASIA_M_74880
					.getValue();
			break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumVascularMorphology Object of EnumCM_VascularMorphology represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_VascularMorphology enumVascularMorphology)
	{
		switch(enumVascularMorphology)
		{
		case PLAQUE:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.PLAQUE.getSNOMEDCTID();
			break;
		case STENOSIS:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.STENOSIS.getSNOMEDCTID();
			break;
		case ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.ANEURYSM.getSNOMEDCTID();
			break;
		case ARTERIAL_DISSECTION:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.ARTERIAL_DISSECTION
					.getSNOMEDCTID();
			break;
		case STENT:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.STENT.getSNOMEDCTID();
			break;
		case OCCLUSION:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.OCCLUSION.getSNOMEDCTID();
			break;
		case ARTERIOVENOUS_FISTULA:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.ARTERIOVENOUS_FISTULA
					.getSNOMEDCTID();
			break;
		case ANGIOMA:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.ANGIOMA.getSNOMEDCTID();
			break;
		case DILATATION:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.DILATATION.getSNOMEDCTID();
			break;
		case VASCULAR_COILING:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.VASCULAR_COILING
					.getSNOMEDCTID();
			break;
		case TORTUOSITY:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.TORTUOSITY.getSNOMEDCTID();
			break;
		case DIVERTICULUM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.DIVERTICULUM
					.getSNOMEDCTID();
			break;
		case VASCULAR_SCLEROSIS:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.VASCULAR_SCLEROSIS
					.getSNOMEDCTID();
			break;
		case THROMBOSIS:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.THROMBOSIS.getSNOMEDCTID();
			break;
		case PSEUDOANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.PSEUDOANEURYSM
					.getSNOMEDCTID();
			break;
		case EMBOLISM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.EMBOLISM.getSNOMEDCTID();
			break;
		case FIBROMUSCULAR_DYSPLASIA:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.FIBROMUSCULAR_DYSPLASIA
					.getSNOMEDCTID();
			break;

		}
	}

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

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