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


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

	}

	/**
	 * 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 enumBreastImagingReportElements Object of EnumCM_BreastImagingReportElements represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_BreastImagingReportElements enumBreastImagingReportElements)
	{
		switch(enumBreastImagingReportElements)
		{
		case PHYSICAL_EXAMINATION_RESULTS: this.strCodeValue = EnumCV_BreastImagingReportElements.PHYSICAL_EXAMINATION_RESULTS_111423.getValue();break;
		case COMPARISON_TO_PREVIOUS_EXAMS: this.strCodeValue = EnumCV_BreastImagingReportElements.COMPARISON_TO_PREVIOUS_EXAMS_111424.getValue();break;
		case FINDING: this.strCodeValue = EnumCV_BreastImagingReportElements.FINDING_121071.getValue();break;
		case IMPRESSION: this.strCodeValue = EnumCV_BreastImagingReportElements.IMPRESSION_121073.getValue();break;
		case RECOMMENDATION: this.strCodeValue = EnumCV_BreastImagingReportElements.RECOMMENDATION_121075.getValue();break;
		case CONCLUSION: this.strCodeValue = EnumCV_BreastImagingReportElements.CONCLUSION_121077.getValue();break;
		case BREAST_COMPOSITION: this.strCodeValue = EnumCV_BreastImagingReportElements.BREAST_COMPOSITION_F_01710.getValue();break;
		case OVERALL_ASSESSMENT: this.strCodeValue = EnumCV_BreastImagingReportElements.OVERALL_ASSESSMENT_111413.getValue();break;
		case PROCEDURE_REPORTED: this.strCodeValue = EnumCV_BreastImagingReportElements.PROCEDURE_REPORTED_121058.getValue();break;
		case REASON_FOR_PROCEDURE: this.strCodeValue = EnumCV_BreastImagingReportElements.REASON_FOR_PROCEDURE_111401.getValue();break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumBreastImagingReportElements Object of EnumCM_BreastImagingReportElements represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_BreastImagingReportElements enumBreastImagingReportElements)
	{
		switch(enumBreastImagingReportElements)
		{
		case BREAST_COMPOSITION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BREAST_COMPOSITION.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for BreastImagingReportElements
	 * @param enumBreastImagingReportElements Object of EnumCM_BreastImagingReportElements.
	 */
	public void setBreastImagingReportElements(EnumCM_BreastImagingReportElements enumBreastImagingReportElements)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastImagingReportElements.BREAST_COMPOSITION.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		
		/**
		 * set code Value
		 */
		setCodeValue(enumBreastImagingReportElements);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumBreastImagingReportElements);
	}
}
