Skip to content
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

This commit fixes the duplicate variant issue in the find_subject_dx_… #95

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

AkRampersad
Copy link
Contributor

…implication and find_subject_tx_implication functions. This method of creating a variant list and checcking variant IDs against is okay for now but might have scalability issues.

Future implementations should try to limit the variant responses from MongoDB to unique responses.

Description

This commit fixes the issue of duplicate variant issue in the response parameter bundle for find_subject_dx_implication and find_subject_tx_implication functions. This does not have any new requirements.

Fixes # (issue)

How Has This Been Tested?

I tested by running the py tests functions (with the fix implemented) to see the difference in outputted files via working tree differences. I would ctrl-F to find "variant" and check the variant-id. I would then ctrl-f the variant id to ennsure that it only shows up once as a resource id meaning that only one variant resource with that id is present (it is a unique variant resource) . This by extension means that resource ID is okay to show up again when used as a reference as this is not creating a duplicate variant resource just a reference.

  • [ x] Integration Tests
  • [ x] Unit Tests

…implication and find_subject_tx_implication functions. This method of creating a variant list and checcking variant IDs against is okay for now but might have scalability issues.

Future implementations should try to limit the variant responses from MongoDB to unique responses.
Copy link
Collaborator

@mihaitodor mihaitodor left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @AkRampersad! :shipit:

@mihaitodor mihaitodor merged commit 81c9e68 into FHIR:main Oct 17, 2024
2 checks passed
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