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

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_CardiacUltrasoundFetalCharacteristics;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CardiacUltrasoundFetalSummarySection;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_RadiopharmaceuticalAdministrationEventDataTemplates;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CardiacUltrasoundFetalCharacteristics;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CardiacUltrasoundFetalSummarySection;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_RadiopharmaceuticalAdministrationEventDataTemplates;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.SubjectContextFetus_TID1008;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents CardiacUltrasoundFetalCharacteristics_TID5225
 */
public class CardiacUltrasoundFetalCharacteristics_TID5225 extends Template{

	/**
	 * Object of SubjectContextFetus_TID1008
	 */
	private SubjectContextFetus_TID1008 objSubjectContextFetus_TID1008 ;
	/**
	 * Instantiates CardiacUltrasoundFetalCharacteristics_TID5225 Template.
	 * @param objTree Object of SRTree.
	 */
	public CardiacUltrasoundFetalCharacteristics_TID5225(SRTree objTree)
	{
		super(objTree);
	}

	/**
	 * Retrieves SubjectContextFetus_TID1008 
	 * @return objSubjectContextFetus_TID1008 Object of SubjectContextFetus_TID1008 
	 */
	public SubjectContextFetus_TID1008 getObserverContext() 
	{
		if(null == this.objSubjectContextFetus_TID1008)
			this.objSubjectContextFetus_TID1008 = new SubjectContextFetus_TID1008(getSRTree());
		return this.objSubjectContextFetus_TID1008;
	}
	/**
	 * Sets the value for Fetus Characteristics
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setFetusCharacteristics(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CardiacUltrasoundFetalCharacteristics.FETUS_CHARACTERISTICS.getValue();
		String strCodeValue = EnumCV_CardiacUltrasoundFetalCharacteristics.FETUS_CHARACTERISTICS_125015.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type UIDREF 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 GestationalAge
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setGestationalAge(int[] arrPosition,String[] arrNumericValue)
	{
		
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CardiacUltrasoundFetalCharacteristics.GESTATIONAL_AGE.getValue();
		String strCodeValue = EnumCV_CardiacUltrasoundFetalCharacteristics.GESTATIONAL_AGE_18185_9.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,"","","","","","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for HeartRate
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setHeartRate(int[] arrPosition,String[] arrNumericValue)
	{
		
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CardiacUltrasoundFetalCharacteristics.HEART_RATE.getValue();
		String strCodeValue = EnumCV_CardiacUltrasoundFetalCharacteristics.HEART_RATE_8867_4.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,"","","","","","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setEDD(int[] arrPosition, String strRadiopharmaceuticalStopDateTime)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CardiacUltrasoundFetalCharacteristics.EDD.getValue();
		String strCodeValue = EnumCV_CardiacUltrasoundFetalCharacteristics.EDD_11778_8.getValue();
		String strCSD = EnumCodingSchemeDesignator.LN.getValue();
		
		/**
		 * Creating a node of Value Type Date and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createDateNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strRadiopharmaceuticalStopDateTime);
		getSRTree().addChild(objContentSequenceItem);
	}
}
