Class OM2

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class OM2 extends AbstractSegment

Represents an HL7 OM2 message segment (Numeric Observation). This segment has the following fields:

  • OM2-1: Sequence Number - Test/Observation Master File (NM) optional
  • OM2-2: Units of Measure (CE) optional
  • OM2-3: Range of Decimal Precision (NM) optional repeating
  • OM2-4: Corresponding SI Units of Measure (CE) optional
  • OM2-5: SI Conversion Factor (TX) optional
  • OM2-6: Reference (Normal) Range - Ordinal and Continuous Observations (RFR) optional repeating
  • OM2-7: Critical Range for Ordinal and Continuous Observations (RFR) optional repeating
  • OM2-8: Absolute Range for Ordinal and Continuous Observations (RFR) optional
  • OM2-9: Delta Check Criteria (DLT) optional repeating
  • OM2-10: Minimum Meaningful Increments (NM) optional
See Also:
  • Constructor Details

  • Method Details

    • getSequenceNumberTestObservationMasterFile

      Returns OM2-1: "Sequence Number - Test/Observation Master File" - creates it if necessary
    • getOm21_SequenceNumberTestObservationMasterFile

      Returns OM2-1: "Sequence Number - Test/Observation Master File" - creates it if necessary
    • getUnitsOfMeasure

      Returns OM2-2: "Units of Measure" - creates it if necessary
    • getOm22_UnitsOfMeasure

      Returns OM2-2: "Units of Measure" - creates it if necessary
    • getRangeOfDecimalPrecision

      Returns all repetitions of Range of Decimal Precision (OM2-3).
    • getOm23_RangeOfDecimalPrecision

      Returns all repetitions of Range of Decimal Precision (OM2-3).
    • getRangeOfDecimalPrecisionReps

      Returns a count of the current number of repetitions of Range of Decimal Precision (OM2-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRangeOfDecimalPrecision

      public NM getRangeOfDecimalPrecision(int rep)
      Returns a specific repetition of OM2-3: "Range of Decimal Precision" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm23_RangeOfDecimalPrecision

      Returns a specific repetition of OM2-3: "Range of Decimal Precision" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm23_RangeOfDecimalPrecisionReps

      Returns a count of the current number of repetitions of Range of Decimal Precision (OM2-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRangeOfDecimalPrecision

      Inserts a repetition of OM2-3: "Range of Decimal Precision" 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)
    • insertOm23_RangeOfDecimalPrecision

      Inserts a repetition of OM2-3: "Range of Decimal Precision" 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)
    • removeRangeOfDecimalPrecision

      Removes a repetition of OM2-3: "Range of Decimal Precision" 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)
    • removeOm23_RangeOfDecimalPrecision

      Removes a repetition of OM2-3: "Range of Decimal Precision" 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)
    • getCorrespondingSIUnitsOfMeasure

      Returns OM2-4: "Corresponding SI Units of Measure" - creates it if necessary
    • getOm24_CorrespondingSIUnitsOfMeasure

      Returns OM2-4: "Corresponding SI Units of Measure" - creates it if necessary
    • getSIConversionFactor

      Returns OM2-5: "SI Conversion Factor" - creates it if necessary
    • getOm25_SIConversionFactor

      Returns OM2-5: "SI Conversion Factor" - creates it if necessary
    • getReferenceNormalRangeOrdinalAndContinuousObservations

      Returns all repetitions of Reference (Normal) Range - Ordinal and Continuous Observations (OM2-6).
    • getOm26_ReferenceNormalRangeOrdinalAndContinuousObservations

      Returns all repetitions of Reference (Normal) Range - Ordinal and Continuous Observations (OM2-6).
    • getReferenceNormalRangeOrdinalAndContinuousObservationsReps

      Returns a count of the current number of repetitions of Reference (Normal) Range - Ordinal and Continuous Observations (OM2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getReferenceNormalRangeOrdinalAndContinuousObservations

      Returns a specific repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm26_ReferenceNormalRangeOrdinalAndContinuousObservations

      Returns a specific repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm26_ReferenceNormalRangeOrdinalAndContinuousObservationsReps

      Returns a count of the current number of repetitions of Reference (Normal) Range - Ordinal and Continuous Observations (OM2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertReferenceNormalRangeOrdinalAndContinuousObservations

      Inserts a repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" 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)
    • insertOm26_ReferenceNormalRangeOrdinalAndContinuousObservations

      Inserts a repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" 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)
    • removeReferenceNormalRangeOrdinalAndContinuousObservations

      Removes a repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" 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)
    • removeOm26_ReferenceNormalRangeOrdinalAndContinuousObservations

      Removes a repetition of OM2-6: "Reference (Normal) Range - Ordinal and Continuous Observations" 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)
    • getCriticalRangeForOrdinalAndContinuousObservations

      Returns all repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7).
    • getOm27_CriticalRangeForOrdinalAndContinuousObservations

      Returns all repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7).
    • getCriticalRangeForOrdinalAndContinuousObservationsReps

      Returns a count of the current number of repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getCriticalRangeForOrdinalAndContinuousObservations

      Returns a specific repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm27_CriticalRangeForOrdinalAndContinuousObservations

      Returns a specific repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm27_CriticalRangeForOrdinalAndContinuousObservationsReps

      Returns a count of the current number of repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertCriticalRangeForOrdinalAndContinuousObservations

      Inserts a repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" 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)
    • insertOm27_CriticalRangeForOrdinalAndContinuousObservations

      Inserts a repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" 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)
    • removeCriticalRangeForOrdinalAndContinuousObservations

      Removes a repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" 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)
    • removeOm27_CriticalRangeForOrdinalAndContinuousObservations

      Removes a repetition of OM2-7: "Critical Range for Ordinal and Continuous Observations" 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)
    • getAbsoluteRangeForOrdinalAndContinuousObservations

      Returns OM2-8: "Absolute Range for Ordinal and Continuous Observations" - creates it if necessary
    • getOm28_AbsoluteRangeForOrdinalAndContinuousObservations

      Returns OM2-8: "Absolute Range for Ordinal and Continuous Observations" - creates it if necessary
    • getDeltaCheckCriteria

      Returns all repetitions of Delta Check Criteria (OM2-9).
    • getOm29_DeltaCheckCriteria

      Returns all repetitions of Delta Check Criteria (OM2-9).
    • getDeltaCheckCriteriaReps

      Returns a count of the current number of repetitions of Delta Check Criteria (OM2-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDeltaCheckCriteria

      public DLT getDeltaCheckCriteria(int rep)
      Returns a specific repetition of OM2-9: "Delta Check Criteria" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm29_DeltaCheckCriteria

      public DLT getOm29_DeltaCheckCriteria(int rep)
      Returns a specific repetition of OM2-9: "Delta Check Criteria" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm29_DeltaCheckCriteriaReps

      Returns a count of the current number of repetitions of Delta Check Criteria (OM2-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDeltaCheckCriteria

      public DLT insertDeltaCheckCriteria(int rep) throws HL7Exception
      Inserts a repetition of OM2-9: "Delta Check Criteria" 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)
    • insertOm29_DeltaCheckCriteria

      Inserts a repetition of OM2-9: "Delta Check Criteria" 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)
    • removeDeltaCheckCriteria

      public DLT removeDeltaCheckCriteria(int rep) throws HL7Exception
      Removes a repetition of OM2-9: "Delta Check Criteria" 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)
    • removeOm29_DeltaCheckCriteria

      Removes a repetition of OM2-9: "Delta Check Criteria" 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)
    • getMinimumMeaningfulIncrements

      Returns OM2-10: "Minimum Meaningful Increments" - creates it if necessary
    • getOm210_MinimumMeaningfulIncrements

      Returns OM2-10: "Minimum Meaningful Increments" - creates it if necessary
    • createNewTypeWithoutReflection

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