Package ca.uhn.hl7v2.model.v22.segment
Class OM5
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.segment.OM5
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 OM5 message segment (OBSERVATION BATTERIES). This segment has the following fields:
- OM5-1: Segment Type ID (ST) optional
- OM5-2: Sequence Number - Test/ Observation Master File (NM) optional
- OM5-3: Tests / observations included within an ordered test battery (CE) optional repeating
- OM5-4: Observation ID Suffixes (ST) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns OM5-4: "Observation ID Suffixes" - creates it if necessaryReturns OM5-1: "Segment Type ID" - creates it if necessaryReturns OM5-2: "Sequence Number - Test/ Observation Master File" - creates it if necessaryCE[]Returns all repetitions of Tests / observations included within an ordered test battery (OM5-3).Returns a specific repetition of OM5-3: "Tests / observations included within an ordered test battery" - creates it if necessaryintReturns a count of the current number of repetitions of Tests / observations included within an ordered test battery (OM5-3).Returns OM5-4: "Observation ID Suffixes" - creates it if necessaryReturns OM5-1: "Segment Type ID" - creates it if necessaryReturns OM5-2: "Sequence Number - Test/ Observation Master File" - creates it if necessaryCE[]Returns all repetitions of Tests / observations included within an ordered test battery (OM5-3).Returns a specific repetition of OM5-3: "Tests / observations included within an ordered test battery" - creates it if necessaryintReturns a count of the current number of repetitions of Tests / observations included within an ordered test battery (OM5-3).Inserts a repetition of OM5-3: "Tests / observations included within an ordered test battery" at a specific indexInserts a repetition of OM5-3: "Tests / observations included within an ordered test battery" at a specific indexRemoves a repetition of OM5-3: "Tests / observations included within an ordered test battery" at a specific indexRemoves a repetition of OM5-3: "Tests / observations included within an ordered test battery" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
OM5
Creates a new OM5 segment
-
-
Method Details
-
getSegmentTypeID
Returns OM5-1: "Segment Type ID" - creates it if necessary -
getOm51_SegmentTypeID
Returns OM5-1: "Segment Type ID" - creates it if necessary -
getSequenceNumberTestObservationMasterFile
Returns OM5-2: "Sequence Number - Test/ Observation Master File" - creates it if necessary -
getOm52_SequenceNumberTestObservationMasterFile
Returns OM5-2: "Sequence Number - Test/ Observation Master File" - creates it if necessary -
getTestsObservationsIncludedWithinAnOrderedTestBattery
Returns all repetitions of Tests / observations included within an ordered test battery (OM5-3). -
getOm53_TestsObservationsIncludedWithinAnOrderedTestBattery
Returns all repetitions of Tests / observations included within an ordered test battery (OM5-3). -
getTestsObservationsIncludedWithinAnOrderedTestBatteryReps
Returns a count of the current number of repetitions of Tests / observations included within an ordered test battery (OM5-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getTestsObservationsIncludedWithinAnOrderedTestBattery
Returns a specific repetition of OM5-3: "Tests / observations included within an ordered test battery" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOm53_TestsObservationsIncludedWithinAnOrderedTestBattery
Returns a specific repetition of OM5-3: "Tests / observations included within an ordered test battery" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOm53_TestsObservationsIncludedWithinAnOrderedTestBatteryReps
Returns a count of the current number of repetitions of Tests / observations included within an ordered test battery (OM5-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertTestsObservationsIncludedWithinAnOrderedTestBattery
Inserts a repetition of OM5-3: "Tests / 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)
-
insertOm53_TestsObservationsIncludedWithinAnOrderedTestBattery
public CE insertOm53_TestsObservationsIncludedWithinAnOrderedTestBattery(int rep) throws HL7Exception Inserts a repetition of OM5-3: "Tests / 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)
-
removeTestsObservationsIncludedWithinAnOrderedTestBattery
Removes a repetition of OM5-3: "Tests / 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)
-
removeOm53_TestsObservationsIncludedWithinAnOrderedTestBattery
public CE removeOm53_TestsObservationsIncludedWithinAnOrderedTestBattery(int rep) throws HL7Exception Removes a repetition of OM5-3: "Tests / 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
Returns OM5-4: "Observation ID Suffixes" - creates it if necessary -
getOm54_ObservationIDSuffixes
Returns OM5-4: "Observation ID Suffixes" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-