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

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.YesNo_CID230;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_CTDoseCheckDetails;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_YesNo;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_CTDoseCheckDetails;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_Unit;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.PersonParticipant_TID1020;
import cdac.medinfo.sdk.dcm30_04.templates.generaltemplates.Template;

/**
 * This class represents CTDoseCheckDetails_TID10015
 */
public class CTDoseCheckDetails_TID10015 extends Template{

	/**
	 * Object of PersonParticipant_TID1020
	 */
	private PersonParticipant_TID1020 objPersonParticipant_TID1020 ;
	private YesNo_CID230 objYesNo_CID230;
	/**
	 * Instantiates a new CTDoseCheckDetails_TID10015 Template.
	 * @param objTree Object of SRTree.
	 */
	public CTDoseCheckDetails_TID10015(SRTree objTree)
	{
		super(objTree);
	}
	/**
	 * Retrieves PersonParticipant_TID1020 
	 * @return objPersonParticipant_TID1020 Object of PersonParticipant_TID1020 
	 */
	public PersonParticipant_TID1020 getPersonParticipant() 
	{
		if(null == this.objPersonParticipant_TID1020)
			this.objPersonParticipant_TID1020 = new PersonParticipant_TID1020(getSRTree());
		return this.objPersonParticipant_TID1020;
	}
	/**
	 * Sets the value for Dose Check Alert Details 
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setDoseCheckAlertDetails(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DOSE_CHECK_ALERT_DETAILS.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DOSE_CHECK_ALERT_DETAILS_113900.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);
	}
	
	public void setDLPAlertValueConfigured(int[] arrPosition, EnumCM_YesNo enumYesNo)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DLP_ALERT_VALUE_CONFIGURED.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DLP_ALERT_VALUE_CONFIGURED_113901.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;
		if(null== this.objYesNo_CID230)
			this.objYesNo_CID230 = new YesNo_CID230();
		this.objYesNo_CID230.setYesNo(enumYesNo);
		
		 strCM = objYesNo_CID230.getCodeMeaning();
		 strCV = objYesNo_CID230.getCodeValue();
		 strCSD = objYesNo_CID230.getCodingSchemeDesignator();
		 strSNMDCTID = objYesNo_CID230.getSNOMEDCTID();
		
		
		/**
		 * 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,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setCTDIvolAlertValueConfigured(int[] arrPosition, EnumCM_YesNo enumYesNo)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.CTDIVOL_ALERT_VALUE_CONFIGURED.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.CTDIVOL_ALERT_VALUE_CONFIGURED_113902.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;
		if(null== this.objYesNo_CID230)
			this.objYesNo_CID230 = new YesNo_CID230();
		this.objYesNo_CID230.setYesNo(enumYesNo);
		
		 strCM = objYesNo_CID230.getCodeMeaning();
		 strCV = objYesNo_CID230.getCodeValue();
		 strCSD = objYesNo_CID230.getCodingSchemeDesignator();
		 strSNMDCTID = objYesNo_CID230.getSNOMEDCTID();
		
		
		/**
		 * 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,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for DLP Alert Value
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setDLPAlertValue(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY_DOT_CM.getValue();
		String strCVForUnit = EnumCV_Unit.MGY_DOT_CM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DLP_ALERT_VALUE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DLP_ALERT_VALUE_113903.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Accumulated CTDIvol Forward Estimate
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setAccumulatedCTDIvolForwardEstimate(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY.getValue();
		String strCVForUnit = EnumCV_Unit.MGY.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.ACCUMULATED_CTDIVOL_FORWARD_ESTIMATE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.ACCUMULATED_CTDIVOL_FORWARD_ESTIMATE_113906.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for Accumulated DLP Forward Estimate
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setAccumulatedDLPForwardEstimate(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY_DOT_CM.getValue();
		String strCVForUnit = EnumCV_Unit.MGY_DOT_CM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.ACCUMULATED_DLP_FORWARD_ESTIMATE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.ACCUMULATED_DLP_FORWARD_ESTIMATE_113905.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for CTDIvol Alert Value
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setCTDIvolAlertValue(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY.getValue();
		String strCVForUnit = EnumCV_Unit.MGY.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.CTDIVOL_ALERT_VALUE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.CTDIVOL_ALERT_VALUE_113904.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for DLP NotificationValue
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setDLPNotificationValue(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY_DOT_CM.getValue();
		String strCVForUnit = EnumCV_Unit.MGY_DOT_CM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DLP_NOTIFICATION_VALUE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DLP_NOTIFICATION_VALUE_113911.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for CTDIvol NotificationValue
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setCTDIvolNotificationValue(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY.getValue();
		String strCVForUnit = EnumCV_Unit.MGY.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.CTDIVOL_NOTIFICATION_VALUE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.CTDIVOL_NOTIFICATION_VALUE_113912.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for DLP Forward Estimate
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setDLPForwardEstimate(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY_DOT_CM.getValue();
		String strCVForUnit = EnumCV_Unit.MGY_DOT_CM.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DLP_FORWARD_ESTIMATE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DLP_FORWARD_ESTIMATE_113913.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	/**
	 * Sets the value for CTDIvol Forward Estimate
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param arrNumericValue String array for Numeric Value.
	 */
	public void setCTDIvolForwardEstimate(int[] arrPosition,String[] arrNumericValue)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCMForUnit = EnumCM_Unit.MGY.getValue();
		String strCVForUnit = EnumCV_Unit.MGY.getValue();
		String strCSDForUnit = EnumCodingSchemeDesignator.UCUM.getValue();

		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.CTDIVOL_FORWARD_ESTIMATE.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.CTDIVOL_FORWARD_ESTIMATE_113914.getValue();
		String strCSD = EnumCodingSchemeDesignator.DCM.getValue();

