org.vmdb.hl7
Class HL7Loop

java.lang.Object
  |
  +--org.vmdb.hl7.HL7Object
        |
        +--org.vmdb.hl7.HL7SegmentContainer
              |
              +--org.vmdb.hl7.HL7Loop
Direct Known Subclasses:
OBSERVATIONLoop, ORDER_OBSERVATIONLoop, PATIENT_RESULTLoop, PATIENT_VISITLoop, PATIENTLoop

public abstract class HL7Loop
extends HL7SegmentContainer

Abstract Base Class for HL7 Loop Structures.

Description: HL7 Network Connectivity For VMDB.

Copyright: Copyright (c) 2002-2003.

Company: Veterinary Medical Database (VMDB).

A "Loop" is not really part of the HL7 specification, but it is a very useful concept from X12 and is necessary to properly implement repeatable groups of segments in XML. The Loop does not appear in the HL7 2.4 representation except as {...} groupings in the specification. It appears in the XML representation as <PATIENT_RESULT>...</PATIENT_RESULT> type tag pairs with segment tag pairs embedded within.

For "formal" description of any given "loop" see HL7 v2.xml documentation that has recently become an official ANSI standard.


Constructor Summary
HL7Loop()
           
 
Method Summary
static java.lang.Class getLoopClass(java.lang.String sRule)
           
 java.lang.String getName()
          Temporary fix.
static boolean isLoop(java.lang.String sRule)
           
 boolean messageComplete()
           
 
Methods inherited from class org.vmdb.hl7.HL7SegmentContainer
findSegment, listsSegments, setSeparators, toString, toXML
 
Methods inherited from class org.vmdb.hl7.HL7Object
getRule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HL7Loop

public HL7Loop()
Method Detail

getName

public java.lang.String getName()
Temporary fix. Really needs to insert the Message Structure, whatever that is.

Overrides:
getName in class HL7Object
Returns:
String with Message Structure plus loop name to match schema

messageComplete

public boolean messageComplete()
Overrides:
messageComplete in class HL7SegmentContainer

isLoop

public static boolean isLoop(java.lang.String sRule)

getLoopClass

public static java.lang.Class getLoopClass(java.lang.String sRule)

SourceForge.net Logo