Disable automatic ID generation

18 views
Skip to first unread message

Emanuele Laudani

unread,
Apr 26, 2024, 10:27:01 AM4/26/24
to HAPI FHIR
Hello everyone, 
is it possible to assign the id when creating a resource in fhir r4? I am using this server HAPI FHIR Server - 5.0.2,

thanks

Notice:  This e-mail message, together with any attachments, contains information of Vree Health Italia Srl, that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.

James Agnew

unread,
Apr 26, 2024, 10:28:49 AM4/26/24
to Emanuele Laudani, HAPI FHIR
Hi Emanuele,

Definitely possible! You're looking for the "update as create" operation (ie. an upsert). This is documented here: http://hl7.org/fhir/http.html#upsert

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/da26d4e9-dd5c-4f35-a246-0b652c72acc4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages