Skip to content

Setting _id #1965

Answered by mbaltus
winrx asked this question in Q&A
Feb 11, 2022 · 1 comment
Discussion options

You must be logged in to vote

This was recently asked on the FHIR community platform in this discussion: https://chat.fhir.org/#narrow/stream/179171-dotnet/topic/setting.20_id.
The correct way to set the technical id is to use client.Update instead of client.Create. FHIR Rest does not allow setting your own id on the create interaction, but does describe this on the update - update as create, see http://hl7.org/fhir/http.html#upsert. Note that a server may not support upserts, as was detailed in the discussion.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mbaltus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants