Skip to content

Conversation

@clewellyn-nava
Copy link
Contributor

@clewellyn-nava clewellyn-nava commented Nov 25, 2025

JIRA Ticket:
BB2-4266

What Does This PR Do?

What Should Reviewers Watch For?

There is currently a failing unit tests because it expects the _format to be "json", but if you look at the https://sandbox.bluebutton.cms.gov/docs/openapi#/v1/fhirMetaData, it should /at least/ be application/json, and I propose it should be application/json+fhir everywhere we're making BFD calls.

Please look at the various TODO's, some of these are design decisions the team will have to make and live with, while some of them are proposed cleanups.

I have removed a lot of existing unnecessary code from when fhir server settings and fhir resource permissions were stored as objects in the database. I found no issues with my changes via unit tests and testclient testing, but take care to check permissions.

I've taken the liberty of sketching out what a drf ViewSet implementation of Patient would look like. Doing this made me realize some assumptions our API wrapper has that may need to be revisited if we go with the ViewSet, or push us away from it as a concept.

You should look to authenticate with a patient and mess with the scopes and URI to check that it works and doesn't work as expected.

If you're reviewing this PR, please check for these things in particular:

Validation

Unit tests pass, integration tests pass, local testclient works as expected. This shouldn't be a functional change.

For testing the C4DIC endpoint, you will need to authenticate with BBUser09995 (PW09995!@), as it has the C4DIC data populated.

What Security Implications Does This PR Have?

N/A

Any Migrations?

N/A

@clewellyn-nava clewellyn-nava changed the title C4DIC Endpoint BB2-4266 - C4DIC Endpoint Nov 26, 2025
@clewellyn-nava clewellyn-nava marked this pull request as ready for review November 26, 2025 18:44
@JamesDemeryNava JamesDemeryNava marked this pull request as draft December 2, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants