Class CM_SPS

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_SPS extends AbstractComposite

Represents an HL7 CM_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)
See Also:
  • Constructor Details

    • CM_SPS

      public CM_SPS(Message message)
      Creates a new CM_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.
    • getCm_sps1_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.
    • getCm_sps2_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.
    • getCm_sps3_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.
    • getCm_sps4_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.
    • getCm_sps5_SiteModifier

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