Class PDA

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PDA extends AbstractSegment

Represents an HL7 PDA message segment (Patient death and autopsy). This segment has the following fields:

  • PDA-1: Death Cause Code (CE) optional repeating
  • PDA-2: Death Location (PL) optional
  • PDA-3: Death Certified Indicator (ID) optional
  • PDA-4: Death Certificate Signed Date/Time (TS) optional
  • PDA-5: Death Certified By (XCN) optional
  • PDA-6: Autopsy Indicator (ID) optional
  • PDA-7: Autopsy Start and End Date/Time (DR) optional
  • PDA-8: Autopsy Performed By (XCN) optional
  • PDA-9: Coroner Indicator (ID) optional
See Also:
  • Constructor Details

  • Method Details

    • getDeathCauseCode

      public CE[] getDeathCauseCode()
      Returns all repetitions of Death Cause Code (PDA-1).
    • getPda1_DeathCauseCode

      Returns all repetitions of Death Cause Code (PDA-1).
    • getDeathCauseCodeReps

      public int getDeathCauseCodeReps()
      Returns a count of the current number of repetitions of Death Cause Code (PDA-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDeathCauseCode

      public CE getDeathCauseCode(int rep)
      Returns a specific repetition of PDA-1: "Death Cause Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPda1_DeathCauseCode

      public CE getPda1_DeathCauseCode(int rep)
      Returns a specific repetition of PDA-1: "Death Cause Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPda1_DeathCauseCodeReps

      Returns a count of the current number of repetitions of Death Cause Code (PDA-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDeathCauseCode

      public CE insertDeathCauseCode(int rep) throws HL7Exception
      Inserts a repetition of PDA-1: "Death Cause Code" 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)
    • insertPda1_DeathCauseCode

      public CE insertPda1_DeathCauseCode(int rep) throws HL7Exception
      Inserts a repetition of PDA-1: "Death Cause Code" 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)
    • removeDeathCauseCode

      public CE removeDeathCauseCode(int rep) throws HL7Exception
      Removes a repetition of PDA-1: "Death Cause Code" 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)
    • removePda1_DeathCauseCode

      public CE removePda1_DeathCauseCode(int rep) throws HL7Exception
      Removes a repetition of PDA-1: "Death Cause Code" 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)
    • getDeathLocation

      public PL getDeathLocation()
      Returns PDA-2: "Death Location" - creates it if necessary
    • getPda2_DeathLocation

      Returns PDA-2: "Death Location" - creates it if necessary
    • getDeathCertifiedIndicator

      Returns PDA-3: "Death Certified Indicator" - creates it if necessary
    • getPda3_DeathCertifiedIndicator

      Returns PDA-3: "Death Certified Indicator" - creates it if necessary
    • getDeathCertificateSignedDateTime

      Returns PDA-4: "Death Certificate Signed Date/Time" - creates it if necessary
    • getPda4_DeathCertificateSignedDateTime

      Returns PDA-4: "Death Certificate Signed Date/Time" - creates it if necessary
    • getDeathCertifiedBy

      Returns PDA-5: "Death Certified By" - creates it if necessary
    • getPda5_DeathCertifiedBy

      Returns PDA-5: "Death Certified By" - creates it if necessary
    • getAutopsyIndicator

      Returns PDA-6: "Autopsy Indicator" - creates it if necessary
    • getPda6_AutopsyIndicator

      Returns PDA-6: "Autopsy Indicator" - creates it if necessary
    • getAutopsyStartAndEndDateTime

      Returns PDA-7: "Autopsy Start and End Date/Time" - creates it if necessary
    • getPda7_AutopsyStartAndEndDateTime

      Returns PDA-7: "Autopsy Start and End Date/Time" - creates it if necessary
    • getAutopsyPerformedBy

      Returns PDA-8: "Autopsy Performed By" - creates it if necessary
    • getPda8_AutopsyPerformedBy

      Returns PDA-8: "Autopsy Performed By" - creates it if necessary
    • getCoronerIndicator

      Returns PDA-9: "Coroner Indicator" - creates it if necessary
    • getPda9_CoronerIndicator

      Returns PDA-9: "Coroner Indicator" - creates it if necessary
    • createNewTypeWithoutReflection

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