Class NMR_N02_CLOCK_AND_STATS_WITH_NOTES_ALT

java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v22.group.NMR_N02_CLOCK_AND_STATS_WITH_NOTES_ALT
All Implemented Interfaces:
Group, Structure, Visitable, Serializable

Represents a NMR_N02_CLOCK_AND_STATS_WITH_NOTES_ALT 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: NCK (System Clock) optional
  • 2: NTE (NOTES AND COMMENTS) optional repeating
  • 3: NST (Statistics) optional
  • 4: NTE (NOTES AND COMMENTS) optional repeating
  • 5: NSC (STATUS CHANGE) optional
  • 6: NTE (NOTES AND COMMENTS) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.2"
    • getNCK

      public NCK getNCK()
      Returns NCK (System Clock) - creates it if necessary
    • 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:
    • getNST

      public NST getNST()
      Returns NST (Statistics) - creates it if necessary
    • getNTE2

      public NTE getNTE2()
      Returns the first repetition of NTE2 (NOTES AND COMMENTS) - creates it if necessary
    • getNTE2

      public NTE getNTE2(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.
    • getNTE2Reps

      public int getNTE2Reps()
      Returns the number of existing repetitions of NTE2
    • getNTE2All

      public List<NTE> getNTE2All() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertNTE2

      public void insertNTE2(NTE structure, int rep) throws HL7Exception
      Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertNTE2

      public NTE insertNTE2(int rep) throws HL7Exception
      Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeNTE2

      public NTE removeNTE2(int rep) throws HL7Exception
      Removes a specific repetition of NTE2 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also:
    • getNSC

      public NSC getNSC()
      Returns NSC (STATUS CHANGE) - creates it if necessary
    • getNTE3

      public NTE getNTE3()
      Returns the first repetition of NTE3 (NOTES AND COMMENTS) - creates it if necessary
    • getNTE3

      public NTE getNTE3(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.
    • getNTE3Reps

      public int getNTE3Reps()
      Returns the number of existing repetitions of NTE3
    • getNTE3All

      public List<NTE> getNTE3All() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertNTE3

      public void insertNTE3(NTE structure, int rep) throws HL7Exception
      Inserts a specific repetition of NTE3 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertNTE3

      public NTE insertNTE3(int rep) throws HL7Exception
      Inserts a specific repetition of NTE3 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeNTE3

      public NTE removeNTE3(int rep) throws HL7Exception
      Removes a specific repetition of NTE3 (NOTES AND COMMENTS)
      Throws:
      HL7Exception
      See Also: