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


/**
 * This class represents RejectedForQualityReasons - CID7011
 */
public class RejectedForQualityReasons_CID7011 
{
	
	/**
	 * 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 RejectedForQualityReasons_CID7011 Template 
	 */
	public RejectedForQualityReasons_CID7011()
	{

	}

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

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