/*******************************************************************************
 *  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_SubjectContextDevice;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_SubjectContextDevice;
/**
 * This class represents SubjectContextDevice_TID1010
 */
public class SubjectContextDevice_TID1010  extends Template{

	/**
	  * Instantiates a new SubjectContextDevice_TID1010 Template.
	  * @param objTree Object of SRTree.
	  */
	public SubjectContextDevice_TID1010(SRTree objTree)
	{
		super(objTree);
	}	
	public void setDeviceSubjectUID(int[] arrPosition, String strTrackingUniqueIdentifier)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_UID.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_UID_121198.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * Creating a node of Value Type UIDREF and adding this node at specified identifier in the SR Tree.
		 */
		ContentSequenceItem objContentSequenceItem = getSRTree().createUIDREFNode(arrPosition, strCodeMeaning, strCodeValue, strCSD, strTrackingUniqueIdentifier);
		getSRTree().addChild(objContentSequenceItem);
	}
	
	public void setDeviceSubjectName(int[] arrPosition, String strDeviceSubjectName)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_NAME.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_NAME_121193.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, strDeviceSubjectName);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setDeviceSubjectManufacturer(int[] arrPosition, String strDeviceSubjectManufacturer)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_MANUFACTURE.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_MANUFACTURE_121194.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, strDeviceSubjectManufacturer);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setDeviceSubjectModelName(int[] arrPosition, String strDeviceSubjectModelName)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_MODEL_NAME.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_MODEL_NAME_121195.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, strDeviceSubjectModelName);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setDeviceSubjectSerialNumber(int[] arrPosition, String strDeviceSubjectSerialNumber)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_SERIAL_NUMBER.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_SERIAL_NUMBER_121196.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, strDeviceSubjectSerialNumber);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setDeviceSubjectPhysicalLocationduringobservation(int[] arrPosition, String strDeviceSubjectPhysicalLocationduringobservation)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_SubjectContextDevice.DEVICE_SUBJECT_PHYSICAL_LOCATION_DURING_OBSERVATION.getValue();
		String strCodeValue = EnumCV_SubjectContextDevice.DEVICE_SUBJECT_PHYSICAL_LOCATION_DURING_OBSERVATION_121197.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, strDeviceSubjectPhysicalLocationduringobservation);
		getSRTree().addChild(objContentSequenceItem);
	}
}
