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

import cdac.medinfo.sdk.dcm30_04.srtree.SRTree;

/**
 * This class represents ObservationContext - TID1001
 */
public class ObservationContext_TID1001 extends Template
{
	/**
	 * Object of ObserverContext_TID1002. 
	 */

	private ObserverContext_TID1002 objObserverContext_TID1002 = null;

	/**
	 * Object of ProcedureContext_TID1005. 
	 */

	private ProcedureContext_TID1005 objProcedureContext_TID1005 = null;

	/**
	 * Object of SubjectContext_TID1006. 
	 */

	private SubjectContext_TID1006 objSubjectContext_TID1006 = null;

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

	/**
	 * Retrieves the object of ObserverContext_TID1002 which provides the methods for setting different
	 * attributes of Observer Context.
	 *  @return objObserverContext_TID1002 object ObserverContext_TID1002
	 */
	public ObserverContext_TID1002 getObserverContext_TID1002() 
	{
		if(null == this.objObserverContext_TID1002)
			this.objObserverContext_TID1002 = new ObserverContext_TID1002(getSRTree());
		return this.objObserverContext_TID1002;
	}

	/**
	 * Retrieves the object of ProcedureContext_TID1005 which provides the methods for setting different
	 * attributes of Procedure Context.
	 * @return objProcedureContext_TID1005 object ProcedureContext_TID1005
	 */
	public ProcedureContext_TID1005 getProcedureContext_TID1005() 
	{
		if(null == this.objProcedureContext_TID1005)
			this.objProcedureContext_TID1005 = new ProcedureContext_TID1005(getSRTree());
		return this.objProcedureContext_TID1005;
	}

	/**
	 * Retrieves the object of SubjectContext_TID1006 which provides the methods for setting different
	 * attributes of Subject Context.
	 * @return SubjectContext_TID1006 object SubjectContext_TID1006
	 */
	public SubjectContext_TID1006 getSubjectContext_TID1006() 
	{
		if(null == this.objSubjectContext_TID1006)
			this.objSubjectContext_TID1006 = new SubjectContext_TID1006(getSRTree());
		return this.objSubjectContext_TID1006;
	}
}
