All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class OCD extends AbstractComposite

Represents an HL7 OCD (Occurrence Code and Date) data type. This type consists of the following components:

  • Occurrence Code (CNE)
  • Occurrence Date (DT)
See Also:
  • Constructor Details

    • OCD

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

      Returns Occurrence Code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getOcd1_OccurrenceCode

      Returns Occurrence Code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getOccurrenceDate

      Returns Occurrence Date (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getOcd2_OccurrenceDate

      Returns Occurrence Date (component 2). This is a convenience method that saves you from casting and handling an exception.