Class CM_OSP

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_OSP extends AbstractComposite

Represents an HL7 CM_OSP (occurence span) data type. This type consists of the following components:

  • occurrence span code (ID)
  • occurrence span start date (DT)
  • occurrence span stop date (DT)
See Also:
  • Constructor Details

    • CM_OSP

      public CM_OSP(Message message)
      Creates a new CM_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.
    • getCm_osp1_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.
    • getCm_osp2_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.
    • getCm_osp3_OccurrenceSpanStopDate

      Returns occurrence span stop date (component 3). This is a convenience method that saves you from casting and handling an exception.