Class MFN_M05_MF_LOC_DEPT

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class MFN_M05_MF_LOC_DEPT extends AbstractGroup

Represents a MFN_M05_MF_LOC_DEPT 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: LDP (Location Department)
  • 2: LCH (Location Characteristic) optional repeating
  • 3: LCC (Location Charge Code) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.3"
    • getLDP

      public LDP getLDP()
      Returns LDP (Location Department) - 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:
    • 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: