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

import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.SRDocumentContentModule;
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_BreastImagingReport;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_BreastImagingReport;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.LanguageOfContentItemAndDescendants_TID1204;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents BreastImagingReport - TID4200
 */
public class BreastImagingReport_TID4200 extends Template
{
	/**
	 * Object of BreastImagingReportNarrative_TID4202. 
	 */
	private BreastImagingReportNarrative_TID4202 objBreastImagingReportNarrativeTID4202 = null;
	/**
	 * Object of LanguageOfContentItemAndDescendants_TID1204. 
	 */
	private LanguageOfContentItemAndDescendants_TID1204 objLanguageOfContentItemAndDescendantsTID1204 = null;

	/**
	 * Object of BreastImagingReportSupplementaryData_TID4208. 
	 */

	private BreastImagingReportSupplementaryData_TID4208 objBreastImagingReportSupplementaryDataTID4208 = null;

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

	/**
	 * Retrieves the object of BreastImagingReportNarrative.
	 * @return objBreastImagingReportNarrativeTID4202 object of BreastImagingProcedureReported_TID4201
	 */
	public BreastImagingReportNarrative_TID4202 getBreastImagingReportNarrative() 
	{
		if(null == this.objBreastImagingReportNarrativeTID4202)
			this.objBreastImagingReportNarrativeTID4202 = new BreastImagingReportNarrative_TID4202(getSRTree());
		return this.objBreastImagingReportNarrativeTID4202;
	}
	/**
	 * Retrieves the object of LanguageOfContentItemAndDescendants.
	 * @return objLanguageOfContentItemAndDescendantsTID1204 object of LanguageOfContentItemAndDescendants_TID1204
	 */
	public LanguageOfContentItemAndDescendants_TID1204 getLanguageOfContentItemAndDescendants() 
	{
		if(null == this.objLanguageOfContentItemAndDescendantsTID1204)
			this.objLanguageOfContentItemAndDescendantsTID1204 = new LanguageOfContentItemAndDescendants_TID1204(getSRTree());
		return this.objLanguageOfContentItemAndDescendantsTID1204;
	}
	/**
	 * Retrieves the object of BreastImagingReportSupplementaryData.
	 * @return objBreastImagingReportSupplementaryDataTID4208 object of BreastImagingReportSupplementaryData_TID4208
	 */
	public BreastImagingReportSupplementaryData_TID4208 getBreastImagingReportSupplementaryData() 
	{
		if(null == this.objBreastImagingReportSupplementaryDataTID4208)
			this.objBreastImagingReportSupplementaryDataTID4208 = new BreastImagingReportSupplementaryData_TID4208(getSRTree());
		return this.objBreastImagingReportSupplementaryDataTID4208;
	}

	/**
	 * Sets the value for Breast Imaging Report.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setBreastImagingReport(EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_BreastImagingReport.BREAST_IMAGING_REPORT.getValue();
		String strCodeValue = EnumCV_BreastImagingReport.BREAST_IMAGING_REPORT_111400.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		/**
		 * Creating a node of Value Type ROOT and adding this node as root of a tree.
		 */
		SRDocumentContentModule objDocumentContentModule = getSRTree().getSRDocumentContentModule();
		getSRTree().createRoot(objDocumentContentModule,strCodeMeaning,strCodeValue , strCSD, enumContinuityOfContent);
	}
}
