/*******************************************************************************
 *  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_PatientOrientationModifier;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_PatientOrientationModifier;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;

/**
 * This class represents PatientOrientationModifier CID20
 */
public class PatientOrientationModifier_CID20 {

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

	}

	/**
	 * 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 enumPatientOrientationModifier Object of EnumCM_PatientOrientationModifier represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_PatientOrientationModifier enumPatientOrientationModifier)
	{
		switch(enumPatientOrientationModifier)
		{
		case PRONE: this.strCodeValue =EnumCV_PatientOrientationModifier.PRONE_F_10310.getValue(); break;
		case SEMI_PRONE: this.strCodeValue =EnumCV_PatientOrientationModifier.SEMI_PRONE_F_10316.getValue(); break;
		case LATERAL_DECUBITUS: this.strCodeValue =EnumCV_PatientOrientationModifier.LATERAL_DECUBITUS_F_10318.getValue(); break;
		case STANDING: this.strCodeValue =EnumCV_PatientOrientationModifier.STANDING_F_10320.getValue(); break;
		case ANATOMICAL: this.strCodeValue =EnumCV_PatientOrientationModifier.ANATOMICAL_F_10326.getValue(); break;
		case KNEELING: this.strCodeValue =EnumCV_PatientOrientationModifier.KNEELING_F_10330.getValue(); break;
		case KNEE_CHEST: this.strCodeValue =EnumCV_PatientOrientationModifier.KNEE_CHEST_F_10336.getValue(); break;
		case SUPINE: this.strCodeValue =EnumCV_PatientOrientationModifier.SUPINE_F_10340.getValue(); break;
		case LITHOTOMY: this.strCodeValue =EnumCV_PatientOrientationModifier.LITHOTOMY_F_10346.getValue(); break;
		case TRENDELENBURG: this.strCodeValue =EnumCV_PatientOrientationModifier.TRENDELENBURG_F_10348.getValue(); break;
		case INVERSE_TRENDELENBURG: this.strCodeValue =EnumCV_PatientOrientationModifier.INVERSE_TRENDELENBURG_F_10349.getValue(); break;
		case FROG: this.strCodeValue =EnumCV_PatientOrientationModifier.FROG_F_10380.getValue(); break;
		case STOOPED_OVER: this.strCodeValue =EnumCV_PatientOrientationModifier.STOOPED_OVER_F_10390.getValue(); break;
		case SITTING: this.strCodeValue =EnumCV_PatientOrientationModifier.SITTING_F_103A0.getValue(); break;
		case CURLED_UP: this.strCodeValue =EnumCV_PatientOrientationModifier.CURLED_UP_F_10410.getValue(); break;
		case RIGHT_LATERAL_DECUBITUS: this.strCodeValue =EnumCV_PatientOrientationModifier.RIGHT_LATERAL_DECUBITUS_F_10317.getValue(); break;
		case LEFT_LATERAL_DECUBITUS: this.strCodeValue =EnumCV_PatientOrientationModifier.LEFT_LATERAL_DECUBITUS_F_10319.getValue(); break;
		case LORDOTIC: this.strCodeValue =EnumCV_PatientOrientationModifier.LORDOTIC_R_40799.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumPatientOrientationModifier Object of EnumCM_PatientOrientationModifier represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_PatientOrientationModifier enumPatientOrientationModifier)
	{
		switch(enumPatientOrientationModifier)
		{
		case PRONE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PRONE.getSNOMEDCTID(); break;
		case SEMI_PRONE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.SEMI_PRONE.getSNOMEDCTID(); break;
		case LATERAL_DECUBITUS : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LATERAL_DECUBITUS.getSNOMEDCTID(); break;
		case STANDING : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.STANDING.getSNOMEDCTID(); break;
		case ANATOMICAL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ANATOMICAL.getSNOMEDCTID(); break;
		case KNEELING : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.KNEELING.getSNOMEDCTID(); break;
		case KNEE_CHEST : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.KNEE_CHEST.getSNOMEDCTID(); break;
		case SUPINE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.SUPINE.getSNOMEDCTID(); break;
		case LITHOTOMY : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LITHOTOMY.getSNOMEDCTID(); break;
		case TRENDELENBURG : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.TRENDELENBURG.getSNOMEDCTID(); break;
		case INVERSE_TRENDELENBURG : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INVERSE_TRENDELENBURG.getSNOMEDCTID(); break;
		case FROG : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.FROG.getSNOMEDCTID(); break;
		case STOOPED_OVER : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.STOOPED_OVER.getSNOMEDCTID(); break;
		case SITTING : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.SITTING.getSNOMEDCTID(); break;
		case CURLED_UP : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CURLED_UP.getSNOMEDCTID(); break;
		case RIGHT_LATERAL_DECUBITUS : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.RIGHT_LATERAL_DECUBITUS.getSNOMEDCTID(); break;
		case LEFT_LATERAL_DECUBITUS : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LEFT_LATERAL_DECUBITUS.getSNOMEDCTID(); break;
		case LORDOTIC : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.LORDOTIC.getSNOMEDCTID(); break;
		}
	}

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

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