FHIR Chat · How to enable forced resource ids? · hapi

Stream: hapi

Topic: How to enable forced resource ids?


view this post on Zulip Lin Zhang (Nov 21 2020 at 10:11):

How to enable a forced id for a new resource?

view this post on Zulip Patrick Werner (Nov 21 2020 at 10:12):

Give the resource an id, and PUT it on the server.

view this post on Zulip Lin Zhang (Nov 21 2020 at 11:04):

@Patrick Werner Thanks. Tried but failed when using the Create operation with an specified id on the hapi.fhir.org's default client.

view this post on Zulip Patrick Werner (Nov 21 2020 at 11:05):

Try update instead of create. Create always implies a server generated Id

view this post on Zulip Lin Zhang (Nov 21 2020 at 11:06):

Ah, it's working now:) Appreciate it so much, @Patrick Werner


Last updated: Apr 12 2022 at 19:14 UTC