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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.enums.EnumContinuityOfContent;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CADCommonImagePropertiesEntry;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CADCommonImagePropertiesEntry;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

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

	/**
	 * Instantiates CADCommonImagePropertiesEntry_TID4122 Template.
	 * @param objTree Object of SRTree.
	 */
	public CADCommonImagePropertiesEntry_TID4122(SRTree objTree)
	{
		super(objTree);
	}
	/**
	 * Sets the value for Image Set Properties
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setImageSetProperties(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.IMAGE_SET_PROPERTIES.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.IMAGE_SET_PROPERTIES_112224.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type CONTAINER and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createContainer(arrPosition, strCodeMeaning, strCodeValue, strCSD, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Frame Of Reference UID
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 */
	public void setFrameOfReferenceUID(int[] arrPosition, String strValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.FRAME_OF_REFERENCE_UID.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.FRAME_OF_REFERENCE_UID_112227.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type UIDREF and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createUIDREFNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strValue);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Study Instance UIDStudy Date
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.	
	 * @param strValue 
	 */
	public void setStudyInstanceUID(int[] arrPosition, String strValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.STUDY_INSTANCE_UID.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.STUDY_INSTANCE_UID_110180.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type UIDREF and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createUIDREFNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strValue);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Study DateStudy Time
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 */
	public void setStudyDate(int[] arrPosition, String strValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.STUDY_DATE.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.STUDY_DATE_111060.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type DATE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createDateNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strValue);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Study Time
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 */
	public void setStudyTime(int[] arrPosition, String strValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.STUDY_TIME.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.STUDY_TIME_111061.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type TIME and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createTimeNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strValue);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Modality
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 */
	public void setModality(int[] arrPosition, String strValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.MODALITY.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.MODALITY_121139.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * 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, strCSD, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Horizontal Pixel Spacing
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 * @param arrNumericValue 
	 * @param strCSDForNumValQuaCodeSQ 
	 * @param strCSVForNumValQuaCodeSQ 
	 */
	public void setHorizontalPixelSpacing(int[] arrPosition,String[] arrNumericValue, String strCSDForNumValQuaCodeSQ, String strCSVForNumValQuaCodeSQ)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.HORIZONTAL_PIXEL_SPACING.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.HORIZONTAL_PIXEL_SPACING_111026.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", strCSDForNumValQuaCodeSQ, strCSVForNumValQuaCodeSQ);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Vertical Pixel Spacing
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 * @param arrNumericValue 
	 * @param strCSDForNumValQuaCodeSQ 
	 * @param strCSVForNumValQuaCodeSQ 
	 */
	public void setVerticalPixelSpacing(int[] arrPosition,String[] arrNumericValue, String strCSDForNumValQuaCodeSQ, String strCSVForNumValQuaCodeSQ)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.VERTICAL_PIXEL_SPACING.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.VERTICAL_PIXEL_SPACING_111066.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", strCSDForNumValQuaCodeSQ, strCSVForNumValQuaCodeSQ);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Slice Thickness
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 * @param arrNumericValue 
	 * @param strCSDForNumValQuaCodeSQ 
	 * @param strCSVForNumValQuaCodeSQ 
	 */
	public void setSliceThickness(int[] arrPosition,String[] arrNumericValue, String strCSDForNumValQuaCodeSQ, String strCSVForNumValQuaCodeSQ)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.SLICE_THICKNESS.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.SLICE_THICKNESS_112225.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", strCSDForNumValQuaCodeSQ, strCSVForNumValQuaCodeSQ);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Spacing between slices Recumbent Patient
Position with respect to
gravity
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 * @param arrNumericValue 
	 * @param strCSDForNumValQuaCodeSQ 
	 * @param strCSVForNumValQuaCodeSQ 
	 */
	public void setSpacingBetweenSlices(int[] arrPosition,String[] arrNumericValue, String strCSDForNumValQuaCodeSQ, String strCSVForNumValQuaCodeSQ)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.SPACING_BETWEEN_SLICES.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.SPACING_BETWEEN_SLICES_112226.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", strCSDForNumValQuaCodeSQ, strCSVForNumValQuaCodeSQ);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Recumbent Patient Position with respect to gravity
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strValue 
	 */
	public void setRecumbentPatientPositionWithRespectToGravity(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CADCommonImagePropertiesEntry.RECUMBANT_PATIENT_POSITION_WITH_RESPECT_TO_GRAVITY.getValue();
		String strCodeValue = EnumCV_CADCommonImagePropertiesEntry.RECUMBANT_PATIENT_POSITION_WITH_RESPECT_TO_GRAVITY_112228.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * 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, strCSD, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
}
