/*******************************************************************************
 *  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_HemodynamicAnnotations;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_HemodynamicAnnotations;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumVascularSNOMEDMap;

/**
 * This class represents HemodynamicAnnotations CID3337
 */
public class HemodynamicAnnotations_CID3337 {

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

	}

	/**
	 * 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 enumHemodynamicAnnotations Object of EnumCM_HemodynamicAnnotations represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_HemodynamicAnnotations enumHemodynamicAnnotations)
	{
		switch(enumHemodynamicAnnotations) 
		{
		case THIRTY_FIVE_OF_THERMAL_DYE_DILUTION_CO: this.strCodeValue =EnumCV_HemodynamicAnnotations.THIRTY_FIVE_OF_THERMAL_DYE_DILUTION_CO_109014.getValue(); break;
		case SEVENTY_OF_THERMAL_DYE_DILUTION_CO: this.strCodeValue =EnumCV_HemodynamicAnnotations.SEVENTY_OF_THERMAL_DYE_DILUTION_CO_109015.getValue(); break;
		case A_WAVE_PEAK_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.A_WAVE_PEAK_PRESSURE_109016.getValue(); break;
		case A_WAVE_PRESSURE_AVERAGE: this.strCodeValue =EnumCV_HemodynamicAnnotations.A_WAVE_PRESSURE_AVERAGE_109017.getValue(); break;
		case BEAT_DETECTED_ACCEPTED: this.strCodeValue =EnumCV_HemodynamicAnnotations.BEAT_DETECTED_ACCEPTED_109018.getValue(); break;
		case BEAT_DETECTED_REJECTED: this.strCodeValue =EnumCV_HemodynamicAnnotations.BEAT_DETECTED_REJECTED_109019.getValue(); break;
		case AVERAGE_DIASTOLIC_BLOOD_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.AVERAGE_DIASTOLIC_BLOOD_PRESSURE_F_00E22.getValue(); break;
		case MINIMUM_DIASTOLIC_BLOOD_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.MINIMUM_DIASTOLIC_BLOOD_PRESSURE_F_00E1F.getValue(); break;
		case END_DIASTOLE: this.strCodeValue =EnumCV_HemodynamicAnnotations.END_DIASTOLE_F_32011.getValue(); break;
		case END_OF_EXPIRATION: this.strCodeValue =EnumCV_HemodynamicAnnotations.END_OF_EXPIRATION_109023.getValue(); break;
		case END_OF_INSPIRATION: this.strCodeValue =EnumCV_HemodynamicAnnotations.END_OF_INSPIRATION_109024.getValue(); break;
		case END_OF_SYSTOLE: this.strCodeValue =EnumCV_HemodynamicAnnotations.END_OF_SYSTOLE_109070.getValue(); break;
		case INDICATOR_MEAN_TRANSIT_TIME: this.strCodeValue =EnumCV_HemodynamicAnnotations.INDICATOR_MEAN_TRANSIT_TIME_109071.getValue(); break;
		case MAX_DP_DT: this.strCodeValue =EnumCV_HemodynamicAnnotations.MAX_DP_DT_109025.getValue(); break;
		case MAX_NEG_DP_DT: this.strCodeValue =EnumCV_HemodynamicAnnotations.MAX_NEG_DP_DT_109026.getValue(); break;
		case MEAN_BLOOD_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.MEAN_BLOOD_PRESSURE_F_31150.getValue(); break;
		case PEAK_OF_THERMAL_CARDIAC_OUTPUT_BOLUS: this.strCodeValue =EnumCV_HemodynamicAnnotations.PEAK_OF_THERMAL_CARDIAC_OUTPUT_BOLUS_109028.getValue(); break;
		case START_OF_EXPIRATION: this.strCodeValue =EnumCV_HemodynamicAnnotations.START_OF_EXPIRATION_109029.getValue(); break;
		case START_OF_INSPIRATION: this.strCodeValue =EnumCV_HemodynamicAnnotations.START_OF_INSPIRATION_109030.getValue(); break;
		case START_OF_THERMAL_CO: this.strCodeValue =EnumCV_HemodynamicAnnotations.START_OF_THERMAL_CO_109031.getValue(); break;
		case AVERAGE_SYSTOLIC_BLOOD_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.AVERAGE_SYSTOLIC_BLOOD_PRESSURE_F_00E14.getValue(); break;
		case MAXIMUM_SYSTOLIC_BLOOD_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.MAXIMUM_SYSTOLIC_BLOOD_PRESSURE_F_00E11.getValue(); break;
		case TAU: this.strCodeValue =EnumCV_HemodynamicAnnotations.TAU_109072.getValue(); break;
		case V_MAX_MYOCARDIAL: this.strCodeValue =EnumCV_HemodynamicAnnotations.V_MAX_MYOCARDIAL_109073.getValue(); break;
		case V_WAVE_PEAK_PRESSURE: this.strCodeValue =EnumCV_HemodynamicAnnotations.V_WAVE_PEAK_PRESSURE_109034.getValue(); break;
		case V_WAVE_PRESSURE_AVERAGE: this.strCodeValue =EnumCV_HemodynamicAnnotations.V_WAVE_PRESSURE_AVERAGE_109035.getValue(); break;
		case VALVE_CLOSE: this.strCodeValue =EnumCV_HemodynamicAnnotations.VALVE_CLOSE_109036.getValue(); break;
		case VALVE_OPEN: this.strCodeValue =EnumCV_HemodynamicAnnotations.VALVE_OPEN_109037.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumHemodynamicAnnotations Object of EnumCM_HemodynamicAnnotations represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_HemodynamicAnnotations enumHemodynamicAnnotations)
	{
		switch(enumHemodynamicAnnotations)
		{
		case AVERAGE_DIASTOLIC_BLOOD_PRESSURE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.AVERAGE_DIASTOLIC_BLOOD_PRESSURE.getSNOMEDCTID(); break;
		case MINIMUM_DIASTOLIC_BLOOD_PRESSURE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.MINIMUM_DIASTOLIC_BLOOD_PRESSURE.getSNOMEDCTID(); break;
		case END_DIASTOLE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.END_DIASTOLE.getSNOMEDCTID(); break;
		case MEAN_BLOOD_PRESSURE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.MEAN_BLOOD_PRESSURE.getSNOMEDCTID(); break;
		case AVERAGE_SYSTOLIC_BLOOD_PRESSURE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.AVERAGE_SYSTOLIC_BLOOD_PRESSURE.getSNOMEDCTID(); break;
		case MAXIMUM_SYSTOLIC_BLOOD_PRESSURE : this.strSNOMEDCTID =EnumVascularSNOMEDMap.MAXIMUM_SYSTOLIC_BLOOD_PRESSURE.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for HemodynamicAnnotations
	 * @param enumHemodynamicAnnotations Object of EnumCM_HemodynamicAnnotations.
	 */
	public void setHemodynamicAnnotations(EnumCM_HemodynamicAnnotations enumHemodynamicAnnotations)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumHemodynamicAnnotations.getValue();
		if(enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.AVERAGE_DIASTOLIC_BLOOD_PRESSURE.getValue())
				||enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.MINIMUM_DIASTOLIC_BLOOD_PRESSURE.getValue())
				||enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.END_DIASTOLE.getValue())
				||enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.MEAN_BLOOD_PRESSURE.getValue())
				||enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.AVERAGE_SYSTOLIC_BLOOD_PRESSURE.getValue())
				||enumHemodynamicAnnotations.getValue().equalsIgnoreCase(EnumCM_HemodynamicAnnotations.MAXIMUM_SYSTOLIC_BLOOD_PRESSURE.getValue()))
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		}
		else
		{
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		}
		
		/**
		 * set code Value
		 */
		setCodeValue(enumHemodynamicAnnotations);

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