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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.DiagnosticImagingReportElements_CID7002;
import cdac.medinfo.sdk.dcm30_04.templates.cid.DiagnosticImagingReportHeadings_CID7001;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_DiagnosticImagingReportElements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_DiagnosticImagingReportHeadings;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.ImageOrSpatialCoordinates_TID320;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.WaveformOrTemporalCoordinates_TID321;

/**
 * This class represents ReportSummary_TID3927
 */
public class ReportSummary_TID3927 extends Template
	
{
	private static final String strCM = null;
	
	/**
	 * Object of DiagnosticImagingReportHeadings_CID7001
	 */
	private DiagnosticImagingReportHeadings_CID7001 objDiagnosticImagingReportHeadingsCID7001;
	
	/**
	 * Object of DiagnosticImagingReportElements_CID7002
	 */
	private DiagnosticImagingReportElements_CID7002 objDiagnosticImagingReportElementsCID7002;
	
	/**
	 * Object of WaveformOrTemporalCoordinates_TID321
	 */
	private WaveformOrTemporalCoordinates_TID321 objWaveformOrTemporalCoordinates_TID321;
	
	/**
	 * Object of ImageOrSpatialCoordinates_TID320
	 */
	private ImageOrSpatialCoordinates_TID320 objImageOrSpatialCoordinatesTID320;
			
	/**
	 * Instantiates a new ReportSummary_TID3927 Template.
	 * @param objTree Object of SRTree.
	 */
	public ReportSummary_TID3927(SRTree objTree)
	{
		super(objTree);
	}
	
	/**
	 * Retrieves ImageOrSpatialCoordinates.
	 * @return objImageOrSpatialCoordinatesTID320 Object of ImageOrSpatialCoordinates_TID320 
	 */
	public ImageOrSpatialCoordinates_TID320 getImageOrSpatialCoordinates() 
	{
		if(null == this.objImageOrSpatialCoordinatesTID320)
			this.objImageOrSpatialCoordinatesTID320 = new ImageOrSpatialCoordinates_TID320(getSRTree());
		return this.objImageOrSpatialCoordinatesTID320;
	}
	
	/**
	 * Retrieves Waveform Or Temporal Coordinates.
	 * @return objWaveformOrTemporalCoordinates_TID321 Object of WaveformOrTemporalCoordinates_TID321 
	 */
	public WaveformOrTemporalCoordinates_TID321 getWaveformOrTemporalCoordinates() 
	{
		if(null == this.objWaveformOrTemporalCoordinates_TID321)
			this.objWaveformOrTemporalCoordinates_TID321 = new WaveformOrTemporalCoordinates_TID321(getSRTree());
		return this.objWaveformOrTemporalCoordinates_TID321;
	}
	/**
	 * Sets the value for FindingSite.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setFindingSite(int[] arrPosition, EnumCM_DiagnosticImagingReportElements enumDiagnosticImagingReportElements)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objDiagnosticImagingReportElementsCID7002)
			this.objDiagnosticImagingReportElementsCID7002 = new DiagnosticImagingReportElements_CID7002();
		this.objDiagnosticImagingReportElementsCID7002.setDiagnosticImagingReportElements(enumDiagnosticImagingReportElements);

		String strCM = objDiagnosticImagingReportElementsCID7002.getCodeMeaning();
		String strCV = objDiagnosticImagingReportElementsCID7002.getCodeValue();
		String strCSD = objDiagnosticImagingReportElementsCID7002.getCodingSchemeDesignator();
		String strSNOMEDCTID = objDiagnosticImagingReportElementsCID7002.getSNOMEDCTID();
		
		/**
		 * Creating a node of Value Type CODE and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createCodeNode(arrPosition, "", "", strCSD, strCV, "", "", strCM,strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for FindingSite.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setFindingSite(int[] arrPosition, EnumCM_DiagnosticImagingReportHeadings enumDiagnosticImagingReportHeadings)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objDiagnosticImagingReportHeadingsCID7001)
			this.objDiagnosticImagingReportHeadingsCID7001 = new DiagnosticImagingReportHeadings_CID7001();
		this.objDiagnosticImagingReportHeadingsCID7001.setDiagnosticImagingReportHeadings(enumDiagnosticImagingReportHeadings);

		String strCM = objDiagnosticImagingReportHeadingsCID7001.getCodeMeaning();
		String strCV = objDiagnosticImagingReportHeadingsCID7001.getCodeValue();
		String strCSD = objDiagnosticImagingReportHeadingsCID7001.getCodingSchemeDesignator();
		
		/**
		 * Creating a node of Value Type CONTAINER and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createCodeNode(arrPosition, "", "", strCSD, strCV, "", "", strCM);
		getSRTree().addChild(objContentSequenceItem);
	}
}
