Binary resource (R4) ID issues

51 views
Skip to first unread message

Gregory Akins

unread,
Aug 12, 2021, 12:55:27 PM8/12/21
to HAPI FHIR
I'm implementing a HAPI Plain Server and am having troubles with POSTing a new Binary resource

When I do that, if I post with an ID, the resource is written to my database with a new ID (this is by design and works the same on all the resources we've implemented to date)

However, for Binary, the ID is returned in the response with the original ID.  We use Code Generation for our Providers, so I feel like this must be something that is happening in the HAPI FHIR Hooks.

Is there any reason why treatment of the ID field on Binary would be different than other resources?

--
Greg Akins
Principal Software Developer

Gregory Akins

unread,
Aug 20, 2021, 8:58:40 AM8/20/21
to HAPI FHIR
On Thu, Aug 12, 2021 at 12:55 PM Gregory Akins <gregor...@semanticbits.com> wrote:
I'm implementing a HAPI Plain Server and am having troubles with POSTing a new Binary resource

When I do that, if I post with an ID, the resource is written to my database with a new ID (this is by design and works the same on all the resources we've implemented to date)

However, for Binary, the ID is returned in the response with the original ID.  We use Code Generation for our Providers, so I feel like this must be something that is happening in the HAPI FHIR Hooks.

Is there any reason why treatment of the ID field on Binary would be different than other resources?

I just created an issue ( https://github.com/hapifhir/hapi-fhir/issues/2906 ) after discovering the same inconsistent behavior in HAPI FHIR JpaServer  

If anyone here has more information, or can help clarify, please let me know.
 

Andrea Caloni

unread,
Mar 2, 2022, 4:10:15 AM3/2/22
to HAPI FHIR
Hi all,
I know it's a very old topic, but I found some issues with posting new Binary resources, and I would like to ask if anybody found any reason for the behaviour desccribed in Greg's post.
When I post a new Binary resource to hapi jpa server, the information contained in /meta/security are lost, and when I retrieve the same resource I don't have anymore the meta/security content.

With best regards

Reply all
Reply to author
Forward
0 new messages