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
FI-2015 GET requests added to fhir_operation #380
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
==========================================
+ Coverage 76.97% 77.00% +0.03%
==========================================
Files 214 214
Lines 10693 10708 +15
Branches 986 991 +5
==========================================
+ Hits 8231 8246 +15
Misses 1884 1884
Partials 578 578
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Currently have two blocks of let statements that are identical in the tests for body_to_path and fhir_operation. Let me know if I should move them to the top where let(:group) is since they are used by multiple test groups. Also, let me know if body_to_path should just return the converted body, and not receive the path as an argument and append the converted body. |
Yes, move common
Absolutely return the converted body rather than modifying an argument. |
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.
This branch isn't doing anything javascript-related, so package-lock.json
should not be changing.
…ithub.com/inferno-framework/inferno-core into FI-2015-enable-get-request-fhir_operation
I believe Alisa ran into similar issues as myself upon setup, and found a temporary fix in deleting package-lock.json. I bet I did the same to avoid some of the |
Changes:
|
I'm running into an issue running bundle install locally, and looking into it it looks like this has been an issue on windows in the past -- can a Mac user pull and try to run? Here is the error I'm getting:
|
Gemfile.lock
Outdated
@@ -30,17 +30,18 @@ PATH | |||
GEM | |||
remote: https://rubygems.org/ | |||
specs: | |||
activesupport (6.1.7.6) |
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.
This branch shouldn't be changing Gemfile.lock
, package.json
, or package-lock.json
.
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.
How should I resolve this? Is copying the current state of these files from main and moving them over to this branch enough?
I'm also wondering if these changes are brought about from running bundle install with a different node/npm version -- I think we had a discussion on slack about that at one point but not sure if it applies here?
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.
Is copying the current state of these files from main and moving them over to this branch enough?
Yes, you could do that. You should be able to tell which commands are changing those files by running the commands and seeing what changes.
Summary
According to HL7 r5 specification:
Operations may be invoked using a GET, with parameters as HTTP URL parameters, if:
fhir_operation
now has an optionaloperationMethod
argument that indicates whether GET or POST should be used (defaulting to POST).Discovering affectsState was considered out of scope for this ticket -- as such, it is currently up to the caller to know about the Operation's affectsState value before determining whether they can use a GET request.
Any parameters are checked to ensure they are primitive, then converted to a query string that is appended to the path given to
fhir_operation
.Tests added
I've also included a commented out test for handling repeated parameters -- this is something that is handled through the call to fhir_client and Stephen suggested spinning off another ticket, FI-2223, and I have left details in the description of that ticket for using the test.