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


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

	}

	/**
	 * 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 enumAneurysmTypes Object of EnumCM_AneurysmTypes represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_AneurysmTypes enumAneurysmTypes)
	{
		switch(enumAneurysmTypes)
		{
		case DISSECTING_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.DISSECTING_ANEURYSM_M_32270
					.getValue();
			break;
		case INFLAMMATORY_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.INFLAMMATORY_ANEURYSM_D3_80017
					.getValue();
			break;
		case RUPTURED_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.RUPTURED_ANEURYSM_M_32201
					.getValue();
			break;
		case BERRY_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.BERRY_ANEURYSM_M_24614
					.getValue();
			break;
		case MIXED_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.MIXED_ANEURYSM_M_32240
					.getValue();
			break;
		case RACEMOSE_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.RACEMOSE_ANEURYSM_M_32410
					.getValue();
			break;
		case CIRSOID_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.CIRSOID_ANEURYSM_D3_80002
					.getValue();
			break;
		case MYCOTIC_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.MYCOTIC_ANEURYSM_M_32320
					.getValue();
			break;
		case COMPOUND_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.COMPOUND_ANEURYSM_M_32206
					.getValue();
			break;
		case MILIARY_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.MILIARY_ANEURYSM_M_32310
					.getValue();
			break;
		case SACCULAR_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.SACCULAR_ANEURYSM_M_32340
					.getValue();
			break;
		case VARICOSE_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.VARICOSE_ANEURYSM_M_32221
					.getValue();
			break;
		case FUSIFORM_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.FUSIFORM_ANEURYSM_M_32350
					.getValue();
			break;
		case TRAUMATIC_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.TRAUMATIC_ANEURYSM_M_32210
					.getValue();
			break;
		case THROMBOSED_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.THROMBOSED_ANEURYSM_M_32202
					.getValue();
			break;
		case EXPANDING_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.EXPANDING_ANEURYSM_M_32203
					.getValue();
			break;
		case CALCIFIED_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.CALCIFIED_ANEURYSM_M_32204
					.getValue();
			break;
		case MULTIPLE_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.MULTIPLE_ANEURYSM_M_32208
					.getValue();
			break;
		case CYLINDROID_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.CYLINDROID_ANEURYSM_M_32360
					.getValue();
			break;
		case SERPENTINE_ANEURYSM:
			this.strCodeValue = EnumCV_AneurysmTypes.SERPENTINE_ANEURYSM_M_32260
					.getValue();
			break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumAneurysmTypes Object of EnumCM_AneurysmTypes represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_AneurysmTypes enumAneurysmTypes)
	{
		switch(enumAneurysmTypes)
		{
		case DISSECTING_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.DISSECTING_ANEURYSM
					.getSNOMEDCTID();
			break;
		case INFLAMMATORY_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.INFLAMMATORY_ANEURYSM
					.getSNOMEDCTID();
			break;
		case RUPTURED_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.RUPTURED_ANEURYSM
					.getSNOMEDCTID();
			break;
		case BERRY_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.BERRY_ANEURYSM
					.getSNOMEDCTID();
			break;
		case MIXED_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.MIXED_ANEURYSM
					.getSNOMEDCTID();
			break;
		case RACEMOSE_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.RACEMOSE_ANEURYSM
					.getSNOMEDCTID();
			break;
		case CIRSOID_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.CIRSOID_ANEURYSM
					.getSNOMEDCTID();
			break;
		case MYCOTIC_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.MYCOTIC_ANEURYSM
					.getSNOMEDCTID();
			break;
		case COMPOUND_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.COMPOUND_ANEURYSM
					.getSNOMEDCTID();
			break;
		case MILIARY_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.MILIARY_ANEURYSM
					.getSNOMEDCTID();
			break;
		case SACCULAR_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.SACCULAR_ANEURYSM
					.getSNOMEDCTID();
			break;
		case VARICOSE_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.VARICOSE_ANEURYSM
					.getSNOMEDCTID();
			break;
		case FUSIFORM_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.FUSIFORM_ANEURYSM
					.getSNOMEDCTID();
			break;
		case TRAUMATIC_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.TRAUMATIC_ANEURYSM
					.getSNOMEDCTID();
			break;
		case THROMBOSED_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.THROMBOSED_ANEURYSM
					.getSNOMEDCTID();
			break;
		case EXPANDING_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.EXPANDING_ANEURYSM
					.getSNOMEDCTID();
			break;
		case CALCIFIED_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.CALCIFIED_ANEURYSM
					.getSNOMEDCTID();
			break;
		case MULTIPLE_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.MULTIPLE_ANEURYSM
					.getSNOMEDCTID();
			break;
		case CYLINDROID_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.CYLINDROID_ANEURYSM
					.getSNOMEDCTID();
			break;
		case SERPENTINE_ANEURYSM:
			this.strSNOMEDCTID = EnumAnatomicSNOMEDMap.SERPENTINE_ANEURYSM
					.getSNOMEDCTID();
			break;
		}
	}

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

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