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


/**
 * This class represents BreastProcedureReported - CID6050
 */
public class BreastProcedureReported_CID6050 
{
	
	/**
	 * 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;
	/**
	 * Instantiates a new BreastProcedureReported_CID6050 Template 
	 */
	public BreastProcedureReported_CID6050()
	{

	}

	/**
	 * 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;
	}
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumBreastProcedureReported Object of EnumCM_BreastProcedureReported represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_BreastProcedureReported enumBreastProcedureReported)
	{
		switch(enumBreastProcedureReported)
		{
		case FILM_SCREEN_MAMMOGRAPHY: this.strCodeValue =EnumCV_BreastProcedureReported.FILM_SCREEN_MAMMOGRAPHY_111408.getValue(); break;
		case DIGITAL_MAMMOGRAPHY: this.strCodeValue =EnumCV_BreastProcedureReported.DIGITAL_MAMMOGRAPHY_111409.getValue(); break;
		case ULTRASONOGRAPHY_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.ULTRASONOGRAPHY_OF_BREAST_P5_B8500.getValue(); break;
		case MRI_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.MRI_OF_BREAST_P5_0900D.getValue(); break;
		case PRE_BIOPSY_LOCALIZATION_OF_BREAST_LESION: this.strCodeValue =EnumCV_BreastProcedureReported.PRE_BIOPSY_LOCALIZATION_OF_BREAST_LESION_P1_48011.getValue(); break;
		case FINE_NEEDLE_ASPIRATION_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.FINE_NEEDLE_ASPIRATION_OF_BREAST_P1_48145.getValue(); break;
		case DIAGNOSTIC_ASPIRATION_OF_BREAST_CYST: this.strCodeValue =EnumCV_BreastProcedureReported.DIAGNOSTIC_ASPIRATION_OF_BREAST_CYST_P1_48142.getValue(); break;
		case CORE_NEEDLE_BIOPSY_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.CORE_NEEDLE_BIOPSY_OF_BREAST_P1_48304.getValue(); break;
		case BREAST__SURGICAL_BIOPSY: this.strCodeValue =EnumCV_BreastProcedureReported.BREAST__SURGICAL_BIOPSY_P1_4830F.getValue(); break;
		case MAMMARY_DUCTOGRAM: this.strCodeValue =EnumCV_BreastProcedureReported.MAMMARY_DUCTOGRAM_P5_40060.getValue(); break;
		case CT_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.CT_OF_BREAST_P5_0801C.getValue(); break;
		case RADIONUCLIDE_LOCALIZATION_OF_TUMOR_LIMITED_AREA: this.strCodeValue =EnumCV_BreastProcedureReported.RADIONUCLIDE_LOCALIZATION_OF_TUMOR_LIMITED_AREA_P5_D0042.getValue(); break;
		case SPECIMEN_RADIOGRAPHY_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.SPECIMEN_RADIOGRAPHY_OF_BREAST_P5_40030.getValue(); break;
		case EXAMINATION_OF_BREAST: this.strCodeValue =EnumCV_BreastProcedureReported.EXAMINATION_OF_BREAST_P2_4A000.getValue(); break;
		case SURGICAL_CONSULT: this.strCodeValue =EnumCV_BreastProcedureReported.SURGICAL_CONSULT_111410.getValue(); break;
		case MAMMOGRAPHY_CAD: this.strCodeValue =EnumCV_BreastProcedureReported.MAMMOGRAPHY_CAD_111411.getValue(); break;
		case SENTINEL_LYMPH_NODE_BIOPSY: this.strCodeValue =EnumCV_BreastProcedureReported.SENTINEL_LYMPH_NODE_BIOPSY_P1_65359.getValue(); break;
		case RADIOISOTOPE_SCAN_OF_LYMPHATIC_SYSTEM: this.strCodeValue =EnumCV_BreastProcedureReported.RADIOISOTOPE_SCAN_OF_LYMPHATIC_SYSTEM_P5_D0061.getValue(); break;
		case MARKER_PLACEMENT: this.strCodeValue =EnumCV_BreastProcedureReported.MARKER_PLACEMENT_111123.getValue(); break;
		case INSERTION_OF_CATHETER: this.strCodeValue =EnumCV_BreastProcedureReported.INSERTION_OF_CATHETER_P1_05535.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumBreastProcedureReported Object of EnumCM_BreastProcedureReported represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_BreastProcedureReported enumBreastProcedureReported)
	{
		switch(enumBreastProcedureReported)
		{
				case ULTRASONOGRAPHY_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.ULTRASONOGRAPHY_OF_BREAST.getSNOMEDCTID(); break;
		case MRI_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MRI_OF_BREAST.getSNOMEDCTID(); break;
		case PRE_BIOPSY_LOCALIZATION_OF_BREAST_LESION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.PRE_BIOPSY_LOCALIZATION_OF_BREAST_LESION.getSNOMEDCTID(); break;
		case FINE_NEEDLE_ASPIRATION_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.FINE_NEEDLE_ASPIRATION_OF_BREAST.getSNOMEDCTID(); break;
		case DIAGNOSTIC_ASPIRATION_OF_BREAST_CYST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.DIAGNOSTIC_ASPIRATION_OF_BREAST_CYST.getSNOMEDCTID(); break;
		case CORE_NEEDLE_BIOPSY_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CORE_NEEDLE_BIOPSY_OF_BREAST.getSNOMEDCTID(); break;
		case BREAST__SURGICAL_BIOPSY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BREAST__SURGICAL_BIOPSY.getSNOMEDCTID(); break;
		case MAMMARY_DUCTOGRAM : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MAMMARY_DUCTOGRAM.getSNOMEDCTID(); break;
		case CT_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CT_OF_BREAST.getSNOMEDCTID(); break;
		case RADIONUCLIDE_LOCALIZATION_OF_TUMOR_LIMITED_AREA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.RADIONUCLIDE_LOCALIZATION_OF_TUMOR_LIMITED_AREA.getSNOMEDCTID(); break;
		case SPECIMEN_RADIOGRAPHY_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SPECIMEN_RADIOGRAPHY_OF_BREAST.getSNOMEDCTID(); break;
		case EXAMINATION_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.EXAMINATION_OF_BREAST.getSNOMEDCTID(); break;
		case SENTINEL_LYMPH_NODE_BIOPSY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SENTINEL_LYMPH_NODE_BIOPSY.getSNOMEDCTID(); break;
		case RADIOISOTOPE_SCAN_OF_LYMPHATIC_SYSTEM : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.RADIOISOTOPE_SCAN_OF_LYMPHATIC_SYSTEM.getSNOMEDCTID(); break;
		case INSERTION_OF_CATHETER : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.INSERTION_OF_CATHETER.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for BreastProcedureReported
	 * @param enumBreastProcedureReported Object of EnumCM_BreastProcedureReported.
	 */
	public void setBreastProcedureReported(EnumCM_BreastProcedureReported enumBreastProcedureReported)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumBreastProcedureReported.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastProcedureReported.FILM_SCREEN_MAMMOGRAPHY.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastProcedureReported.DIGITAL_MAMMOGRAPHY.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastProcedureReported.SURGICAL_CONSULT.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastProcedureReported.MAMMOGRAPHY_CAD.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastProcedureReported.MARKER_PLACEMENT.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumBreastProcedureReported);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumBreastProcedureReported);
	}
}
