/*******************************************************************************
 *  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_HemodynamicTimeMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_HemodynamicTimeMeasurements;


/**
 * This class represents HemodynamicTimeMeasurements - CID3613
 */
public class HemodynamicTimeMeasurements_CID3613 
{
	
	/**
	 * 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 HemodynamicTimeMeasurements_CID3613 Template 
	 */
	public HemodynamicTimeMeasurements_CID3613()
	{
		
	}
	
	/**
	 * 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 enumHemodynamicTimeMeasurements Object of EnumCM_HemodynamicTimeMeasurements represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_HemodynamicTimeMeasurements enumHemodynamicTimeMeasurements)
	{
		switch(enumHemodynamicTimeMeasurements)
		{
		case INDICATOR_MEAN_TRANSIT_TIME:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.INDICATOR_MEAN_TRANSIT_TIME_109071.getValue();
			break;
		case LEFT_VENTRICULAR_EJECTION_TIME:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.LEFT_VENTRICULAR_EJECTION_TIME_122211.getValue();
			break;
		case LEFT_VENTRICULAR_FILLING_TIME:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.LEFT_VENTRICULAR_FILLING_TIME_122212.getValue();
			break;
		case R_R_INTERVAL:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.R_R_INTERVAL_122182.getValue();
			break;
		case RIGHT_VENTRICULAR_EJECTION_TIME:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.RIGHT_VENTRICULAR_EJECTION_TIME_122213.getValue();
			break;
		case RIGHT_VENTRICULAR_FILLING_TIME:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.RIGHT_VENTRICULAR_FILLING_TIME_122214.getValue();
			break;
		case TAU:
			this.strCodeValue = EnumCV_HemodynamicTimeMeasurements.TAU_109072.getValue();
			break;
		}
	}
	
	/**
	 * Sets the value for HemodynamicTimeMeasurements
	 * @param enumHemodynamicTimeMeasurements Object of EnumCM_HemodynamicTimeMeasurements.
	 */
	public void setHemodynamicTimeMeasurements(EnumCM_HemodynamicTimeMeasurements enumHemodynamicTimeMeasurements)
	{
		this.strCodeMeaning = enumHemodynamicTimeMeasurements.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		setCodeValue(enumHemodynamicTimeMeasurements);
	}


}
