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

A POSTed Bundle containing an Id is processed without error #33

Open
mlos100 opened this issue Jan 27, 2016 · 2 comments
Open

A POSTed Bundle containing an Id is processed without error #33

mlos100 opened this issue Jan 27, 2016 · 2 comments

Comments

@mlos100
Copy link

mlos100 commented Jan 27, 2016

The FHIR server accepts a Bundle containing an Id, changes the value of the Id, and returns success.

FHIR Spec Section 2.1.0.13 states: “If the client wishes to have control over the id of a newly submitted resource, it should use the update interaction instead.” In fact, if we’re accepting the post and re-assigning the ID, we’re in violation of the spec ourselves, as it further states: “If an ID element is provided, the server SHALL respond with a HTTP 400 error code, and SHOULD provide an operation outcome identifying the issue.” .

@cmoesel
Copy link
Contributor

cmoesel commented Jan 27, 2016

Thank you for posting this. I expect it is the same for all resources (not just Bundle). We'll put it on our to-do list!

@cmoesel
Copy link
Contributor

cmoesel commented Feb 15, 2016

This is partially fixed in pull request #43, which adds support for upserts using HTTP PUT. We're still in violation of the spec, however, in that we don't reject POSTs that contain IDs.

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

No branches or pull requests

2 participants