ca.uhn.hl7v2.model.v24.segment
Class OM5

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractSegment
      extended by ca.uhn.hl7v2.model.v24.segment.OM5
All Implemented Interfaces:
Segment, Structure, Serializable

public class OM5
extends AbstractSegment

Represents an HL7 OM5 message segment (Observation Batteries (Sets)). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
OM5(Group parent, ModelClassFactory factory)
          Creates a new OM5 segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 ST getObservationIDSuffixes()
          Returns OM5-3: "Observation ID Suffixes" - creates it if necessary
 NM getOm51_SequenceNumberTestObservationMasterFile()
          Returns OM5-1: "Sequence Number - Test/ Observation Master File" - creates it if necessary
 CE getOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Returns a specific repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" - creates it if necessary
 int getOm52_TestObservationsIncludedWithinAnOrderedTestBatteryReps()
          Returns a count of the current number of repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2).
 ST getOm53_ObservationIDSuffixes()
          Returns OM5-3: "Observation ID Suffixes" - creates it if necessary
 NM getSequenceNumberTestObservationMasterFile()
          Returns OM5-1: "Sequence Number - Test/ Observation Master File" - creates it if necessary
 CE[] getTestObservationsIncludedWithinAnOrderedTestBattery()
          Returns all repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2).
 CE getTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Returns a specific repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" - creates it if necessary
 int getTestObservationsIncludedWithinAnOrderedTestBatteryReps()
          Returns a count of the current number of repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2).
 CE insertOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Inserts a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" at a specific index
 CE insertTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Inserts a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" at a specific index
 CE removeOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Removes a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" at a specific index
 CE removeTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
          Removes a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" at a specific index
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractSegment
add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getMessage, getName, getNames, getParent, insertRepetition, isRequired, main, numFields, parse, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OM5

public OM5(Group parent,
           ModelClassFactory factory)
Creates a new OM5 segment

Method Detail

getSequenceNumberTestObservationMasterFile

public NM getSequenceNumberTestObservationMasterFile()
Returns OM5-1: "Sequence Number - Test/ Observation Master File" - creates it if necessary


getOm51_SequenceNumberTestObservationMasterFile

public NM getOm51_SequenceNumberTestObservationMasterFile()
Returns OM5-1: "Sequence Number - Test/ Observation Master File" - creates it if necessary


getTestObservationsIncludedWithinAnOrderedTestBattery

public CE[] getTestObservationsIncludedWithinAnOrderedTestBattery()
Returns all repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2).


getTestObservationsIncludedWithinAnOrderedTestBatteryReps

public int getTestObservationsIncludedWithinAnOrderedTestBatteryReps()
Returns a count of the current number of repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getTestObservationsIncludedWithinAnOrderedTestBattery

public CE getTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
Returns a specific repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getOm52_TestObservationsIncludedWithinAnOrderedTestBattery

public CE getOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
Returns a specific repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getOm52_TestObservationsIncludedWithinAnOrderedTestBatteryReps

public int getOm52_TestObservationsIncludedWithinAnOrderedTestBatteryReps()
Returns a count of the current number of repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertTestObservationsIncludedWithinAnOrderedTestBattery

public CE insertTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
                                                            throws HL7Exception
Inserts a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" 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)

insertOm52_TestObservationsIncludedWithinAnOrderedTestBattery

public CE insertOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
                                                                 throws HL7Exception
Inserts a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" 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)

removeTestObservationsIncludedWithinAnOrderedTestBattery

public CE removeTestObservationsIncludedWithinAnOrderedTestBattery(int rep)
                                                            throws HL7Exception
Removes a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" 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)

removeOm52_TestObservationsIncludedWithinAnOrderedTestBattery

public CE removeOm52_TestObservationsIncludedWithinAnOrderedTestBattery(int rep)
                                                                 throws HL7Exception
Removes a repetition of OM5-2: "Test/Observations Included within an Ordered Test Battery" 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)

getObservationIDSuffixes

public ST getObservationIDSuffixes()
Returns OM5-3: "Observation ID Suffixes" - creates it if necessary


getOm53_ObservationIDSuffixes

public ST getOm53_ObservationIDSuffixes()
Returns OM5-3: "Observation ID Suffixes" - creates it if necessary


createNewTypeWithoutReflection

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


Copyright © 2001-2011 University Health Network. All Rights Reserved.