Class EAC_U07

All Implemented Interfaces:
Group, Message, Structure, Visitable, Serializable

public class EAC_U07 extends AbstractMessage

Represents a EAC_U07 message structure (see chapter 13). This structure contains the following elements:

  • 1: MSH (Message Header)
  • 2: EQU (Equipment Detail)
  • 3: ECD (Equipment Command) repeating
  • 4: SAC (Specimen and container detail) optional
  • 5: CNS (Clear Notification) optional
  • 6: ROL (Role) optional
See Also:
  • Constructor Details

    • EAC_U07

      public EAC_U07()
      Creates a new EAC_U07 message with DefaultModelClassFactory.
    • EAC_U07

      public EAC_U07(ModelClassFactory factory)
      Creates a new EAC_U07 message with custom ModelClassFactory.
  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.4"
      Specified by:
      getVersion in interface Message
      Overrides:
      getVersion in class AbstractMessage
    • getMSH

      public MSH getMSH()

      Returns MSH (Message Header) - creates it if necessary

    • getEQU

      public EQU getEQU()

      Returns EQU (Equipment Detail) - creates it if necessary

    • getECD

      public ECD getECD()

      Returns the first repetition of ECD (Equipment Command) - creates it if necessary

    • getECD

      public ECD getECD(int rep)

      Returns a specific repetition of ECD (Equipment Command) - 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.
    • getECDReps

      public int getECDReps()

      Returns the number of existing repetitions of ECD

    • getECDAll

      public List<ECD> getECDAll() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertECD

      public void insertECD(ECD structure, int rep) throws HL7Exception

      Inserts a specific repetition of ECD (Equipment Command)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertECD

      public ECD insertECD(int rep) throws HL7Exception

      Inserts a specific repetition of ECD (Equipment Command)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeECD

      public ECD removeECD(int rep) throws HL7Exception

      Removes a specific repetition of ECD (Equipment Command)

      Throws:
      HL7Exception
      See Also:
    • getSAC

      public SAC getSAC()

      Returns SAC (Specimen and container detail) - creates it if necessary

    • getCNS

      public CNS getCNS()

      Returns CNS (Clear Notification) - creates it if necessary

    • getROL

      public ROL getROL()

      Returns ROL (Role) - creates it if necessary