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

/**
 * PEX_P07 - Product Experience Message (Event P07).
 * This message is use to transfer information related to an adverse event occurring
 * while a patient is exposed to a product(system).
 * <p>Represents a PEX_P07 message structure (see chapter 7.11.1). 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. PRT (Participation-for patient) <b>MULTIPLE_OPTIONAL</b><br/> 
 * 7. ARV (Access Restrictions) <b>MULTIPLE_OPTIONAL</b><br/>
 * 8: NTE (Notes and Comments Segment) <b>MULTIPLE_OPTIONAL</b><br>
 * 9: VISIT (a Group of segments in PEX_P07 message) <b>SINGLE_OPTIONAL</b><br>
 * 10: EXPERIENCE (a Group of segments in PEX_P07 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>PEX_P07 objP07 = (PEX_P07)MessageFactory.createInstance().createSendSupportedMessage("PEX", "P07");</p>
 */
public final class PEX_P07 extends PEX_P07_Common 
{

	/**
	 * Constructs the PEX_P07 message.
	 */
	PEX_P07(IMap objMessageMap)
	{
		super(objMessageMap, EnumMessageCode.PEX.getValue(), EnumTriggerEvent.P07.getValue(), EnumMessageStructure.PEX_P07.getValue());
	}
}