Class OSD

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class OSD extends AbstractComposite

Represents an HL7 OSD (order sequence) data type. This type consists of the following components:

  • sequence/results flag (ID)
  • placer order number: entity identifier (ST)
  • placer order number: namespace ID (IS)
  • filler order number: entity identifier (ST)
  • filler order number: namespace ID (IS)
  • sequence condition value (ST)
  • maximum number of repeats (NM)
  • placer order number: universal ID (ST)
  • placer order number; universal ID type (ID)
  • filler order number: universal ID (ST)
  • filler order number: universal ID type (ID)
See Also:
  • Constructor Details

    • OSD

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

      Returns sequence/results flag (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getOsd1_SequenceResultsFlag

      Returns sequence/results flag (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getPlacerOrderNumberEntityIdentifier

      Returns placer order number: entity identifier (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getOsd2_PlacerOrderNumberEntityIdentifier

      Returns placer order number: entity identifier (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getPlacerOrderNumberNamespaceID

      Returns placer order number: namespace ID (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getOsd3_PlacerOrderNumberNamespaceID

      Returns placer order number: namespace ID (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getFillerOrderNumberEntityIdentifier

      Returns filler order number: entity identifier (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getOsd4_FillerOrderNumberEntityIdentifier

      Returns filler order number: entity identifier (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getFillerOrderNumberNamespaceID

      Returns filler order number: namespace ID (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getOsd5_FillerOrderNumberNamespaceID

      Returns filler order number: namespace ID (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getSequenceConditionValue

      Returns sequence condition value (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getOsd6_SequenceConditionValue

      Returns sequence condition value (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getMaximumNumberOfRepeats

      Returns maximum number of repeats (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getOsd7_MaximumNumberOfRepeats

      Returns maximum number of repeats (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getPlacerOrderNumberUniversalID

      Returns placer order number: universal ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getOsd8_PlacerOrderNumberUniversalID

      Returns placer order number: universal ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getPlacerOrderNumberUniversalIDType

      Returns placer order number; universal ID type (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getOsd9_PlacerOrderNumberUniversalIDType

      Returns placer order number; universal ID type (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getFillerOrderNumberUniversalID

      Returns filler order number: universal ID (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getOsd10_FillerOrderNumberUniversalID

      Returns filler order number: universal ID (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getFillerOrderNumberUniversalIDType

      Returns filler order number: universal ID type (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getOsd11_FillerOrderNumberUniversalIDType

      Returns filler order number: universal ID type (component 11). This is a convenience method that saves you from casting and handling an exception.