All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CNN extends AbstractComposite

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 Details

    • CNN

      public CNN(Message message)
      Creates a new CNN type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getIDNumber

      public ST getIDNumber()
      Returns ID Number (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCnn1_IDNumber

      public ST getCnn1_IDNumber()
      Returns ID Number (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getFamilyName

      public ST 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

      public ST 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

      public ST 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

      public IS 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

      public IS 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.