jimfuqian/BB2-3679-Expose-PACA-data-Claim-and-ClaimResponse-thru-BB2-API #1296
+734
−113
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.
JIRA Ticket:
BB2-3679
As a BB2 Team member, I want to familiarize the team with PAC data, so that we can make a decision going forward on the LOE for including this data in the API for end users.
What Does This PR Do?
A POC prototype that expose PACA data: Claim, ClaimResponse on BB2 API:
GET Claim by claim ID
POST based search Claim given mbi etc.
GET ClaimResponse by claim ID
POST based search ClaimResponse given mbi etc.
What Should Reviewers Watch For?
Check out the PR and spin up a local BB2 as instructed by README
Try to call the PACA data end points through:
Swagger UI
TestClient
Note,
If you're reviewing this PR, please check for these things in particular:
Validation
the POC prototype can be played using testclient and swagger UI:
Checkout PR
Spin up a local BB2
Point browser to http://localhost:8000/testclient, and authorize using Gold bene (BBUser10000)
After auth completed, click FHIR endpoints: Claim and ClaimResponse as shown below:
Should get paginated results:
Claims Search (73 total):
ClaimResponse Search (73 total):
Swagger UI: Complete Swagger UI authorize as instructed by description on the swagger UI page (note, need to customized openapi.yaml before kick off docker, substitute all sandbox URL base to http://localhost:8000), also need to register your app e.g. MyApp
Claim Search:
Claim Search Response:

Claim GET (pick a claim ID from the search result bundle, e.g.):

Do similar GET and Search for ClaimResponse....
What Security Implications Does This PR Have?
Please indicate if this PR does any of the following:
security engineer's approval.
Any Migrations?
etc)
What Security Implications Does This PR Have?
Please indicate if this PR does any of the following:
security engineer's approval.
Any Migrations?
etc)