public class NonStandardStructureDefinition extends Object implements IStructureDefinition
Constructor and Description |
---|
NonStandardStructureDefinition(IStructureDefinition theParent,
IStructureDefinition thePreviousSibling,
String theName,
int thePosition)
Constructor
|
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() |
public NonStandardStructureDefinition(IStructureDefinition theParent, IStructureDefinition thePreviousSibling, String theName, int thePosition)
public Set<String> getAllChildNames()
getAllChildNames
in interface IStructureDefinition
public Set<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 List<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 boolean isChoiceElement()
isChoiceElement
in interface IStructureDefinition
Group.isChoiceElement(String)
Copyright © 2001–2017 University Health Network. All rights reserved.