public class StructureDefinition extends Object implements IStructureDefinition
| Constructor and Description |
|---|
StructureDefinition()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object theObj) |
HashSet<String> |
getAllChildNames() |
HashSet<String> |
getAllPossibleFirstChildren()
Returns the names of any possible children that could be the first
required child of this group.
|
ArrayList<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() |
int |
hashCode() |
boolean |
isChoiceElement() |
boolean |
isFinalChildOfParent() |
boolean |
isRepeating() |
boolean |
isRequired() |
boolean |
isSegment() |
void |
setChoiceElement(boolean theChoiceElement) |
String |
toString() |
public StructureDefinition()
public HashSet<String> getAllChildNames()
getAllChildNames in interface IStructureDefinitionpublic HashSet<String> getAllPossibleFirstChildren()
this.getName()
is also returned.
ORDER_OBSERVATION
{
[ ORC ]
OBR
[ { NTE } ]
[ CTD ]
OBSERVATION
{
[ OBX ]
[ { NTE } ]
}
OBSERVATION
[ { FT1 } ]
[ { CTI } ]
}
ORDER_OBSERVATION
getAllPossibleFirstChildren in interface IStructureDefinitionpublic ArrayList<StructureDefinition> getChildren()
getChildren in interface IStructureDefinitionpublic IStructureDefinition getFirstChild()
getFirstChild in interface IStructureDefinitionpublic IStructureDefinition getFirstSibling()
getFirstSibling in interface IStructureDefinitionnull if this is the first sibling, or if this has no parentpublic String getName()
getName in interface IStructureDefinitionpublic String getNameAsItAppearsInParent()
getNameAsItAppearsInParent in interface IStructureDefinitionIStructureDefinition.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.public Set<String> getNamesOfAllPossibleFollowingLeaves()
getNamesOfAllPossibleFollowingLeaves in interface IStructureDefinitionpublic IStructureDefinition getNextLeaf()
getNextLeaf in interface IStructureDefinitionnull.public IStructureDefinition getNextSibling()
getNextSibling in interface IStructureDefinitionpublic IStructureDefinition getParent()
getParent in interface IStructureDefinitionpublic int getPosition()
getPosition in interface IStructureDefinitionpublic boolean hasChildren()
hasChildren in interface IStructureDefinitionpublic boolean isFinalChildOfParent()
isFinalChildOfParent in interface IStructureDefinitionpublic boolean isRepeating()
isRepeating in interface IStructureDefinitionpublic boolean isRequired()
isRequired in interface IStructureDefinitionpublic boolean isSegment()
isSegment in interface IStructureDefinitionpublic void setChoiceElement(boolean theChoiceElement)
theChoiceElement - true if the definition of this structure is a choiceGroup.isChoiceElement(String)public boolean isChoiceElement()
isChoiceElement in interface IStructureDefinitionGroup.isChoiceElement(String)Copyright © 2001–2017 University Health Network. All rights reserved.