Skip to content

PAY-2379 add insurance coverage-filter demo to Android sample app#191

Open
snehasish-sourav-bwell wants to merge 2 commits into
mainfrom
PAY-2379
Open

PAY-2379 add insurance coverage-filter demo to Android sample app#191
snehasish-sourav-bwell wants to merge 2 commits into
mainfrom
PAY-2379

Conversation

@snehasish-sourav-bwell

@snehasish-sourav-bwell snehasish-sourav-bwell commented Jul 7, 2026

Copy link
Copy Markdown

About

Turns the previously-stubbed Insurance screen in the Android sample app into an interactive demo of the ExplanationOfBenefit coverage filter (PAY-2379) — pick an insurance plan and see the claims filtered to that plan.

What it adds

  • InsuranceRepository / InsuranceViewModel (+InsuranceViewModelFactory) wrapping getCoverages() and getExplanationOfBenefits(coverage=…); registered on BWellSampleApplication.
  • A plan dropdown ("All plans" + one entry per coverage) that drives the claims list via ExplanationOfBenefitRequest.Builder().coverage(id).
  • ClaimsListAdapter + claim_item_view showing claim type, provider, service date, and Billed / Insurance Paid / You Paid.
  • LoginFragment: prefill clientKey from env.properties (alongside the existing authToken).

⚠️ Build dependency

This demo calls ExplanationOfBenefitRequest.coverage(), which is added by the SDK change in icanbwell/bwell-sdk#899 and is not published yet. So app/build.gradle.kts still points at the current released SDK and the demo will not compile until that dependency is bumped — see the TODO(PAY-2379) there. Bump the version once #899 is merged and published.

Links

https://icanbwell.atlassian.net/browse/PAY-2379
SDK change: https://github.com/icanbwell/bwell-sdk/pull/899

@snehasish-sourav-bwell snehasish-sourav-bwell self-assigned this Jul 7, 2026
@snehasish-sourav-bwell snehasish-sourav-bwell added the Minor Increment the Minor version label Jul 7, 2026
@snehasish-sourav-bwell
snehasish-sourav-bwell requested review from a team as code owners July 7, 2026 07:49
…urance state

- InsuranceViewModel: cancel the in-flight claims Job before starting a new
  load so rapid plan switches can't resolve out of order and render stale
  claims under the wrong plan label.
- InsuranceFragment: fall back to the connect state for any non-(non-empty)
  coverage result (null / error / no coverage) so the screen never goes
  blank and always offers the Connect recovery path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Increment the Minor version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant