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

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;

/**
 * RRI_I12 - Patient Referral (Event I12).
 * This message is use to sent from one healthcare provider to another regarding a specific patient.
 * The referral message contain patient demographic information, specific medical procedures  
 * to be performed and relevant clinical information pertinent to the patient's case.
 * <p>Represents a RRI_I12 message structure (see chapter 11.5.2). 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: MSA (Message Acknowledgment Segment) <b>SINGLE_OPTIONAL</b><br>
 * 4: RF1 (Referral Information Segment) <b>SINGLE_OPTIONAL</b><br>
 * 5: AUTHORIZATION_CONTACT (a Group in RRI_I12 message) <b>SINGLE_OPTIONAL</b><br>
 * 6: PROVIDER_CONTACT (a Group object) <b>MULTIPLE_COMPULSARY</b><br>
 * 7: PID (Patient Identification Segment) <b>SINGLE_COMPULSARY</b><br>
 * 8: ACC (Accident Segment) <b>SINGLE_OPTIONAL</b><br>
 * 9: DG1 (Diagnosis Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 10: DRG (Diagnosis Related Group Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 11: AL1 (Patient Allergy Information Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 12: PROCEDURE (a Group in RRI_I12 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 13: OBSERVATION (a Group in RRI_I12 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 14: PATIENT_VISIT (a Group in RRI_I12 message) <b>SINGLE_OPTIONAL</b><br>
 * 15: NTE (Notes and Comments Segment) <b>MULTIPLE_OPTIONAL</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>RRI_I12 objI12 = (RRI_I12)MessageFactory.createInstance().createSendSupportedMessage("RRI", "I12");</p>
 */
public final class RRI_I12 extends RRI_I12_Common
{
	/**
	 * Constructs the RRI_I12 message.
	 */
	RRI_I12(IMap objMessageMap)
	{
		super(objMessageMap, EnumMessageCode.RRI.getValue(), EnumTriggerEvent.I12.getValue(), EnumMessageStructure.RRI_I12.getValue());
	}
}