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¶
- Entry source "R" means regenerated and "E" means e-bill (SD-BR-034).
GetBillAmountssumsAllowedAmount, treating null as 0 (SD-BR-035, SQL-024, SQL-025, SQL-026, SQL-027, SQL-028, SQL-029).GetCbpServiceCodeNotExpiredrequiresExpirationDate == 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.
Related documentation¶
Sources¶
Data/SAIF.Data/Queries/Claims/BillQueryProvider.csData/SAIF.Data/Queries/Claims/BillQueryProvider.cs:35Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:40Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:45