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


/**
 * This class represents SingleImageFindingFromBI - RADS_CID6015
 */
public class SingleImageFindingFromBI_RADS_CID6015 
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;
	/**
	 * 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;
	}
	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;

	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

	/**
	 * The Coding Scheme Version
	 */
	private String strCodingSchemeVersion = null;

	/**
	 * Instantiates a new SingleImageFindingFromBI_RADS_CID6015 Template.
	 */
	public SingleImageFindingFromBI_RADS_CID6015() 
	{

	}

	/**
	 * Retrieves the value for CodeMeaning
	 * @return strCodeMeaning String value for CodeMeaning
	 */
	public String getCodeMeaning() 
	{
		return strCodeMeaning;
	}

	/**
	 * Retrieves the value for CodeValue
	 * @return strCodeValue String value for CodeValue
	 */
	public String getCodeValue() 
	{
		return strCodeValue;
	}

	/**
	 * Retrieves the value for CodingSchemeDesignator
	 * @return strCodingSchemeDesignator String value for CodingSchemeDesignator
	 */
	public String getCodingSchemeDesignator()
	{
		return strCodingSchemeDesignator;
	}

	/**
	 * Retrieves the value for CodingSchemeVersion
	 * @return
	 */
	public String getCodingSchemeVersion() {
		return strCodingSchemeVersion;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumSingleImageFindingFromBI_RADS Object of EnumCM_SingleImageFindingFromBI_RADS represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_SingleImageFindingFromBI_RADS enumSingleImageFindingFromBI_RADS)
	{
		switch(enumSingleImageFindingFromBI_RADS) 
		{
		case MAMMOGRAPHY_BREAST_DENSITY: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.MAMMOGRAPHY_BREAST_DENSITY_F_01796.getValue(); break;
		case INDIVIDUAL_CALCIFICATION: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.INDIVIDUAL_CALCIFICATION_F_01776.getValue(); break;
		case CALCIFICATION_CLUSTER: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.CALCIFICATION_CLUSTER_F_01775.getValue(); break;
		case ARCHITECTURAL_DISTORTION_OF_BREAST: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.ARCHITECTURAL_DISTORTION_OF_BREAST_F_01795.getValue(); break;
		case TUBULAR_DENSITY: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.TUBULAR_DENSITY_F_01797.getValue(); break;
		case INTRA_MAMMARY_LYMPH_NODE: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.INTRA_MAMMARY_LYMPH_NODE_T_C4351.getValue(); break;
		case TRABECULAR_THICKENING_OF_BREAST: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.TRABECULAR_THICKENING_OF_BREAST_F_01798.getValue(); break;
		case BREAST_COMPOSITION: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.BREAST_COMPOSITION_F_01710.getValue(); break;
		case SKIN_RETRACTION_OF_BREAST: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.SKIN_RETRACTION_OF_BREAST_F_01799.getValue(); break;
		case SKIN_THICKENING_OF_BREAST: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.SKIN_THICKENING_OF_BREAST_F_0179A.getValue(); break;
		case AXILLARY_ADENOPATHY: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.AXILLARY_ADENOPATHY_DC_721C4.getValue(); break;
		case SKIN_LESION: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.SKIN_LESION_D0_00050.getValue(); break;
		case COOPERS_LIGAMENT_CHANGES: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.COOPERS_LIGAMENT_CHANGES_111111.getValue(); break;
		case EDEMA: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.EDEMA_M_36300.getValue(); break;
		case MASS_IN_THE_SKIN: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.MASS_IN_THE_SKIN_111112.getValue(); break;
		case MASS_ON_THE_SKIN: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.MASS_ON_THE_SKIN_111113.getValue(); break;
		case AXILLARY_LYMPH_NODE: this.strCodeValue =EnumCV_SingleImageFindingFromBI_RADS.AXILLARY_LYMPH_NODE_T_C4710.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumSingleImageFindingFromBI_RADS Object of EnumCM_SingleImageFindingFromBI_RADS represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_SingleImageFindingFromBI_RADS enumSingleImageFindingFromBI_RADS)
	{
		switch(enumSingleImageFindingFromBI_RADS)
		{
		case MAMMOGRAPHY_BREAST_DENSITY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.MAMMOGRAPHY_BREAST_DENSITY.getSNOMEDCTID(); break;
		case INDIVIDUAL_CALCIFICATION : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INDIVIDUAL_CALCIFICATION.getSNOMEDCTID(); break;
		case CALCIFICATION_CLUSTER : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.CALCIFICATION_CLUSTER.getSNOMEDCTID(); break;
		case ARCHITECTURAL_DISTORTION_OF_BREAST : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ARCHITECTURAL_DISTORTION_OF_BREAST.getSNOMEDCTID(); break;
		case TUBULAR_DENSITY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.TUBULAR_DENSITY.getSNOMEDCTID(); break;
		case INTRA_MAMMARY_LYMPH_NODE : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INTRA_MAMMARY_LYMPH_NODE.getSNOMEDCTID(); break;
		case TRABECULAR_THICKENING_OF_BREAST : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.TRABECULAR_THICKENING_OF_BREAST.getSNOMEDCTID(); break;
		case BREAST_COMPOSITION : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.BREAST_COMPOSITION.getSNOMEDCTID(); break;
		case SKIN_RETRACTION_OF_BREAST : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SKIN_RETRACTION_OF_BREAST.getSNOMEDCTID(); break;
		case SKIN_THICKENING_OF_BREAST : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SKIN_THICKENING_OF_BREAST.getSNOMEDCTID(); break;
		case AXILLARY_ADENOPATHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.AXILLARY_ADENOPATHY.getSNOMEDCTID(); break;
		case SKIN_LESION : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SKIN_LESION.getSNOMEDCTID(); break;
		case EDEMA : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.EDEMA.getSNOMEDCTID(); break;
		case AXILLARY_LYMPH_NODE : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.AXILLARY_LYMPH_NODE.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for SingleImageFindingFromBI_RADS
	 * @param enumSingleImageFindingFromBI_RADS Object of EnumCM_SingleImageFindingFromBI_RADS.
	 */
	public void setSingleImageFindingFromBI_RADS(EnumCM_SingleImageFindingFromBI_RADS enumSingleImageFindingFromBI_RADS)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumSingleImageFindingFromBI_RADS.getValue();
		
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_SingleImageFindingFromBI_RADS.COOPERS_LIGAMENT_CHANGES.getValue())
				||strCodeMeaning.equalsIgnoreCase(EnumCM_SingleImageFindingFromBI_RADS.MASS_IN_THE_SKIN.getValue())
				||strCodeMeaning.equalsIgnoreCase(EnumCM_SingleImageFindingFromBI_RADS.MASS_ON_THE_SKIN.getValue()))
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
			this.strCodingSchemeVersion = EnumCodingSchemeVersion.CSV_3_0.getValue();
		}
		else 
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
			this.strCodingSchemeVersion = EnumCodingSchemeVersion.CSV_1_1.getValue();
		}
		
		
		/**
		 * set code Value
		 */
		setCodeValue(enumSingleImageFindingFromBI_RADS);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumSingleImageFindingFromBI_RADS);
	}
}
