THE LINUX FOUNDATION PROJECTS
Docs navigation
On this page

    Report corrections for a previously invoiced billing period

    This query uses the Provider column. Provider is deprecated in v1.3 and will be removed in v1.4.

    FOCUS Versions

    v1.0 v1.1 v1.2

    Context

    When providers issue corrections that adjust historical invoices, practitioners must reconcile those adjustments against prior records.

    FOCUS SQL Query

    SELECT
      ProviderName,
      BillingAccountId,
      ChargeCategory,
      ServiceCategory,
      ServiceName,
      SUM(BilledCost) AS TotalBilledCost
    FROM focus_data_table
    WHERE BillingPeriodStart >= ? AND BillingPeriodEnd < ?
      AND ChargeClass = 'Correction'
    GROUP BY
      ProviderName,
      BillingAccountId,
      ChargeCategory,
      ServiceCategory,
      ServiceName

    FOCUS Datasets

    FOCUS Columns