cdac.medinfo.sdk.hl7282.hl7model.messages.claimsandreimbursement

## Class EHC_E10

- java.lang.Object
- - cdac.medinfo.sdk.hl7282.baselibs.messages.Message
  - - cdac.medinfo.sdk.hl7282.hl7model.messages.claimsandreimbursement.EHC_E10

-     public final class EHC_E10
      extends Message

  EHC_E10 - Edit/Adjudication Results (event E10). This message is used to send edit and/or adjudication results for a HealthCare Services Invoice.

  Represents a EHC_E10 message structure (see chapter 16.3.5). This structure contains the following elements:

  0: MSH (Message Header) SINGLE_COMPULSARY
  1: SFT (Software Segment) MULTIPLE_OPTIONAL
  2: UAC (User Authentication Credential) MULTIPLE_OPTIONAL
  3: MSA (Message Acknowledgment) SINGLE_COMPULSARY
  4: ERR (Error) MULTIPLE_OPTIONAL
  5: INVOICE_PROCESSING_RESULTS_INFO (a Group of EHC_E10)
  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.

  Following is the step to create message
  Before that, respective Message Source and Message Recipient to be set on Message Factory.

  EHC_E10 objE10 = (EHC_E10)MessageFactory.createInstance().createSendSupportedMessage("EHC", "E10");

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addErrorSegment(ERR objERR)` Adds Error Segment(ERR) to this message.
    `void` | `addErrorSegment(ISingleCollection<ERR> objERRSegmentCollection)` Adds collection of Error Segment(ERR) to this message.
    `void` | `addInvoiceProcessingResultsInfoGroup(IGroup objGroup)` Adds INVOICE_PROCESSING_RESULTS_INFO to this message.
    `void` | `addInvoiceProcessingResultsInfoGroups(ISingleCollection<IGroup> objSingleCollection)` Adds Collection of INVOICE_PROCESSING_RESULTS_INFO to this message.
    `void` | `addSoftwareSegment(ISingleCollection<SFT> objSFTSegmentCollection)` Adds collection of Software Segment(SFT) to this message.
    `void` | `addSoftwareSegment(SFT objSFT)` Adds Software Segment(SFT) to this message.
    `void` | `addUserAuthenticationCredentialSegment(ISingleCollection<UAC> objUACSegmentCollection)` Adds collection of User Authentication Credential Segment(UAC) to this message.
    `void` | `addUserAuthenticationCredentialSegment(UAC objUAC)` Adds User Authentication Credential Segment(UAC) to this message.
    `ISingleCollection<ERR>` | `getErrorSegments()` Retrieves Collection of Error Segments(ERR) present in this message.
    `ISingleCollection<IGroup>` | `getInvoiceProcessingResultsInfoGroups()` Retrieves Collection of INVOICE_PROCESSING_RESULTS_INFO present in this message.
    `MSA` | `getMessageAcknowledgmentSegment()` Retrieves Message Acknowledgment(MSA) segment present in this message
    `ISingleCollection<SFT>` | `getSoftwareSegments()` Retrieves Collection of Software Segments(SFT) present in this message.
    `ISingleCollection<UAC>` | `getUserAuthenticationCredentialSegments()` Retrieves Collection of User Authentication Credential Segments(UAC) present in this message.
    `void` | `setMessageAcknowledgmentSegment(MSA objMSA)` Sets value of Message Acknowledgment segment for this message,overwrites if already present.

    - ### Methods inherited from class cdac.medinfo.sdk.hl7282.baselibs.messages.Message

      `contains, dumpMessage, dumpMessage, getACKMode, getGroup, getGroupMap, getHeader, getMessageCode, getMessageControlID, getMessageStructure, getQueryUserParameters, getSegment, getSegmentSet, getSubscriptionType, getTriggerEvent, isQuery, isResponse, populate, removeGroup, removeSegment, removeSegment, removeSegmentAttribute, removeSegmentAttribute, removeSegmentAttribute, removeSegments, setHeader, setSubscriptionType, updateSegmentAttribute, updateSegmentAttribute, validate, writeToXML, writeToXML`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getSoftwareSegments

          public ISingleCollection<SFT> getSoftwareSegments()

      Retrieves Collection of Software Segments(SFT) present in this message.
      Returns:
        ISingleCollection - Collection of Software Segments(SFT) present in this message.

    - #### addSoftwareSegment

          public void addSoftwareSegment(SFT objSFT)

      Adds Software Segment(SFT) to this message.
      Parameters:
        `objSFT` - Specified Software Segment(SFT) to be added in this message to this message.

    - #### addSoftwareSegment

          public void addSoftwareSegment(ISingleCollection<SFT> objSFTSegmentCollection)

      Adds collection of Software Segment(SFT) to this message.
      Parameters:
        `objSFTSegmentCollection` - Collection of Software Segments to add in this message

    - #### getUserAuthenticationCredentialSegments

          public ISingleCollection<UAC> getUserAuthenticationCredentialSegments()

      Retrieves Collection of User Authentication Credential Segments(UAC) present in this message.
      Returns:
        ISingleCollection - Collection of User Authentication Credential Segments(UAC) present in this message.

    - #### addUserAuthenticationCredentialSegment

          public void addUserAuthenticationCredentialSegment(UAC objUAC)

      Adds User Authentication Credential Segment(UAC) to this message.
      Parameters:
        `objUAC` - Specified User Authentication Credential Segment(UAC) to be added in this message to this message.

    - #### addUserAuthenticationCredentialSegment

          public void addUserAuthenticationCredentialSegment(ISingleCollection<UAC> objUACSegmentCollection)

      Adds collection of User Authentication Credential Segment(UAC) to this message.
      Parameters:
        `objUACSegmentCollection` - Collection of User Authentication Credential Segments to add in this message

    - #### getMessageAcknowledgmentSegment

          public MSA getMessageAcknowledgmentSegment()

      Retrieves Message Acknowledgment(MSA) segment present in this message
      Returns:
        MSA - the Message Acknowledgment Segment present in this message or null if unavailable.

    - #### setMessageAcknowledgmentSegment

          public void setMessageAcknowledgmentSegment(MSA objMSA)

      Sets value of Message Acknowledgment segment for this message,overwrites if already present.
      Parameters:
        `objMSA` - Specified Message Acknowledgment Segment

    - #### getErrorSegments

          public ISingleCollection<ERR> getErrorSegments()

      Retrieves Collection of Error Segments(ERR) present in this message.
      Returns:
        ISingleCollection - Collection of Error Segments(ERR) present in this message.

    - #### addErrorSegment

          public void addErrorSegment(ERR objERR)

      Adds Error Segment(ERR) to this message.
      Parameters:
        `objERR` - Specified Error Segment(ERR) to be added in this message to this message.

    - #### addErrorSegment

          public void addErrorSegment(ISingleCollection<ERR> objERRSegmentCollection)

      Adds collection of Error Segment(ERR) to this message.
      Parameters:
        `objERRSegmentCollection` - Collection of Error Segments to add in this message

    - #### getInvoiceProcessingResultsInfoGroups

          public ISingleCollection<IGroup> getInvoiceProcessingResultsInfoGroups()

      Retrieves Collection of INVOICE_PROCESSING_RESULTS_INFO present in this message.
      Returns:
        ISingleCollection - Collection of INVOICE_PROCESSING_RESULTS_INFO present in this Message.

    - #### addInvoiceProcessingResultsInfoGroups

          public void addInvoiceProcessingResultsInfoGroups(ISingleCollection<IGroup> objSingleCollection)

      Adds Collection of INVOICE_PROCESSING_RESULTS_INFO to this message.
      Parameters:
        `objSingleCollection` - - Specified INVOICE_PROCESSING_RESULTS_INFO Collection.

    - #### addInvoiceProcessingResultsInfoGroup

          public void addInvoiceProcessingResultsInfoGroup(IGroup objGroup)

      Adds INVOICE_PROCESSING_RESULTS_INFO to this message.
      Parameters:
        `objGroup` - Specified INVOICE_PROCESSING_RESULTS_INFO.