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 & Continuous Obs (CM_RFR) optional
  • OM2-7: Critical Range for Ordinal & Continuous Obs (CM_RANGE) optional
  • OM2-8: Absolute Range for Ordinal & Continuous Obs (CM_ABS_RANGE) optional
  • OM2-9: Delta Check Criteria (CM_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
    • getReferenceNormalRangeOrdinalContinuousObs

      Returns OM2-6: "Reference (Normal) Range - Ordinal & Continuous Obs" - creates it if necessary
    • getOm26_ReferenceNormalRangeOrdinalContinuousObs

      Returns OM2-6: "Reference (Normal) Range - Ordinal & Continuous Obs" - creates it if necessary
    • getCriticalRangeForOrdinalContinuousObs

      Returns OM2-7: "Critical Range for Ordinal & Continuous Obs" - creates it if necessary
    • getOm27_CriticalRangeForOrdinalContinuousObs

      Returns OM2-7: "Critical Range for Ordinal & Continuous Obs" - creates it if necessary
    • getAbsoluteRangeForOrdinalContinuousObs

      Returns OM2-8: "Absolute Range for Ordinal & Continuous Obs" - creates it if necessary
    • getOm28_AbsoluteRangeForOrdinalContinuousObs

      Returns OM2-8: "Absolute Range for Ordinal & Continuous Obs" - 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 CM_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

      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 CM_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 CM_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