Class FT1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class FT1 extends AbstractSegment

Represents an HL7 FT1 message segment (Financial transaction). This segment has the following fields:

  • FT1-1: Set ID - Financial Transaction (SI) optional
  • FT1-2: Transaction ID (ST) optional
  • FT1-3: Transaction Batch ID (ST) optional
  • FT1-4: Transaction Date (TS)
  • FT1-5: Transaction Posting Date (TS) optional
  • FT1-6: Transaction Type (ID)
  • FT1-7: Transaction Code (CE)
  • FT1-8: Transaction Description (ST) optional
  • FT1-9: Transaction Description - alternate (ST) optional
  • FT1-10: Transaction Quantity (NM) optional
  • FT1-11: Transaction Amount - Extended (CP) optional
  • FT1-12: Transaction Amount - Unit (CP) optional
  • FT1-13: Department Code (CE) optional
  • FT1-14: Insurance Plan ID (CE) optional
  • FT1-15: Insurance Amount (CP) optional
  • FT1-16: Assigned Patient Location (PL) optional
  • FT1-17: Fee Schedule (ID) optional
  • FT1-18: Patient Type (ID) optional
  • FT1-19: Diagnosis Code (CE) optional repeating
  • FT1-20: Performed By Code (XCN) optional
  • FT1-21: Ordered By Code (XCN) optional
  • FT1-22: Unit Cost (NM) optional
  • FT1-23: Filler Order Number (EI) optional
  • FT1-24: Entered By Code (XCN) optional
  • FT1-25: Procedure Code (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDFinancialTransaction

      Returns FT1-1: "Set ID - Financial Transaction" - creates it if necessary
    • getFt11_SetIDFinancialTransaction

      Returns FT1-1: "Set ID - Financial Transaction" - creates it if necessary
    • getTransactionID

      public ST getTransactionID()
      Returns FT1-2: "Transaction ID" - creates it if necessary
    • getFt12_TransactionID

      Returns FT1-2: "Transaction ID" - creates it if necessary
    • getTransactionBatchID

      Returns FT1-3: "Transaction Batch ID" - creates it if necessary
    • getFt13_TransactionBatchID

      Returns FT1-3: "Transaction Batch ID" - creates it if necessary
    • getTransactionDate

      Returns FT1-4: "Transaction Date" - creates it if necessary
    • getFt14_TransactionDate

      Returns FT1-4: "Transaction Date" - creates it if necessary
    • getTransactionPostingDate

      Returns FT1-5: "Transaction Posting Date" - creates it if necessary
    • getFt15_TransactionPostingDate

      Returns FT1-5: "Transaction Posting Date" - creates it if necessary
    • getTransactionType

      Returns FT1-6: "Transaction Type" - creates it if necessary
    • getFt16_TransactionType

      Returns FT1-6: "Transaction Type" - creates it if necessary
    • getTransactionCode

      Returns FT1-7: "Transaction Code" - creates it if necessary
    • getFt17_TransactionCode

      Returns FT1-7: "Transaction Code" - creates it if necessary
    • getTransactionDescription

      Returns FT1-8: "Transaction Description" - creates it if necessary
    • getFt18_TransactionDescription

      Returns FT1-8: "Transaction Description" - creates it if necessary
    • getTransactionDescriptionAlternate

      Returns FT1-9: "Transaction Description - alternate" - creates it if necessary
    • getFt19_TransactionDescriptionAlternate

      Returns FT1-9: "Transaction Description - alternate" - creates it if necessary
    • getTransactionQuantity

      Returns FT1-10: "Transaction Quantity" - creates it if necessary
    • getFt110_TransactionQuantity

      Returns FT1-10: "Transaction Quantity" - creates it if necessary
    • getTransactionAmountExtended

      Returns FT1-11: "Transaction Amount - Extended" - creates it if necessary
    • getFt111_TransactionAmountExtended

      Returns FT1-11: "Transaction Amount - Extended" - creates it if necessary
    • getTransactionAmountUnit

      Returns FT1-12: "Transaction Amount - Unit" - creates it if necessary
    • getFt112_TransactionAmountUnit

      Returns FT1-12: "Transaction Amount - Unit" - creates it if necessary
    • getDepartmentCode

      Returns FT1-13: "Department Code" - creates it if necessary
    • getFt113_DepartmentCode

      Returns FT1-13: "Department Code" - creates it if necessary
    • getInsurancePlanID

      Returns FT1-14: "Insurance Plan ID" - creates it if necessary
    • getFt114_InsurancePlanID

      Returns FT1-14: "Insurance Plan ID" - creates it if necessary
    • getInsuranceAmount

      Returns FT1-15: "Insurance Amount" - creates it if necessary
    • getFt115_InsuranceAmount

      Returns FT1-15: "Insurance Amount" - creates it if necessary
    • getAssignedPatientLocation

      Returns FT1-16: "Assigned Patient Location" - creates it if necessary
    • getFt116_AssignedPatientLocation

      Returns FT1-16: "Assigned Patient Location" - creates it if necessary
    • getFeeSchedule

      public ID getFeeSchedule()
      Returns FT1-17: "Fee Schedule" - creates it if necessary
    • getFt117_FeeSchedule

      Returns FT1-17: "Fee Schedule" - creates it if necessary
    • getPatientType

      public ID getPatientType()
      Returns FT1-18: "Patient Type" - creates it if necessary
    • getFt118_PatientType

      Returns FT1-18: "Patient Type" - creates it if necessary
    • getDiagnosisCode

      public CE[] getDiagnosisCode()
      Returns all repetitions of Diagnosis Code (FT1-19).
    • getFt119_DiagnosisCode

      Returns all repetitions of Diagnosis Code (FT1-19).
    • getDiagnosisCodeReps

      public int getDiagnosisCodeReps()
      Returns a count of the current number of repetitions of Diagnosis Code (FT1-19). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDiagnosisCode

      public CE getDiagnosisCode(int rep)
      Returns a specific repetition of FT1-19: "Diagnosis Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFt119_DiagnosisCode

      public CE getFt119_DiagnosisCode(int rep)
      Returns a specific repetition of FT1-19: "Diagnosis Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getFt119_DiagnosisCodeReps

      Returns a count of the current number of repetitions of Diagnosis Code (FT1-19). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDiagnosisCode

      public CE insertDiagnosisCode(int rep) throws HL7Exception
      Inserts a repetition of FT1-19: "Diagnosis 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)
    • insertFt119_DiagnosisCode

      public CE insertFt119_DiagnosisCode(int rep) throws HL7Exception
      Inserts a repetition of FT1-19: "Diagnosis 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)
    • removeDiagnosisCode

      public CE removeDiagnosisCode(int rep) throws HL7Exception
      Removes a repetition of FT1-19: "Diagnosis 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)
    • removeFt119_DiagnosisCode

      public CE removeFt119_DiagnosisCode(int rep) throws HL7Exception
      Removes a repetition of FT1-19: "Diagnosis 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)
    • getPerformedByCode

      Returns FT1-20: "Performed By Code" - creates it if necessary
    • getFt120_PerformedByCode

      Returns FT1-20: "Performed By Code" - creates it if necessary
    • getOrderedByCode

      Returns FT1-21: "Ordered By Code" - creates it if necessary
    • getFt121_OrderedByCode

      Returns FT1-21: "Ordered By Code" - creates it if necessary
    • getUnitCost

      public NM getUnitCost()
      Returns FT1-22: "Unit Cost" - creates it if necessary
    • getFt122_UnitCost

      Returns FT1-22: "Unit Cost" - creates it if necessary
    • getFillerOrderNumber

      Returns FT1-23: "Filler Order Number" - creates it if necessary
    • getFt123_FillerOrderNumber

      Returns FT1-23: "Filler Order Number" - creates it if necessary
    • getEnteredByCode

      Returns FT1-24: "Entered By Code" - creates it if necessary
    • getFt124_EnteredByCode

      Returns FT1-24: "Entered By Code" - creates it if necessary
    • getProcedureCode

      public CE getProcedureCode()
      Returns FT1-25: "Procedure Code" - creates it if necessary
    • getFt125_ProcedureCode

      Returns FT1-25: "Procedure Code" - creates it if necessary
    • createNewTypeWithoutReflection

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