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


/**
 * This class represents HemodynamicMeasurementPhase - CID3651
 */
public class HemodynamicMeasurementPhase_CID3651 
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;

	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

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

	}

	/**
	 * 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 enumHemodynamicMeasurementPhase Object of EnumCM_HemodynamicMeasurementPhase represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_HemodynamicMeasurementPhase enumHemodynamicMeasurementPhase)
	{
		switch(enumHemodynamicMeasurementPhase)
		{
		case CARDIAC_CATHETERIZATION_BASELINE_PHASE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.CARDIAC_CATHETERIZATION_BASELINE_PHASE_G_7293.getValue();
			break;
		case CARDIAC_CATHETERIZATION_GRADIENT_ASSESSMENT_PHASE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.CARDIAC_CATHETERIZATION_GRADIENT_ASSESSMENT_PHASE_R_002E3.getValue();
			break;
		case CARDIAC_CATHETERIZATION_POST_CONTRAST_PHASE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.CARDIAC_CATHETERIZATION_POST_CONTRAST_PHASE_G_729B.getValue();
			break;
		case CARDIAC_CATHETERIZATION_POST_INTERVENTION_PHASE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.CARDIAC_CATHETERIZATION_POST_INTERVENTION_PHASE_G_7298.getValue();
			break;
		case CARDIAC_CATHETERIZATION_TESTCHALLENGING_PHASE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.CARDIAC_CATHETERIZATION_TESTCHALLENGING_PHASE_G_929D.getValue();
			break;
		case DRUG_INFUSION_CHALLENGE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.DRUG_INFUSION_CHALLENGE_P2_71317.getValue();
			break;
		case EXERCISE_CHALLENGE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.EXERCISE_CHALLENGE_P2_71310.getValue();
			break;
		case RESTING_STATE:
			this.strCodeValue = EnumCV_HemodynamicMeasurementPhase.RESTING_STATE_F_01604.getValue();
			break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumHemodynamicMeasurementPhase Object of EnumCM_HemodynamicMeasurementPhase represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_HemodynamicMeasurementPhase enumHemodynamicMeasurementPhase)
	{
		switch(enumHemodynamicMeasurementPhase)
		{
		case CARDIAC_CATHETERIZATION_BASELINE_PHASE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_CATHETERIZATION_BASELINE_PHASE.getSNOMEDCTID(); break;
		case CARDIAC_CATHETERIZATION_POST_CONTRAST_PHASE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_CATHETERIZATION_POST_CONTRAST_PHASE.getSNOMEDCTID(); break;
		case CARDIAC_CATHETERIZATION_POST_INTERVENTION_PHASE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_CATHETERIZATION_POST_INTERVENTION_PHASE.getSNOMEDCTID(); break;
		case CARDIAC_CATHETERIZATION_TESTCHALLENGING_PHASE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_CATHETERIZATION_TEST_CHALLENGING_PHASE.getSNOMEDCTID(); break;
		case CARDIAC_CATHETERIZATION_GRADIENT_ASSESSMENT_PHASE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.CARDIAC_CATHETERIZATION_GRADIENT_ASSESSMENT_PHASE.getSNOMEDCTID(); break;
		case DRUG_INFUSION_CHALLENGE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.DRUG_INFUSION_CHALLENGE.getSNOMEDCTID(); break;
		case EXERCISE_CHALLENGE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.EXERCISE_CHALLENGE.getSNOMEDCTID(); break;
		case RESTING_STATE : this.strSNOMEDCTID =EnumChestCardiacSNOMEDMap.RESTING_STATE.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for HemodynamicMeasurementPhase
	 * @param enumHemodynamicMeasurementPhase Object of EnumCM_HemodynamicMeasurementPhase.
	 */
	public void setHemodynamicMeasurementPhase(EnumCM_HemodynamicMeasurementPhase enumHemodynamicMeasurementPhase)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumHemodynamicMeasurementPhase.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumHemodynamicMeasurementPhase);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumHemodynamicMeasurementPhase);
	}
}
