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 (TX)
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 TX getData()
      Returns Data (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getEd5_Data

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