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


/**
 * This class represents BreastClinicalFindingOrIndicatedProblem - CID6055
 */
public class BreastClinicalFindingOrIndicatedProblem_CID6055
{
	
	/**
	 * 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 BreastClinicalFindingOrIndicatedProblem_CID6055 Template 
	 */
	public BreastClinicalFindingOrIndicatedProblem_CID6055()
	{

	}

	/**
	 * 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 enumBreastClinicalFindingOrIndicatedProblem Object of EnumCM_BreastClinicalFindingOrIndicatedProblem represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_BreastClinicalFindingOrIndicatedProblem enumBreastClinicalFindingOrIndicatedProblem)
	{
		switch(enumBreastClinicalFindingOrIndicatedProblem)
		{
		case O_E__BREAST_LUMP_PALPATED: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.O_E__BREAST_LUMP_PALPATED_R_207D7.getValue(); break;
		case BLOODY_NIPPLE_DISCHARGE: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.BLOODY_NIPPLE_DISCHARGE_D7_90565.getValue(); break;
		case NON_BLOODY_DISCHARGE_FROM_NIPPLE: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.NON_BLOODY_DISCHARGE_FROM_NIPPLE_111478.getValue(); break;
		case DIFFICULT_PHYSICAL_CLINICAL_EXAMINATION: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.DIFFICULT_PHYSICAL_CLINICAL_EXAMINATION_111479.getValue(); break;
		case DISORDER_OF_BREAST_IMPLANT: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.DISORDER_OF_BREAST_IMPLANT_D7_90010.getValue(); break;
		case SKIN_THICKENING_OF_BREAST: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.SKIN_THICKENING_OF_BREAST_F_0179A.getValue(); break;
		case SKIN_RETRACTION_OF_BREAST: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.SKIN_RETRACTION_OF_BREAST_F_01799.getValue(); break;
		case PEAU_DORANGE_SURFACE_OF_BREAST: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.PEAU_DORANGE_SURFACE_OF_BREAST_D7_90560.getValue(); break;
		case NIPPLE_PROBLEM: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.NIPPLE_PROBLEM_F_8A09C.getValue(); break;
		case O_E__AXILLARY_LYMPHADENOPATHY: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.O_E__AXILLARY_LYMPHADENOPATHY_R_20099.getValue(); break;
		case BREAST_PAIN: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.BREAST_PAIN_F_8A030.getValue(); break;
		case CANCER_ELSEWHERE: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.CANCER_ELSEWHERE_111480.getValue(); break;
		case BREAST_LUMP: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.BREAST_LUMP_D7_90530.getValue(); break;
		case DISCOLORATION_OF_SKIN_OF_BREAST: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.DISCOLORATION_OF_SKIN_OF_BREAST_F_8A074.getValue(); break;
		case RADIOGRAPHIC_CALCIFICATION_FINDING: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.RADIOGRAPHIC_CALCIFICATION_FINDING_F_01760.getValue(); break;
		case IMAGE_DETECTED_MASS: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.IMAGE_DETECTED_MASS_111126.getValue(); break;
		case NIPPLE_DISCHARGE_SYMPTOM: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.NIPPLE_DISCHARGE_SYMPTOM_F_03753.getValue(); break;
		case ERYTHEMA: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.ERYTHEMA_F_4410C.getValue(); break;
		case O_E__LYMPHADENOPATHY_NOS: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.O_E__LYMPHADENOPATHY_NOS_R_20681.getValue(); break;
		case DISSEMINATED_MALIGNANCY_OF_UNKNOWN_PRIMARY: this.strCodeValue =EnumCV_BreastClinicalFindingOrIndicatedProblem.DISSEMINATED_MALIGNANCY_OF_UNKNOWN_PRIMARY_DF_00577.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumBreastClinicalFindingorIndicatedProblem Object of EnumCM_BreastClinicalFindingorIndicatedProblem represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_BreastClinicalFindingOrIndicatedProblem enumBreastClinicalFindingOrIndicatedProblem)
	{
		switch(enumBreastClinicalFindingOrIndicatedProblem)
		{
		case O_E__BREAST_LUMP_PALPATED : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.O_E__BREAST_LUMP_PALPATED.getSNOMEDCTID(); break;
		case BLOODY_NIPPLE_DISCHARGE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BLOODY_NIPPLE_DISCHARGE.getSNOMEDCTID(); break;
		case DISORDER_OF_BREAST_IMPLANT : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.DISORDER_OF_BREAST_IMPLANT.getSNOMEDCTID(); break;
		case SKIN_THICKENING_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SKIN_THICKENING_OF_BREAST.getSNOMEDCTID(); break;
		case SKIN_RETRACTION_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SKIN_RETRACTION_OF_BREAST.getSNOMEDCTID(); break;
		case PEAU_DORANGE_SURFACE_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.PEAU_DORANGE_SURFACE_OF_BREAST.getSNOMEDCTID(); break;
		case NIPPLE_PROBLEM : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.NIPPLE_PROBLEM.getSNOMEDCTID(); break;
		case O_E__AXILLARY_LYMPHADENOPATHY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.O_E__AXILLARY_LYMPHADENOPATHY.getSNOMEDCTID(); break;
		case BREAST_PAIN : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BREAST_PAIN.getSNOMEDCTID(); break;
		case BREAST_LUMP : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.BREAST_LUMP.getSNOMEDCTID(); break;
		case DISCOLORATION_OF_SKIN_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.DISCOLORATION_OF_SKIN_OF_BREAST.getSNOMEDCTID(); break;
		case RADIOGRAPHIC_CALCIFICATION_FINDING : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.RADIOGRAPHIC_CALCIFICATION_FINDING.getSNOMEDCTID(); break;
		case NIPPLE_DISCHARGE_SYMPTOM : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.NIPPLE_DISCHARGE_SYMPTOM.getSNOMEDCTID(); break;
		case ERYTHEMA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.ERYTHEMA.getSNOMEDCTID(); break;
		case O_E__LYMPHADENOPATHY_NOS : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.O_E__LYMPHADENOPATHY_NOS.getSNOMEDCTID(); break;
		case DISSEMINATED_MALIGNANCY_OF_UNKNOWN_PRIMARY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.DISSEMINATED_MALIGNANCY_OF_UNKNOWN_PRIMARY.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for BreastClinicalFindingOrIndicatedProblem
	 * @param enumBreastClinicalFindingOrIndicatedProblem Object of EnumCM_BreastClinicalFindingOrIndicatedProblem.
	 */
	public void setBreastClinicalFindingOrIndicatedProblem(EnumCM_BreastClinicalFindingOrIndicatedProblem enumBreastClinicalFindingOrIndicatedProblem)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumBreastClinicalFindingOrIndicatedProblem.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastClinicalFindingOrIndicatedProblem.NON_BLOODY_DISCHARGE_FROM_NIPPLE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastClinicalFindingOrIndicatedProblem.DIFFICULT_PHYSICAL_CLINICAL_EXAMINATION.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastClinicalFindingOrIndicatedProblem.CANCER_ELSEWHERE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastClinicalFindingOrIndicatedProblem.IMAGE_DETECTED_MASS.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumBreastClinicalFindingOrIndicatedProblem);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumBreastClinicalFindingOrIndicatedProblem);
	}
}
