/*******************************************************************************
 *  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.MyocardialWallSegments_CID3717;
import cdac.medinfo.sdk.dcm30_04.templates.cid.MyocardiumWallMorphologyFindings_CID3704;
import cdac.medinfo.sdk.dcm30_04.templates.cid.WallMotion_CID3703;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MyocardialWallSegments;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MyocardiumWallMorphologyFindings;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_VentricularThickeningAnalysis;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_WallMotion;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_VentricularThickeningAnalysis;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Measurement_TID300;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents VentricularThickeningAnalysis_TID3925
 */
public class VentricularThickeningAnalysis_TID3925 extends Template
{
	private static final String strCM = null;
	
	/**
	 * Object of MyocardialWallSegments_CID3717
	 */
	private MyocardialWallSegments_CID3717 objMyocardialWallSegmentsCID3717;
	
	/**
	 * Object of MyocardiumWallMorphologyFindings_CID3704
	 */
	private MyocardiumWallMorphologyFindings_CID3704 objMyocardiumWallMorphologyFindingsCID3704;
	
	/**
	 * Object of WallMotion_CID3703
	 */
	private WallMotion_CID3703 objWallMotionCID3703;
	
	/**
	 * Object of BestIllustrationOfFindings_TID3909
	 */
	private BestIllustrationOfFindings_TID3909 objBestIllustrationOfFindingsTID3909;
	
	/**
	 * Object of Measurement_TID300
	 */
	private Measurement_TID300 objMeasurementTID300;
			
	/**
	 * Instantiates a new VentricularThickeningAnalysis_TID3925 Template.
	 * @param objTree Object of SRTree.
	 */
	public VentricularThickeningAnalysis_TID3925(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;
	}
	
	/**
	 * 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_VentricularThickeningAnalysis.FINDINGS.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.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 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_VentricularThickeningAnalysis.ANALYSIS_PERFORMED.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.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 Thickening Analysis.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 * @param arrNumericValue 
	 */
	public void setThickeningAnalysis(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularThickeningAnalysis.THICKENING_ANALYSIS.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.THICKENING_ANALYSIS_122607.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 FindingSite(int[] arrPosition, EnumCM_MyocardialWallSegments enumMyocardialWallSegments)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularThickeningAnalysis.FINDING_SITE.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.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 Finding Site.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void FindingSite(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularThickeningAnalysis.FINDING_SITE.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.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 Cardiac Wall Motion.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setCardiacWallMotion(int[] arrPosition, EnumCM_WallMotion enumWallMotion)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularThickeningAnalysis.CARDIAC_WALL_MOTION.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.CARDIAC_WALL_MOTION_F_32050.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objWallMotionCID3703)
			this.objWallMotionCID3703 = new WallMotion_CID3703();
		this.objWallMotionCID3703.setWallMotion(enumWallMotion);

		String strCM = objWallMotionCID3703.getCodeMeaning();
		String strCV = objWallMotionCID3703.getCodeValue();
		String strCSD = objWallMotionCID3703.getCodingSchemeDesignator();
		String strSNOMEDCTID = objWallMotionCID3703.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 Associated Morphology.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setAssociatedMorphology(int[] arrPosition, EnumCM_MyocardiumWallMorphologyFindings enumMyocardiumWallMorphologyFindings)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularThickeningAnalysis.ASSOCIATED_MORPHOLOGY.getValue();
		String strCodeValue = EnumCV_VentricularThickeningAnalysis.ASSOCIATED_MORPHOLOGY_G_C504.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objMyocardiumWallMorphologyFindingsCID3704)
			this.objMyocardiumWallMorphologyFindingsCID3704 = new MyocardiumWallMorphologyFindings_CID3704();
		this.objMyocardiumWallMorphologyFindingsCID3704.setMyocardiumWallMorphologyFindings(enumMyocardiumWallMorphologyFindings);

		String strCM = objMyocardiumWallMorphologyFindingsCID3704.getCodeMeaning();
		String strCV = objMyocardiumWallMorphologyFindingsCID3704.getCodeValue();
		String strCSD = objMyocardiumWallMorphologyFindingsCID3704.getCodingSchemeDesignator();
		String strSNOMEDCTID = objMyocardiumWallMorphologyFindingsCID3704.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);
	}
}