/*******************************************************************************
 *  Copyright 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.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ColonOverallAssessment;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ColonOverallAssessment;


/**
 * This class represents ColonOverallAssessment - CID6200
 */
public class ColonOverallAssessment_CID6200 
{
	
	/**
	 * 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;

	/**
	 * Instantiates a new ColonOverallAssessment_CID6200 Template 
	 */
	public ColonOverallAssessment_CID6200()
	{

	}

	/**
	 * 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 enumColonOverallAssessment Object of EnumCM_ColonOverallAssessment represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ColonOverallAssessment enumColonOverallAssessment)
	{
		switch(enumColonOverallAssessment)
		{
		case C0_INADEQUATE_STUDY_AWAITING_PRIOR_COMPARISONS:
			this.strCodeValue = EnumCV_ColonOverallAssessment.C0_INADEQUATE_STUDY_AWAITING_PRIOR_COMPARISONS_112240
					.getValue();
			break;
		case C1_NORMAL_COLON_OR_BENIGN_LESION:
			this.strCodeValue = EnumCV_ColonOverallAssessment.C1_NORMAL_COLON_OR_BENIGN_LESION_112241
					.getValue();
			break;
		case C2_INTERMEDIATE_POLYP_OR_INDETERMINATE_FINDING:
			this.strCodeValue = EnumCV_ColonOverallAssessment.C2_INTERMEDIATE_POLYP_OR_INDETERMINATE_FINDING_112242
					.getValue();
			break;
		case C3_POLYP_POSSIBLY_ADVANCED_ADENOMA:
			this.strCodeValue = EnumCV_ColonOverallAssessment.C3_POLYP_POSSIBLY_ADVANCED_ADENOMA_112243
					.getValue();
			break;
		case C4_COLONIC_MASS_LIKELY_MALIGNANT:
			this.strCodeValue = EnumCV_ColonOverallAssessment.C4_COLONIC_MASS_LIKELY_MALIGNANT_112244
					.getValue();
			break;
		}
	}

	/**
	 * Sets the value for ColonOverallAssessment
	 * @param enumColonOverallAssessment Object of EnumCM_ColonOverallAssessment.
	 */
	public void setColonOverallAssessment(EnumCM_ColonOverallAssessment enumColonOverallAssessment)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumColonOverallAssessment.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumColonOverallAssessment);
	}
}
