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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.CommonAnatomicRegions_CID4031;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CommonAnatomicRegions;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ImageLibraryEntryDescriptors;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ImageLibraryEntryDescriptors;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_Unit;

/**
 * This class represents ImageLibraryEntryDescriptors_TID1602
 */
public class ImageLibraryEntryDescriptors_TID1602 extends Template{
	/**
	 * Object of RouteOfAdministration_CID11
	 */
	private ImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 objImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 ;
	
	/**
	 * Object of ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604
	 */
	private ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 objImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 ;
	private CommonAnatomicRegions_CID4031 objCommonAnatomicRegions_CID4031;
	/**
	 * Object of ImageLibraryEntryDescriptorsForCT_TID1605
	 */
	private ImageLibraryEntryDescriptorsForCT_TID1605 objImageLibraryEntryDescriptorsForCT_TID1605 ;
	/**
	 * Object of ImageLibraryEntryDescriptorsForMR_TID1606
	 */
	private ImageLibraryEntryDescriptorsForMR_TID1606 objImageLibraryEntryDescriptorsForMR_TID1606 ;
	
	/**
	 * Object of ImageLibraryEntryDescriptorsforPET_TID1607
	 */
	private ImageLibraryEntryDescriptorsforPET_TID1607 objImageLibraryEntryDescriptorsforPET_TID1607 ;
	/**
	 * Instantiates ImageLibraryEntryDescriptors_TID1602 Template.
	 * @param objTree Object of SRTree.
	 */
	public ImageLibraryEntryDescriptors_TID1602(SRTree objTree)
	{
		super(objTree);
	}
	
	/**
	 * Retrieves ImageLibraryEntryDescriptorsforPET_TID1607 
	 * @return objImageLibraryEntryDescriptorsforPET_TID1607 Object of ImageLibraryEntryDescriptorsforPET_TID1607 
	 */
	public ImageLibraryEntryDescriptorsforPET_TID1607 getImageLibraryEntryDescriptorsforPET() 
	{
		if(null == this.objImageLibraryEntryDescriptorsforPET_TID1607)
			this.objImageLibraryEntryDescriptorsforPET_TID1607 = new ImageLibraryEntryDescriptorsforPET_TID1607(getSRTree());
		return this.objImageLibraryEntryDescriptorsforPET_TID1607;
	}
	/**
	 * Retrieves ImageLibraryEntryDescriptorsForMR_TID1606 
	 * @return objImageLibraryEntryDescriptorsForMR_TID1606 Object of ImageLibraryEntryDescriptorsForMR_TID1606 
	 */
	public ImageLibraryEntryDescriptorsForMR_TID1606 getImageLibraryEntryDescriptorsForMR() 
	{
		if(null == this.objImageLibraryEntryDescriptorsForMR_TID1606)
			this.objImageLibraryEntryDescriptorsForMR_TID1606 = new ImageLibraryEntryDescriptorsForMR_TID1606(getSRTree());
		return this.objImageLibraryEntryDescriptorsForMR_TID1606;
	}
	/**
	 * Retrieves ImageLibraryEntryDescriptorsForCT_TID1605 
	 * @return objImageLibraryEntryDescriptorsForCT_TID1605 Object of ImageLibraryEntryDescriptorsForCT_TID1605 
	 */
	public ImageLibraryEntryDescriptorsForCT_TID1605 getImageLibraryEntryDescriptorsForCT() 
	{
		if(null == this.objImageLibraryEntryDescriptorsForCT_TID1605)
			this.objImageLibraryEntryDescriptorsForCT_TID1605 = new ImageLibraryEntryDescriptorsForCT_TID1605(getSRTree());
		return this.objImageLibraryEntryDescriptorsForCT_TID1605;
	}
	/**
	 * Retrieves ImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 
	 * @return objImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 Object of ImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 
	 */
	public ImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 getImageLibraryEntryDescriptorsForProjectionRadiography() 
	{
		if(null == this.objImageLibraryEntryDescriptorsForProjectionRadiography_TID1603)
			this.objImageLibraryEntryDescriptorsForProjectionRadiography_TID1603 = new ImageLibraryEntryDescriptorsForProjectionRadiography_TID1603(getSRTree());
		return this.objImageLibraryEntryDescriptorsForProjectionRadiography_TID1603;
	}
	/**
	 * Retrieves ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 
	 * @return objImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 Object of ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 
	 */
	public ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 getImageLibraryEntryDescriptorsForCrossSectionalModalities() 
	{
		if(null == this.objImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604)
			this.objImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604 = new ImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604(getSRTree());
		return this.objImageLibraryEntryDescriptorsForCrossSectionalModalities_TID1604;
	}
	public void setModality(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.MODALITY.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.MODALITY_121139.getValue();
		String strCSDesg = 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, strCSDesg, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setTargetRegion(int[] arrPosition,EnumCM_CommonAnatomicRegions enumCommonAnatomicRegions)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.TARGET_REGION.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.TARGET_REGION_123014.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;
		if(null== this.objCommonAnatomicRegions_CID4031)
			this.objCommonAnatomicRegions_CID4031 = new CommonAnatomicRegions_CID4031();
		this.objCommonAnatomicRegions_CID4031.setCommonAnatomicRegions(enumCommonAnatomicRegions);
		
		 strCM = objCommonAnatomicRegions_CID4031.getCodeMeaning();
		 strCV = objCommonAnatomicRegions_CID4031.getCodeValue();
		 strCSD = objCommonAnatomicRegions_CID4031.getCodingSchemeDesignator();
		 strSNMDCTID = objCommonAnatomicRegions_CID4031.getSNOMEDCTID();
		
		
		/**
		 * 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,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setImageLaterality(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.IMAGE_LATERALITY.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.IMAGE_LATERALITY_111027.getValue();
		String strCSDesg = 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, strCSDesg, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setStudyDate(int[] arrPosition, String strStudyDate)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.STUDY_DATE.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.STUDY_DATE_111060.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createDateNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strStudyDate);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setStudyTime(int[] arrPosition, String strStudyTime)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.STUDY_TIME.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.STUDY_TIME_111061.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createTimeNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strStudyTime);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setContentDate(int[] arrPosition, String strContentDate)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.CONTENT_DATE.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.CONTENT_DATE_111018.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createDateNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strContentDate);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setContentTime(int[] arrPosition, String strContentTime)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.CONTENT_TIME.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.CONTENT_TIME_111019.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createTimeNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strContentTime);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setAcquisitionDate(int[] arrPosition, String strAcquisitionDate)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.ACQUISITION_DATE.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.ACQUISITION_DATE_126201.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createDateNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strAcquisitionDate);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setAcquisitionTime(int[] arrPosition, String strAcquisitionTime)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.ACQUISITION_TIME.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.ACQUISITION_TIME_126202.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type DateTimeNode and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createTimeNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strAcquisitionTime);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setFrameOfReferenceUID(int[] arrPosition, String strTrackingUniqueIdentifier)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.FRAME_OF_REFERENCE_UID.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.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, strTrackingUniqueIdentifier);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for PixelDataRows
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPixelDataRows(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.PIXELS.getValue();
		String strCVForUnit = EnumCV_Unit.PIXELS.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.PIXEL_DATA_ROWS.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.PIXEL_DATA_ROWS_110910.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 PixelDataColumns
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setPixelDataColumns(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.PIXELS.getValue();
		String strCVForUnit = EnumCV_Unit.PIXELS.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptors.PIXEL_DATA_COLUMNS.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptors.PIXEL_DATA_COLUMNS_110911.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

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