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


/**
 * This class represents RecommendedFollowupFromBI - RADS_CID6029
 */
public class RecommendedFollowupFromBI_RADS_CID6029 
{
	
	/**
	 * 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 RecommendedFollowupFromBI_RADS_CID6029 Template.
	 */
	public RecommendedFollowupFromBI_RADS_CID6029() 
	{

	}

	/**
	 * 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 enumRecommendedFollowupFromBI_RADS Object of EnumCM_RecommendedFollowupFromBI_RADS represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_RecommendedFollowupFromBI_RADS enumRecommendedFollowupFromBI_RADS)
	{
		switch(enumRecommendedFollowupFromBI_RADS)
		{
		case ADDITIONAL_PROJECTIONS: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.ADDITIONAL_PROJECTIONS_111135.getValue(); break;
		case MAGNIFICATION_VIEWS: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.MAGNIFICATION_VIEWS_R_102D6.getValue(); break;
		case SPOT_COMPRESSION: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.SPOT_COMPRESSION_R_102D7.getValue(); break;
		case SPOT_MAGNIFICATION_VIEW_S: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.SPOT_MAGNIFICATION_VIEW_S_111136.getValue(); break;
		case ULTRASOUND_PROCEDURE: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.ULTRASOUND_PROCEDURE_P5_B0099.getValue(); break;
		case OLD_FILMS_FOR_COMPARISON: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.OLD_FILMS_FOR_COMPARISON_111138.getValue(); break;
		case MAMMARY_DUCTOGRAM: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.MAMMARY_DUCTOGRAM_P5_40060.getValue(); break;
		case NORMAL_INTERVAL_FOLLOW_UP: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.NORMAL_INTERVAL_FOLLOW_UP_111140.getValue(); break;
		case ANY_DECISION_TO_BIOPSY_SHOULD_BE_BASED_ON_CLINICAL_ASSESSMENT: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.ANY_DECISION_TO_BIOPSY_SHOULD_BE_BASED_ON_CLINICAL_ASSESSMENT_111141.getValue(); break;
		case FOLLOW_UP_AT_SHORT_INTERVAL_1_11_MONTHS: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.FOLLOW_UP_AT_SHORT_INTERVAL_1_11_MONTHS_111142.getValue(); break;
		case BIOPSY_SHOULD_BE_CONSIDERED: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.BIOPSY_SHOULD_BE_CONSIDERED_111143.getValue(); break;
		case NEEDLE_LOCALIZATION_AND_BIOPSY: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.NEEDLE_LOCALIZATION_AND_BIOPSY_111144.getValue(); break;
		case HISTOLOGY_USING_CORE_BIOPSY: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.HISTOLOGY_USING_CORE_BIOPSY_111145.getValue(); break;
		case SUGGESTIVE_OF_MALIGNANCY__TAKE_APPROPRIATE_ACTION: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.SUGGESTIVE_OF_MALIGNANCY_TAKE_APPROPRIATE_ACTION_111146.getValue(); break;
		case CYTOLOGIC_ANALYSIS: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.CYTOLOGIC_ANALYSIS_111147.getValue(); break;
		case BIOPSY_SHOULD_BE_STRONGLY_CONSIDERED: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.BIOPSY_SHOULD_BE_STRONGLY_CONSIDERED_111148.getValue(); break;
		case HIGHLY_SUGGESTIVE_OF_MALIGNANCY__TAKE_APPROPRIATE_ACTION: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.HIGHLY_SUGGESTIVE_OF_MALIGNANCY_TAKE_APPROPRIATE_ACTION_111149.getValue(); break;
		case KNOWN_BIOPSY_PROVEN_MALIGNANCY__TAKE_APPROPRIATE_ACTION: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.KNOWN_BIOPSY_PROVEN_MALIGNANCY_TAKE_APPROPRIATE_ACTION_111122.getValue(); break;
		case MRI_OF_BREAST: this.strCodeValue =EnumCV_RecommendedFollowupFromBI_RADS.MRI_OF_BREAST_P5_0900D.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumRecommendedFollowupFromBI_RADS Object of EnumCM_RecommendedFollowupFromBI_RADS represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_RecommendedFollowupFromBI_RADS enumRecommendedFollowupFromBI_RADS)
	{
		switch(enumRecommendedFollowupFromBI_RADS)
		{
		case MAGNIFICATION_VIEWS : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MAGNIFICATION_VIEWS.getSNOMEDCTID(); break;
		case SPOT_COMPRESSION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SPOT_COMPRESSION.getSNOMEDCTID(); break;
		case ULTRASOUND_PROCEDURE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.ULTRASOUND_PROCEDURE.getSNOMEDCTID(); break;
		case MAMMARY_DUCTOGRAM : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MAMMARY_DUCTOGRAM.getSNOMEDCTID(); break;
		case MRI_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MRI_OF_BREAST.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for RecommendedFollowupFromBI_RADS
	 * @param enumRecommendedFollowupFromBI_RADS Enum for RecommendedFollowupFromBI_RADS
	 */
	public void setRecommendedFollowupFromBI_RADS(EnumCM_RecommendedFollowupFromBI_RADS enumRecommendedFollowupFromBI_RADS)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumRecommendedFollowupFromBI_RADS.getValue();
		
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_RecommendedFollowupFromBI_RADS.MAGNIFICATION_VIEWS.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_RecommendedFollowupFromBI_RADS.SPOT_COMPRESSION.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_RecommendedFollowupFromBI_RADS.MAMMARY_DUCTOGRAM.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_RecommendedFollowupFromBI_RADS.ULTRASOUND_PROCEDURE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_RecommendedFollowupFromBI_RADS.MRI_OF_BREAST.getValue()))
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
			this.strCodingSchemeVersion = EnumCodingSchemeVersion.CSV_1_1.getValue();
		}
		else
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
			this.strCodingSchemeVersion = EnumCodingSchemeVersion.NO_VALUE.getValue();
		}
		
		/**
		 * set code Value
		 */
		setCodeValue(enumRecommendedFollowupFromBI_RADS);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumRecommendedFollowupFromBI_RADS);
	}
}
