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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.Laterality_CID244;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_Laterality;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_OBGYNFetalVascularUltrasoundMeasurementGroup;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_OBGYNFetalVascularUltrasoundMeasurementGroup;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Measurement_TID300;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.SubjectContextFetus_TID1008;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents OBGYNFetalVascularUltrasoundMeasurementGroup - TID5025
 */
public class OBGYNFetalVascularUltrasoundMeasurementGroup_TID5025 extends Template
{
	/**
	 * Object of Laterality_CID244
	 */
	private Laterality_CID244 objLaterality_CID244;
	/**
	 * Object of Measurement_TID300
	 */

	private Measurement_TID300 objMeasurement_TID300;
	/**
	 * Object of SubjectContextFetus_TID1008
	 */

	private SubjectContextFetus_TID1008 objSubjectContextFetus_TID1008;

	/**
	 * Instantiates OBGYNFetalVascularUltrasoundMeasurementGroup_TID5025 Template.
	 * @param objTree Object of SRTree.
	 */
	public OBGYNFetalVascularUltrasoundMeasurementGroup_TID5025(SRTree objTree)
	{
		super(objTree);
	}
	/**
	 * Retrieves the object of Measurement_TID300
	 * @return objMeasurement_TID300 object of Measurement_TID300
	 */
	public Measurement_TID300 getMeasurement() 
	{
		if(null == objMeasurement_TID300)
			objMeasurement_TID300 = new Measurement_TID300(getSRTree());
		return objMeasurement_TID300;
	}
	/**
	 * Retrieves the object of SubjectContextFetus_TID1008
	 * @return objSubjectContextFetus_TID1008 object of SubjectContextFetus_TID1008
	 */
	public SubjectContextFetus_TID1008 getSubjectContextFetus_TID1008() 
	{
		if(null == objSubjectContextFetus_TID1008)
			objSubjectContextFetus_TID1008 = new SubjectContextFetus_TID1008(getSRTree());
		return objSubjectContextFetus_TID1008;
	}

	/**
	 * Sets the value for Laterality.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumLaterality Enum value for Laterality
	 */
	public void setLaterality(int[] arrPosition, EnumCM_Laterality enumLaterality)
	{
		/**
		 * Sets the value for InterventionActionsAndStatus.
		 */
		if(null== this.objLaterality_CID244)
			this.objLaterality_CID244 = new Laterality_CID244();
		this.objLaterality_CID244.setLaterality(enumLaterality);

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCM = this.objLaterality_CID244.getCodeMeaning();
		String strCV = this.objLaterality_CID244.getCodeValue();
		String strCSD1 = this.objLaterality_CID244.getCodingSchemeDesignator();
		String strSNMDCTID = objLaterality_CID244.getSNOMEDCTID();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_OBGYNFetalVascularUltrasoundMeasurementGroup.LATERALITY.getValue();
		String strCodeValue = EnumCV_OBGYNFetalVascularUltrasoundMeasurementGroup.LATERALITY_G_C171.getValue();
		String strCSD2 = 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 , strCSD2, strCV, strCSD1, "", strCM,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
}
