All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class FN extends AbstractComposite

Represents an HL7 FN (familiy name) data type. This type consists of the following components:

  • surname (ST)
  • own surname prefix (ST)
  • own surname (ST)
  • surname prefix from partner/spouse (ST)
  • surname from partner/spouse (ST)
See Also:
  • Constructor Details

    • FN

      public FN(Message message)
      Creates a new FN 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.
    • getSurname

      public ST getSurname()
      Returns surname (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getFn1_Surname

      public ST getFn1_Surname()
      Returns surname (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getOwnSurnamePrefix

      Returns own surname prefix (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getFn2_OwnSurnamePrefix

      Returns own surname prefix (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getOwnSurname

      public ST getOwnSurname()
      Returns own surname (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getFn3_OwnSurname

      Returns own surname (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSurnamePrefixFromPartnerSpouse

      Returns surname prefix from partner/spouse (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getFn4_SurnamePrefixFromPartnerSpouse

      Returns surname prefix from partner/spouse (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getSurnameFromPartnerSpouse

      Returns surname from partner/spouse (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getFn5_SurnameFromPartnerSpouse

      Returns surname from partner/spouse (component 5). This is a convenience method that saves you from casting and handling an exception.