Class MFA

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class MFA extends AbstractSegment

Represents an HL7 MFA message segment (Master File Acknowledgment). This segment has the following fields:

  • MFA-1: Record-Level Event Code (ID)
  • MFA-2: MFN Control ID (ST) optional
  • MFA-3: Event Completion Date/Time (TS) optional
  • MFA-4: MFN Record Level Error Return (CE)
  • MFA-5: Primary Key Value - MFA (CE) repeating
  • MFA-6: Primary Key Value Type - MFA (ID) repeating
See Also:
  • Constructor Details

  • Method Details

    • getRecordLevelEventCode

      Returns MFA-1: "Record-Level Event Code" - creates it if necessary
    • getMfa1_RecordLevelEventCode

      Returns MFA-1: "Record-Level Event Code" - creates it if necessary
    • getMFNControlID

      public ST getMFNControlID()
      Returns MFA-2: "MFN Control ID" - creates it if necessary
    • getMfa2_MFNControlID

      Returns MFA-2: "MFN Control ID" - creates it if necessary
    • getEventCompletionDateTime

      Returns MFA-3: "Event Completion Date/Time" - creates it if necessary
    • getMfa3_EventCompletionDateTime

      Returns MFA-3: "Event Completion Date/Time" - creates it if necessary
    • getMFNRecordLevelErrorReturn

      Returns MFA-4: "MFN Record Level Error Return" - creates it if necessary
    • getMfa4_MFNRecordLevelErrorReturn

      Returns MFA-4: "MFN Record Level Error Return" - creates it if necessary
    • getPrimaryKeyValueMFA

      Returns all repetitions of Primary Key Value - MFA (MFA-5).
    • getMfa5_PrimaryKeyValueMFA

      Returns all repetitions of Primary Key Value - MFA (MFA-5).
    • getPrimaryKeyValueMFAReps

      Returns a count of the current number of repetitions of Primary Key Value - MFA (MFA-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPrimaryKeyValueMFA

      public CE getPrimaryKeyValueMFA(int rep)
      Returns a specific repetition of MFA-5: "Primary Key Value - MFA" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfa5_PrimaryKeyValueMFA

      public CE getMfa5_PrimaryKeyValueMFA(int rep)
      Returns a specific repetition of MFA-5: "Primary Key Value - MFA" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfa5_PrimaryKeyValueMFAReps

      Returns a count of the current number of repetitions of Primary Key Value - MFA (MFA-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPrimaryKeyValueMFA

      public CE insertPrimaryKeyValueMFA(int rep) throws HL7Exception
      Inserts a repetition of MFA-5: "Primary Key Value - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertMfa5_PrimaryKeyValueMFA

      Inserts a repetition of MFA-5: "Primary Key Value - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removePrimaryKeyValueMFA

      public CE removePrimaryKeyValueMFA(int rep) throws HL7Exception
      Removes a repetition of MFA-5: "Primary Key Value - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeMfa5_PrimaryKeyValueMFA

      Removes a repetition of MFA-5: "Primary Key Value - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getPrimaryKeyValueTypeMFA

      Returns all repetitions of Primary Key Value Type - MFA (MFA-6).
    • getMfa6_PrimaryKeyValueTypeMFA

      Returns all repetitions of Primary Key Value Type - MFA (MFA-6).
    • getPrimaryKeyValueTypeMFAReps

      Returns a count of the current number of repetitions of Primary Key Value Type - MFA (MFA-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPrimaryKeyValueTypeMFA

      public ID getPrimaryKeyValueTypeMFA(int rep)
      Returns a specific repetition of MFA-6: "Primary Key Value Type - MFA" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfa6_PrimaryKeyValueTypeMFA

      Returns a specific repetition of MFA-6: "Primary Key Value Type - MFA" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfa6_PrimaryKeyValueTypeMFAReps

      Returns a count of the current number of repetitions of Primary Key Value Type - MFA (MFA-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPrimaryKeyValueTypeMFA

      public ID insertPrimaryKeyValueTypeMFA(int rep) throws HL7Exception
      Inserts a repetition of MFA-6: "Primary Key Value Type - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertMfa6_PrimaryKeyValueTypeMFA

      Inserts a repetition of MFA-6: "Primary Key Value Type - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removePrimaryKeyValueTypeMFA

      public ID removePrimaryKeyValueTypeMFA(int rep) throws HL7Exception
      Removes a repetition of MFA-6: "Primary Key Value Type - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeMfa6_PrimaryKeyValueTypeMFA

      Removes a repetition of MFA-6: "Primary Key Value Type - MFA" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment