/*******************************************************************************
 *  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.enums.EnumContinuityOfContent;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.CardiacProceduralStateValues_CID3101;
import cdac.medinfo.sdk.dcm30_04.templates.cid.MyocardialSubsegment_CID3843;
import cdac.medinfo.sdk.dcm30_04.templates.cid.MyocardialWallSegments_CID3717;
import cdac.medinfo.sdk.dcm30_04.templates.cid.YesNo_CID230;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CardiacProceduralStateValues;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MyocardialPerfusionAnalysis;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MyocardialSubsegment;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MyocardialWallSegments;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_YesNo;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_MyocardialPerfusionAnalysis;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Measurement_TID300;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;
import cdac.medinfo.sdk.dcm30_04.templates.procedurelogiodtemplates.DrugsContrastAdministered_TID3106;

/**
 * This class represents MyocardialPerfusionAnalysis_TID3926
 */
public class MyocardialPerfusionAnalysis_TID3926 extends Template
{
	
	/**
	 * Object of MyocardialWallSegments_CID3717
	 */
	private MyocardialWallSegments_CID3717 objMyocardialWallSegmentsCID3717;
	
	/**
	 * Object of CardiacProceduralStateValues_CID3101
	 */
	private CardiacProceduralStateValues_CID3101 objCardiacProceduralStateValuesCID3101;
	
	/**
	 * Object of MyocardialSubsegment_CID3843
	 */
	private MyocardialSubsegment_CID3843 objMyocardialSubsegmentCID3843;
	
	/**
	 * Object of YesNo_CID230
	 */
	private YesNo_CID230 objYesNoCID230;
	
	/**
	 * Object of DrugsContrastAdministered_TID3106
	 */
	private DrugsContrastAdministered_TID3106 objDrugsContrastAdministeredTID3106;
	

	/**
	 * Object of BestIllustrationOfFindings_TID3909
	 */
	private BestIllustrationOfFindings_TID3909 objBestIllustrationOfFindingsTID3909;
	
	/**
	 * Object of Measurement_TID300
	 */
	private Measurement_TID300 objMeasurementTID300;
			
	/**
	 * Instantiates a new MyocardialPerfusionAnalysis_TID3926 Template.
	 * @param objTree Object of SRTree.
	 */
	public MyocardialPerfusionAnalysis_TID3926(SRTree objTree)
	{
		super(objTree);
	}
	
	/**
	 * Retrieves Measurement.
	 * @return objMeasurementTID300 Object of Measurement_TID300 
	 */
	public Measurement_TID300 getMeasurement() 
	{
		if(null == this.objMeasurementTID300)
			this.objMeasurementTID300 = new Measurement_TID300(getSRTree());
		return this.objMeasurementTID300;
	}
	
	/**
	 * Retrieves Best Illustration Of Findings.
	 * @return objBestIllustrationOfFindingsTID3909 Object of BestIllustrationOfFindings_TID3909 
	 */
	public BestIllustrationOfFindings_TID3909 getBestIllustrationOfFindings() 
	{
		if(null == this.objBestIllustrationOfFindingsTID3909)
			this.objBestIllustrationOfFindingsTID3909 = new BestIllustrationOfFindings_TID3909(getSRTree());
		return this.objBestIllustrationOfFindingsTID3909;
	}
	
	/**
	 * Retrieves Drugs Contrast Administered.
	 * @return objDrugsContrastAdministeredTID3106 Object of DrugsContrastAdministered_TID3106 
	 */
	public DrugsContrastAdministered_TID3106 getDrugsContrastAdministered() 
	{
		if(null == this.objDrugsContrastAdministeredTID3106)
			this.objDrugsContrastAdministeredTID3106 = new DrugsContrastAdministered_TID3106(getSRTree());
		return this.objDrugsContrastAdministeredTID3106;
	}
	
	/**
	 * Sets the value for Findings.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 * @param arrNumericValue 
	 */
	public void setFindings(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.FINDINGS.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.FINDINGS_121070.getValue();
		String strCSDesg = 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, strCSDesg, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
		
	}
	
