/*******************************************************************************
 *  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.EnumChestCardiacSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_WallMotion;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_WallMotion;


/**
 * This class represents WallMotion - CID3703
 */
public class WallMotion_CID3703 
{
	
	/**
	 * 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;

	/**
	 * Instantiates a new WallMotion_CID3703 Template 
	 */
	public WallMotion_CID3703()
	{

	}

	/**
	 * 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;
	}
	/**
	 * 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;
	}
	/**
	 * 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 enumWallMotion Object of EnumCM_WallMotion represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_WallMotion enumWallMotion)
	{
		switch(enumWallMotion)
		{
		case AKINESIS:
			this.strCodeValue = EnumCV_WallMotion.AKINESIS_F_30004.getValue();
			break;
		case DYSKINESIS:
			this.strCodeValue = EnumCV_WallMotion.DYSKINESIS_F_32052.getValue();
			break;
		case HYPERKINETIC_REGION:
			this.strCodeValue = EnumCV_WallMotion.HYPERKINETIC_REGION_R_0030D.getValue();
			break;
		case HYPOKINESIS:
			this.strCodeValue = EnumCV_WallMotion.HYPOKINESIS_R_4041B.getValue();
			break;
		case MILD_HYPOKINESIS:
			this.strCodeValue = EnumCV_WallMotion.MILD_HYPOKINESIS_F_32056.getValue();
			break;
		case MODERATE_HYPOKINESIS:
			this.strCodeValue = EnumCV_WallMotion.MODERATE_HYPOKINESIS_R_0032F.getValue();
			break;
		case NORMAL_WALL_MOTION:
			this.strCodeValue = EnumCV_WallMotion.NORMAL_WALL_MOTION_R_00344.getValue();
			break;
		case NOT_EVALUATED:
			this.strCodeValue = EnumCV_WallMotion.NOT_EVALUATED_R_00378.getValue();
			break;
		case NOT_VISUALIZED:
			this.strCodeValue = EnumCV_WallMotion.NOT_VISUALIZED_122288.getValue();
			break;
		case SEVERE_HYPOKINESIS:
			this.strCodeValue = EnumCV_WallMotion.SEVERE_HYPOKINESIS_R_00370.getValue();
			break;
		case UNKNOWN:
			this.strCodeValue = EnumCV_WallMotion.UNKNOWN_R_41198.getValue();
			break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumWallMotion Object of EnumCM_WallMotion represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_WallMotion enumWallMotion)
	{
		switch(enumWallMotion)
		{
		case NOT_EVALUATED : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.NOT_EVALUATED.getSNOMEDCTID(); break;
		case UNKNOWN : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.UNKNOWN.getSNOMEDCTID(); break;
		case NORMAL_WALL_MOTION : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.NORMAL_WALL_MOTION.getSNOMEDCTID(); break;
		case HYPERKINETIC_REGION : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.HYPERKINETIC_REGION.getSNOMEDCTID(); break;
		case HYPOKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.HYPOKINESIS.getSNOMEDCTID(); break;
		case MILD_HYPOKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.MILD_HYPOKINESIS.getSNOMEDCTID(); break;
		case MODERATE_HYPOKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.MODERATE_HYPOKINESIS.getSNOMEDCTID(); break;
		case SEVERE_HYPOKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.SEVERE_HYPOKINESIS.getSNOMEDCTID(); break;
		case AKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.AKINESIS.getSNOMEDCTID(); break;
		case DYSKINESIS : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.DYSKINESIS.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for WallMotion
	 * @param enumWallMotion Object of EnumCM_WallMotion.
	 */
	public void setWallMotion(EnumCM_WallMotion enumWallMotion)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumWallMotion.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_WallMotion.NOT_VISUALIZED.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumWallMotion);

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