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

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;

/**
 * ADT_A06 - Change an Outpatient to an Inpatient (Event A06).
 * This event is use when a patient, who is present for a non-admitted visit is
 * being admitted after an evaluation of the seriousness of the patient's condition.
 * <p>Represents a ADT_A06 message structure (see chapter 3.2.6). 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: EVN (Event Type Segment) <b>SINGLE_COMPULSARY</b><br>
 * 4: PID (Patient Identification Segment) <b>SINGLE_COMPULSARY</b><br>
 * 5: PD1 (Patient Additional Demographic Segment) <b>SINGLE_OPTIONAL</b><br>
 * 6: ARV (Access Restrictions) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 7: ROL (Role Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 8: MRG (Merge Information) <b>SINGLE_OPTIONAL</b><br>
 * 9: NK1 (Next of Kin / Associated Parties Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 10: PV1 (Patient Visit Segment) <b>SINGLE_COMPULSARY</b><br>
 * 11: PV2 (Patient Visit - Additional Information Segment) <b>SINGLE_OPTIONAL</b><br>
 * 12: ARV (Access Restrictions) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 13: ROL (Role Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 14: DB1 (Disability Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 15: OBX (Observation/Result Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 16: AL1 (Patient Allergy Information Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 17: DG1 (Diagnosis Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 18: DRG (Diagnosis Related Group Segment) <b>SINGLE_OPTIONAL</b><br>
 * 19: ADT_A06_PROCEDURE (a Group of segments in ADT_A06 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 20: GT1 (Guarantor Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 21: INSURANCE (a Group of segments in ADT_A06 message) <b>MULTIPLE_OPTIONAL</b><br>
 * 22: ACC (Accident Segment) <b>SINGLE_OPTIONAL</b><br>
 * 23: UB1 (UB82 Segment) <b>SINGLE_OPTIONAL</b><br>
 * 24: UB2 (UB92 Data Segment) <b>SINGLE_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>ADT_A06 objA06 = (ADT_A06)MessageFactory.createInstance().createSendSupportedMessage("ADT", "A06");</p>
 */
public final class ADT_A06 extends ADT_A06_Common 
{
	/**
	 *  Constructs the ADT_A06 message.
	 */
	ADT_A06(IMap objMessageMap)
	{
		super(objMessageMap, EnumMessageCode.ADT.getValue(), EnumTriggerEvent.A06.getValue(), EnumMessageStructure.ADT_A06.getValue());
	}
}
