Class BTX

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class BTX extends AbstractSegment

Represents an HL7 BTX message segment (Blood Product Transfusion/Disposition). This segment has the following fields:

  • BTX-1: Set ID - BTX (SI)
  • BTX-2: BC Donation ID (EI) optional
  • BTX-3: BC Component (CNE) optional
  • BTX-4: BC Blood Group (CNE) optional
  • BTX-5: CP Commercial Product (CWE) optional
  • BTX-6: CP Manufacturer (XON) optional
  • BTX-7: CP Lot Number (EI) optional
  • BTX-8: BP Quantity (NM)
  • BTX-9: BP Amount (NM) optional
  • BTX-10: BP Units (CE) optional
  • BTX-11: BP Transfusion/Disposition Status (CWE)
  • BTX-12: BP Message Status (ID)
  • BTX-13: BP Date/Time of Status (TS)
  • BTX-14: BP Administrator (XCN) optional
  • BTX-15: BP Verifier (XCN) optional
  • BTX-16: BP Transfusion Start Date/Time of Status (TS) optional
  • BTX-17: BP Transfusion End Date/Time of Status (TS) optional
  • BTX-18: BP Adverse Reaction Type (CWE) optional repeating
  • BTX-19: BP Transfusion Interrupted Reason (CWE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDBTX

      public SI getSetIDBTX()
      Returns BTX-1: "Set ID - BTX" - creates it if necessary
    • getBtx1_SetIDBTX

      public SI getBtx1_SetIDBTX()
      Returns BTX-1: "Set ID - BTX" - creates it if necessary
    • getBCDonationID

      public EI getBCDonationID()
      Returns BTX-2: "BC Donation ID" - creates it if necessary
    • getBtx2_BCDonationID

      Returns BTX-2: "BC Donation ID" - creates it if necessary
    • getBCComponent

      public CNE getBCComponent()
      Returns BTX-3: "BC Component" - creates it if necessary
    • getBtx3_BCComponent

      Returns BTX-3: "BC Component" - creates it if necessary
    • getBCBloodGroup

      public CNE getBCBloodGroup()
      Returns BTX-4: "BC Blood Group" - creates it if necessary
    • getBtx4_BCBloodGroup

      Returns BTX-4: "BC Blood Group" - creates it if necessary
    • getCPCommercialProduct

      Returns BTX-5: "CP Commercial Product" - creates it if necessary
    • getBtx5_CPCommercialProduct

      Returns BTX-5: "CP Commercial Product" - creates it if necessary
    • getCPManufacturer

      Returns BTX-6: "CP Manufacturer" - creates it if necessary
    • getBtx6_CPManufacturer

      Returns BTX-6: "CP Manufacturer" - creates it if necessary
    • getCPLotNumber

      public EI getCPLotNumber()
      Returns BTX-7: "CP Lot Number" - creates it if necessary
    • getBtx7_CPLotNumber

      Returns BTX-7: "CP Lot Number" - creates it if necessary
    • getBPQuantity

      public NM getBPQuantity()
      Returns BTX-8: "BP Quantity" - creates it if necessary
    • getBtx8_BPQuantity

      Returns BTX-8: "BP Quantity" - creates it if necessary
    • getBPAmount

      public NM getBPAmount()
      Returns BTX-9: "BP Amount" - creates it if necessary
    • getBtx9_BPAmount

      public NM getBtx9_BPAmount()
      Returns BTX-9: "BP Amount" - creates it if necessary
    • getBPUnits

      public CE getBPUnits()
      Returns BTX-10: "BP Units" - creates it if necessary
    • getBtx10_BPUnits

      public CE getBtx10_BPUnits()
      Returns BTX-10: "BP Units" - creates it if necessary
    • getBPTransfusionDispositionStatus

      Returns BTX-11: "BP Transfusion/Disposition Status" - creates it if necessary
    • getBtx11_BPTransfusionDispositionStatus

      Returns BTX-11: "BP Transfusion/Disposition Status" - creates it if necessary
    • getBPMessageStatus

      Returns BTX-12: "BP Message Status" - creates it if necessary
    • getBtx12_BPMessageStatus

      Returns BTX-12: "BP Message Status" - creates it if necessary
    • getBPDateTimeOfStatus

      Returns BTX-13: "BP Date/Time of Status" - creates it if necessary
    • getBtx13_BPDateTimeOfStatus

      Returns BTX-13: "BP Date/Time of Status" - creates it if necessary
    • getBPAdministrator

      Returns BTX-14: "BP Administrator" - creates it if necessary
    • getBtx14_BPAdministrator

      Returns BTX-14: "BP Administrator" - creates it if necessary
    • getBPVerifier

      public XCN getBPVerifier()
      Returns BTX-15: "BP Verifier" - creates it if necessary
    • getBtx15_BPVerifier

      Returns BTX-15: "BP Verifier" - creates it if necessary
    • getBPTransfusionStartDateTimeOfStatus

      Returns BTX-16: "BP Transfusion Start Date/Time of Status" - creates it if necessary
    • getBtx16_BPTransfusionStartDateTimeOfStatus

      Returns BTX-16: "BP Transfusion Start Date/Time of Status" - creates it if necessary
    • getBPTransfusionEndDateTimeOfStatus

      Returns BTX-17: "BP Transfusion End Date/Time of Status" - creates it if necessary
    • getBtx17_BPTransfusionEndDateTimeOfStatus

      Returns BTX-17: "BP Transfusion End Date/Time of Status" - creates it if necessary
    • getBPAdverseReactionType

      Returns all repetitions of BP Adverse Reaction Type (BTX-18).
    • getBtx18_BPAdverseReactionType

      Returns all repetitions of BP Adverse Reaction Type (BTX-18).
    • getBPAdverseReactionTypeReps

      Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getBPAdverseReactionType

      public CWE getBPAdverseReactionType(int rep)
      Returns a specific repetition of BTX-18: "BP Adverse Reaction Type" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getBtx18_BPAdverseReactionType

      Returns a specific repetition of BTX-18: "BP Adverse Reaction Type" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getBtx18_BPAdverseReactionTypeReps

      Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertBPAdverseReactionType

      public CWE insertBPAdverseReactionType(int rep) throws HL7Exception
      Inserts a repetition of BTX-18: "BP Adverse Reaction Type" 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)
    • insertBtx18_BPAdverseReactionType

      Inserts a repetition of BTX-18: "BP Adverse Reaction Type" 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)
    • removeBPAdverseReactionType

      public CWE removeBPAdverseReactionType(int rep) throws HL7Exception
      Removes a repetition of BTX-18: "BP Adverse Reaction Type" 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)
    • removeBtx18_BPAdverseReactionType

      Removes a repetition of BTX-18: "BP Adverse Reaction Type" 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)
    • getBPTransfusionInterruptedReason

      Returns BTX-19: "BP Transfusion Interrupted Reason" - creates it if necessary
    • getBtx19_BPTransfusionInterruptedReason

      Returns BTX-19: "BP Transfusion Interrupted Reason" - creates it if necessary
    • createNewTypeWithoutReflection

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