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


/**
 * This class represents OphthalmicOCTAnatomicStructureImaged CID4211
 */
public class OphthalmicOCTAnatomicStructureImaged_CID4211 {

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

	}

	/**
	 * 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 enumOphthalmicOCTAnatomicStructureImaged Object of EnumCM_OphthalmicOCTAnatomicStructureImaged represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_OphthalmicOCTAnatomicStructureImaged enumOphthalmicOCTAnatomicStructureImaged)
	{
		switch(enumOphthalmicOCTAnatomicStructureImaged)
		{
		case ANTERIOR_CHAMBER_OF_EYE: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.ANTERIOR_CHAMBER_OF_EYE_T_AA050.getValue(); break;
		case CHOROID_OF_EYE: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CHOROID_OF_EYE_T_AA310.getValue(); break;
		case CILIARY_BODY: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CILIARY_BODY_T_AA400.getValue(); break;
		case CONJUNCTIVA: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CONJUNCTIVA_T_AA860.getValue(); break;
		case CORNEA: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CORNEA_T_AA200.getValue(); break;
		case IRIS: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.IRIS_T_AA500.getValue(); break;
		case LENS: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.LENS_T_AA700.getValue(); break;
		case OPTIC_NERVE_HEAD: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.OPTIC_NERVE_HEAD_T_AA630.getValue(); break;
		case RETINA: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.RETINA_T_AA610.getValue(); break;
		case SCLERA: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.SCLERA_T_AA110.getValue(); break;
		case VITREOUS: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.VITREOUS_T_AA079.getValue(); break;
		case CORNEAL_EPITHELIUM: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CORNEAL_EPITHELIUM_T_AA220.getValue(); break;
		case CORNEAL_ENDOTHELIUM: this.strCodeValue =EnumCV_OphthalmicOCTAnatomicStructureImaged.CORNEAL_ENDOTHELIUM_T_AA260.getValue(); break;

		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumOphthalmicOCTAnatomicStructureImaged Object of EnumCM_OphthalmicOCTAnatomicStructureImaged represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_OphthalmicOCTAnatomicStructureImaged enumOphthalmicOCTAnatomicStructureImaged)
	{
		switch(enumOphthalmicOCTAnatomicStructureImaged)
		{
		case ANTERIOR_CHAMBER_OF_EYE: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.ANTERIOR_CHAMBER_OF_EYE.getSNOMEDCTID(); break;
		case CHOROID_OF_EYE: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CHOROID_OF_EYE.getSNOMEDCTID(); break;
		case CILIARY_BODY: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CILIARY_BODY.getSNOMEDCTID(); break;
		case CONJUNCTIVA: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CONJUNCTIVA.getSNOMEDCTID(); break;
		case CORNEA: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CORNEA.getSNOMEDCTID(); break;
		case IRIS: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.IRIS.getSNOMEDCTID(); break;
		case LENS: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.LENS.getSNOMEDCTID(); break;
		case OPTIC_NERVE_HEAD: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.OPTIC_NERVE_HEAD.getSNOMEDCTID(); break;
		case RETINA: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.RETINA.getSNOMEDCTID(); break;
		case SCLERA: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.SCLERA.getSNOMEDCTID(); break;
		case VITREOUS: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.VITREOUS.getSNOMEDCTID(); break;
		case CORNEAL_EPITHELIUM: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CORNEAL_EPITHELIUM.getSNOMEDCTID(); break;
		case CORNEAL_ENDOTHELIUM: this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.CORNEAL_ENDOTHELIUM.getSNOMEDCTID(); break;

		}
	}

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

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