Class ORD_O04_ORDER_TRAY

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class ORD_O04_ORDER_TRAY extends AbstractGroup

Represents a ORD_O04_ORDER_TRAY 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: ORC (Common Order)
  • 2: ORD_O04_TIMING_TRAY (a Group object) optional repeating
  • 3: ODT (Diet Tray Instructions) optional repeating
  • 4: NTE (Notes and Comments) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.5.1"
    • getORC

      public ORC getORC()
      Returns ORC (Common Order) - creates it if necessary
    • getTIMING_TRAY

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

      Returns a specific repetition of TIMING_TRAY (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.
    • getTIMING_TRAYReps

      public int getTIMING_TRAYReps()
      Returns the number of existing repetitions of TIMING_TRAY
    • getTIMING_TRAYAll

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

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

      Throws:
      HL7Exception
    • insertTIMING_TRAY

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

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

      Removes a specific repetition of TIMING_TRAY (a Group object)
      Throws:
      HL7Exception
      See Also:
    • getODT

      public ODT getODT()
      Returns the first repetition of ODT (Diet Tray Instructions) - creates it if necessary
    • getODT

      public ODT getODT(int rep)
      Returns a specific repetition of ODT (Diet Tray Instructions) - 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.
    • getODTReps

      public int getODTReps()
      Returns the number of existing repetitions of ODT
    • getODTAll

      public List<ODT> getODTAll() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertODT

      public void insertODT(ODT structure, int rep) throws HL7Exception
      Inserts a specific repetition of ODT (Diet Tray Instructions)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertODT

      public ODT insertODT(int rep) throws HL7Exception
      Inserts a specific repetition of ODT (Diet Tray Instructions)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeODT

      public ODT removeODT(int rep) throws HL7Exception
      Removes a specific repetition of ODT (Diet Tray Instructions)
      Throws:
      HL7Exception
      See Also:
    • getNTE

      public NTE getNTE()
      Returns the first repetition of NTE (Notes and Comments) - creates it if necessary
    • getNTE

      public NTE getNTE(int rep)
      Returns a specific repetition of NTE (Notes and Comments) - 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.
    • getNTEReps

      public int getNTEReps()
      Returns the number of existing repetitions of NTE
    • getNTEAll

      public List<NTE> getNTEAll() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertNTE

      public void insertNTE(NTE structure, int rep) throws HL7Exception
      Inserts a specific repetition of NTE (Notes and Comments)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertNTE

      public NTE insertNTE(int rep) throws HL7Exception
      Inserts a specific repetition of NTE (Notes and Comments)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeNTE

      public NTE removeNTE(int rep) throws HL7Exception
      Removes a specific repetition of NTE (Notes and Comments)
      Throws:
      HL7Exception
      See Also: