All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CN extends AbstractComposite

Represents an HL7 CN (CN für Ärzte) data type. This type consists of the following components:

  • ID number (ID)
  • family name (ST)
  • given name (ST)
  • middle initial or name (ST)
  • suffix (e.g. JR or III) (ST)
  • prefix (e.g. DR) (ST)
  • degree (e.g. MD) (ST)
  • source table id (ID)
  • Adresse (AD)
  • Telefon (TN)
  • Faxnummer (TN)
  • Online-Nummer (TN)
  • E-Mail (ST)
See Also:
  • Constructor Details

    • CN

      public CN(Message message)
      Creates a new CN 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 ID getIDNumber()
      Returns ID number (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCn1_IDNumber

      public ID getCn1_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.
    • getCn2_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.
    • getCn3_GivenName

      public ST getCn3_GivenName()
      Returns given name (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getMiddleInitialOrName

      Returns middle initial or name (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCn4_MiddleInitialOrName

      Returns middle initial or name (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.
    • getCn5_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.
    • getCn6_PrefixEgDR

      Returns prefix (e.g. DR) (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getDegreeEgMD

      public ST getDegreeEgMD()
      Returns degree (e.g. MD) (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getCn7_DegreeEgMD

      Returns degree (e.g. MD) (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getSourceTableId

      public ID getSourceTableId()
      Returns source table id (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getCn8_SourceTableId

      Returns source table id (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getAdresse

      public AD getAdresse()
      Returns Adresse (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getCn9_Adresse

      public AD getCn9_Adresse()
      Returns Adresse (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getTelefon

      public TN getTelefon()
      Returns Telefon (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getCn10_Telefon

      public TN getCn10_Telefon()
      Returns Telefon (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getFaxnummer

      public TN getFaxnummer()
      Returns Faxnummer (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getCn11_Faxnummer

      Returns Faxnummer (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getOnlineNummer

      public TN getOnlineNummer()
      Returns Online-Nummer (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getCn12_OnlineNummer

      Returns Online-Nummer (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getEMail

      public ST getEMail()
      Returns E-Mail (component 13). This is a convenience method that saves you from casting and handling an exception.
    • getCn13_EMail

      public ST getCn13_EMail()
      Returns E-Mail (component 13). This is a convenience method that saves you from casting and handling an exception.