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 (CWE)
  • Additives (CWE)
  • Specimen Collection Method (TX)
  • Body Site (CWE)
  • Site Modifier (CWE)
  • Collection Method Modifier Code (CWE)
  • Specimen Role (CWE)
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 CWE 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.
    • getSpecimenCollectionMethod

      Returns Specimen Collection Method (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSps3_SpecimenCollectionMethod

      Returns Specimen Collection Method (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getBodySite

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

      Returns Body Site (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getSiteModifier

      public CWE 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.
    • getCollectionMethodModifierCode

      Returns Collection Method Modifier Code (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getSps6_CollectionMethodModifierCode

      Returns Collection Method Modifier Code (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getSpecimenRole

      public CWE 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.