/*******************************************************************************
 *  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.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MinMaxMean;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_VentricularMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_VentricularMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents VentricularMeasurements_TID3921
 */
public class VentricularMeasurements_TID3921 extends Template
{
	private static final String strCM = null;
	
	/**
	 * Object of AbsoluteValuesOfVentricularMeasurements_TID3922
	 */
	private AbsoluteValuesOfVentricularMeasurements_TID3922 objAbsoluteValuesOfVentricularMeasurementsTID3922;
	
	/**
	 * Object of BSANormalizedVentricularMeasurements_TID3923
	 */
	private BSANormalizedVentricularMeasurements_TID3923 objBSANormalizedVentricularMeasurementsTID3923;
	
	/**
	 * Object of HeartRateNormalizedVentricularMeasurements_TID3924
	 */
	private HeartRateNormalizedVentricularMeasurements_TID3924 objHeartRateNormalizedVentricularMeasurementsTID3924;
			
	/**
	 * Instantiates a new VentricularMeasurements_TID3921 Template.
	 * @param objTree Object of SRTree.
	 */
	public VentricularMeasurements_TID3921(SRTree objTree)
	{
		super(objTree);
	}

	/**
	 * Retrieves Absolute Values Of Ventricular Measurements.
	 * @return objAbsoluteValuesOfVentricularMeasurementsTID3922 Object of AbsoluteValuesOfVentricularMeasurements_TID3922 
	 */
	public AbsoluteValuesOfVentricularMeasurements_TID3922 getAbsoluteValuesOfVentricularMeasurements() 
	{
		if(null == this.objAbsoluteValuesOfVentricularMeasurementsTID3922)
			this.objAbsoluteValuesOfVentricularMeasurementsTID3922 = new AbsoluteValuesOfVentricularMeasurements_TID3922(getSRTree());
		return this.objAbsoluteValuesOfVentricularMeasurementsTID3922;
	}
	
	/**
	 * Retrieves BSANormalized Ventricular Measurements.
	 * @return objBSANormalizedVentricularMeasurementsTID3923 Object of BSANormalizedVentricularMeasurements_TID3923 
	 */
	public BSANormalizedVentricularMeasurements_TID3923 getBSANormalizedVentricularMeasurements() 
	{
		if(null == this.objBSANormalizedVentricularMeasurementsTID3923)
			this.objBSANormalizedVentricularMeasurementsTID3923 = new BSANormalizedVentricularMeasurements_TID3923(getSRTree());
		return this.objBSANormalizedVentricularMeasurementsTID3923;
	}
	
	/**
	 * Retrieves HeartRate Normalized Ventricular Measurements.
	 * @return objHeartRateNormalizedVentricularMeasurementsTID3924 Object of HeartRateNormalizedVentricularMeasurements_TID3924 
	 */
	public HeartRateNormalizedVentricularMeasurements_TID3924 getHeartRateNormalizedVentricularMeasurements()
	{
		if(null == this.objHeartRateNormalizedVentricularMeasurementsTID3924)
			this.objHeartRateNormalizedVentricularMeasurementsTID3924 = new HeartRateNormalizedVentricularMeasurements_TID3924(getSRTree());
		return this.objHeartRateNormalizedVentricularMeasurementsTID3924;
	}
	
	/**
	 * 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, EnumCM_MinMaxMean enumMinMaxMean, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularMeasurements.FINDINGS.getValue();
		String strCodeValue = EnumCV_VentricularMeasurements.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 Finding Site.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent 
	 * @param arrNumericValue 
	 */
	public void FindingSite(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_VentricularMeasurements.FINDING_SITE.getValue();
		String strCodeValue = EnumCV_VentricularMeasurements.FINDING_SITE_G_C0E3.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.SRT.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);
		
	}
	
}
