All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CWE extends AbstractComposite

Represents an HL7 CWE (Coded with Exceptions) data type. This type consists of the following components:

  • Identifier (ST)
  • Text (ST)
  • Name of Coding System (ID)
  • Alternate Identifier (ST)
  • Alternate Text (ST)
  • Name of Alternate Coding System (ID)
  • Coding System Version ID (ST)
  • Alternate Coding System Version ID (ST)
  • Original Text (ST)
See Also:
  • Constructor Details

    • CWE

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

      public ST getIdentifier()
      Returns Identifier (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCwe1_Identifier

      Returns Identifier (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getText

      public ST getText()
      Returns Text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCwe2_Text

      public ST getCwe2_Text()
      Returns Text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getNameOfCodingSystem

      Returns Name of Coding System (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCwe3_NameOfCodingSystem

      Returns Name of Coding System (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateIdentifier

      Returns Alternate Identifier (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCwe4_AlternateIdentifier

      Returns Alternate Identifier (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateText

      public ST getAlternateText()
      Returns Alternate Text (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCwe5_AlternateText

      Returns Alternate Text (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getNameOfAlternateCodingSystem

      Returns Name of Alternate Coding System (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCwe6_NameOfAlternateCodingSystem

      Returns Name of Alternate Coding System (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCodingSystemVersionID

      Returns Coding System Version ID (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getCwe7_CodingSystemVersionID

      Returns Coding System Version ID (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateCodingSystemVersionID

      Returns Alternate Coding System Version ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getCwe8_AlternateCodingSystemVersionID

      Returns Alternate Coding System Version ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getOriginalText

      public ST getOriginalText()
      Returns Original Text (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getCwe9_OriginalText

      Returns Original Text (component 9). This is a convenience method that saves you from casting and handling an exception.