Package ca.uhn.hl7v2.model.v251.datatype
Class CNN
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.CNN
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 CNN (Composite ID Number and Name Simplified) data type. This type consists of the following components:
- ID Number (ST)
- Family Name (ST)
- Given Name (ST)
- Second and Further Given Names or Initials Thereof (ST)
- Suffix (e.g., JR or III) (ST)
- Prefix (e.g., DR) (ST)
- Degree (e.g., MD (IS)
- Source Table (IS)
- Assigning Authority - Namespace ID (IS)
- Assigning Authority - Universal ID (ST)
- Assigning Authority - Universal ID Type (ID)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns Assigning Authority - Namespace ID (component 9).Returns Assigning Authority - Universal ID (component 10).Returns Assigning Authority - Universal ID Type (component 11).Returns ID Number (component 1).Returns Assigning Authority - Universal ID (component 10).Returns Assigning Authority - Universal ID Type (component 11).Returns Family Name (component 2).Returns Given Name (component 3).Returns Second and Further Given Names or Initials Thereof (component 4).Returns Suffix (e.g., JR or III) (component 5).Returns Prefix (e.g., DR) (component 6).Returns Degree (e.g., MD (component 7).Returns Source Table (component 8).Returns Assigning Authority - Namespace ID (component 9).getComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns Degree (e.g., MD (component 7).Returns Family Name (component 2).Returns Given Name (component 3).Returns ID Number (component 1).Returns Prefix (e.g., DR) (component 6).Returns Second and Further Given Names or Initials Thereof (component 4).Returns Source Table (component 8).Returns Suffix (e.g., JR or III) (component 5).Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
CNN
Creates a new CNN type
-
-
Method Details
-
getComponents
Returns an array containing the data elements. -
getComponent
Returns an individual data component.- Parameters:
number- The component number (0-indexed)- Throws:
DataTypeException- if the given element number is out of range.
-
getIDNumber
Returns ID Number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getCnn1_IDNumber
Returns ID Number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getFamilyName
Returns Family Name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getCnn2_FamilyName
Returns Family Name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getGivenName
Returns Given Name (component 3). This is a convenience method that saves you from casting and handling an exception. -
getCnn3_GivenName
Returns Given Name (component 3). This is a convenience method that saves you from casting and handling an exception. -
getSecondAndFurtherGivenNamesOrInitialsThereof
Returns Second and Further Given Names or Initials Thereof (component 4). This is a convenience method that saves you from casting and handling an exception. -
getCnn4_SecondAndFurtherGivenNamesOrInitialsThereof
Returns Second and Further Given Names or Initials Thereof (component 4). This is a convenience method that saves you from casting and handling an exception. -
getSuffixEgJRorIII
Returns Suffix (e.g., JR or III) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getCnn5_SuffixEgJRorIII
Returns Suffix (e.g., JR or III) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getPrefixEgDR
Returns Prefix (e.g., DR) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getCnn6_PrefixEgDR
Returns Prefix (e.g., DR) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getDegreeEgMD
Returns Degree (e.g., MD (component 7). This is a convenience method that saves you from casting and handling an exception. -
getCnn7_DegreeEgMD
Returns Degree (e.g., MD (component 7). This is a convenience method that saves you from casting and handling an exception. -
getSourceTable
Returns Source Table (component 8). This is a convenience method that saves you from casting and handling an exception. -
getCnn8_SourceTable
Returns Source Table (component 8). This is a convenience method that saves you from casting and handling an exception. -
getAssigningAuthorityNamespaceID
Returns Assigning Authority - Namespace ID (component 9). This is a convenience method that saves you from casting and handling an exception. -
getCnn9_AssigningAuthorityNamespaceID
Returns Assigning Authority - Namespace ID (component 9). This is a convenience method that saves you from casting and handling an exception. -
getAssigningAuthorityUniversalID
Returns Assigning Authority - Universal ID (component 10). This is a convenience method that saves you from casting and handling an exception. -
getCnn10_AssigningAuthorityUniversalID
Returns Assigning Authority - Universal ID (component 10). This is a convenience method that saves you from casting and handling an exception. -
getAssigningAuthorityUniversalIDType
Returns Assigning Authority - Universal ID Type (component 11). This is a convenience method that saves you from casting and handling an exception. -
getCnn11_AssigningAuthorityUniversalIDType
Returns Assigning Authority - Universal ID Type (component 11). This is a convenience method that saves you from casting and handling an exception.
-