		ContentSequenceItem objContentSequenceItem = getSRTree().createNumNode(arrPosition,strCodeMeaning,strCodeValue,strCSD,arrNumericValue,strCVForUnit,strCSDForUnit,"",strCMForUnit,"","","","");
		getSRTree().addChild(objContentSequenceItem);
	}
	
	/**
	 * Sets the value for Reason for Proceeding
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param strReasonForProceeding String value for Proceeding.
	 */
	public void setReasonForProceeding(int[] arrPosition, String strReasonForProceeding)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.REASON_FOR_PROCEEDING.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.REASON_FOR_PROCEEDING_113907.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, strReasonForProceeding);
		getSRTree().addChild(objContentSequenceItem);
	}

	/**
	 * Sets the value for Dose Check Notification Details
	 * @param arrPosition Identifier which shows the position of the node in the SR Tree.
	 * @param enumContinuityOfContent Enumerated Value for ContinuityOfContent.
	 */
	public void setDoseCheckNotificationDetails(int[] arrPosition, EnumContinuityOfContent enumContinuityOfContent)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DOSE_CHECK_NOTIFICATION_DETAILS.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DOSE_CHECK_NOTIFICATION_DETAILS_113908.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);
	}
	public void setDLPNotificationValueConfigured(int[] arrPosition, EnumCM_YesNo enumYesNo)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.DLP_NOTIFICATION_VALUE_CONFIGURED.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.DLP_NOTIFICATION_VALUE_CONFIGURED_113909.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;
		if(null== this.objYesNo_CID230)
			this.objYesNo_CID230 = new YesNo_CID230();
		this.objYesNo_CID230.setYesNo(enumYesNo);
		
		 strCM = objYesNo_CID230.getCodeMeaning();
		 strCV = objYesNo_CID230.getCodeValue();
		 strCSD = objYesNo_CID230.getCodingSchemeDesignator();
		 strSNMDCTID = objYesNo_CID230.getSNOMEDCTID();
		
		
		/**
		 * 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,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
	public void setCTDIvolNotificationValueConfigured(int[] arrPosition, EnumCM_YesNo enumYesNo)
	{
		/**
		 * Retrieves the corresponding values of CodeMeaning,CodeValue and CodingSchemeDesignator.
		 */
		String strCodeMeaning = EnumCM_CTDoseCheckDetails.CTDIVOL_NOTIFICATION_VALUE_CONFIGURED.getValue();
		String strCodeValue = EnumCV_CTDoseCheckDetails.CTDIVOL_NOTIFICATION_VALUE_CONFIGURED_113910.getValue();
		String strCSDesg = EnumCodingSchemeDesignator.DCM.getValue();
		String strCM,strCV,strCSD,strSNMDCTID;
		if(null== this.objYesNo_CID230)
			this.objYesNo_CID230 = new YesNo_CID230();
		this.objYesNo_CID230.setYesNo(enumYesNo);
		
		 strCM = objYesNo_CID230.getCodeMeaning();
		 strCV = objYesNo_CID230.getCodeValue();
		 strCSD = objYesNo_CID230.getCodingSchemeDesignator();
		 strSNMDCTID = objYesNo_CID230.getSNOMEDCTID();
		
		
		/**
		 * 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,strSNMDCTID);
		getSRTree().addChild(objContentSequenceItem);
	}
}
