public class NTE extends AbstractSegment
Represents an HL7 NTE message segment (NTE - notes and comments segment). This segment has the following fields:
log
Constructor and Description |
---|
NTE(Group parent,
ModelClassFactory factory)
Creates a new NTE segment
|
Modifier and Type | Method and Description |
---|---|
protected Type |
createNewTypeWithoutReflection(int field) |
FT[] |
getComment()
Returns all repetitions of Comment (NTE-3).
|
FT |
getComment(int rep)
Returns a specific repetition of
NTE-3: "Comment" - creates it if necessary
|
int |
getCommentReps()
Returns a count of the current number of repetitions of Comment (NTE-3).
|
CE |
getCommentType()
Returns
NTE-4: "Comment Type" - creates it if necessary
|
SI |
getNte1_SetIDNTE()
Returns
NTE-1: "Set ID - NTE" - creates it if necessary
|
ID |
getNte2_SourceOfComment()
Returns
NTE-2: "Source of Comment" - creates it if necessary
|
FT[] |
getNte3_Comment()
Returns all repetitions of Comment (NTE-3).
|
FT |
getNte3_Comment(int rep)
Returns a specific repetition of
NTE-3: "Comment" - creates it if necessary
|
int |
getNte3_CommentReps()
Returns a count of the current number of repetitions of Comment (NTE-3).
|
CE |
getNte4_CommentType()
Returns
NTE-4: "Comment Type" - creates it if necessary
|
SI |
getSetIDNTE()
Returns
NTE-1: "Set ID - NTE" - creates it if necessary
|
ID |
getSourceOfComment()
Returns
NTE-2: "Source of Comment" - creates it if necessary
|
FT |
insertComment(int rep)
Inserts a repetition of
NTE-3: "Comment" at a specific index
|
FT |
insertNte3_Comment(int rep)
Inserts a repetition of
NTE-3: "Comment" at a specific index
|
FT |
removeComment(int rep)
Removes a repetition of
NTE-3: "Comment" at a specific index
|
FT |
removeNte3_Comment(int rep)
Removes a repetition of
NTE-3: "Comment" at a specific index
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetition
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public NTE(Group parent, ModelClassFactory factory)
public SI getSetIDNTE()
public SI getNte1_SetIDNTE()
public ID getSourceOfComment()
public ID getNte2_SourceOfComment()
public FT[] getComment()
public FT[] getNte3_Comment()
public int getCommentReps()
public FT getComment(int rep)
rep
- The repetition index (0-indexed)public FT getNte3_Comment(int rep)
rep
- The repetition index (0-indexed)public int getNte3_CommentReps()
public FT insertComment(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public FT insertNte3_Comment(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public FT removeComment(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public FT removeNte3_Comment(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CE getCommentType()
public CE getNte4_CommentType()
protected Type createNewTypeWithoutReflection(int field)
createNewTypeWithoutReflection
in class AbstractSegment
Copyright © 2001–2017 University Health Network. All rights reserved.