Open gregory-akins opened 2 years ago
I experienced the same on Hapi Server Org when I post a Patient with a given ID it's not returned with the specific ID
That is by design, AFAIK
A Post creates a resource. HAPI Server removes the ID passed with the resource and assigns it a new ID (because it's a new Resource).
The behavior I experienced is the opposite. When I pass an ID on a Binary post, it is saved and returned in the response ( different than Patient, and the other resources I've implemented).
On Thu, Oct 21, 2021 at 7:21 AM Ilan Levy @.***> wrote:
I experienced the same on Hapi Server Org when I post a Patient with a given ID it's not returned with the specific ID
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hapifhir/hapi-fhir/issues/2906#issuecomment-948512814, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASLIC244YTBZNX4SPRZSJJTUH7ZUJANCNFSM5CQIVALA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
NOTE: Before filing a ticket, please see the following URL: https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug When creating a Binary resource in HAPI FHIR server, the returned resource has the same ID as provided, rather than a new generated ID. This is inconsistent with the behavior of other resources in HAPI FHIR.
To Reproduce Steps to reproduce the behavior:
Expected behavior In this case, I would expect the response body to include the ID generated by PostgresSQL as occurs with other FHIR resources.
Environment (please complete the following information):
Additional context Add any other context about the problem here.