Class GP1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class GP1 extends AbstractSegment

Represents an HL7 GP1 message segment (Grouping/Reimbursement - Visit). This segment has the following fields:

  • GP1-1: Type of Bill Code (IS)
  • GP1-2: Revenue Code (IS) optional repeating
  • GP1-3: Overall Claim Disposition Code (IS) optional
  • GP1-4: OCE Edits per Visit Code (IS) optional repeating
  • GP1-5: Outlier Cost (CP) optional
See Also:
  • Constructor Details

  • Method Details

    • getTypeOfBillCode

      Returns GP1-1: "Type of Bill Code" - creates it if necessary
    • getGp11_TypeOfBillCode

      Returns GP1-1: "Type of Bill Code" - creates it if necessary
    • getRevenueCode

      public IS[] getRevenueCode()
      Returns all repetitions of Revenue Code (GP1-2).
    • getGp12_RevenueCode

      public IS[] getGp12_RevenueCode()
      Returns all repetitions of Revenue Code (GP1-2).
    • getRevenueCodeReps

      public int getRevenueCodeReps()
      Returns a count of the current number of repetitions of Revenue Code (GP1-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRevenueCode

      public IS getRevenueCode(int rep)
      Returns a specific repetition of GP1-2: "Revenue Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGp12_RevenueCode

      public IS getGp12_RevenueCode(int rep)
      Returns a specific repetition of GP1-2: "Revenue Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGp12_RevenueCodeReps

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

      public IS insertRevenueCode(int rep) throws HL7Exception
      Inserts a repetition of GP1-2: "Revenue 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)
    • insertGp12_RevenueCode

      public IS insertGp12_RevenueCode(int rep) throws HL7Exception
      Inserts a repetition of GP1-2: "Revenue 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)
    • removeRevenueCode

      public IS removeRevenueCode(int rep) throws HL7Exception
      Removes a repetition of GP1-2: "Revenue 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)
    • removeGp12_RevenueCode

      public IS removeGp12_RevenueCode(int rep) throws HL7Exception
      Removes a repetition of GP1-2: "Revenue 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)
    • getOverallClaimDispositionCode

      Returns GP1-3: "Overall Claim Disposition Code" - creates it if necessary
    • getGp13_OverallClaimDispositionCode

      Returns GP1-3: "Overall Claim Disposition Code" - creates it if necessary
    • getOCEEditsPerVisitCode

      Returns all repetitions of OCE Edits per Visit Code (GP1-4).
    • getGp14_OCEEditsPerVisitCode

      Returns all repetitions of OCE Edits per Visit Code (GP1-4).
    • getOCEEditsPerVisitCodeReps

      Returns a count of the current number of repetitions of OCE Edits per Visit Code (GP1-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOCEEditsPerVisitCode

      public IS getOCEEditsPerVisitCode(int rep)
      Returns a specific repetition of GP1-4: "OCE Edits per Visit Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGp14_OCEEditsPerVisitCode

      public IS getGp14_OCEEditsPerVisitCode(int rep)
      Returns a specific repetition of GP1-4: "OCE Edits per Visit Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGp14_OCEEditsPerVisitCodeReps

      Returns a count of the current number of repetitions of OCE Edits per Visit Code (GP1-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertOCEEditsPerVisitCode

      public IS insertOCEEditsPerVisitCode(int rep) throws HL7Exception
      Inserts a repetition of GP1-4: "OCE Edits per Visit 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)
    • insertGp14_OCEEditsPerVisitCode

      Inserts a repetition of GP1-4: "OCE Edits per Visit 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)
    • removeOCEEditsPerVisitCode

      public IS removeOCEEditsPerVisitCode(int rep) throws HL7Exception
      Removes a repetition of GP1-4: "OCE Edits per Visit 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)
    • removeGp14_OCEEditsPerVisitCode

      Removes a repetition of GP1-4: "OCE Edits per Visit 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)
    • getOutlierCost

      public CP getOutlierCost()
      Returns GP1-5: "Outlier Cost" - creates it if necessary
    • getGp15_OutlierCost

      Returns GP1-5: "Outlier Cost" - creates it if necessary
    • createNewTypeWithoutReflection

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