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


/**
 * This class represents ChestImageQualityFinding - CID6135
 */
public class ChestImageQualityFinding_CID6135 
{
	
	/**
	 * 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 ChestImageQualityFinding_CID6135 Template 
	 */
	public ChestImageQualityFinding_CID6135()
	{

	}

	/**
	 * 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 enumChestImageQualityFinding Object of EnumCM_ChestImageQualityFinding represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ChestImageQualityFinding enumChestImageQualityFinding)
	{
		switch(enumChestImageQualityFinding)
		{
		case GRID_ARTIFACTS: this.strCodeValue = EnumCV_ChestImageQualityFinding.GRID_ARTIFACTS_111208.getValue();break;
		case POSITIONING: this.strCodeValue = EnumCV_ChestImageQualityFinding.POSITIONING_111209.getValue();break;
		case MOTION_BLUR: this.strCodeValue = EnumCV_ChestImageQualityFinding.MOTION_BLUR_111210.getValue();break;
		case UNDER_EXPOSED: this.strCodeValue = EnumCV_ChestImageQualityFinding.UNDER_EXPOSED_111211.getValue();break;
		case OVER_EXPOSED: this.strCodeValue = EnumCV_ChestImageQualityFinding.OVER_EXPOSED_111212.getValue();break;
		case NO_IMAGE: this.strCodeValue = EnumCV_ChestImageQualityFinding.NO_IMAGE_111213.getValue();break;
		case DETECTOR_ARTIFACTS: this.strCodeValue = EnumCV_ChestImageQualityFinding.DETECTOR_ARTIFACTS_111214.getValue();break;
		case ARTIFACTS_OTHER_THAN_GRID_OR_DETECTOR_ARTIFACT: this.strCodeValue = EnumCV_ChestImageQualityFinding.ARTIFACTS_OTHER_THAN_GRID_OR_DETECTOR_ARTIFACT_111215.getValue();break;
		case MECHANICAL_FAILURE: this.strCodeValue = EnumCV_ChestImageQualityFinding.MECHANICAL_FAILURE_111216.getValue();break;
		case ELECTRICAL_FAILURE: this.strCodeValue = EnumCV_ChestImageQualityFinding.ELECTRICAL_FAILURE_111217.getValue();break;
		case SOFTWARE_FAILURE: this.strCodeValue = EnumCV_ChestImageQualityFinding.SOFTWARE_FAILURE_111218.getValue();break;
		case INAPPROPRIATE_IMAGE_PROCESSING: this.strCodeValue = EnumCV_ChestImageQualityFinding.INAPPROPRIATE_IMAGE_PROCESSING_111219.getValue();break;
		case OTHER_FAILURE: this.strCodeValue = EnumCV_ChestImageQualityFinding.OTHER_FAILURE_111220.getValue();break;
		case UNKNOWN_FAILURE: this.strCodeValue = EnumCV_ChestImageQualityFinding.UNKNOWN_FAILURE_111221.getValue();break;
		}
	}

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