public interface IStructureDefinition
Structure
.
At runtime, parsers will use accessors provided by various structure types (messages, groups,
segments) to determine the structure of a messages. Structure definitions are used
to cache that information between parse calls.Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllChildNames() |
Set<String> |
getAllPossibleFirstChildren()
Returns the names of any possible children that could be the first
required child of this group.
|
List<StructureDefinition> |
getChildren() |
IStructureDefinition |
getFirstChild() |
IStructureDefinition |
getFirstSibling() |
String |
getName() |
String |
getNameAsItAppearsInParent() |
Set<String> |
getNamesOfAllPossibleFollowingLeaves()
Should only be called on a leaf node (segment).
|
IStructureDefinition |
getNextLeaf() |
IStructureDefinition |
getNextSibling() |
IStructureDefinition |
getParent() |
int |
getPosition() |
boolean |
hasChildren() |
boolean |
isChoiceElement() |
boolean |
isFinalChildOfParent() |
boolean |
isRepeating() |
boolean |
isRequired() |
boolean |
isSegment() |
IStructureDefinition getFirstSibling()
null if this is the first sibling, or if this has no parent
IStructureDefinition getNextLeaf()
null
.String getNameAsItAppearsInParent()
getName()
} in the case of multiple segments
with the same name in a group, e.g. the two PID segments in ADT_A17,
where the second one it known as PID2 to it's parent.boolean isSegment()
boolean isRepeating()
List<StructureDefinition> getChildren()
int getPosition()
IStructureDefinition getParent()
boolean isFinalChildOfParent()
IStructureDefinition getNextSibling()
boolean hasChildren()
Set<String> getNamesOfAllPossibleFollowingLeaves()
IStructureDefinition getFirstChild()
Set<String> getAllPossibleFirstChildren()
this.getName()
is also returned.
ORDER_OBSERVATION
{
[ ORC ]
OBR
[ { NTE } ]
[ CTD ]
OBSERVATION
{
[ OBX ]
[ { NTE } ]
}
OBSERVATION
[ { FT1 } ]
[ { CTI } ]
}
ORDER_OBSERVATION
Set<String> getAllChildNames()
boolean isChoiceElement()
Group.isChoiceElement(String)
boolean isRequired()
Copyright © 2001–2017 University Health Network. All rights reserved.