/*******************************************************************************
 *  Copyright 2017 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.hl7282.hl7model.messages.observationreporting;

import cdac.medinfo.sdk.hl7282.utils.EnumMessageCode;
import cdac.medinfo.sdk.hl7282.utils.EnumMessageStructure;
import cdac.medinfo.sdk.hl7282.utils.EnumTriggerEvent;
import cdac.medinfo.sdk.hl7282.utils.IMap;

/**
 * ORU_R30 - Unsolicited Point-Of-Care Observation Message Without Existing Order - Place An Order (Event R30). 
 * This message is used to fire instructs for the receiving system to create a new
 * order for the observation(s) contained in the message.
 * <p>Represents a ORU_R30 message structure (see chapter 7.3.4). This structure contains the 
 * following elements: </p>
 * 0: MSH (Message Header Segment) <b>SINGLE_COMPULSARY</b><br>
 * 1: SFT (Software Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 2: UAC (User Authentication Credential) <b>SINGLE OPTIONAL</b><br/>
 * 3: PID (Patient Identification Segment) <b>SINGLE_COMPULSARY</b><br>
 * 4: PD1 (Patient Additional Demographic Segment) <b>SINGLE_OPTIONAL</b><br>
 * 5. PRT (Participation-for patient) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 6. ARV (Access Restrictions) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 7: PERSON OBSERVATION (a Group in ORU_R30 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 8: VISIT (a Group of segments in ORU_R30 message) <b>SINGLE_OPTIONAL</b><br>
 * 9: ORC (Common Order Segment) <b>SINGLE_COMPULSARY</b><br>
 * 10. PRT (Participation-for common order) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 11: OBR (Observation Request Segment) <b>SINGLE_COMPULSARY</b><br>
 * 12: NTE (Notes and Comments Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 13. PRT (Participation-for observation) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 14: TIMING_QTY (a Group of segments in ORU_R30 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 15: OBSERVATION (a Group of segments in ORU_R30 message) <b>MULTIPLE_COMPULSARY</b><br>
 * This class provides mechanism to validate message against HL7 v 2.8.2 standard.
 * The class provides accessors & mutators for the elements mentioned above.
 * These elements can be easily populated & populated values can be easily retrieved.
 * The class has validate method which validates Message against HL7 v 2.8.2 standard.
 *
 * <p>Following is the step to create message<br>
 * Before that, respective Message Source and Message Recipient to be set on Message Factory.</p>
 * <p>ORU_R30 objR30 = (ORU_R30)MessageFactory.createInstance().createSendSupportedMessage("ORU", "R30");</p>
 */
public final class ORU_R30 extends ORU_R30_Common 
{


	/**
	 * Constructs the ORU_R30 segment.
	 */
	ORU_R30(IMap objMessageMap)
	{
		super(objMessageMap, EnumMessageCode.ORU.getValue(), EnumTriggerEvent.R30.getValue(), EnumMessageStructure.ORU_R30.getValue());
	}
}