/*******************************************************************************
 *  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.enums.EnumContinuityOfContent;
import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;
import cdac.medinfo.sdk.dcm30_04.templates.cid.DiagnosticImagingReportDocumentTitles_CID7000;
import cdac.medinfo.sdk.dcm30_04.templates.cid.DiagnosticImagingReportHeadings_CID7001;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_DiagnosticImagingReportDocumentTitles;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_DiagnosticImagingReportHeadings;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation;

/**
 * This class represents ImagingReportWithConditionalRadiationExposureAndProtectionInformation_TID2006  
 */
public class ImagingReportWithConditionalRadiationExposureAndProtectionInformation_TID2006 extends Template{
	/**
	 * Object of DiagnosticImagingReportHeadings_CID7001 
	 */
	private DiagnosticImagingReportDocumentTitles_CID7000 objDiagnosticImagingReportDocumentTitles_CID7000 = null;
	/**
	 * Object of DiagnosticImagingReportHeadings_CID7001 
	 */
	private DiagnosticImagingReportHeadings_CID7001 objDiagnosticImagingReportHeadings_CID7001 = null;
	/**
	 * Object of EquivalentMeaningOfConceptName_TID1210
	 */
	private EquivalentMeaningOfConceptName_TID1210 objEquivalentMeaningOfConceptName_TID1210;
	/**
	 * Object of LanguageOfContentItemAndDescendants_TID1204
	 */
	private LanguageOfContentItemAndDescendants_TID1204 objLanguageOfContentItemAndDescendants_TID1204;
	/**
	 * Object of ObservationContext_TID1001
	 */
	private ObservationContext_TID1001 objObservationContext_TID1001;
	/**
	 * Object of ImagingProcedureDescription_TID2007
	 */
	private ImagingProcedureDescription_TID2007 objImagingProcedureDescription_TID2007;
	/**
	 * Object of ReportNarrative_TID2002. 
	 */

	private ReportNarrative_TID2002 objReportNarrative_TID2002 = null;
	/**
	 * Object of RadiationExposureAndProtectionInformation_TID2008. 
	 */

	private RadiationExposureAndProtectionInformation_TID2008 objRadiationExposureAndProtectionInformation_TID2008 = null;
	/**
	 * Retrieves ObservationContext_TID1001 
	 * @return objObservationContext_TID1001 Object of ObservationContext_TID1001 
	 */
	public ObservationContext_TID1001 getObservationContext() 
	{
		if(null == this.objObservationContext_TID1001)
			this.objObservationContext_TID1001 = new ObservationContext_TID1001(getSRTree());
		return this.objObservationContext_TID1001;
	}
	/**
	 * Retrieves the object of ReportNarrative_TID2002 which provides the methods for setting different
	 * attributes of Procedure Context.
	 * @return objReportNarrative_TID2002 object ReportNarrative_TID2002
	 */
	public ReportNarrative_TID2002 getReportNarrative() 
	{
		if(null == this.objReportNarrative_TID2002)
			this.objReportNarrative_TID2002 = new ReportNarrative_TID2002(getSRTree());
		return this.objReportNarrative_TID2002;
	}
	/**
	 * Retrieves ImagingProcedureDescription_TID2007 
	 * @return objImagingProcedureDescription_TID2007 Object of ImagingProcedureDescription_TID2007 
	 */
	public ImagingProcedureDescription_TID2007 getImagingProcedureDescription() 
	{
		if(null == this.objImagingProcedureDescription_TID2007)
			this.objImagingProcedureDescription_TID2007 = new ImagingProcedureDescription_TID2007(getSRTree());
		return this.objImagingProcedureDescription_TID2007;
	}
	public ImagingReportWithConditionalRadiationExposureAndProtectionInformation_TID2006(SRTree objTree) {
		super(objTree);
	}
	/**
	 * Retrieves EquivalentMeaningOfConceptName_TID1210 
	 * @return objEquivalentMeaningOfConceptName_TID1210 Object of EquivalentMeaningOfConceptName_TID1210 
	 */
	public EquivalentMeaningOfConceptName_TID1210 getEquivalentMeaningOfConceptName() 
	{
		if(null == this.objEquivalentMeaningOfConceptName_TID1210)
			this.objEquivalentMeaningOfConceptName_TID1210 = new EquivalentMeaningOfConceptName_TID1210(getSRTree());
		return this.objEquivalentMeaningOfConceptName_TID1210;
	}
	/**
	 * Retrieves the object of RadiationExposureAndProtectionInformation_TID2008 which provides the methods for setting different
	 * attributes of Procedure Context.
	 * @return objRadiationExposureAndProtectionInformation_TID2008 object RadiationExposureAndProtectionInformation_TID2008
	 */
	public RadiationExposureAndProtectionInformation_TID2008 getRadiationExposureAndProtectionInformation() 
	{
		if(null == this.objRadiationExposureAndProtectionInformation_TID2008)
			this.objRadiationExposureAndProtectionInformation_TID2008 = new RadiationExposureAndProtectionInformation_TID2008(getSRTree());
		return this.objRadiationExposureAndProtectionInformation_TID2008;
	}
	/**
	 * Retrieves LanguageOfContentItemAndDescendants_TID1204 
	 * @return objLanguageOfContentItemAndDescendants_TID1204 Object of LanguageOfContentItemAndDescendants_TID1204 
	 */
	public LanguageOfContentItemAndDescendants_TID1204 getLanguageOfContentItemandDescendants() 
	{
		if(null == this.objLanguageOfContentItemAndDescendants_TID1204)
			this.objLanguageOfContentItemAndDescendants_TID1204 = new LanguageOfContentItemAndDescendants_TID1204(getSRTree());
		return this.objLanguageOfContentItemAndDescendants_TID1204;
	}
	public void setDiagnosticImagingReportHeadings(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent,EnumCM_DiagnosticImagingReportHeadings enumDiagnosticImagingReportHeadings)
	{
		if(objDiagnosticImagingReportHeadings_CID7001 == null )
			objDiagnosticImagingReportHeadings_CID7001 = new DiagnosticImagingReportHeadings_CID7001();

		objDiagnosticImagingReportHeadings_CID7001.setDiagnosticImagingReportHeadings(enumDiagnosticImagingReportHeadings);

		// get string values for all
		String strCodeMeaning = objDiagnosticImagingReportHeadings_CID7001.getCodeMeaning();
		String strCodeValue = objDiagnosticImagingReportHeadings_CID7001.getCodeValue();
		String strCodeSchemeDesignator = objDiagnosticImagingReportHeadings_CID7001.getCodingSchemeDesignator();
		/**
		 * 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, strCodeSchemeDesignator, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setProcedurereported(int[] arrPosition)
	{
		
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.PROCEDURE_REPORTED.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.PROCEDURE_REPORTED_121058.getValue();
		String strCSD2 = 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 , strCSD2, "", "", "", "");
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setDiagnosticImagingReportDocumentTitles(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent,EnumCM_DiagnosticImagingReportDocumentTitles enumDiagnosticImagingReportDocumentTitles)
	{
		if(objDiagnosticImagingReportDocumentTitles_CID7000 == null )
			objDiagnosticImagingReportDocumentTitles_CID7000 = new DiagnosticImagingReportDocumentTitles_CID7000();

		objDiagnosticImagingReportDocumentTitles_CID7000.setDiagnosticImagingReportDocumentTitles(enumDiagnosticImagingReportDocumentTitles);

		// get string values for all
		String strCodeMeaning = objDiagnosticImagingReportDocumentTitles_CID7000.getCodeMeaning();
		String strCodeValue = objDiagnosticImagingReportDocumentTitles_CID7000.getCodeValue();
		String strCodeSchemeDesignator = objDiagnosticImagingReportDocumentTitles_CID7000.getCodingSchemeDesignator();
		/**
		 * 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, strCodeSchemeDesignator, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setCurrentProcedureDescriptions(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.CURRENT_PROCEDURE_DESCRIPTION.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.CURRENT_PROCEDURE_DESCRIPTION_55111_9.getValue();
		String strCSD2 = EnumCodingSchemeDesignator.LN.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, strCSD2, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setPriorProcedureDescriptions(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.PRIOR_PROCEDURE_DESCRIPTION.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.PRIOR_PROCEDURE_DESCRIPTION_55114_3.getValue();
		String strCSD2 = EnumCodingSchemeDesignator.LN.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, strCSD2, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setHistory(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.HISTORY.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.HISTORY_11329_0.getValue();
		String strCSD2 = EnumCodingSchemeDesignator.LN.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, strCSD2, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setRequest(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.REQUEST.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.REQUEST_55115_0.getValue();
		String strCSD2 = EnumCodingSchemeDesignator.LN.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, strCSD2, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setImpressions(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.IMPRESSIONS.getValue();
		String strCodeValue = EnumCV_ImagingReportWithConditionalRadiationExposureAndProtectionInformation.IMPRESSIONS_19005_8.getValue();
		String strCSD2 = EnumCodingSchemeDesignator.LN.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, strCSD2, enumContinuityOfContent);
		getSRTree().addChild(objContentSequenceItem);
	}
}
