/*******************************************************************************
 *  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.BodySurfaceAreaEquations_CID3663;
import cdac.medinfo.sdk.dcm30_04.templates.cid.PapillaryMuscleIncludedExcluded_CID3821;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_BSANormalizedVentricularMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_BodySurfaceAreaEquations;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_PapillaryMuscleIncludedExcluded;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_BSANormalizedVentricularMeasurements;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Measurement_TID300;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

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

	/**
	 * Object of Measurement_TID300
	 */
	private Measurement_TID300 objMeasurementTID300;

	/**
	 * Object of BodySurfaceAreaEquations_CID3663
	 */
	private BodySurfaceAreaEquations_CID3663 objBodySurfaceAreaEquationsCID3663;
	
	/**
	 * Object of PapillaryMuscleIncludedExcluded_CID3821
	 */
	private PapillaryMuscleIncludedExcluded_CID3821 objPapillaryMuscleIncludedExcludedCID3821;
	
	/**
	 * Instantiates a new BSANormalizedVentricularMeasurements_TID3923 Template.
	 * @param objTree Object of SRTree.
	 */
	public BSANormalizedVentricularMeasurements_TID3923(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;
	}

	/**
	 * Sets the value for Normalized values of ventricular measurements.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 * @param arrPosition 
	 */
	public void setNormalizedvaluesOfVentricularMeasurements(EnumContinuityOfContent enumContinuityOfContent, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BSANormalizedVentricularMeasurements.NORMALIZED_VALUES_OF_VENTRICULAR_MEASUREMENTS.getValue();
		String strCodeValue = EnumCV_BSANormalizedVentricularMeasurements.NORMALIZED_VALUES_OF_VENTRICULAR_MEASUREMENTS_122609.getValue();
		String strCSD = 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, strCSD, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Index.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrPosition 
	 */
	public void setIndex(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BSANormalizedVentricularMeasurements.INDEX.getValue();
		String strCodeValue = EnumCV_BSANormalizedVentricularMeasurements.INDEX_121425.getValue();
		String strCSD = 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, strCSD, "", "", "","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Body Surface Area.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 * @param arrNumericValue 
	 * @param arrPosition 
	 */
	public void setBodySurfaceArea(String[] arrNumericValue, int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BSANormalizedVentricularMeasurements.BODY_SURFACE_AREA.getValue();
		String strCodeValue = EnumCV_BSANormalizedVentricularMeasurements.BODY_SURFACE_AREA_8277_6.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.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, strCSD, "", "", "","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Body Surface Area Formula.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setBodySurfaceAreaFormula(int[] arrPosition, EnumCM_BodySurfaceAreaEquations enumBodySurfaceAreaEquations)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BSANormalizedVentricularMeasurements.BODY_SURFACE_AREA_FORMULA.getValue();
		String strCodeValue = EnumCV_BSANormalizedVentricularMeasurements.BODY_SURFACE_AREA_FORMULA_8278_4.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.LN.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objBodySurfaceAreaEquationsCID3663)
			this.objBodySurfaceAreaEquationsCID3663 = new BodySurfaceAreaEquations_CID3663();
		this.objBodySurfaceAreaEquationsCID3663.setBodySurfaceAreaEquations(enumBodySurfaceAreaEquations);

		String strCM = objBodySurfaceAreaEquationsCID3663.getCodeMeaning();
		String strCV = objBodySurfaceAreaEquationsCID3663.getCodeValue();
		String strCSD = objBodySurfaceAreaEquationsCID3663.getCodingSchemeDesignator();
		
		/**
		 * 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);
		getSRTree().addChild(objContentSequenceItem);
	}

	/**
	 * Sets the value for Papillary Muscle Included/Excluded.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strProcedureActionID String value for Procedure Action ID
	 */
	public void setPapillaryMuscleIncludedExcluded(int[] arrPosition, EnumCM_PapillaryMuscleIncludedExcluded enumPapillaryMuscleIncludedExcluded)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BSANormalizedVentricularMeasurements.PAPILLARY_MUSCLE_INCLUDED_EXCLUDED.getValue();
		String strCodeValue = EnumCV_BSANormalizedVentricularMeasurements.PAPILLARY_MUSCLE_INCLUDED_EXCLUDED_122670.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		if(null== this.objPapillaryMuscleIncludedExcludedCID3821)
			this.objPapillaryMuscleIncludedExcludedCID3821 = new PapillaryMuscleIncludedExcluded_CID3821();
		this.objPapillaryMuscleIncludedExcludedCID3821.setPapillaryMuscleIncludedExcluded(enumPapillaryMuscleIncludedExcluded);

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

}