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


/**
 * This class represents UltrasoundFindingsForBreast - CID6064
 */
public class UltrasoundFindingsForBreast_CID6064
{
	
	/**
	 * 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 UltrasoundFindingsForBreast_CID6064 Template 
	 */
	public UltrasoundFindingsForBreast_CID6064()
	{

	}

	/**
	 * 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 enumUltrasoundFindingsForBreast Object of EnumCM_UltrasoundFindingsForBreast represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_UltrasoundFindingsForBreast enumUltrasoundFindingsForBreast)
	{
		switch(enumUltrasoundFindingsForBreast)
		{
		case ULTRASOUND_SCAN_NORMAL: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.ULTRASOUND_SCAN_NORMAL_F_01BF8.getValue(); break;
		case SIMPLE_CYST_OF_BREAST: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.SIMPLE_CYST_OF_BREAST_D7_90360.getValue(); break;
		case COMPLEX_CYST: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.COMPLEX_CYST_111460.getValue(); break;
		case INTRACYSTIC_LESION: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.INTRACYSTIC_LESION_111461.getValue(); break;
		case MAMMARY_DUCT_ECTASIA: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.MAMMARY_DUCT_ECTASIA_D7_90370.getValue(); break;
		case SOLID_MASS: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.SOLID_MASS_111462.getValue(); break;
		case LYMPH_NODE: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.LYMPH_NODE_T_C4000.getValue(); break;
		case SEBACEOUS_CYST_OF_SKIN_OF_BREAST: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.SEBACEOUS_CYST_OF_SKIN_OF_BREAST_D7_90382.getValue(); break;
		case CLUSTERED_MICROCYSTS: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.CLUSTERED_MICROCYSTS_111129.getValue(); break;
		case COMPLICATED_CYST: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.COMPLICATED_CYST_111130.getValue(); break;
		case FOREIGN_BODY: this.strCodeValue =EnumCV_UltrasoundFindingsForBreast.FOREIGN_BODY_M_30400.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumUltrasoundFindingsforBreast Object of EnumCM_UltrasoundFindingsforBreast represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_UltrasoundFindingsForBreast enumUltrasoundFindingsforBreast)
	{
		switch(enumUltrasoundFindingsforBreast)
		{
		case ULTRASOUND_SCAN_NORMAL : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.ULTRASOUND_SCAN_NORMAL.getSNOMEDCTID(); break;
		case SIMPLE_CYST_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SIMPLE_CYST_OF_BREAST.getSNOMEDCTID(); break;
		case MAMMARY_DUCT_ECTASIA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MAMMARY_DUCT_ECTASIA.getSNOMEDCTID(); break;
		case LYMPH_NODE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.LYMPH_NODE.getSNOMEDCTID(); break;
		case SEBACEOUS_CYST_OF_SKIN_OF_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SEBACEOUS_CYST_OF_SKIN_OF_BREAST.getSNOMEDCTID(); break;
		case FOREIGN_BODY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.FOREIGN_BODY.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for UltrasoundFindingsForBreast
	 * @param enumUltrasoundFindingsForBreast Object of EnumCM_UltrasoundFindingsForBreast.
	 */
	public void setUltrasoundFindingsForBreast(EnumCM_UltrasoundFindingsForBreast enumUltrasoundFindingsForBreast)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumUltrasoundFindingsForBreast.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_UltrasoundFindingsForBreast.COMPLEX_CYST.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_UltrasoundFindingsForBreast.INTRACYSTIC_LESION.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_UltrasoundFindingsForBreast.SOLID_MASS.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_UltrasoundFindingsForBreast.CLUSTERED_MICROCYSTS.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_UltrasoundFindingsForBreast.COMPLICATED_CYST.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumUltrasoundFindingsForBreast);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumUltrasoundFindingsForBreast);
	}
}