Class MFE

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class MFE extends AbstractSegment

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

  • MFE-1: Record-Level Event Code (ID)
  • MFE-2: MFN Control ID (ST) optional
  • MFE-3: Effective Date/Time (TS) optional
  • MFE-4: Primary Key Value - MFE (Varies) repeating
  • MFE-5: Primary Key Value Type (ID) repeating
See Also:
  • Constructor Details

  • Method Details

    • getRecordLevelEventCode

      Returns MFE-1: "Record-Level Event Code" - creates it if necessary
    • getMfe1_RecordLevelEventCode

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

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

      Returns MFE-2: "MFN Control ID" - creates it if necessary
    • getEffectiveDateTime

      Returns MFE-3: "Effective Date/Time" - creates it if necessary
    • getMfe3_EffectiveDateTime

      Returns MFE-3: "Effective Date/Time" - creates it if necessary
    • getPrimaryKeyValueMFE

      Returns all repetitions of Primary Key Value - MFE (MFE-4).
    • getMfe4_PrimaryKeyValueMFE

      Returns all repetitions of Primary Key Value - MFE (MFE-4).
    • getPrimaryKeyValueMFEReps

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

      public Varies getPrimaryKeyValueMFE(int rep)
      Returns a specific repetition of MFE-4: "Primary Key Value - MFE" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfe4_PrimaryKeyValueMFE

      Returns a specific repetition of MFE-4: "Primary Key Value - MFE" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfe4_PrimaryKeyValueMFEReps

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

      public Varies insertPrimaryKeyValueMFE(int rep) throws HL7Exception
      Inserts a repetition of MFE-4: "Primary Key Value - MFE" 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)
    • insertMfe4_PrimaryKeyValueMFE

      Inserts a repetition of MFE-4: "Primary Key Value - MFE" 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)
    • removePrimaryKeyValueMFE

      public Varies removePrimaryKeyValueMFE(int rep) throws HL7Exception
      Removes a repetition of MFE-4: "Primary Key Value - MFE" 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)
    • removeMfe4_PrimaryKeyValueMFE

      Removes a repetition of MFE-4: "Primary Key Value - MFE" 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)
    • getPrimaryKeyValueType

      Returns all repetitions of Primary Key Value Type (MFE-5).
    • getMfe5_PrimaryKeyValueType

      Returns all repetitions of Primary Key Value Type (MFE-5).
    • getPrimaryKeyValueTypeReps

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

      public ID getPrimaryKeyValueType(int rep)
      Returns a specific repetition of MFE-5: "Primary Key Value Type" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfe5_PrimaryKeyValueType

      public ID getMfe5_PrimaryKeyValueType(int rep)
      Returns a specific repetition of MFE-5: "Primary Key Value Type" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getMfe5_PrimaryKeyValueTypeReps

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

      public ID insertPrimaryKeyValueType(int rep) throws HL7Exception
      Inserts a repetition of MFE-5: "Primary Key Value Type" 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)
    • insertMfe5_PrimaryKeyValueType

      Inserts a repetition of MFE-5: "Primary Key Value Type" 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)
    • removePrimaryKeyValueType

      public ID removePrimaryKeyValueType(int rep) throws HL7Exception
      Removes a repetition of MFE-5: "Primary Key Value Type" 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)
    • removeMfe5_PrimaryKeyValueType

      Removes a repetition of MFE-5: "Primary Key Value Type" 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