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


/**
 * This class represents OphthalmicImagePosition - CID4207
 */
public class OphthalmicImagePosition_CID4207 
{
	
	/**
	 * 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;
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Instantiates a new OphthalmicImagePosition_CID4207 Template 
	 */
	public OphthalmicImagePosition_CID4207()
	{

	}

	/**
	 * 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 enumOphthalmicImagePosition Object of EnumCM_OphthalmicImagePosition represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_OphthalmicImagePosition enumOphthalmicImagePosition)
	{
		switch(enumOphthalmicImagePosition)
		{
		case DIABETIC_RETINOPATHY_STUDY_FIELD_1: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_1_R_10229.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_2: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_2_R_1022A.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_3: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_3_R_1022B.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_4: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_4_R_1022C.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_5: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_5_R_1022E.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_6: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_6_R_1022F.getValue(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_7: this.strCodeValue =EnumCV_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_7_R_10231.getValue(); break;
		case FIELD_1_FOR_JOSLIN3_FIELD: this.strCodeValue =EnumCV_OphthalmicImagePosition.FIELD_1_FOR_JOSLIN3_FIELD_111621.getValue(); break;
		case FIELD_2_FOR_JOSLIN_3_FIELD: this.strCodeValue =EnumCV_OphthalmicImagePosition.FIELD_2_FOR_JOSLIN_3_FIELD_111622.getValue(); break;
		case FIELD_3_FOR_JOSLIN_3_FIELD: this.strCodeValue =EnumCV_OphthalmicImagePosition.FIELD_3_FOR_JOSLIN_3_FIELD_111623.getValue(); break;
		case MACULA_CENTERED: this.strCodeValue =EnumCV_OphthalmicImagePosition.MACULA_CENTERED_111900.getValue(); break;
		case DISC_CENTERED: this.strCodeValue =EnumCV_OphthalmicImagePosition.DISC_CENTERED_111901.getValue(); break;
		case LESION_CENTERED: this.strCodeValue =EnumCV_OphthalmicImagePosition.LESION_CENTERED_111902.getValue(); break;
		case DISC_MACULA_CENTERED: this.strCodeValue =EnumCV_OphthalmicImagePosition.DISC_MACULA_CENTERED_111903.getValue(); break;
		case MID_PERIPHERAL_SUPERIOR: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_SUPERIOR_111904.getValue(); break;
		case MID_PERIPHERAL_SUPERIOR_TEMPORAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_SUPERIOR_TEMPORAL_111905.getValue(); break;
		case MID_PERIPHERAL_TEMPORAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_TEMPORAL_111906.getValue(); break;
		case MID_PERIPHERAL_INFERIOR_TEMPORAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_INFERIOR_TEMPORAL_111907.getValue(); break;
		case MID_PERIPHERAL_INFERIOR: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_INFERIOR_111908.getValue(); break;
		case MID_PERIPHERAL_INFERIOR_NASAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_INFERIOR_NASAL_111909.getValue(); break;
		case MID_PERIPHERAL_NASAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_NASAL_111910.getValue(); break;
		case MID_PERIPHERAL_SUPERIOR_NASAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.MID_PERIPHERAL_SUPERIOR_NASAL_111911.getValue(); break;
		case PERIPHERAL_SUPERIOR: this.strCodeValue =EnumCV_OphthalmicImagePosition.PERIPHERAL_SUPERIOR_111912.getValue(); break;
		case PERIPHERAL_SUPERIOR_TEMPORAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.PERIPHERAL_SUPERIOR_TEMPORAL_111913.getValue(); break;
		case PERIPHERAL_TEMPORAL: this.strCodeValue =EnumCV_OphthalmicImagePosition.PERIPHERAL_TEMPORAL_111914.getValue(); break;

		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumOphthalmicImagePosition Object of EnumCM_OphthalmicImagePosition represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_OphthalmicImagePosition enumOphthalmicImagePosition)
	{
		switch(enumOphthalmicImagePosition)
		{
		case DIABETIC_RETINOPATHY_STUDY_FIELD_1 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_1.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_2 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_2.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_3 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_3.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_4 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_4.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_5 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_5.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_6 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_6.getSNOMEDCTID(); break;
		case DIABETIC_RETINOPATHY_STUDY_FIELD_7 : this.strSNOMEDCTID =EnumOpthalmicSNOMEDMap.DIABETIC_RETINOPATHY_STUDY_FIELD_7.getSNOMEDCTID(); break;
		
		}
	}

	/**
	 * Sets the value for OphthalmicImagePosition
	 * @param enumOphthalmicImagePosition Object of EnumCM_OphthalmicImagePosition.
	 */
	public void setOphthalmicImagePosition(EnumCM_OphthalmicImagePosition enumOphthalmicImagePosition)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumOphthalmicImagePosition.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_1.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_2.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_3.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_4.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_5.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_6.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_OphthalmicImagePosition.DIABETIC_RETINOPATHY_STUDY_FIELD_7.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumOphthalmicImagePosition);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumOphthalmicImagePosition);
	}
}
