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


/**
 * This class represents AbnormalOpacityFindingOrFeature - CID6104
 */
public class AbnormalOpacityFindingOrFeature_CID6104 
{
	
	/**
	 * 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;
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Instantiates a new AbnormalOpacityFindingOrFeature_CID6104 Template 
	 */
	public AbnormalOpacityFindingOrFeature_CID6104()
	{

	}

	/**
	 * 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 enumAbnormalOpacityFindingOrFeature Object of EnumCM_AbnormalOpacityFindingOrFeature represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_AbnormalOpacityFindingOrFeature enumAbnormalOpacityFindingOrFeature)
	{
		switch(enumAbnormalOpacityFindingOrFeature)
		{
		case BEADED_SEPTUM_SIGN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.BEADED_SEPTUM_SIGN_112066.getValue(); break;
		case NODULAR_PATTERN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.NODULAR_PATTERN_112067.getValue(); break;
		case PRIMARY_COMPLEX: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.PRIMARY_COMPLEX_112059.getValue(); break;
		case PSEUDOPLAQUE: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.PSEUDOPLAQUE_112068.getValue(); break;
		case RETICULONODULAR_PATTERN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.RETICULONODULAR_PATTERN_112065.getValue(); break;
		case SIGNET_RING_SIGN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.SIGNET_RING_SIGN_112069.getValue(); break;
		case ABNORMAL_INTERSTITIAL_PATTERN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.ABNORMAL_INTERSTITIAL_PATTERN_112004.getValue(); break;
		case COIN_LESION: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.COIN_LESION_F_20172.getValue(); break;
		case DENSITY: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.DENSITY_112118.getValue(); break;
		case DEPENDENT_OPACITY: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.DEPENDENT_OPACITY_112119.getValue(); break;
		case GROUND_GLASS_OPACITY: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.GROUND_GLASS_OPACITY_112120.getValue(); break;
		case INFILTRATE: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.INFILTRATE_112121.getValue(); break;
		case MASS: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.MASS_M_03000.getValue(); break;
		case MICRONODULE: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.MICRONODULE_112122.getValue(); break;
		case NODULE: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.NODULE_M_03010.getValue(); break;
		case OPACITY: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.OPACITY_112001.getValue(); break;
		case PHANTOM_TUMOR_PSEUDOTUMOR: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.PHANTOM_TUMOR_PSEUDOTUMOR_112123.getValue(); break;
		case SHADOW: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.SHADOW_112124.getValue(); break;
		case SMALL_IRREGULAR_OPACITIES: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.SMALL_IRREGULAR_OPACITIES_112125.getValue(); break;
		case SMALL_ROUNDED_OPACITIES: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.SMALL_ROUNDED_OPACITIES_112126.getValue(); break;
		case TREE_IN_BUD_SIGN: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.TREE_IN_BUD_SIGN_112127.getValue(); break;
		case PULMONARY_EMBOLISM: this.strCodeValue =EnumCV_AbnormalOpacityFindingOrFeature.PULMONARY_EMBOLISM_D3_40230.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumAbnormalOpacityFindingorFeature Object of EnumCM_AbnormalOpacityFindingorFeature represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_AbnormalOpacityFindingOrFeature enumAbnormalOpacityFindingOrFeature)
	{
		switch(enumAbnormalOpacityFindingOrFeature)
		{
		case COIN_LESION : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.COIN_LESION.getSNOMEDCTID(); break;
		case MASS : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.MASS.getSNOMEDCTID(); break;
		case NODULE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.NODULE.getSNOMEDCTID(); break;
		case PULMONARY_EMBOLISM : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.PULMONARY_EMBOLISM.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for AbnormalOpacityFindingOrFeature
	 * @param enumAbnormalOpacityFindingOrFeature Object of EnumCM_AbnormalOpacityFindingOrFeature.
	 */
	public void setAbnormalOpacityFindingOrFeature(EnumCM_AbnormalOpacityFindingOrFeature enumAbnormalOpacityFindingOrFeature)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumAbnormalOpacityFindingOrFeature.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_AbnormalOpacityFindingOrFeature.COIN_LESION.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_AbnormalOpacityFindingOrFeature.MASS.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_AbnormalOpacityFindingOrFeature.PULMONARY_EMBOLISM.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_AbnormalOpacityFindingOrFeature.NODULE.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumAbnormalOpacityFindingOrFeature);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumAbnormalOpacityFindingOrFeature);
	}
}