Package ca.uhn.hl7v2.model.v22.segment
Class NTE
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.segment.NTE
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 NTE message segment (NOTES AND COMMENTS). This segment has the following fields:
- NTE-1: Set ID - Notes and Comments (SI) optional
- NTE-2: Source of Comment (ID) optional
- NTE-3: Comment (FT) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) FT[]Returns all repetitions of Comment (NTE-3).getComment(int rep) Returns a specific repetition of NTE-3: "Comment" - creates it if necessaryintReturns a count of the current number of repetitions of Comment (NTE-3).Returns NTE-1: "Set ID - Notes and Comments" - creates it if necessaryReturns NTE-2: "Source of Comment" - creates it if necessaryFT[]Returns all repetitions of Comment (NTE-3).getNte3_Comment(int rep) Returns a specific repetition of NTE-3: "Comment" - creates it if necessaryintReturns a count of the current number of repetitions of Comment (NTE-3).Returns NTE-1: "Set ID - Notes and Comments" - creates it if necessaryReturns NTE-2: "Source of Comment" - creates it if necessaryinsertComment(int rep) Inserts a repetition of NTE-3: "Comment" at a specific indexinsertNte3_Comment(int rep) Inserts a repetition of NTE-3: "Comment" at a specific indexremoveComment(int rep) Removes a repetition of NTE-3: "Comment" at a specific indexremoveNte3_Comment(int rep) Removes a repetition of NTE-3: "Comment" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
NTE
Creates a new NTE segment
-
-
Method Details
-
getSetIDNotesAndComments
Returns NTE-1: "Set ID - Notes and Comments" - creates it if necessary -
getNte1_SetIDNotesAndComments
Returns NTE-1: "Set ID - Notes and Comments" - creates it if necessary -
getSourceOfComment
Returns NTE-2: "Source of Comment" - creates it if necessary -
getNte2_SourceOfComment
Returns NTE-2: "Source of Comment" - creates it if necessary -
getComment
Returns all repetitions of Comment (NTE-3). -
getNte3_Comment
Returns all repetitions of Comment (NTE-3). -
getCommentReps
Returns a count of the current number of repetitions of Comment (NTE-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getComment
Returns a specific repetition of NTE-3: "Comment" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getNte3_Comment
Returns a specific repetition of NTE-3: "Comment" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getNte3_CommentReps
Returns a count of the current number of repetitions of Comment (NTE-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertComment
Inserts a repetition of NTE-3: "Comment" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertNte3_Comment
Inserts a repetition of NTE-3: "Comment" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeComment
Removes a repetition of NTE-3: "Comment" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeNte3_Comment
Removes a repetition of NTE-3: "Comment" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-