8000 IGNT-67 Added Binary res for patient data view control by shubhamgoel24 · Pull Request #1890 · icanbwell/fhir-server · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

IGNT-67 Added Binary res for patient data view control #1890

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
merged 1 commit into from
May 20, 2025

Conversation

shubhamgoel24
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 08:13
@shubhamgoel24 shubhamgoel24 requested a review from a team as a code owner May 20, 2025 08:13
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds support for excluding Binary resources based on patient data view control in the everything operation and updates related test fixtures.

  • Remove Binary entry from the expected bundle and adjust the total count and query display.
  • Add a Binary reference in the consent fixture.
  • Implement exclusion logic in EverythingHelper for Binary resources.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tests/everything/person_or_patient_non_clinical/fixtures/expected/expected_patient_everything_with_patient_scope_and_exclude_res.json Remove the Binary resource entry, decrement total, and update the displayed query string.
src/tests/everything/person_or_patient_non_clinical/fixtures/Consent/consent1.json Add a new Binary reference entry to the consent fixture.
src/operations/everything/everythingHelper.js Add id:not filtering for Binary resources using the exclusion map.
Comments suppressed due to low confidence (1)

src/operations/everything/everythingHelper.js:592

  • Add a unit test to verify that when resourceType is 'Binary' and the exclusion map contains IDs, the baseArgs['id:not'] filter is correctly set.
if (resourceType === 'Binary' && resourceToExcludeIdsMap[resourceType]?.length > 0) {

@@ -588,6 +588,11 @@ class EverythingHelper {
_includeHidden: parsedArgs._includeHidden
};

// for non-clinical resources, only binary support patient data view control
Copy link
Preview
Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Clarify this comment to explain the intention, e.g., "// Exclude Binary resources based on patient data view control when exclude IDs are provided".

Suggested change
// for non-clinical resources, only binary support patient data view control
// Exclude Binary resources based on patient data view control when specific resource IDs are provided.

Copilot uses AI. Check for mistakes.

@shubhamgoel24 shubhamgoel24 merged commit a915134 into main May 20, 2025
12 checks passed
@shubhamgoel24 shubhamgoel24 deleted the SG-IGNT-67 branch May 20, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0