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


/**
 * This class represents ClockfaceLocationForColon CID6205
 */
public class ClockfaceLocationForColon_CID6205 {

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

	}

	/**
	 * 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 enumClockfaceLocationForColon Object of EnumCM_ClockfaceLocationForColon represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ClockfaceLocationForColon enumClockfaceLocationForColon)
	{
		switch(enumClockfaceLocationForColon) //CV
		{
		case ONE_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.ONE_O_CLOCK_POSITION_F_01781
					.getValue();
			break;
		case TWO_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.TWO_O_CLOCK_POSITION_F_01782
					.getValue();
			break;
		case THREE_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.THREE_O_CLOCK_POSITION_F_01783
					.getValue();
			break;
		case FOUR_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.FOUR_O_CLOCK_POSITION_F_01784
					.getValue();
			break;
		case FIVE_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.FIVE_O_CLOCK_POSITION_F_01785
					.getValue();
			break;
		case SIX_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.SIX_O_CLOCK_POSITION_F_01786
					.getValue();
			break;
		case SEVEN_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.SEVEN_O_CLOCK_POSITION_F_01787
					.getValue();
			break;
		case EIGHT_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.EIGHT_O_CLOCK_POSITION_F_01788
					.getValue();
			break;
		case NINE_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.NINE_O_CLOCK_POSITION_F_01789
					.getValue();
			break;
		case TEN_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.TEN_O_CLOCK_POSITION_F_0178A
					.getValue();
			break;
		case ELEVEN_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.ELEVEN_O_CLOCK_POSITION_F_0178B
					.getValue();
			break;
		case TWELVE_O_CLOCK_POSITION:
			this.strCodeValue = EnumCV_ClockfaceLocationForColon.TWELVE_O_CLOCK_POSITION_F_0178C
					.getValue();
			break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumClockfaceLocationForColon Object of EnumCM_ClockfaceLocationForColon represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_ClockfaceLocationForColon enumClockfaceLocationForColon)
	{
		switch(enumClockfaceLocationForColon)
		{
		case ONE_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.ONE_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case TWO_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.TWO_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case THREE_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.THREE_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case FOUR_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.FOUR_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case FIVE_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.FIVE_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case SIX_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.SIX_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case SEVEN_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.SEVEN_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case EIGHT_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.EIGHT_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case NINE_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.NINE_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case TEN_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.TEN_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case ELEVEN_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.ELEVEN_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;
		case TWELVE_O_CLOCK_POSITION:
			this.strSNOMEDCTID = EnumDICOMSNOMEDMap.TWELVE_O_CLOCK_POSITION
					.getSNOMEDCTID();
			break;

		}
	}

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

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