public interface Group extends Structure
| Modifier and Type | Method and Description |
|---|---|
String |
addNonstandardSegment(String name)
Expands the group definition to include a segment that is not
defined by HL7 to be part of this group (eg an unregistered Z segment).
|
String |
addNonstandardSegment(String name,
int theIndex)
Expands the group definition to include a segment that is not
defined by HL7 to be part of this group (eg an unregistered Z segment).
|
Structure |
get(String name)
Returns the named structure.
|
Structure |
get(String name,
int rep)
Returns a particular repetition of the named Structure.
|
Structure[] |
getAll(String name)
Returns an array of Structure objects by name.
|
Class<? extends Structure> |
getClass(String name)
Returns the Class of the Structure at the given name index.
|
String[] |
getNames()
Returns an ordered array of the names of the Structures in this
Group.
|
boolean |
isGroup(String name)
Returns true if the named structure is a group.
|
boolean |
isRepeating(String name)
Returns true if the named structure is repeating.
|
boolean |
isRequired(String name)
Returns true if the named structure is required.
|
getMessage, getName, getParentStructure[] getAll(String name) throws HL7Exception
HL7Exception - if the named Structure is not part of this Group.Structure get(String name) throws HL7Exception
HL7Exception - if the named Structure is not part of this Group.Structure get(String name, int rep) throws HL7Exception
HL7Exception - if the named Structure is not part of this group,
if the structure is not repeatable and the given rep is > 0,
or if the given repetition number is more than one greater than the
existing number of repetitions.boolean isRequired(String name) throws HL7Exception
HL7Exceptionboolean isRepeating(String name) throws HL7Exception
HL7Exceptionboolean isGroup(String name) throws HL7Exception
HL7ExceptionString[] getNames()
get(name).Class<? extends Structure> getClass(String name)
String addNonstandardSegment(String name) throws HL7Exception
HL7ExceptionString addNonstandardSegment(String name, int theIndex) throws HL7Exception
The - index (zero-indexed) at which to insert this segmentHL7ExceptionCopyright © 2001-2012 University Health Network. All Rights Reserved.