Class MFN_M05_MF_LOCATION

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class MFN_M05_MF_LOCATION extends AbstractGroup

Represents a MFN_M05_MF_LOCATION 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: MFN_M05_MF_LOC_DEPT (a Group object) repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.4"
    • 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:
    • getMF_LOC_DEPT

      Returns the first repetition of MF_LOC_DEPT (a Group object) - creates it if necessary
    • getMF_LOC_DEPT

      Returns a specific repetition of MF_LOC_DEPT (a Group object) - 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.
    • getMF_LOC_DEPTReps

      public int getMF_LOC_DEPTReps()
      Returns the number of existing repetitions of MF_LOC_DEPT
    • getMF_LOC_DEPTAll

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

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

      Throws:
      HL7Exception
    • insertMF_LOC_DEPT

      public void insertMF_LOC_DEPT(MFN_M05_MF_LOC_DEPT structure, int rep) throws HL7Exception
      Inserts a specific repetition of MF_LOC_DEPT (a Group object)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertMF_LOC_DEPT

      Inserts a specific repetition of MF_LOC_DEPT (a Group object)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeMF_LOC_DEPT

      Removes a specific repetition of MF_LOC_DEPT (a Group object)
      Throws:
      HL7Exception
      See Also: