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


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

	}

	/**
	 * 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 enumBreastImagingReportSectionTitle Object of EnumCM_BreastImagingReportSectionTitle represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_BreastImagingReportSectionTitle enumBreastImagingReportSectionTitle)
	{
		switch(enumBreastImagingReportSectionTitle)
		{
		case PHYSICAL_EXAMINATION_RESULTS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.PHYSICAL_EXAMINATION_RESULTS_111423.getValue();break;
		case COMPARISON_TO_PREVIOUS_EXAMS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.COMPARISON_TO_PREVIOUS_EXAMS_111424.getValue();break;
		case FINDINGS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.FINDINGS_121070.getValue();break;
		case IMPRESSIONS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.IMPRESSIONS_121072.getValue();break;
		case RECOMMENDATIONS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.RECOMMENDATIONS_121074.getValue();break;
		case CONCLUSIONS: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.CONCLUSIONS_121076.getValue();break;
		case ADDENDUM: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.ADDENDUM_121078.getValue();break;
		case BREAST_COMPOSITION: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.BREAST_COMPOSITION_F_01710.getValue();break;
		case OVERALL_ASSESSMENT: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.OVERALL_ASSESSMENT_111413.getValue();break;
		case PROCEDURE_REPORTED: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.PROCEDURE_REPORTED_121058.getValue();break;
		case REASON_FOR_PROCEDURE: this.strCodeValue = EnumCV_BreastImagingReportSectionTitle.REASON_FOR_PROCEDURE_111401.getValue();break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumBreastImagingReportSectionTitle Object of EnumCM_BreastImagingReportSectionTitle represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_BreastImagingReportSectionTitle enumBreastImagingReportSectionTitle)
	{
		switch(enumBreastImagingReportSectionTitle)
		{
		
		case BREAST_COMPOSITION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BREAST_COMPOSITION.getSNOMEDCTID(); break;
		
		}
	}

	/**
	 * Sets the value for BreastImagingReportSectionTitle
	 * @param enumBreastImagingReportSectionTitle Object of EnumCM_BreastImagingReportSectionTitle.
	 */
	public void setBreastImagingReportSectionTitle(EnumCM_BreastImagingReportSectionTitle enumBreastImagingReportSectionTitle)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumBreastImagingReportSectionTitle.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastImagingReportSectionTitle.BREAST_COMPOSITION.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		else if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastImagingReportSectionTitle.IMPRESSIONS.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.LN.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumBreastImagingReportSectionTitle);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumBreastImagingReportSectionTitle);
	}
}
