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


/**
 * This class represents EchocardiographyVolumeMethods - CID12228
 */
public class EchocardiographyVolumeMethods_CID12228 
{
	
	/**
	 * 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 EchocardiographyVolumeMethods_CID12228 Template 
	 */
	public EchocardiographyVolumeMethods_CID12228()
	{

	}

	/**
	 * 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 enumEchocardiographyVolumeMethods Object of EnumCM_EchocardiographyVolumeMethods represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_EchocardiographyVolumeMethods enumEchocardiographyVolumeMethods)
	{
		switch(enumEchocardiographyVolumeMethods)
		{
		case AREA_LENGTH_BIPLANE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.AREA_LENGTH_BIPLANE_125204.getValue(); break;
		case AREA_LENGTH_SINGLE_PLANE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.AREA_LENGTH_SINGLE_PLANE_125205.getValue(); break;
		case BIPLANE_ELLIPSE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.BIPLANE_ELLIPSE_125211.getValue(); break;
		case SINGLE_PLANE_ELLIPSE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.SINGLE_PLANE_ELLIPSE_125226.getValue(); break;
		case CUBE_METHOD: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.CUBE_METHOD_125206.getValue(); break;
		case METHOD_OF_DISKS_BIPLANE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.METHOD_OF_DISKS_BIPLANE_125207.getValue(); break;
		case METHOD_OF_DISKS_SINGLE_PLANE: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.METHOD_OF_DISKS_SINGLE_PLANE_125208.getValue(); break;
		case TEICHHOLZ: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.TEICHHOLZ_125209.getValue(); break;
		case MODIFIED_SIMPSON: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.MODIFIED_SIMPSON_125227.getValue(); break;
		case BULLET_METHOD: this.strCodeValue =EnumCV_EchocardiographyVolumeMethods.BULLET_METHOD_125228.getValue(); break;
		}
	}

	/**
	 * Sets the value for EchocardiographyVolumeMethods
	 * @param enumEchocardiographyVolumeMethods Object of EnumCM_EchocardiographyVolumeMethods.
	 */
	public void setEchocardiographyVolumeMethods(EnumCM_EchocardiographyVolumeMethods enumEchocardiographyVolumeMethods)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumEchocardiographyVolumeMethods.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumEchocardiographyVolumeMethods);
	}
}
