All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class OSP extends AbstractComposite

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

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

    • OSP

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

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

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

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

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

      Returns Occurrence Span Stop Date (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getOsp3_OccurrenceSpanStopDate

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