All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class ED extends AbstractComposite

Represents an HL7 ED (encapsulated data) data type. This type consists of the following components:

  • source application (HD)
  • type of data (ID)
  • data subtype (ID)
  • encoding (ID)
  • data (ST)
See Also:
  • Constructor Details

    • ED

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

      Returns source application (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getEd1_SourceApplication

      Returns source application (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getTypeOfData

      public ID getTypeOfData()
      Returns type of data (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getEd2_TypeOfData

      Returns type of data (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDataSubtype

      public ID getDataSubtype()
      Returns data subtype (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getEd3_DataSubtype

      Returns data subtype (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getEncoding

      public ID getEncoding()
      Returns encoding (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getEd4_Encoding

      public ID getEd4_Encoding()
      Returns encoding (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getData

      public ST getData()
      Returns data (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getEd5_Data

      public ST getEd5_Data()
      Returns data (component 5). This is a convenience method that saves you from casting and handling an exception.