/*******************************************************************************
 *  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.xrayradiationdosesriodtemplates;

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.CRDRMechanicalConfiguration_CID10031;
import cdac.medinfo.sdk.dcm30_04.templates.cid.DoseRelatedDistanceMeasurements_CID10008;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CRDRMechanicalConfiguration;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_IrradiationEventXRayMechanicalData;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_IrradiationEventXRayMechanicalData;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents IrradiationEventXRayMechanicalData_TID10003C
 */
public class IrradiationEventXRayMechanicalData_TID10003C extends Template{

	/**
	 * Object of DoseRelatedDistanceMeasurements_CID10008
	 */
	private DoseRelatedDistanceMeasurements_CID10008 objDoseRelatedDistanceMeasurements_CID10008;
	
	private CRDRMechanicalConfiguration_CID10031 objCRDRMechanicalConfiguration_CID10031;
	/**
	 * Instantiates a new IrradiationEventXRayMechanicalData_TID10003C Template.
	 * @param objTree Object of SRTree.
	 */
	public IrradiationEventXRayMechanicalData_TID10003C(SRTree objTree)
	{
		super(objTree);
	}
	public void setCRDRMechanicalConfiguration(int[] arrPosition,EnumCM_CRDRMechanicalConfiguration enumCRDRMechanicalConfiguration)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.CR_DR_MECHANICAL_CONFIGURATION.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.CR_DR_MECHANICAL_CONFIGURATION_113956.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();
		String strCM,strCV,strCSD;

		if(null== this.objCRDRMechanicalConfiguration_CID10031)
			this.objCRDRMechanicalConfiguration_CID10031 = new CRDRMechanicalConfiguration_CID10031();
		this.objCRDRMechanicalConfiguration_CID10031.setCRDRMechanicalConfiguration(enumCRDRMechanicalConfiguration);
		 strCM = objCRDRMechanicalConfiguration_CID10031.getCodeMeaning();
		 strCV = objCRDRMechanicalConfiguration_CID10031.getCodeValue();
		 strCSD = objCRDRMechanicalConfiguration_CID10031.getCodingSchemeDesignator();
		
		
		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createCodeNode(arrPosition, strCodeMeaning, strCodeValue, strCSDesg, strCV, strCSD, "", strCM);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for PositionerPrimary Angle
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPositionerPrimaryAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.POSITIONER_PRIMARY_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.POSITIONER_PRIMARY_ANGLE_112011.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for PositionerSecondary Angle 
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPositionerSecondaryAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.POSITIONER_SECONDARY_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.POSITIONER_SECONDARY_ANGLE_112012.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for PositionerPrimary End Angle
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPositionerPrimaryEndAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.POSITIONER_PRIMARY_END_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.POSITIONER_PRIMARY_END_ANGLE_113739.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for PositionerSecondary End Angle 
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPositionerSecondaryEndAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.POSITIONER_SECONDARY_END_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.POSITIONER_SECONDARY_END_ANGLE_113740.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for ColumnAngulation
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setColumnAngulation(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.COLUMN_ANGULATION.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.COLUMN_ANGULATION_113770.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Table HeadTilt Angle 
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setTableHeadTiltAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.TABLE_HEAD_TILT_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.TABLE_HEAD_TILT_ANGLE_113754.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for TableHorizontal Rotation Angle
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setTableHorizontalRotationAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.TABLE_HORIZONTAL_ROTATION_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.TABLE_HORIZONTAL_ROTATION_ANGLE_113755.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for TableCradle Tilt Angle
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setTableCradleTiltAngle(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.DEGREE.getValue();
		String strCVForUnit = EnumCV_Unit.DEGREE.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.TABLE_CRADLE_TILT_ANGLE.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.TABLE_CRADLE_TILT_ANGLE_113756.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Compression Thickness
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setCompressionThickness(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MM.getValue();
		String strCVForUnit = EnumCV_Unit.MM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_IrradiationEventXRayMechanicalData.COMPRESSION_THICKNESS.getValue();
		String strCodeValue = EnumCV_IrradiationEventXRayMechanicalData.COMPRESSION_THICKNESS_111633.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Dose RelatedDistance Measurements
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setDoseRelatedDistanceMeasurements(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MM.getValue();
		String strCVForUnit = EnumCV_Unit.MM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCM = objDoseRelatedDistanceMeasurements_CID10008.getCodeMeaning();
		String strCV = objDoseRelatedDistanceMeasurements_CID10008.getCodeValue();
		String  strCSD = objDoseRelatedDistanceMeasurements_CID10008.getCodingSchemeDesignator();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCM,strCV,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
}
