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

import cdac.medinfo.sdk.dcm30_04.baselibs.ContentSequenceItem;
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_EquivalentMeaningOfConceptName;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_EquivalentMeaningOfConceptName;

/**
 * This class represents EquivalentMeaningOfConceptName - TID1210
 */
public class EquivalentMeaningOfConceptName_TID1210 extends Template{

	/**
	 * Object of LanguageOfValue_TID1201
	 */
	private LanguageOfValue_TID1201 objLanguageOfValue_TID1201;
	/**
	 * Instantiates EquivalentMeaningOfConceptName_TID1210 Template.
	 * @param objTree Object of SRTree.
	 */
	public EquivalentMeaningOfConceptName_TID1210(SRTree objTree)
	{
		super(objTree);
	}
	/**
	 * Retrieves the object of LanguageOfValue_TID1201
	 * @return objLanguageOfValue_TID1201 Object of LanguageOfValue_TID1201.
	 */
	public LanguageOfValue_TID1201 getLanguageOfValue() 
	{
		if(null == objLanguageOfValue_TID1201)
			objLanguageOfValue_TID1201 = new LanguageOfValue_TID1201(getSRTree());
		return objLanguageOfValue_TID1201;
	}
	/**
	 * Sets value for Equivalent Meaning ofConcept Name
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 */
	public void setEquivalentMeaningOfConceptName(int[] arrPosition)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_EquivalentMeaningOfConceptName.EQUIVALENT_MEANING_OF_CONCEPT_NAME.getValue();
		String strCodeValue = EnumCV_EquivalentMeaningOfConceptName.EQUIVALENT_MEANING_OF_CONCEPT_NAME_121050.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();

		
		ContentSequenceItem objContentSequenceItem = getSRTree().createCodeNode(arrPosition, strCodeMeaning, strCodeValue, strCSDesg, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets value for Equivalent Meaning ofConcept Name
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strEquivalentMeaningOfConceptName String value for Comment.
	 */
	public void setEquivalentMeaningOfConceptName(int[] arrPosition, String strEquivalentMeaningOfConceptName)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_EquivalentMeaningOfConceptName.EQUIVALENT_MEANING_OF_CONCEPT_NAME.getValue();
		String strCodeValue = EnumCV_EquivalentMeaningOfConceptName.EQUIVALENT_MEANING_OF_CONCEPT_NAME_121050.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.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, strCSD, strEquivalentMeaningOfConceptName);
		getSRTree().addChild(objContentSequenceItem);
	}
}
