Skip to content

Bill queue processing

Retrieve the next claim bill from the processing queue, or restore a bill to the queue.

Field Value
Operation ID OP-SD-06
Trigger Bill-entry task processing requests the next queued bill, or restores one.
Inputs Queue flag, task id
Outputs Bill data with return/image codes, or a restore result code
Primary components CCClaimApiService.GetNextClaimBillFromQueue, RestoreClaimBillToQueue
Entry point Data/SAIF.Data/Queries/Claims/CCClaimApiService.cs

Steps

  1. PUT v1/BillEntryTaskProcess/NextBillFromQueue/{flag}. The response maps as follows (SD-BR-013):
  2. 200: deserialize the bill.
  3. 404: ReturnCode=1, ImageId=-1.
  4. 500: ReturnCode=-1, ImageId=-1.
  5. Restore: PUT v1/BillEntryTaskProcess/RestoreBill/{taskId}. Returns 1 on 200, otherwise 0 (SD-BR-013).

Process flow

The following diagram visualizes this operation's control flow.

flowchart TD
    Start(["Bill-entry task processing requests the next queued bill,<br>or restores one."]) --> S1["`CCClaimApiService.GetNextClaimBillFromQueue`"]
    S1 --> S2{"Rules satisfied?"}
    S2 -->|Yes| EndOk([Result returned])
    S2 -->|No| EndErr([Exception / empty result])

Failure and edge-case behavior

  • Unmapped status codes: treated per the 500 branch (return -1/-1) per the source's default handling*.

Sources

  • Data/SAIF.Data/Queries/Claims/CCClaimApiService.cs