Class OM3

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class OM3 extends AbstractSegment

Represents an HL7 OM3 message segment (Categorical Service/Test/Observation). This segment has the following fields:

  • OM3-1: Sequence Number - Test/Observation Master File (NM) optional
  • OM3-2: Preferred Coding System (CE) optional
  • OM3-3: Valid Coded "Answers" (CE) optional
  • OM3-4: Normal Text/Codes for Categorical Observations (CE) optional repeating
  • OM3-5: Abnormal Text/Codes for Categorical Observations (CE) optional repeating
  • OM3-6: Critical Text/Codes for Categorical Observations (CE) optional repeating
  • OM3-7: Value Type (ID) optional
See Also:
  • Constructor Details

  • Method Details

    • getSequenceNumberTestObservationMasterFile

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

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

      Returns OM3-2: "Preferred Coding System" - creates it if necessary
    • getOm32_PreferredCodingSystem

      Returns OM3-2: "Preferred Coding System" - creates it if necessary
    • getValidCodedAnswers

      Returns OM3-3: "Valid Coded "Answers"" - creates it if necessary
    • getOm33_ValidCodedAnswers

      Returns OM3-3: "Valid Coded "Answers"" - creates it if necessary
    • getNormalTextCodesForCategoricalObservations

      Returns all repetitions of Normal Text/Codes for Categorical Observations (OM3-4).
    • getOm34_NormalTextCodesForCategoricalObservations

      Returns all repetitions of Normal Text/Codes for Categorical Observations (OM3-4).
    • getNormalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Normal Text/Codes for Categorical Observations (OM3-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getNormalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-4: "Normal Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm34_NormalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-4: "Normal Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm34_NormalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Normal Text/Codes for Categorical Observations (OM3-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertNormalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-4: "Normal Text/Codes for Categorical 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)
    • insertOm34_NormalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-4: "Normal Text/Codes for Categorical 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)
    • removeNormalTextCodesForCategoricalObservations

      Removes a repetition of OM3-4: "Normal Text/Codes for Categorical 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)
    • removeOm34_NormalTextCodesForCategoricalObservations

      Removes a repetition of OM3-4: "Normal Text/Codes for Categorical 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)
    • getAbnormalTextCodesForCategoricalObservations

      Returns all repetitions of Abnormal Text/Codes for Categorical Observations (OM3-5).
    • getOm35_AbnormalTextCodesForCategoricalObservations

      Returns all repetitions of Abnormal Text/Codes for Categorical Observations (OM3-5).
    • getAbnormalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Abnormal Text/Codes for Categorical Observations (OM3-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAbnormalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-5: "Abnormal Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm35_AbnormalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-5: "Abnormal Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm35_AbnormalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Abnormal Text/Codes for Categorical Observations (OM3-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAbnormalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-5: "Abnormal Text/Codes for Categorical 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)
    • insertOm35_AbnormalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-5: "Abnormal Text/Codes for Categorical 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)
    • removeAbnormalTextCodesForCategoricalObservations

      Removes a repetition of OM3-5: "Abnormal Text/Codes for Categorical 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)
    • removeOm35_AbnormalTextCodesForCategoricalObservations

      Removes a repetition of OM3-5: "Abnormal Text/Codes for Categorical 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)
    • getCriticalTextCodesForCategoricalObservations

      Returns all repetitions of Critical Text/Codes for Categorical Observations (OM3-6).
    • getOm36_CriticalTextCodesForCategoricalObservations

      Returns all repetitions of Critical Text/Codes for Categorical Observations (OM3-6).
    • getCriticalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Critical Text/Codes for Categorical Observations (OM3-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getCriticalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-6: "Critical Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm36_CriticalTextCodesForCategoricalObservations

      Returns a specific repetition of OM3-6: "Critical Text/Codes for Categorical Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getOm36_CriticalTextCodesForCategoricalObservationsReps

      Returns a count of the current number of repetitions of Critical Text/Codes for Categorical Observations (OM3-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertCriticalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-6: "Critical Text/Codes for Categorical 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)
    • insertOm36_CriticalTextCodesForCategoricalObservations

      Inserts a repetition of OM3-6: "Critical Text/Codes for Categorical 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)
    • removeCriticalTextCodesForCategoricalObservations

      Removes a repetition of OM3-6: "Critical Text/Codes for Categorical 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)
    • removeOm36_CriticalTextCodesForCategoricalObservations

      Removes a repetition of OM3-6: "Critical Text/Codes for Categorical 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)
    • getValueType

      public ID getValueType()
      Returns OM3-7: "Value Type" - creates it if necessary
    • getOm37_ValueType

      Returns OM3-7: "Value Type" - creates it if necessary
    • createNewTypeWithoutReflection

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