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


/**
 * This class represents BreastCancerRiskFactors - CID6081
 */
public class BreastCancerRiskFactors_CID6081
{
	
	/**
	 * 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 BreastCancerRiskFactors_CID6081 Template 
	 */
	public BreastCancerRiskFactors_CID6081()
	{

	}

	/**
	 * 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 enumBreastCancerRiskFactors Object of EnumCM_BreastCancerRiskFactors represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_BreastCancerRiskFactors enumBreastCancerRiskFactors)
	{
		switch(enumBreastCancerRiskFactors)
		{
		case PERSONAL_BREAST_CANCER_HISTORY: this.strCodeValue =EnumCV_BreastCancerRiskFactors.PERSONAL_BREAST_CANCER_HISTORY_111550.getValue(); break;
		case HISTORY_OF_ENDOMETRIAL_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.HISTORY_OF_ENDOMETRIAL_CANCER_111551.getValue(); break;
		case HISTORY_OF_OVARIAN_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.HISTORY_OF_OVARIAN_CANCER_111552.getValue(); break;
		case HISTORY_OF_HIGH_RISK_LESION_ON_PREVIOUS_BIOPSY: this.strCodeValue =EnumCV_BreastCancerRiskFactors.HISTORY_OF_HIGH_RISK_LESION_ON_PREVIOUS_BIOPSY_111553.getValue(); break;
		case POST_MENOPAUSAL_PATIENT: this.strCodeValue =EnumCV_BreastCancerRiskFactors.POST_MENOPAUSAL_PATIENT_111554.getValue(); break;
		case NULLIPAROUS: this.strCodeValue =EnumCV_BreastCancerRiskFactors.NULLIPAROUS_F_84430.getValue(); break;
		case LATE_CHILD_BEARING_AFTER_30: this.strCodeValue =EnumCV_BreastCancerRiskFactors.LATE_CHILD_BEARING_AFTER_30_111555.getValue(); break;
		case BRCA1_BREAST_CANCER_GENE: this.strCodeValue =EnumCV_BreastCancerRiskFactors.BRCA1_BREAST_CANCER_GENE_111556.getValue(); break;
		case BRCA2_BREAST_CANCER_GENE: this.strCodeValue =EnumCV_BreastCancerRiskFactors.BRCA2_BREAST_CANCER_GENE_111557.getValue(); break;
		case BRCA3_BREAST_CANCER_GENE: this.strCodeValue =EnumCV_BreastCancerRiskFactors.BRCA3_BREAST_CANCER_GENE_111558.getValue(); break;
		case FAMILY_HISTORY_OF_BREAST_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.FAMILY_HISTORY_OF_BREAST_CANCER_G_0325.getValue(); break;
		case WEAK_FAMILY_HISTORY_OF_BREAST_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.WEAK_FAMILY_HISTORY_OF_BREAST_CANCER_111559.getValue(); break;
		case INTERMEDIATE_FAMILY_HISTORY_OF_BREAST_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.INTERMEDIATE_FAMILY_HISTORY_OF_BREAST_CANCER_111560.getValue(); break;
		case VERY_STRONG_FAMILY_HISTORY_OF_BREAST_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.VERY_STRONG_FAMILY_HISTORY_OF_BREAST_CANCER_111561.getValue(); break;
		case FAMILY_HISTORY_OF_PROSTATE_CANCER: this.strCodeValue =EnumCV_BreastCancerRiskFactors.FAMILY_HISTORY_OF_PROSTATE_CANCER_111562.getValue(); break;
		case FAMILY_HISTORY_UNKNOWN: this.strCodeValue =EnumCV_BreastCancerRiskFactors.FAMILY_HISTORY_UNKNOWN_111563.getValue(); break;
		case NO_FAMILY_HISTORY_OF_BREAST_CARCINOMA: this.strCodeValue =EnumCV_BreastCancerRiskFactors.NO_FAMILY_HISTORY_OF_BREAST_CARCINOMA_R_207AD.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumBreastCancerRiskFactors Object of EnumCM_BreastCancerRiskFactors represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_BreastCancerRiskFactors enumBreastCancerRiskFactors)
	{
		switch(enumBreastCancerRiskFactors)
		{
		case NULLIPAROUS : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.NULLIPAROUS.getSNOMEDCTID(); break;
		case FAMILY_HISTORY_OF_BREAST_CANCER : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.FAMILY_HISTORY_OF_BREAST_CANCER.getSNOMEDCTID(); break;
		case NO_FAMILY_HISTORY_OF_BREAST_CARCINOMA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.NO_FAMILY_HISTORY_OF_BREAST_CARCINOMA.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for BreastCancerRiskFactors
	 * @param enumBreastCancerRiskFactors Object of EnumCM_BreastCancerRiskFactors.
	 */
	public void setBreastCancerRiskFactors(EnumCM_BreastCancerRiskFactors enumBreastCancerRiskFactors)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumBreastCancerRiskFactors.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_BreastCancerRiskFactors.NULLIPAROUS.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastCancerRiskFactors.FAMILY_HISTORY_OF_BREAST_CANCER.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_BreastCancerRiskFactors.NO_FAMILY_HISTORY_OF_BREAST_CARCINOMA.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumBreastCancerRiskFactors);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumBreastCancerRiskFactors);
	}
}
