Class VAR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class VAR extends AbstractSegment

Represents an HL7 VAR message segment (Variance). This segment has the following fields:

  • VAR-1: Variance Instance ID (EI)
  • VAR-2: Documented Date/Time (TS)
  • VAR-3: Stated Variance Date/Time (TS) optional
  • VAR-4: Variance Originator (XCN) optional repeating
  • VAR-5: Variance Classification (CE) optional
  • VAR-6: Variance Description (ST) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVarianceInstanceID

      Returns VAR-1: "Variance Instance ID" - creates it if necessary
    • getVar1_VarianceInstanceID

      Returns VAR-1: "Variance Instance ID" - creates it if necessary
    • getDocumentedDateTime

      Returns VAR-2: "Documented Date/Time" - creates it if necessary
    • getVar2_DocumentedDateTime

      Returns VAR-2: "Documented Date/Time" - creates it if necessary
    • getStatedVarianceDateTime

      Returns VAR-3: "Stated Variance Date/Time" - creates it if necessary
    • getVar3_StatedVarianceDateTime

      Returns VAR-3: "Stated Variance Date/Time" - creates it if necessary
    • getVarianceOriginator

      Returns all repetitions of Variance Originator (VAR-4).
    • getVar4_VarianceOriginator

      Returns all repetitions of Variance Originator (VAR-4).
    • getVarianceOriginatorReps

      Returns a count of the current number of repetitions of Variance Originator (VAR-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getVarianceOriginator

      public XCN getVarianceOriginator(int rep)
      Returns a specific repetition of VAR-4: "Variance Originator" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVar4_VarianceOriginator

      public XCN getVar4_VarianceOriginator(int rep)
      Returns a specific repetition of VAR-4: "Variance Originator" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVar4_VarianceOriginatorReps

      Returns a count of the current number of repetitions of Variance Originator (VAR-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertVarianceOriginator

      public XCN insertVarianceOriginator(int rep) throws HL7Exception
      Inserts a repetition of VAR-4: "Variance Originator" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertVar4_VarianceOriginator

      Inserts a repetition of VAR-4: "Variance Originator" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeVarianceOriginator

      public XCN removeVarianceOriginator(int rep) throws HL7Exception
      Removes a repetition of VAR-4: "Variance Originator" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeVar4_VarianceOriginator

      Removes a repetition of VAR-4: "Variance Originator" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getVarianceClassification

      Returns VAR-5: "Variance Classification" - creates it if necessary
    • getVar5_VarianceClassification

      Returns VAR-5: "Variance Classification" - creates it if necessary
    • getVarianceDescription

      Returns all repetitions of Variance Description (VAR-6).
    • getVar6_VarianceDescription

      Returns all repetitions of Variance Description (VAR-6).
    • getVarianceDescriptionReps

      Returns a count of the current number of repetitions of Variance Description (VAR-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getVarianceDescription

      public ST getVarianceDescription(int rep)
      Returns a specific repetition of VAR-6: "Variance Description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVar6_VarianceDescription

      public ST getVar6_VarianceDescription(int rep)
      Returns a specific repetition of VAR-6: "Variance Description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVar6_VarianceDescriptionReps

      Returns a count of the current number of repetitions of Variance Description (VAR-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertVarianceDescription

      public ST insertVarianceDescription(int rep) throws HL7Exception
      Inserts a repetition of VAR-6: "Variance Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertVar6_VarianceDescription

      Inserts a repetition of VAR-6: "Variance Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeVarianceDescription

      public ST removeVarianceDescription(int rep) throws HL7Exception
      Removes a repetition of VAR-6: "Variance Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeVar6_VarianceDescription

      Removes a repetition of VAR-6: "Variance Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment