Class CM_OCD

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_OCD extends AbstractComposite

Represents an HL7 CM_OCD (occurence) data type. This type consists of the following components:

  • occurrence code (ID)
  • occurrence date (DT)
See Also:
  • Constructor Details

    • CM_OCD

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

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

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

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

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