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 IStructureDefinition
public 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 IStructureDefinition
public ArrayList<StructureDefinition> getChildren()
getChildren
in interface IStructureDefinition
public IStructureDefinition getFirstChild()
getFirstChild
in interface IStructureDefinition
public IStructureDefinition getFirstSibling()
getFirstSibling
in interface IStructureDefinition
null if this is the first sibling, or if this has no parent
public String getName()
getName
in interface IStructureDefinition
public String getNameAsItAppearsInParent()
getNameAsItAppearsInParent
in interface IStructureDefinition
IStructureDefinition.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 IStructureDefinition
public IStructureDefinition getNextLeaf()
getNextLeaf
in interface IStructureDefinition
null
.public IStructureDefinition getNextSibling()
getNextSibling
in interface IStructureDefinition
public IStructureDefinition getParent()
getParent
in interface IStructureDefinition
public int getPosition()
getPosition
in interface IStructureDefinition
public boolean hasChildren()
hasChildren
in interface IStructureDefinition
public boolean isFinalChildOfParent()
isFinalChildOfParent
in interface IStructureDefinition
public boolean isRepeating()
isRepeating
in interface IStructureDefinition
public boolean isRequired()
isRequired
in interface IStructureDefinition
public boolean isSegment()
isSegment
in interface IStructureDefinition
public void setChoiceElement(boolean theChoiceElement)
theChoiceElement
- true if the definition of this structure is a choiceGroup.isChoiceElement(String)
public boolean isChoiceElement()
isChoiceElement
in interface IStructureDefinition
Group.isChoiceElement(String)
Copyright © 2001–2017 University Health Network. All rights reserved.