PAY-2379 add insurance coverage-filter demo to Android sample app#191
Open
snehasish-sourav-bwell wants to merge 2 commits into
Open
PAY-2379 add insurance coverage-filter demo to Android sample app#191snehasish-sourav-bwell wants to merge 2 commits into
snehasish-sourav-bwell wants to merge 2 commits into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) wrappinggetCoverages()andgetExplanationOfBenefits(coverage=…); registered onBWellSampleApplication.ExplanationOfBenefitRequest.Builder().coverage(id).ClaimsListAdapter+claim_item_viewshowing claim type, provider, service date, and Billed / Insurance Paid / You Paid.LoginFragment: prefillclientKeyfromenv.properties(alongside the existingauthToken).This demo calls
ExplanationOfBenefitRequest.coverage(), which is added by the SDK change in icanbwell/bwell-sdk#899 and is not published yet. Soapp/build.gradle.ktsstill points at the current released SDK and the demo will not compile until that dependency is bumped — see theTODO(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