Skip to content

Bill queries

Query bill records, entry-source classification, allowed amounts, and non-expired service codes.

Field Value
Operation ID OP-SD-12
Trigger Bill-related read operations.
Inputs Bill id, service code
Outputs Bill/service data
Primary components BillQueryProvider
Entry point Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs

Steps

  1. Entry source "R" means regenerated and "E" means e-bill (SD-BR-034).
  2. GetBillAmounts sums AllowedAmount, treating null as 0 (SD-BR-035, SQL-024, SQL-025, SQL-026, SQL-027, SQL-028, SQL-029).
  3. GetCbpServiceCodeNotExpired requires ExpirationDate == null (SD-BR-036). Data: CbpBill (CBP_BILL), CbpServiceCode.

Process flow

The following diagram visualizes this operation's control flow.

flowchart TD
    Start([Bill-related read operations.]) --> S1["`BillQueryProvider`"]
    S1 --> S2{"Rules satisfied?"}
    S2 -->|Yes| EndOk([Result returned])
    S2 -->|No| EndErr([Exception / empty result])

Failure and edge-case behavior

  • Null AllowedAmount: treated as 0 in the sum.

Sources

  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs
  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:35
  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:40
  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:45