Class SPS

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class SPS extends AbstractComposite

Represents an HL7 SPS (specimen source) data type. This type consists of the following components:

  • specimen source name or code (CE)
  • additives (TX)
  • freetext (TX)
  • body site (CE)
  • site modifier (CE)
  • collection modifier method code (CE)
  • specimen role (CE)
See Also:
  • Constructor Details

    • SPS

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

      Returns specimen source name or code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getSps1_SpecimenSourceNameOrCode

      Returns specimen source name or code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getAdditives

      public TX getAdditives()
      Returns additives (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getSps2_Additives

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

      public TX getFreetext()
      Returns freetext (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSps3_Freetext

      public TX getSps3_Freetext()
      Returns freetext (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getBodySite

      public CE getBodySite()
      Returns body site (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getSps4_BodySite

      public CE getSps4_BodySite()
      Returns body site (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getSiteModifier

      public CE getSiteModifier()
      Returns site modifier (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getSps5_SiteModifier

      Returns site modifier (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCollectionModifierMethodCode

      Returns collection modifier method code (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getSps6_CollectionModifierMethodCode

      Returns collection modifier method code (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getSpecimenRole

      public CE getSpecimenRole()
      Returns specimen role (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getSps7_SpecimenRole

      Returns specimen role (component 7). This is a convenience method that saves you from casting and handling an exception.