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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.SRDocumentContentModule;
import cdac.medinfo.sdk.dcm30_04.enums.EnumContinuityOfContent;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cathlabclinicalreporttemplate.CardiovascularPatientHistory_TID3802;
import cdac.medinfo.sdk.dcm30_04.templates.cid.IndicationsForStressTest_CID3201;
import cdac.medinfo.sdk.dcm30_04.templates.cid.StressTestProcedure_CID3200;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_IndicationsForStressTest;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_StressTestProcedure;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_StressTestingReport;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_StressTestingReport;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.LanguageOfContentItemAndDescendants_TID1204;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.ObserverContext_TID1002;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;
import cdac.medinfo.sdk.dcm30_04.templates.hemodynamicsreporttemplates.CardiovascularPatientCharacteristics_TID3602;

/**
 * This class represents StressTestingReport_TID3300
 */
	public class StressTestingReport_TID3300 extends Template
{
	private static final String strCM = null;

	/**
	 * Object of LanguageOfContentItemAndDescendants_TID1204
	 */
	private LanguageOfContentItemAndDescendants_TID1204 objLanguageOfContentItemAndDescendantsTID1204;
	
	/**
	 * Object of ObserverContext_TID1002
	 */
	private ObserverContext_TID1002 objObserverContextTID1002;
	
	/**
	 * Object of StressTestProcedure_CID3200
	 */
	private StressTestProcedure_CID3200 objStressTestProcedureCID3200;
	
	/**
	 * Object of IndicationsForStressTest_CID3201
	 */
	private IndicationsForStressTest_CID3201 objIndicationsForStressTestCID3201;
	
	/**
	 * Object of CardiovascularPatientCharacteristics_TID3602
	 */
	private CardiovascularPatientCharacteristics_TID3602 objCardiovascularPatientCharacteristicsTID3602;
	
	/**
	 * Object of CardiovascularPatientHistory_TID3802
	 */
	private CardiovascularPatientHistory_TID3802 objCardiovascularPatientHistoryTID3802;
	
	/**
	 * Object of StressTestProcedureDescription_TID3301
	 */
	private StressTestProcedureDescription_TID3301 objStressTestProcedureDescription_TID3301;
	
	/**
	 * Object of StressTestPhaseData_TID3303
	 */
	private StressTestPhaseData_TID3303 objStressTestPhaseDataTID3303;
	
	/**
	 * Object of StressTestSummary_TID3311
	 */
	private StressTestSummary_TID3311 objStressTestSummaryTID3311;
	
	/**
	 * Object of ComparisonToPriorStressExam_TID3318
	 */
	private ComparisonToPriorStressExam_TID3318 objComparisonToPriorStressExamTID3318;
	
	/**
	 * Object of ConclusionsAndRecommendations_TID3320
	 */
	private ConclusionsAndRecommendations_TID3320 objConclusionsAndRecommendationsTID3320;
	
	/**
	 * Instantiates a new StressTestingReport_TID3300 Template.
	 * @param objTree Object of SRTree.
	 */
	public StressTestingReport_TID3300(SRTree objTree)
	{
		super(objTree);
	}

	/**
	 * Retrieves Conclusions And Recommendations.
	 * @return objConclusionsAndRecommendationsTID3320 Object of ConclusionsAndRecommendations_TID3320 
	 */
	public ConclusionsAndRecommendations_TID3320 getConclusionsAndRecommendations()
	{
		if(null == this.objConclusionsAndRecommendationsTID3320)
			this.objConclusionsAndRecommendationsTID3320 = new ConclusionsAndRecommendations_TID3320(getSRTree());
		return this.objConclusionsAndRecommendationsTID3320;
	}
	
	/**
	 * Retrieves Comparison To Prior Stress Exam.
	 * @return objComparisonToPriorStressExamTID3318 Object of ComparisonToPriorStressExam_TID3318 
	 */
	public ComparisonToPriorStressExam_TID3318 getComparisonToPriorStressExam()
	{
		if(null == this.objComparisonToPriorStressExamTID3318)
			this.objComparisonToPriorStressExamTID3318 = new ComparisonToPriorStressExam_TID3318(getSRTree());
		return this.objComparisonToPriorStressExamTID3318;
	}
	
	/**
	 * Retrieves StressTest Summary.
	 * @return objStressTestSummaryTID3311 Object of StressTestSummary_TID3311 
	 */
	public StressTestSummary_TID3311 getStressTestSummary()
	{
		if(null == this.objStressTestSummaryTID3311)
			this.objStressTestSummaryTID3311 = new StressTestSummary_TID3311(getSRTree());
		return this.objStressTestSummaryTID3311;
	}
	
	/**
	 * Retrieves Stress Test Phase Data.
	 * @return objStressTestPhaseDataTID3303 Object of StressTestPhaseData_TID3303 
	 */
	public StressTestPhaseData_TID3303 getStressTestPhaseData()
	{
		if(null == this.objStressTestPhaseDataTID3303)
			this.objStressTestPhaseDataTID3303 = new StressTestPhaseData_TID3303(getSRTree());
		return this.objStressTestPhaseDataTID3303;
	}
	
	/**
	 * Retrieves Stress Test Procedure Description.
	 * @return objStressTestProcedureDescription_TID3301 Object of StressTestProcedureDescription_TID3301 
	 */
	public StressTestProcedureDescription_TID3301 getStressTestProcedureDescription()
	{
		if(null == this.objStressTestProcedureDescription_TID3301)
			this.objStressTestProcedureDescription_TID3301 = new StressTestProcedureDescription_TID3301(getSRTree());
		return this.objStressTestProcedureDescription_TID3301;
	}
	
	/**
	 * Sets the value for Stress Testing Report.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 */
	public void setStressTestingReport(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_StressTestingReport.STRESS_TESTING_REPORT.getValue();
		String strCodeValue = EnumCV_StressTestingReport.STRESS_TESTING_REPORT_18752_6.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.getValue();

		/**
		 * Creating a node of Value Type CONTAINER and adding this node as root of a tree.
		 */
		SRDocumentContentModule objDocumentContentModule = getSRTree().getSRDocumentContentModule();
		getSRTree().createRoot(objDocumentContentModule,strCodeMeaning,strCodeValue , strCSD, enumContinuityOfContent);
	}
	
	/**
	 * Sets the value Indications For Procedure.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 */
	public void setIndicationsForProcedure(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_StressTestingReport.INDICATIONS_FOR_PROCEDURE.getValue();
		String strCodeValue = EnumCV_StressTestingReport.INDICATIONS_FOR_PROCEDURE_18785_6.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.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 Procedure Reported.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setProcedureReported(int[] arrPosition, EnumCM_StressTestProcedure enumStressTestProcedure )
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_StressTestingReport.PROCEDURE_REPORTED.getValue();
		String strCodeValue = EnumCV_StressTestingReport.PROCEDURE_REPORTED_121058.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		
		if(null== this.objStressTestProcedureCID3200)
			this.objStressTestProcedureCID3200 = new StressTestProcedure_CID3200();
		this.objStressTestProcedureCID3200.setStressTestProcedure(enumStressTestProcedure);

		String strCM = objStressTestProcedureCID3200.getCodeMeaning();
		String strCV = objStressTestProcedureCID3200.getCodeValue();
		String strCSD = objStressTestProcedureCID3200.getCodingSchemeDesignator();
		String strSNOMEDCTID = objStressTestProcedureCID3200.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, strCSD, strCSDesg, strCV, strCM,strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Finding.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setFinding(int[] arrPosition, EnumCM_IndicationsForStressTest enumIndicationsForStressTest)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_StressTestingReport.FINDING.getValue();
		String strCodeValue = EnumCV_StressTestingReport.FINDING_121071.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		
		if(null== this.objIndicationsForStressTestCID3201)
			this.objIndicationsForStressTestCID3201 = new IndicationsForStressTest_CID3201();
		this.objIndicationsForStressTestCID3201.setIndicationsForStressTest(enumIndicationsForStressTest);

		String strCM = objIndicationsForStressTestCID3201.getCodeMeaning();
		String strCV = objIndicationsForStressTestCID3201.getCodeValue();
		String strCSD = objIndicationsForStressTestCID3201.getCodingSchemeDesignator();
		String strSNOMEDCTID = objIndicationsForStressTestCID3201.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, strCSD, strCSDesg, strCV, strCM,strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Finding.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setFinding(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_StressTestingReport.FINDING.getValue();
		String strCodeValue = EnumCV_StressTestingReport.FINDING_121071.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
	
		/**
		 *Creating a node of Value Type TEXT and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createTextNode(arrPosition, strCodeMeaning, strCodeValue, strCSDesg, "");
		getSRTree().addChild(objContentSequenceItem);
	}


}