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

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.IntendedUseOfCADOutput_CID6034;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_IntendedUseOfCADOutput;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_MammographyCADIndividualImpressionRecommendationTemplate;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_MammographyCADIndividualImpressionRecommendationTemplate;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents MammographyCADIndividualImpressionRecommendationTemplate - TID4003
 */
public class MammographyCADIndividualImpressionRecommendationTemplate_TID4003 extends Template
{
	/**
	 * Object of MammographyCADSingleImageFindingTemplate_TID4006
	 */
	private MammographyCADSingleImageFindingTemplate_TID4006 objMammographyCADSingleImageFindingTemplateTID4006;
	
	/**
	 * Object of MammographyCADImpressionRecommendationBodyTemplate_TID4002
	 */
	private MammographyCADImpressionRecommendationBodyTemplate_TID4002 objMammographyCADImpressionRecommendationBodyTemplateTID4002;
	
	/**
	 * Object of MammographyCADCompositeFeature_TID4004
	 */
	private MammographyCADCompositeFeature_TID4004 objMammographyCADCompositeFeatureTID4004;

	/**
	 * Object of IntendedUseOfCADOutput_CID6034
	 */
	private IntendedUseOfCADOutput_CID6034 objIntendedUseOfCADOutputCID6034;

	/**
	 * Instantiates a new MammographyCADIndividualImpressionRecommendationTemplate_TID4003 Template.
	 * @param objTree Object of SRTree.
	 */
	public MammographyCADIndividualImpressionRecommendationTemplate_TID4003(SRTree objTree)
	{
		super(objTree);
	}

	/**
	 * Retrieves MammographyCADImpressionRecommendationBodyTemplate 
	 * @return objMammographyCADImpressionRecommendationBodyTemplateTID4002 Object of MammographyCADImpressionRecommendationBodyTemplate_TID4002 
	 */
	public MammographyCADImpressionRecommendationBodyTemplate_TID4002 getMammographyCADImpressionRecommendationBodyTemplate() 
	{
		if(null == this.objMammographyCADImpressionRecommendationBodyTemplateTID4002)
			this.objMammographyCADImpressionRecommendationBodyTemplateTID4002 = new MammographyCADImpressionRecommendationBodyTemplate_TID4002(getSRTree());
		return this.objMammographyCADImpressionRecommendationBodyTemplateTID4002;
	}
	/**
	 * Retrieves MammographyCADCompositeFeature.
	 * @return objMammographyCADCompositeFeatureTID4004 Object of MammographyCADCompositeFeature_TID4004 
	 */
	public MammographyCADCompositeFeature_TID4004 getMammographyCADCompositeFeature() 
	{
		if(null == this.objMammographyCADCompositeFeatureTID4004)
			this.objMammographyCADCompositeFeatureTID4004 = new MammographyCADCompositeFeature_TID4004(getSRTree());
		return this.objMammographyCADCompositeFeatureTID4004;
	}
	
	/**
	 * Retrieves MammographyCADSingleImageFindingTemplate.
	 * @return objMammographyCADSingleImageFindingTemplateTID4006 Object of MammographyCADSingleImageFindingTemplate_TID4006 
	 */
	public MammographyCADSingleImageFindingTemplate_TID4006 getMammographyCADSingleImageFindingTemplate() 
	{
		if(null == this.objMammographyCADSingleImageFindingTemplateTID4006)
			this.objMammographyCADSingleImageFindingTemplateTID4006 = new MammographyCADSingleImageFindingTemplate_TID4006(getSRTree());
		return this.objMammographyCADSingleImageFindingTemplateTID4006;
	}

	/**
	 * Sets the value for Individual Impression Recommendation
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setIndividualImpressionRecommendation(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MammographyCADIndividualImpressionRecommendationTemplate.INDIVIDUAL_IMPRESSION_RECOMMENDATION.getValue();
		String strCodeValue = EnumCV_MammographyCADIndividualImpressionRecommendationTemplate.INDIVIDUAL_IMPRESSION_RECOMMENDATION_111034.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 value for Rendering Intent.
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumIntendedUseOfCADOutput Enumerated value for enumIntendedUseOfCADOutput
	 */
	public void setRenderingIntent(int[] arrPosition, EnumCM_IntendedUseOfCADOutput enumIntendedUseOfCADOutput)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_MammographyCADIndividualImpressionRecommendationTemplate.RENDERING_INTENT.getValue();
		String strCodeValue = EnumCV_MammographyCADIndividualImpressionRecommendationTemplate.RENDERING_INTENT_111056.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Setting value for Assessment Category
		 */
		if(null== this.objIntendedUseOfCADOutputCID6034)
			this.objIntendedUseOfCADOutputCID6034 = new IntendedUseOfCADOutput_CID6034();
		this.objIntendedUseOfCADOutputCID6034.setIntendedUseOfCADOutput(enumIntendedUseOfCADOutput);

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