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

import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CID4018PrimaryAnatomicStructureForIntraoralRadiography;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_PrimaryAnatomicStructureForIntraOralRadiography;
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 Primary Anatomic Structure for Intra-oral and Craniofacial Radiography - Teeth CID4026
 */
public class PrimaryAnatomicStructureForIntraOralAndCraniofacialRadiographyTeeth_4026 {
	/**
	 * 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;

	/**
	 * Object of PrimaryAnatomicStructureForIntraoralRadiography_CID4018
	 */
	private PrimaryAnatomicStructureForIntraoralRadiography_CID4018 PrimaryAnatomicStructureForIntraoralRadiographyCID4018;

	/**
	 * Object of PrimaryAnatomicStructureForIntraoralRadiography_CID4019
	 */
	private PrimaryAnatomicStructureForIntraoralRadiography_CID4019 objPrimaryAnatomicStructureForIntraoralRadiographyCID4019;

	/**
	 * Object of PrimaryAnatomicStructureForIntraOralRadiography_CID4025
	 */
	private PrimaryAnatomicStructureForIntraOralRadiography_CID4025 objPrimaryAnatomicStructureForIntraOralRadiographyCID4025;

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

	}

	/**
	 * 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 value for CTAndMRAnatomyImaged
	 * @param enumValue This Enum value can be one of the following enums - EnumCM_CTAndMRAnatomyImaged, EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography.
	 */
	public void setPrimaryAnatomicStructureForIntraOralAndCraniofacialRadiographyTeeth(Enum enumValue)
	{
		if (enumValue instanceof EnumCM_CID4018PrimaryAnatomicStructureForIntraoralRadiography) 
		{
			/**
			 * Casting EnumValue to required Enum.
			 */
			EnumCM_CID4018PrimaryAnatomicStructureForIntraoralRadiography new_enumCID4018PrimaryAnatomicStructureForIntraoralRadiography = (EnumCM_CID4018PrimaryAnatomicStructureForIntraoralRadiography)enumValue;
			/**
			 * Creating object of require CID with respect to enum and setting value accordingly.
			 */
			if(null== this.PrimaryAnatomicStructureForIntraoralRadiographyCID4018)
				this.PrimaryAnatomicStructureForIntraoralRadiographyCID4018 = new PrimaryAnatomicStructureForIntraoralRadiography_CID4018();
			this.PrimaryAnatomicStructureForIntraoralRadiographyCID4018.setPrimaryAnatomicStructureForIntraoralRadiography(new_enumCID4018PrimaryAnatomicStructureForIntraoralRadiography);
			
			/**
			 * Retrieving attributes and setting it to member variables. 
			 */
			this.strCodeMeaning = PrimaryAnatomicStructureForIntraoralRadiographyCID4018.getCodeMeaning();
			this.strCodeValue = PrimaryAnatomicStructureForIntraoralRadiographyCID4018.getCodeValue();
			this.strCodingSchemeDesignator = PrimaryAnatomicStructureForIntraoralRadiographyCID4018.getCodingSchemeDesignator();
			this.strSNOMEDCTID = PrimaryAnatomicStructureForIntraoralRadiographyCID4018.getSNOMEDCTID();

		}
		else if(enumValue instanceof EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography)
		{
			/**
			 * Casting EnumValue to required Enum.
			 */
			EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography new_enumCommonAnatomicRegions = (EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography) enumValue;

			/**
			 * Casting EnumValue to required Enum.
			 */
			EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography enumPrimaryAnatomicStructureForIntraoralRadiography = (EnumCM_CID4019PrimaryAnatomicStructureForIntraoralRadiography) enumValue;

			/**
			 * Creating object of require CID with respect to enum and setting value accordingly.
			 */
			if(null== this.objPrimaryAnatomicStructureForIntraoralRadiographyCID4019)
				this.objPrimaryAnatomicStructureForIntraoralRadiographyCID4019 = new PrimaryAnatomicStructureForIntraoralRadiography_CID4019();
			this.objPrimaryAnatomicStructureForIntraoralRadiographyCID4019.setPrimaryAnatomicStructureForIntraoralRadiography(enumPrimaryAnatomicStructureForIntraoralRadiography);

			/**
			 * Retrieving attributes and setting it to member variables. 
			 */
			this.strCodeMeaning = objPrimaryAnatomicStructureForIntraoralRadiographyCID4019.getCodeMeaning();
			this.strCodeValue = objPrimaryAnatomicStructureForIntraoralRadiographyCID4019.getCodeValue();
			this.strCodingSchemeDesignator = objPrimaryAnatomicStructureForIntraoralRadiographyCID4019.getCodingSchemeDesignator();
			this.strSNOMEDCTID = objPrimaryAnatomicStructureForIntraoralRadiographyCID4019.getSNOMEDCTID();
		}
		else if(enumValue instanceof EnumCM_PrimaryAnatomicStructureForIntraOralRadiography)
		{
			/**
			 * Casting EnumValue to required Enum.
			 */
			EnumCM_PrimaryAnatomicStructureForIntraOralRadiography enumPrimaryAnatomicStructureForIntraoralRadiography = (EnumCM_PrimaryAnatomicStructureForIntraOralRadiography) enumValue;

			/**
			 * Creating object of require CID with respect to enum and setting value accordingly.
			 */
			if(null== this.objPrimaryAnatomicStructureForIntraOralRadiographyCID4025)
				this.objPrimaryAnatomicStructureForIntraOralRadiographyCID4025 = new PrimaryAnatomicStructureForIntraOralRadiography_CID4025();
			this.objPrimaryAnatomicStructureForIntraOralRadiographyCID4025.setPrimaryAnatomicStructureForIntraOralRadiography(enumPrimaryAnatomicStructureForIntraoralRadiography);

			/**
			 * Retrieving attributes and setting it to member variables. 
			 */
			this.strCodeMeaning = objPrimaryAnatomicStructureForIntraOralRadiographyCID4025.getCodeMeaning();
			this.strCodeValue = objPrimaryAnatomicStructureForIntraOralRadiographyCID4025.getCodeValue();
			this.strCodingSchemeDesignator = objPrimaryAnatomicStructureForIntraOralRadiographyCID4025.getCodingSchemeDesignator();
			this.strSNOMEDCTID = objPrimaryAnatomicStructureForIntraOralRadiographyCID4025.getSNOMEDCTID();
		}
		else
		{
			if(DicomConfig.createInstance().isLoggingOn())
			{
				DicomLogger objDicomLogger = DicomLogger.getLogger();
				objDicomLogger.log(ResourceBundleWrapper.getValue("warning","InvalidEnumeratedValue",new Locale(DicomConfig.createInstance().getLocale())));
			}
		}
	}
}
