Class MFR_M05_MF_QUERY

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class MFR_M05_MF_QUERY extends AbstractGroup

Represents a MFR_M05_MF_QUERY group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:

  • 1: MFE (Master File Entry)
  • 2: LOC (Location Identification)
  • 3: LCH (Location Characteristic) optional repeating
  • 4: LRL (Location Relationship) optional repeating
  • 5: LDP (Location Department) repeating
  • 6: LCH (Location Characteristic) optional repeating
  • 7: LCC (Location Charge Code) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.5.1"
    • getMFE

      public MFE getMFE()
      Returns MFE (Master File Entry) - creates it if necessary
    • getLOC

      public LOC getLOC()
      Returns LOC (Location Identification) - creates it if necessary
    • getLCH

      public LCH getLCH()
      Returns the first repetition of LCH (Location Characteristic) - creates it if necessary
    • getLCH

      public LCH getLCH(int rep)
      Returns a specific repetition of LCH (Location Characteristic) - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getLCHReps

      public int getLCHReps()
      Returns the number of existing repetitions of LCH
    • getLCHAll

      public List<LCH> getLCHAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of LCH.

      Note that unlike getLCH(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertLCH

      public void insertLCH(LCH structure, int rep) throws HL7Exception
      Inserts a specific repetition of LCH (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertLCH

      public LCH insertLCH(int rep) throws HL7Exception
      Inserts a specific repetition of LCH (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeLCH

      public LCH removeLCH(int rep) throws HL7Exception
      Removes a specific repetition of LCH (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
    • getLRL

      public LRL getLRL()
      Returns the first repetition of LRL (Location Relationship) - creates it if necessary
    • getLRL

      public LRL getLRL(int rep)
      Returns a specific repetition of LRL (Location Relationship) - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getLRLReps

      public int getLRLReps()
      Returns the number of existing repetitions of LRL
    • getLRLAll

      public List<LRL> getLRLAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of LRL.

      Note that unlike getLRL(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertLRL

      public void insertLRL(LRL structure, int rep) throws HL7Exception
      Inserts a specific repetition of LRL (Location Relationship)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertLRL

      public LRL insertLRL(int rep) throws HL7Exception
      Inserts a specific repetition of LRL (Location Relationship)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeLRL

      public LRL removeLRL(int rep) throws HL7Exception
      Removes a specific repetition of LRL (Location Relationship)
      Throws:
      HL7Exception
      See Also:
    • getLDP

      public LDP getLDP()
      Returns the first repetition of LDP (Location Department) - creates it if necessary
    • getLDP

      public LDP getLDP(int rep)
      Returns a specific repetition of LDP (Location Department) - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getLDPReps

      public int getLDPReps()
      Returns the number of existing repetitions of LDP
    • getLDPAll

      public List<LDP> getLDPAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of LDP.

      Note that unlike getLDP(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertLDP

      public void insertLDP(LDP structure, int rep) throws HL7Exception
      Inserts a specific repetition of LDP (Location Department)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertLDP

      public LDP insertLDP(int rep) throws HL7Exception
      Inserts a specific repetition of LDP (Location Department)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeLDP

      public LDP removeLDP(int rep) throws HL7Exception
      Removes a specific repetition of LDP (Location Department)
      Throws:
      HL7Exception
      See Also:
    • getLCH2

      public LCH getLCH2()
      Returns the first repetition of LCH2 (Location Characteristic) - creates it if necessary
    • getLCH2

      public LCH getLCH2(int rep)
      Returns a specific repetition of LCH (Location Characteristic) - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getLCH2Reps

      public int getLCH2Reps()
      Returns the number of existing repetitions of LCH2
    • getLCH2All

      public List<LCH> getLCH2All() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of LCH2.

      Note that unlike getLCH2(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertLCH2

      public void insertLCH2(LCH structure, int rep) throws HL7Exception
      Inserts a specific repetition of LCH2 (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertLCH2

      public LCH insertLCH2(int rep) throws HL7Exception
      Inserts a specific repetition of LCH2 (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeLCH2

      public LCH removeLCH2(int rep) throws HL7Exception
      Removes a specific repetition of LCH2 (Location Characteristic)
      Throws:
      HL7Exception
      See Also:
    • getLCC

      public LCC getLCC()
      Returns the first repetition of LCC (Location Charge Code) - creates it if necessary
    • getLCC

      public LCC getLCC(int rep)
      Returns a specific repetition of LCC (Location Charge Code) - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getLCCReps

      public int getLCCReps()
      Returns the number of existing repetitions of LCC
    • getLCCAll

      public List<LCC> getLCCAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of LCC.

      Note that unlike getLCC(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertLCC

      public void insertLCC(LCC structure, int rep) throws HL7Exception
      Inserts a specific repetition of LCC (Location Charge Code)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertLCC

      public LCC insertLCC(int rep) throws HL7Exception
      Inserts a specific repetition of LCC (Location Charge Code)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeLCC

      public LCC removeLCC(int rep) throws HL7Exception
      Removes a specific repetition of LCC (Location Charge Code)
      Throws:
      HL7Exception
      See Also: