/*******************************************************************************
 *  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_FetalBiometryMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_FetalBiometryMeasurements;


/**
 * This class represents FetalBiometryMeasurements - CID12005
 */
public class FetalBiometryMeasurements_CID12005 
{
	
	/**
	 * 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;

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

	}

	/**
	 * 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;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumFetalBiometryMeasurements Object of EnumCM_FetalBiometryMeasurements represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_FetalBiometryMeasurements enumFetalBiometryMeasurements)
	{
		switch(enumFetalBiometryMeasurements)
		{
		case ABDOMINAL_CIRCUMFERENCE: this.strCodeValue =EnumCV_FetalBiometryMeasurements.ABDOMINAL_CIRCUMFERENCE_11979_2.getValue(); break;
		case ANTERIOR_POSTERIOR_ABDOMINAL_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.ANTERIOR_POSTERIOR_ABDOMINAL_DIAMETER_11818_2.getValue(); break;
		case ANTERIOR_POSTERIOR_TRUNK_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.ANTERIOR_POSTERIOR_TRUNK_DIAMETER_11819_0.getValue(); break;
		case BIPARIETAL_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.BIPARIETAL_DIAMETER_11820_8.getValue(); break;
		case BPD_AREA_CORRECTED: this.strCodeValue =EnumCV_FetalBiometryMeasurements.BPD_AREA_CORRECTED_11824_0.getValue(); break;
		case CISTERNA_MAGNA: this.strCodeValue =EnumCV_FetalBiometryMeasurements.CISTERNA_MAGNA_11860_4.getValue(); break;
		case FEMUR_LENGTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.FEMUR_LENGTH_11963_6.getValue(); break;
		case FOOT_LENGTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.FOOT_LENGTH_11965_1.getValue(); break;
		case HEAD_CIRCUMFERENCE: this.strCodeValue =EnumCV_FetalBiometryMeasurements.HEAD_CIRCUMFERENCE_11984_2.getValue(); break;
		case OCCIPITAL_FRONTAL_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.OCCIPITAL_FRONTAL_DIAMETER_11851_3.getValue(); break;
		case THORACIC_CIRCUMFERENCE: this.strCodeValue =EnumCV_FetalBiometryMeasurements.THORACIC_CIRCUMFERENCE_11988_3.getValue(); break;
		case THORACIC_AREA: this.strCodeValue =EnumCV_FetalBiometryMeasurements.THORACIC_AREA_33068_8.getValue(); break;
		case TRANVERSE_ABDOMINAL_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.TRANVERSE_ABDOMINAL_DIAMETER_11862_0.getValue(); break;
		case TRANS_CEREBELLAR_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.TRANS_CEREBELLAR_DIAMETER_11863_8.getValue(); break;
		case TRANSVERSE_THORACIC_DIAMETER: this.strCodeValue =EnumCV_FetalBiometryMeasurements.TRANSVERSE_THORACIC_DIAMETER_11864_6.getValue(); break;
		case LEFT_KIDNEY_THICKNESS: this.strCodeValue =EnumCV_FetalBiometryMeasurements.LEFT_KIDNEY_THICKNESS_11853_9.getValue(); break;
		case LEFT_KIDNEY_LENGTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.LEFT_KIDNEY_LENGTH_11834_9.getValue(); break;
		case LEFT_KIDNEY_WIDTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.LEFT_KIDNEY_WIDTH_11825_7.getValue(); break;
		case RIGHT_KIDNEY_THICKNESS: this.strCodeValue =EnumCV_FetalBiometryMeasurements.RIGHT_KIDNEY_THICKNESS_11855_4.getValue(); break;
		case RIGHT_KIDNEY_LENGTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.RIGHT_KIDNEY_LENGTH_11836_4.getValue(); break;
		case RIGHT_KIDNEY_WIDTH: this.strCodeValue =EnumCV_FetalBiometryMeasurements.RIGHT_KIDNEY_WIDTH_11827_3.getValue(); break;
		case APAD_TAD: this.strCodeValue =EnumCV_FetalBiometryMeasurements.APAD_TAD_33191_8.getValue(); break;
		}
	}

	/**
	 * Sets the value for FetalBiometryMeasurements
	 * @param enumFetalBiometryMeasurements Object of EnumCM_FetalBiometryMeasurements.
	 */
	public void setFetalBiometryMeasurements(EnumCM_FetalBiometryMeasurements enumFetalBiometryMeasurements)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumFetalBiometryMeasurements.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.LN.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumFetalBiometryMeasurements);
	}
}
