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 (DT)
  • FT1-5: Transaction posting date (DT) 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 (NM) optional
  • FT1-12: Transaction amount - unit (NM) optional
  • FT1-13: Department code (CE) optional
  • FT1-14: Insurance plan ID (ID)
  • FT1-15: Insurance amount (NM) optional
  • FT1-16: Assigned Patient Location (CM_INTERNAL_LOCATION) 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 (CN) optional
  • FT1-21: Ordered by code (CN) optional
  • FT1-22: Unit cost (NM) optional
  • FT1-23: Filler Order Number (CM_FILLER) 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

      public CN 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
    • createNewTypeWithoutReflection

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