Class DB1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class DB1 extends AbstractSegment

Represents an HL7 DB1 message segment (Disability). This segment has the following fields:

  • DB1-1: Set ID - DB1 (SI)
  • DB1-2: Disabled Person Code (IS) optional
  • DB1-3: Disabled Person Identifier (CX) optional repeating
  • DB1-4: Disability Indicator (ID) optional
  • DB1-5: Disability Start Date (DT) optional
  • DB1-6: Disability End Date (DT) optional
  • DB1-7: Disability Return to Work Date (DT) optional
  • DB1-8: Disability Unable to Work Date (DT) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDDB1

      public SI getSetIDDB1()
      Returns DB1-1: "Set ID - DB1" - creates it if necessary
    • getDb11_SetIDDB1

      public SI getDb11_SetIDDB1()
      Returns DB1-1: "Set ID - DB1" - creates it if necessary
    • getDisabledPersonCode

      Returns DB1-2: "Disabled Person Code" - creates it if necessary
    • getDb12_DisabledPersonCode

      Returns DB1-2: "Disabled Person Code" - creates it if necessary
    • getDisabledPersonIdentifier

      Returns all repetitions of Disabled Person Identifier (DB1-3).
    • getDb13_DisabledPersonIdentifier

      Returns all repetitions of Disabled Person Identifier (DB1-3).
    • getDisabledPersonIdentifierReps

      Returns a count of the current number of repetitions of Disabled Person Identifier (DB1-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDisabledPersonIdentifier

      public CX getDisabledPersonIdentifier(int rep)
      Returns a specific repetition of DB1-3: "Disabled Person Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getDb13_DisabledPersonIdentifier

      Returns a specific repetition of DB1-3: "Disabled Person Identifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getDb13_DisabledPersonIdentifierReps

      Returns a count of the current number of repetitions of Disabled Person Identifier (DB1-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDisabledPersonIdentifier

      Inserts a repetition of DB1-3: "Disabled Person Identifier" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertDb13_DisabledPersonIdentifier

      Inserts a repetition of DB1-3: "Disabled Person Identifier" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeDisabledPersonIdentifier

      Removes a repetition of DB1-3: "Disabled Person Identifier" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeDb13_DisabledPersonIdentifier

      Removes a repetition of DB1-3: "Disabled Person Identifier" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getDisabilityIndicator

      Returns DB1-4: "Disability Indicator" - creates it if necessary
    • getDb14_DisabilityIndicator

      Returns DB1-4: "Disability Indicator" - creates it if necessary
    • getDisabilityStartDate

      Returns DB1-5: "Disability Start Date" - creates it if necessary
    • getDb15_DisabilityStartDate

      Returns DB1-5: "Disability Start Date" - creates it if necessary
    • getDisabilityEndDate

      Returns DB1-6: "Disability End Date" - creates it if necessary
    • getDb16_DisabilityEndDate

      Returns DB1-6: "Disability End Date" - creates it if necessary
    • getDisabilityReturnToWorkDate

      Returns DB1-7: "Disability Return to Work Date" - creates it if necessary
    • getDb17_DisabilityReturnToWorkDate

      Returns DB1-7: "Disability Return to Work Date" - creates it if necessary
    • getDisabilityUnableToWorkDate

      Returns DB1-8: "Disability Unable to Work Date" - creates it if necessary
    • getDb18_DisabilityUnableToWorkDate

      Returns DB1-8: "Disability Unable to Work Date" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment