/*******************************************************************************
 *  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.dicomsnomedmap.EnumOpthalmicSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_VisualFixationQualityDuringAcquisition;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_VisualFixationQualityDuringAcquisition;


/**
 * This class represents VisualFixationQualityDuringAcquisition CID4220
 */
public class VisualFixationQualityDuringAcquisition_CID4220 {

	/**
	 * 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 VisualFixationQualityDuringAcquisition_CID4220 Template 
	 */
	public VisualFixationQualityDuringAcquisition_CID4220()
	{

	}

	/**
	 * 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 enumVisualFixationQualityDuringAcquisition Object of EnumCM_VisualFixationQualityDuringAcquisition represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_VisualFixationQualityDuringAcquisition enumVisualFixationQualityDuringAcquisition)
	{
		switch(enumVisualFixationQualityDuringAcquisition)
		{
		case NOT_STEADY: this.strCodeValue = EnumCV_VisualFixationQualityDuringAcquisition.NOT_STEADY_G_A556.getValue();break;
		case INDETERMINATE: this.strCodeValue = EnumCV_VisualFixationQualityDuringAcquisition.INDETERMINATE_G_A385.getValue();break;
		case STEADY: this.strCodeValue = EnumCV_VisualFixationQualityDuringAcquisition.STEADY_G_A555.getValue();break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumVisualFixationQualityDuringAcquisition Object of EnumCM_VisualFixationQualityDuringAcquisition represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_VisualFixationQualityDuringAcquisition enumVisualFixationQualityDuringAcquisition)
	{
		switch(enumVisualFixationQualityDuringAcquisition)
		{
		case INDETERMINATE: this.strSNOMEDCTID = EnumOpthalmicSNOMEDMap.INDETERMINATE.getSNOMEDCTID();break;
		case STEADY: this.strSNOMEDCTID = EnumOpthalmicSNOMEDMap.STEADY.getSNOMEDCTID();break;
		case NOT_STEADY: this.strSNOMEDCTID = EnumOpthalmicSNOMEDMap.NOT_STEADY.getSNOMEDCTID();break;

		}
	}

	/**
	 * Sets the value for VisualFixationQualityDuringAcquisition
	 * @param enumVisualFixationQualityDuringAcquisition Object of EnumCM_VisualFixationQualityDuringAcquisition.
	 */
	public void setVisualFixationQualityDuringAcquisition(EnumCM_VisualFixationQualityDuringAcquisition enumVisualFixationQualityDuringAcquisition)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumVisualFixationQualityDuringAcquisition.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumVisualFixationQualityDuringAcquisition);

		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumVisualFixationQualityDuringAcquisition);
	}
}
