/*******************************************************************************
 *  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.CTAcquisitionType_CID10013;
import cdac.medinfo.sdk.dcm30_04.templates.cid.CTReconstructionAlgorithm_CID10033;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CTAcquisitionType;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CTReconstructionAlgorithm;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ImageLibraryEntryDescriptorsForCT;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ImageLibraryEntryDescriptorsForCT;

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

	/**
	 * Object of SourceOfRadioisotopeActivityInformation_CID10041
	 */
	private CTAcquisitionType_CID10013 objCTAcquisitionType_CID10013 ;
	/**
	 * Object of SourceOfRadioisotopeActivityInformation_CID10041
	 */
	private CTReconstructionAlgorithm_CID10033 objCTReconstructionAlgorithm_CID10033 ;
	
	/**
	 * Instantiates ImageLibraryEntryDescriptorsForCT_TID1605 Template.
	 * @param objTree Object of SRTree.
	 */
	public ImageLibraryEntryDescriptorsForCT_TID1605(SRTree objTree)
	{
		super(objTree);
	}
	public void setCTAcquisitionType(int[] arrPosition, EnumCM_CTAcquisitionType enumCTAcquisitionType)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptorsForCT.CT_ACQUISITION_TYPE.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptorsForCT.CT_ACQUISITION_TYPE_113820.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;

		if(null== this.objCTAcquisitionType_CID10013)
			this.objCTAcquisitionType_CID10013 = new CTAcquisitionType_CID10013();
		this.objCTAcquisitionType_CID10013.setCTAcquisitionType(enumCTAcquisitionType);
		 strCM = objCTAcquisitionType_CID10013.getCodeMeaning();
		 strCV = objCTAcquisitionType_CID10013.getCodeValue();
		 strCSD = objCTAcquisitionType_CID10013.getCodingSchemeDesignator();
		 strSNMDCTID = objCTAcquisitionType_CID10013.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 setReconstructionAlgorithm(int[] arrPosition,EnumCM_CTReconstructionAlgorithm enumCTReconstructionAlgorithm)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImageLibraryEntryDescriptorsForCT.RECONSTRUCTION_ALGORITHM.getValue();
		String strCodeValue = EnumCV_ImageLibraryEntryDescriptorsForCT.RECONSTRUCTION_ALGORITHM_113961.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD;

		if(null== this.objCTReconstructionAlgorithm_CID10033)
			this.objCTReconstructionAlgorithm_CID10033 = new CTReconstructionAlgorithm_CID10033();
		this.objCTReconstructionAlgorithm_CID10033.setCTReconstructionAlgorithm(enumCTReconstructionAlgorithm);
		 strCM = objCTReconstructionAlgorithm_CID10033.getCodeMeaning();
		 strCV = objCTReconstructionAlgorithm_CID10033.getCodeValue();
		 strCSD = objCTReconstructionAlgorithm_CID10033.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);
	}
}
