-
Notifications
You must be signed in to change notification settings - Fork 31
BB2-4964/4965: Audit Event Endpoint/Scope #1647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JamesDemeryNava
merged 28 commits into
master
from
jamesdemery/bb2-4964-audit-event-endpoint
Jul 14, 2026
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
bc48a19
BB2-4694: Add support for the v3/fhir/AuditEvent endpoint
JamesDemeryNava 660f524
Add AuditEvent handling to is_resource_for_patient - avoid 404s
JamesDemeryNava e55a8fa
4695 piece of this, add protected capability and scopes for AuditEvent
JamesDemeryNava b139522
Switch to default to True for new AuditEvent capability
JamesDemeryNava a764aa8
Modify unit tests to cover new functionality and add integration tests
JamesDemeryNava 3ede14e
Throw 400 on v2 auth request if AuditEvent scope included, add/modify…
JamesDemeryNava 424ba42
Modify tests and basic_user fixture
JamesDemeryNava e1f4b83
Add an application fixture, modify tests, add docstrings
JamesDemeryNava a9ea6af
Rebase and fix conflicts
JamesDemeryNava 42ded52
Requirement updates
JamesDemeryNava 0690109
Clean up doc strings
JamesDemeryNava 8a993a4
Changes per Copilot PR feedback
JamesDemeryNava 187e957
Merge branch 'master' into jamesdemery/bb2-4964-audit-event-endpoint
JamesDemeryNava bb5ddf7
Incorporate changes from 4963 being merged
JamesDemeryNava 73e5f63
Merge branch 'master' into jamesdemery/bb2-4964-audit-event-endpoint
JamesDemeryNava a043d84
Merge branch 'master' into jamesdemery/bb2-4964-audit-event-endpoint
JamesDemeryNava acea576
Address initial feedback: Ensure AuditEvent is returned, fail v3 auth…
JamesDemeryNava 8a2a308
Ensure a AuditEvent/<id> call returns successfully, add .r and .s sco…
JamesDemeryNava ae7ca66
Merge branch 'master' into jamesdemery/bb2-4964-audit-event-endpoint
JamesDemeryNava 635b3e5
Remove print
JamesDemeryNava 801dc34
Merge branch 'master' into jamesdemery/bb2-4964-audit-event-endpoint
JamesDemeryNava 805b2f1
Address PR feedback
JamesDemeryNava a82df4f
Add integration test for AuditEvent read
JamesDemeryNava b84c67e
Changes so that AuditEvent functionality works with the protectedcapa…
JamesDemeryNava 6eb677c
Remove prints
JamesDemeryNava d777e20
Make comment clearer
JamesDemeryNava e1f4f1c
Add tests, modify comments
JamesDemeryNava a35d13e
Address PR feedback
JamesDemeryNava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaning towards leaving this, as it will retrieve the patient_id from the BFD response if it is in the correct path. If it is not, and IndexError may be thrown, which would be caught by the except Exception block, and False would be returned (ultimately resulting in a 403). Otherwise, we can make this change, and it would be a 404 returned instead of a 403 if there was a problem parsing the AuditEvent.