	/**
	 * Sets the value for Measurement Group.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent  
	 */
	public void setMeasurementGroup(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.MEASUREMENT_GROUP.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.MEASUREMENT_GROUP_125007.getValue();
		String strCSDesg = 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, strCSDesg, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
		
	}
	/**
	 * Sets the value for AnalysisPerformed.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setAnalysisPerformed(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.ANALYSIS_PERFORMED.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.ANALYSIS_PERFORMED_111004.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);
		
	}
	/**
	 * Sets the value for Myocardial Perfusion Analysis.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 * @param arrNumericValue 
	 */
	public void setMyocardialPerfusionAnalysis(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.MYOCARDIAL_PERFUSION_ANALYSIS.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.MYOCARDIAL_PERFUSION_ANALYSIS_122602.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);
		
	}
	/**
	 * Sets the value for Finding Site.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setFindingSite(int[] arrPosition, EnumCM_MyocardialWallSegments enumMyocardialWallSegments)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.FINDING_SITE.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.FINDING_SITE_G_C0E3.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();		
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objMyocardialWallSegmentsCID3717)
			this.objMyocardialWallSegmentsCID3717 = new MyocardialWallSegments_CID3717();
		this.objMyocardialWallSegmentsCID3717.setMyocardialWallSegments(enumMyocardialWallSegments);

		String strCM = objMyocardialWallSegmentsCID3717.getCodeMeaning();
		String strCV = objMyocardialWallSegmentsCID3717.getCodeValue();
		String strCSD = objMyocardialWallSegmentsCID3717.getCodingSchemeDesignator();
		String strSNOMEDCTID = objMyocardialWallSegmentsCID3717.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, strCM, strCV, strCSD, strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
		
	}
	
	/**
	 * Sets the value for Late Contrast Enhancement.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setLateContrastEnhancement(int[] arrPosition, EnumCM_YesNo enumYesNo)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.LATE_CONTRAST_ENHANCEMENT.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.LATE_CONTRAST_ENHANCEMENT_122664.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();		
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objYesNoCID230)
			this.objYesNoCID230 = new YesNo_CID230();
		this.objYesNoCID230.setYesNo(enumYesNo);

		String strCM = objYesNoCID230.getCodeMeaning();
		String strCV = objYesNoCID230.getCodeValue();
		String strCSD = objYesNoCID230.getCodingSchemeDesignator();
		String strSNOMEDCTID = objYesNoCID230.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, strCM, strCV, strCSD, strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
		
	}
	/**
	 * Sets the value for Finding Site.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setFindingSite(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.FINDING_SITE.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.FINDING_SITE_G_C0E3.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.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);
		
	}
	/**
	 * Sets the value for Curve Fit Method.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setCurveFitMethod(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.CURVE_FIT_METHOD.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.CURVE_FIT_METHOD_122627.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);
	}
	/**
	 * Sets the value for Baseline Result Correction.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setBaselineResultCorrection(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.BASELINE_RESULT_CORRECTION.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.BASELINE_RESULT_CORRECTION_122628.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);
	}
	
	/**
	 * Sets the value for Time after start of injection of contrast bolus.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setTimeAfterStartOfInjectionOfContrastBolus(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.TIME_AFTER_START_OF_INJECTION_OF_CONTRAST_BOLUS.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.TIME_AFTER_START_OF_INJECTION_OF_CONTRAST_BOLUS_122665.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Time interval since detection of contrast bolus.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setTimeIntervalSinceDetectionOfContrastBolus(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.TIME_INTERVAL_SINCE_DETECTION_OF_CONTRAST_BOLUS.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.TIME_INTERVAL_SINCE_DETECTION_OF_CONTRAST_BOLUS_122668.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Image Interval.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setImageInterval(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.IMAGE_INTERVAL.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.IMAGE_INTERVAL_122640.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for MR Perfusion Peak.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setMRPerfusionPeak(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.MR_PERFUSION_PEAK.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.MR_PERFUSION_PEAK_122635.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for MRPerfusion Slope.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setMRPerfusionSlope(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.MR_PERFUSION_SLOPE.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.MR_PERFUSION_SLOPE_122636.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for MR Perfusion Time Integral.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setMRPerfusionTimeIntegral(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.MR_PERFUSION_TIME_INTEGRAL.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.MR_PERFUSION_TIME_INTEGRAL_122637.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type NUM and adding this node as root of a tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, arrNumericValue, "", "", "", "", "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Topographical Modifier.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setTopographicalModifier(int[] arrPosition, EnumCM_MyocardialSubsegment enumMyocardialSubsegment)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.TOPOGRAPHICAL_MODIFIER.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.TOPOGRAPHICAL_MODIFIER_G_A1F8.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objMyocardialSubsegmentCID3843)
			this.objMyocardialSubsegmentCID3843 = new MyocardialSubsegment_CID3843();
		this.objMyocardialSubsegmentCID3843.setMyocardialSubsegment(enumMyocardialSubsegment);

		String strCM = objMyocardialSubsegmentCID3843.getCodeMeaning();
		String strCV = objMyocardialSubsegmentCID3843.getCodeValue();
		String strCSD = objMyocardialSubsegmentCID3843.getCodingSchemeDesignator();
		String strSNOMEDCTID = objMyocardialSubsegmentCID3843.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, strCV, strCSDesg, "", strCM,strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Patient State.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setPatientState(int[] arrPosition, EnumCM_CardiacProceduralStateValues enumCardiacProceduralStateValues)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MyocardialPerfusionAnalysis.PATIENT_STATE.getValue();
		String strCodeValue = EnumCV_MyocardialPerfusionAnalysis.PATIENT_STATE_109054.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objCardiacProceduralStateValuesCID3101)
			this.objCardiacProceduralStateValuesCID3101 = new CardiacProceduralStateValues_CID3101();
		this.objCardiacProceduralStateValuesCID3101.setCardiacProceduralStateValues(enumCardiacProceduralStateValues);

		String strCM = objCardiacProceduralStateValuesCID3101.getCodeMeaning();
		String strCV = objCardiacProceduralStateValuesCID3101.getCodeValue();
		String strCSD = objCardiacProceduralStateValuesCID3101.getCodingSchemeDesignator();
		String strSNOMEDCTID = objCardiacProceduralStateValuesCID3101.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, strCV, strCSDesg, "", strCM,strSNOMEDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
}
