-
Notifications
You must be signed in to change notification settings - Fork 30
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
Implement conditional operations #112
Conversation
fhirpy/base/lib.py
Outdated
@@ -240,6 +246,10 @@ def first(self): | |||
|
|||
return result[0] if result else None | |||
|
|||
def create(self, **resource_data): |
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.
def create(self, resource):
assert resource.resource_type == self.resource_type
return self.client._do_request("POST", self.resource_type, resource.serialize(), self.params)
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #112 +/- ##
==========================================
- Coverage 97.73% 97.47% -0.26%
==========================================
Files 8 8
Lines 662 713 +51
==========================================
+ Hits 647 695 +48
- Misses 15 18 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Support FHIR Conditional operations
FHIR Spec: https://build.fhir.org/http.html#ccreate
Expected behaviour diagram: https://miro.com/app/board/uXjVMvMgnFQ=/