/*******************************************************************************
 *  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 cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_SpecimenFixatives;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_SpecimenFixatives;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;

/**
 * This class represents SpecimenFixatives CID8114
 */
public class SpecimenFixatives_CID8114 {

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

	}

	/**
	 * 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 enumSpecimenFixatives Object of EnumCM_SpecimenFixatives represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_SpecimenFixatives enumSpecimenFixatives)
	{
		switch(enumSpecimenFixatives)
		{
		case NEUTRAL_BUFFERED_FORMALIN: this.strCodeValue =EnumCV_SpecimenFixatives.NEUTRAL_BUFFERED_FORMALIN_C_2141C.getValue(); break;
		case BOUINS_FLUID: this.strCodeValue =EnumCV_SpecimenFixatives.BOUINS_FLUID_F_62235.getValue(); break;
		case FORMALIN_AQUEOUS_SOLUTION_OF_FORMALDEHYDE: this.strCodeValue =EnumCV_SpecimenFixatives.FORMALIN_AQUEOUS_SOLUTION_OF_FORMALDEHYDE_C_2141B.getValue(); break;
		case CARNOYS_FLUID: this.strCodeValue =EnumCV_SpecimenFixatives.CARNOYS_FLUID_F_62231.getValue(); break;
		case FORMOL_SUBLIMATE: this.strCodeValue =EnumCV_SpecimenFixatives.FORMOL_SUBLIMATE_F_62238.getValue(); break;
		case HELLYS_FLUID: this.strCodeValue =EnumCV_SpecimenFixatives.HELLYS_FLUID_F_62233.getValue(); break;
		case MICHELS_MEDIUM: this.strCodeValue =EnumCV_SpecimenFixatives.MICHELS_MEDIUM_F_6220F.getValue(); break;
		case ZENKERS_FLUID: this.strCodeValue =EnumCV_SpecimenFixatives.ZENKERS_FLUID_F_62234.getValue(); break;
		case PARAFORMALDEHYDE: this.strCodeValue =EnumCV_SpecimenFixatives.PARAFORMALDEHYDE_C_21403.getValue(); break;
		case ACETIC_ACID: this.strCodeValue =EnumCV_SpecimenFixatives.ACETIC_ACID_C_21624.getValue(); break;
		case CHLOROFORM: this.strCodeValue =EnumCV_SpecimenFixatives.CHLOROFORM_C_20830.getValue(); break;
		case CHROMIUM_TRIOXIDE: this.strCodeValue =EnumCV_SpecimenFixatives.CHROMIUM_TRIOXIDE_C_12916.getValue(); break;
		case ETHANOL: this.strCodeValue =EnumCV_SpecimenFixatives.ETHANOL_C_21047.getValue(); break;
		case FORMALDEHYDE: this.strCodeValue =EnumCV_SpecimenFixatives.FORMALDEHYDE_C_21402.getValue(); break;
		case MERCURIC_CHLORIDE: this.strCodeValue =EnumCV_SpecimenFixatives.MERCURIC_CHLORIDE_C_13321.getValue(); break;
		case METHANOL: this.strCodeValue =EnumCV_SpecimenFixatives.METHANOL_C_2102B.getValue(); break;
		case OSMIUM_TETROXIDE: this.strCodeValue =EnumCV_SpecimenFixatives.OSMIUM_TETROXIDE_C_15211.getValue(); break;
		case PICRIC_ACID: this.strCodeValue =EnumCV_SpecimenFixatives.PICRIC_ACID_C_21919.getValue(); break;
		case POTASSIUM_DICHROMATE: this.strCodeValue =EnumCV_SpecimenFixatives.POTASSIUM_DICHROMATE_C_13518.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumSpecimenFixatives Object of EnumCM_SpecimenFixatives represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_SpecimenFixatives enumSpecimenFixatives)
	{
		switch(enumSpecimenFixatives)
		{
		case NEUTRAL_BUFFERED_FORMALIN : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.NEUTRAL_BUFFERED_FORMALIN.getSNOMEDCTID(); break;
		case BOUINS_FLUID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.BOUINS_FLUID.getSNOMEDCTID(); break;
		case FORMALIN_AQUEOUS_SOLUTION_OF_FORMALDEHYDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.FORMALIN_AQUEOUS_SOLUTION_OF_FORMALDEHYDE.getSNOMEDCTID(); break;
		case CARNOYS_FLUID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CARNOYS_FLUID.getSNOMEDCTID(); break;
		case FORMOL_SUBLIMATE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.FORMOL_SUBLIMATE.getSNOMEDCTID(); break;
		case HELLYS_FLUID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.HELLYS_FLUID.getSNOMEDCTID(); break;
		case MICHELS_MEDIUM : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.MICHELS_MEDIUM.getSNOMEDCTID(); break;
		case ZENKERS_FLUID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ZENKERS_FLUID.getSNOMEDCTID(); break;
		case PARAFORMALDEHYDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PARAFORMALDEHYDE.getSNOMEDCTID(); break;
		case ACETIC_ACID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ACETIC_ACID.getSNOMEDCTID(); break;
		case CHLOROFORM : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CHLOROFORM.getSNOMEDCTID(); break;
		case CHROMIUM_TRIOXIDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.CHROMIUM_TRIOXIDE.getSNOMEDCTID(); break;
		case ETHANOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ETHANOL.getSNOMEDCTID(); break;
		case FORMALDEHYDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.FORMALDEHYDE.getSNOMEDCTID(); break;
		case MERCURIC_CHLORIDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.MERCURIC_CHLORIDE.getSNOMEDCTID(); break;
		case METHANOL : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.METHANOL.getSNOMEDCTID(); break;
		case OSMIUM_TETROXIDE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.OSMIUM_TETROXIDE.getSNOMEDCTID(); break;
		case PICRIC_ACID : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PICRIC_ACID.getSNOMEDCTID(); break;
		case POTASSIUM_DICHROMATE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.POTASSIUM_DICHROMATE.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for SpecimenFixatives
	 * @param enumSpecimenFixatives Object of EnumCM_SpecimenFixatives.
	 */
	public void setSpecimenFixatives(EnumCM_SpecimenFixatives enumSpecimenFixatives)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumSpecimenFixatives.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumSpecimenFixatives);

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