All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CF extends AbstractComposite

Represents an HL7 CF (coded element with formatted values) data type. This type consists of the following components:

  • identifier (ID) (ID)
  • formatted text (FT)
  • name of coding system (IS)
  • alternate identifier (ID) (ID)
  • alternate formatted text (FT)
  • name of alternate coding system (IS)
See Also:
  • Constructor Details

    • CF

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

      public ID getIdentifier()
      Returns identifier (ID) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCf1_Identifier

      Returns identifier (ID) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getFormattedText

      public FT getFormattedText()
      Returns formatted text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCf2_FormattedText

      Returns formatted text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getNameOfCodingSystem

      Returns name of coding system (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCf3_NameOfCodingSystem

      Returns name of coding system (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateIdentifier

      Returns alternate identifier (ID) (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCf4_AlternateIdentifier

      Returns alternate identifier (ID) (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateFormattedText

      Returns alternate formatted text (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCf5_AlternateFormattedText

      Returns alternate formatted text (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getNameOfAlternateCodingSystem

      Returns name of alternate coding system (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCf6_NameOfAlternateCodingSystem

      Returns name of alternate coding system (component 6). This is a convenience method that saves you from casting and handling an exception.