/*******************************************************************************
 *  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_FetalCraniumAnatomicSites;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_FetalCraniumAnatomicSites;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumAnatomicSNOMEDMap;

/**
 * This class represents FetalCraniumAnatomicSites CID12022
 */
public class FetalCraniumAnatomicSites_CID12022 {

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

	}

	/**
	 * 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 enumFetalCraniumAnatomicSites Object of EnumCM_FetalCraniumAnatomicSites represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_FetalCraniumAnatomicSites enumFetalCraniumAnatomicSites)
	{
		switch(enumFetalCraniumAnatomicSites) 
		{
		case ANTERIOR_HORN_LATERAL_VENTRICLE: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.ANTERIOR_HORN_LATERAL_VENTRICLE_T_A1700.getValue(); break;
		case CEREBELLUM: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.CEREBELLUM_T_A6000.getValue(); break;
		case CEREBRAL_HEMISPHERE: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.CEREBRAL_HEMISPHERE_T_A010F.getValue(); break;
		case CISTERNA_MAGNA: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.CISTERNA_MAGNA_T_A1520.getValue(); break;
		case LATERAL_VENTRICLE: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.LATERAL_VENTRICLE_T_A1650.getValue(); break;
		case NUCHAL_REGION_OF_SCALP: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.NUCHAL_REGION_OF_SCALP_T_D06B6.getValue(); break;
		case ORBIT: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.ORBIT_T_D14AE.getValue(); break;
		case POSTERIOR_HORN_LATERAL_VENTRICLE: this.strCodeValue =EnumCV_FetalCraniumAnatomicSites.POSTERIOR_HORN_LATERAL_VENTRICLE_T_A1710.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumFetalCraniumAnatomicSites Object of EnumCM_FetalCraniumAnatomicSites represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_FetalCraniumAnatomicSites enumFetalCraniumAnatomicSites)
	{
		switch(enumFetalCraniumAnatomicSites)
		{
		case ANTERIOR_HORN_LATERAL_VENTRICLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ANTERIOR_HORN_LATERAL_VENTRICLE.getSNOMEDCTID(); break;
		case CEREBELLUM : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CEREBELLUM.getSNOMEDCTID(); break;
		case CEREBRAL_HEMISPHERE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CEREBRAL_HEMISPHERE.getSNOMEDCTID(); break;
		case CISTERNA_MAGNA : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.CISTERNA_MAGNA.getSNOMEDCTID(); break;
		case LATERAL_VENTRICLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.LATERAL_VENTRICLE.getSNOMEDCTID(); break;
		case NUCHAL_REGION_OF_SCALP : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.NUCHAL_REGION_OF_SCALP.getSNOMEDCTID(); break;
		case ORBIT : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.ORBIT.getSNOMEDCTID(); break;
		case POSTERIOR_HORN_LATERAL_VENTRICLE : this.strSNOMEDCTID =EnumAnatomicSNOMEDMap.POSTERIOR_HORN_LATERAL_VENTRICLE.getSNOMEDCTID(); break;
		}
	}

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

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