FHIR Chat · Logica sandbox - preserving FHIR IDs? · implementers

Stream: implementers

Topic: Logica sandbox - preserving FHIR IDs?


view this post on Zulip May Terry (May 17 2021 at 03:39):

Is there a logicahealth sandbox config setting or a parameter in my HTTP POST header such that I can preserve the original IDs for any FHIR instances that I upload to my Logicahealth sandbox instance?

For example, I have a FHIR example that has the following:
{
"resourceType" : "Condition",
"id" : "primary-cancer-condition-adam-everyman ",
…etc…

I would like to preserve that id of “primary-cancer-condition-jenny-m”.
I am using Postman to POST that instance to my Logicalhealth open endpoint: https://api.logicahealth.org/mcodestu2/open/

When I POST that example to the endpoint, I instead get a new id assigned in its place.

{
"resourceType" : "Condition",
"id" : "14789",
…etc…

I cannot update that id using HTTP PUT either, so I’m not sure how to go about it.
Since my FHIR examples are all manually crafted, I strongly prefer to retain the original IDs so I don’t have to update all of the reference ids.

cc: @Nikolai Schwertner

view this post on Zulip Jabeen Mohammed (May 17 2021 at 04:29):

@May Terry instead of POST use PUT to create the resource. You resource id will be retained.

view this post on Zulip May Terry (May 17 2021 at 18:00):

Thanks @Jabeen Mohammed - this worked!


Last updated: Apr 12 2022 at 19:14 UTC