/*******************************************************************************
 *  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 java.util.Locale;

//import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CardiacOutputProperties;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_EchocardiographyCommonMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_EchocardiographyLeftVentricle;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_LeftVentricleArea;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_LeftVentricleLinear;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_LeftVentricleOther;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_LeftVentricleVolume;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_OrificeFlowProperties;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_EchocardiographyLeftVentricle;
import cdac.medinfo.sdk.dcm30_04.utils.DicomConfig;
import cdac.medinfo.sdk.dcm30_04.utils.DicomLogger;
import cdac.medinfo.sdk.dcm30_04.utils.ResourceBundleWrapper;


/**
 * This class represents EchocardiographyLeftVentricle - CID12200
 */
public class EchocardiographyLeftVentricle_CID12200 
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;

	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;
	/**
	 * Object of EchocardiographyCommonMeasurements_CID12220
	 */
	private EchocardiographyCommonMeasurements_CID12220 objEchocardiographyCommonMeasurementsCID12220;
	/**
	 * Object of LeftVentricleLinear_CID12201
	 */
	private LeftVentricleLinear_CID12201 objLeftVentricleLinearCID12201;
	/**
	 * Object of LeftVentricleArea_CID12240
	 */
	private LeftVentricleArea_CID12240 objLeftVentricleAreaCID12240;
	/**
	 * Object of LeftVentricleVolume_CID12202
	 */
	private LeftVentricleVolume_CID12202 objLeftVentricleVolumeCID12202;
	/**
	 * Object of OrificeFlowProperties_CID12222
	 */
	private OrificeFlowProperties_CID12222 objOrificeFlowPropertiesCID12222;
	/**
	 * Object of LeftVentricleOther_CID12203
	 */
	private LeftVentricleOther_CID12203 objLeftVentricleOtherCID12203;
	/**
	 * Object of CardiacOutputProperties_CID12239
	 */
	private CardiacOutputProperties_CID12239 objCardiacOutputPropertiesCID12239;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;

	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

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

	}

	/**
	 * 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 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 enumEchocardiographyLeftVentricle Object of EnumCM_EchocardiographyLeftVentricle represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_EchocardiographyLeftVentricle enumEchocardiographyLeftVentricle)
	{
		switch(enumEchocardiographyLeftVentricle)
		{
		case LEFT_VENTRICLE_INTERNAL_END_DIASTOLIC_DIMENSION: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_INTERNAL_END_DIASTOLIC_DIMENSION_29436_3.getValue(); break;
		case LEFT_VENTRICLE_INTERNAL_SYSTOLIC_DIMENSION: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_INTERNAL_SYSTOLIC_DIMENSION_29438_9.getValue(); break;
		case LEFT_VENTRICULAR_FRACTIONAL_SHORTENING: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICULAR_FRACTIONAL_SHORTENING_18051_3.getValue(); break;
		case INTERVENTRICULAR_SEPTUM_DIASTOLIC_THICKNESS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.INTERVENTRICULAR_SEPTUM_DIASTOLIC_THICKNESS_18154_5.getValue(); break;
		case INTERVENTRICULAR_SEPTUM_TO_POSTERIOR_WALL_THICKNESS_RATIO: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.INTERVENTRICULAR_SEPTUM_TO_POSTERIOR_WALL_THICKNESS_RATIO_18155_2.getValue(); break;
		case INTERVENTRICULAR_SEPTUM_PERCENT_THICKENING: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.INTERVENTRICULAR_SEPTUM_PERCENT_THICKENING_18054_7.getValue(); break;
		case INTERVENTRICULAR_SEPTUM_SYSTOLIC_THICKNESS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.INTERVENTRICULAR_SEPTUM_SYSTOLIC_THICKNESS_18158_6.getValue(); break;
		case LEFT_VENTRICLE_POSTERIOR_WALL_PERCENT_THICKENING: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_POSTERIOR_WALL_PERCENT_THICKENING_18053_9.getValue(); break;
		case LEFT_VENTRICLE_DIASTOLIC_MAJOR_AXIS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_DIASTOLIC_MAJOR_AXIS_18077_8.getValue(); break;
		case LEFT_VENTRICLE_SYSTOLIC_MAJOR_AXIS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_SYSTOLIC_MAJOR_AXIS_18076_0.getValue(); break;
		case LEFT_VENTRICLE_POSTERIOR_WALL_SYSTOLIC_THICKNESS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_POSTERIOR_WALL_SYSTOLIC_THICKNESS_18156_0.getValue(); break;
		case LEFT_VENTRICLE_POSTERIOR_WALL_DIASTOLIC_THICKNESS: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_POSTERIOR_WALL_DIASTOLIC_THICKNESS_18152_9.getValue(); break;
		case LEFT_VENTRICLE_SEMI_MAJOR_AXIS_DIASTOLIC_DIMENSION: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_SEMI_MAJOR_AXIS_DIASTOLIC_DIMENSION_G_0377.getValue(); break;
		case LEFT_VENTRICLE_TRUNCATED_SEMI_MAJOR_AXIS_DIASTOLIC_DIMENSION: this.strCodeValue =EnumCV_EchocardiographyLeftVentricle.LEFT_VENTRICLE_TRUNCATED_SEMI_MAJOR_AXIS_DIASTOLIC_DIMENSION_G_0378.getValue(); break;
		}
	}

	/**
	 * Sets the value for EchocardiographyLeftVentricle
	 * @param EchocardiographyLeftVentricle Object of EnumCM_EchocardiographyLeftVentricle.
	 */
	public void setEchocardiographyLeftVentricle(Enum enumValue)
	{
		if(enumValue instanceof EnumCM_EchocardiographyCommonMeasurements)
		{
			/**
			 * Casting EnumValue to required Enum.
			 */
			EnumCM_EchocardiographyCommonMeasurements new_enumEchocardiographyCommonMeasurements = (EnumCM_EchocardiographyCommonMeasurements) enumValue;
			
			/**
			 * Creating object of require CID with respect to enum and setting value accordingly.
			 */
			if(null== this.objEchocardiographyCommonMeasurementsCID12220)
			this.objEchocardiographyCommonMeasurementsCID12220 = new EchocardiographyCommonMeasurements_CID12220();
			this.objEchocardiographyCommonMeasurementsCID12220.setEchocardiographyCommonMeasurements(new_enumEchocardiographyCommonMeasurements);
			
			/**
			 * Retrieving attributes and setting it to member variables. 
			 */
			this.strCodeMeaning = objEchocardiographyCommonMeasurementsCID12220.getCodeMeaning();
			this.strCodeValue = objEchocardiographyCommonMeasurementsCID12220.getCodeValue();
			this.strCodingSchemeDesignator = objEchocardiographyCommonMeasurementsCID12220.getCodingSchemeDesignator();
			
		}
		 else if(enumValue instanceof EnumCM_LeftVentricleLinear)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_LeftVentricleLinear new_enumLeftVentricleLinear = (EnumCM_LeftVentricleLinear) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objLeftVentricleLinearCID12201)
				this.objLeftVentricleLinearCID12201 = new LeftVentricleLinear_CID12201();
				this.objLeftVentricleLinearCID12201.setLeftVentricleLinear(new_enumLeftVentricleLinear);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objLeftVentricleLinearCID12201.getCodeMeaning();
				this.strCodeValue = objLeftVentricleLinearCID12201.getCodeValue();
				this.strCodingSchemeDesignator = objLeftVentricleLinearCID12201.getCodingSchemeDesignator();
				this.strSNOMEDCTID = objLeftVentricleLinearCID12201.getSNOMEDCTID();
			}
		 else if(enumValue instanceof EnumCM_LeftVentricleArea)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_LeftVentricleArea new_enumLeftVentricleArea = (EnumCM_LeftVentricleArea) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objLeftVentricleAreaCID12240)
				this.objLeftVentricleAreaCID12240 = new LeftVentricleArea_CID12240();
				this.objLeftVentricleAreaCID12240.setLeftVentricleArea(new_enumLeftVentricleArea);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objLeftVentricleAreaCID12240.getCodeMeaning();
				this.strCodeValue = objLeftVentricleAreaCID12240.getCodeValue();
				this.strCodingSchemeDesignator = objLeftVentricleAreaCID12240.getCodingSchemeDesignator();
				this.strSNOMEDCTID = objLeftVentricleAreaCID12240.getSNOMEDCTID();
			}
		 else if(enumValue instanceof EnumCM_LeftVentricleVolume)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_LeftVentricleVolume new_enumLeftVentricleVolume = (EnumCM_LeftVentricleVolume) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objLeftVentricleVolumeCID12202)
				this.objLeftVentricleVolumeCID12202 = new LeftVentricleVolume_CID12202();
				this.objLeftVentricleVolumeCID12202.setLeftVentricleVolume(new_enumLeftVentricleVolume);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objLeftVentricleVolumeCID12202.getCodeMeaning();
				this.strCodeValue = objLeftVentricleVolumeCID12202.getCodeValue();
				this.strCodingSchemeDesignator = objLeftVentricleVolumeCID12202.getCodingSchemeDesignator();	
			}
		 else if(enumValue instanceof EnumCM_OrificeFlowProperties)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_OrificeFlowProperties new_enumOrificeFlowProperties = (EnumCM_OrificeFlowProperties) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objOrificeFlowPropertiesCID12222)
				this.objOrificeFlowPropertiesCID12222 = new OrificeFlowProperties_CID12222();
				this.objOrificeFlowPropertiesCID12222.setOrificeFlowProperties(new_enumOrificeFlowProperties);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objOrificeFlowPropertiesCID12222.getCodeMeaning();
				this.strCodeValue = objOrificeFlowPropertiesCID12222.getCodeValue();
				this.strCodingSchemeDesignator = objOrificeFlowPropertiesCID12222.getCodingSchemeDesignator();
				this.strSNOMEDCTID = objOrificeFlowPropertiesCID12222.getSNOMEDCTID();
			}
		 else if(enumValue instanceof EnumCM_LeftVentricleOther)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_LeftVentricleOther new_enumLeftVentricleOther = (EnumCM_LeftVentricleOther) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objLeftVentricleOtherCID12203)
				this.objLeftVentricleOtherCID12203 = new LeftVentricleOther_CID12203();
				this.objLeftVentricleOtherCID12203.setLeftVentricleOther(new_enumLeftVentricleOther);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objLeftVentricleOtherCID12203.getCodeMeaning();
				this.strCodeValue = objLeftVentricleOtherCID12203.getCodeValue();
				this.strCodingSchemeDesignator = objLeftVentricleOtherCID12203.getCodingSchemeDesignator();
				this.strSNOMEDCTID = objLeftVentricleOtherCID12203.getSNOMEDCTID();
			}
		 else if(enumValue instanceof EnumCM_CardiacOutputProperties)
			{
				/**
				 * Casting EnumValue to required Enum.
				 */
			 EnumCM_CardiacOutputProperties new_enumCardiacOutputProperties = (EnumCM_CardiacOutputProperties) enumValue;
				
				/**
				 * Creating object of require CID with respect to enum and setting value accordingly.
				 */
				if(null== this.objCardiacOutputPropertiesCID12239)
				this.objCardiacOutputPropertiesCID12239 = new CardiacOutputProperties_CID12239();
				this.objCardiacOutputPropertiesCID12239.setCardiacOutputProperties(new_enumCardiacOutputProperties);
				
				/**
				 * Retrieving attributes and setting it to member variables. 
				 */
				this.strCodeMeaning = objCardiacOutputPropertiesCID12239.getCodeMeaning();
				this.strCodeValue = objCardiacOutputPropertiesCID12239.getCodeValue();
				this.strCodingSchemeDesignator = objCardiacOutputPropertiesCID12239.getCodingSchemeDesignator();
				this.strSNOMEDCTID = objCardiacOutputPropertiesCID12239.getSNOMEDCTID();
			}
		 
		else
		{
			if(DicomConfig.createInstance().isLoggingOn())
			{
				DicomLogger objDicomLogger = DicomLogger.getLogger();
				objDicomLogger.log(ResourceBundleWrapper.getValue("warning","InvalidEnumeratedValue",new Locale(DicomConfig.createInstance().getLocale())));
			}
		}
	}
}
