FHIR Chat · HAPI FHIR JPA Server · implementers

Stream: implementers

Topic: HAPI FHIR JPA Server


view this post on Zulip Nick Jones (Jun 06 2017 at 15:47):

I've probably missed something simple here but I'm using the HAPI FHIR Jpaserver and it works great in most ways but if I try to force an ID it silently ignores me. So if I add a patient resource using the CRUD console with no ID it will allocate me the next way - say "id": "4",. If on the other hand I put an ID in the ID field ... it still just allocates me the next one e.g. "id": "5", I've tried using simple Ids "1000001" and using a context "Patient/1000001" with no effect.

view this post on Zulip Christopher Schuler (Jun 06 2017 at 15:59):

The Create operation uses POST, which creates an ID. Try using Update operation, which uses PUT and you can specify the ID.
FYI, this should go in the HAPI stream.

view this post on Zulip Nick Jones (Jun 06 2017 at 16:06):

Thanks Chris - I'll try that though the screen text could do with updating if that's the case. I'll use the HAPI stream for any more on this.

view this post on Zulip Christopher Schuler (Jun 06 2017 at 16:16):

You're welcome Nick =). HAPI is following the FHIR Update standard:
http://hl7.org/implement/standards/fhir/http.html#update
See the last paragraph starting with "Note".


Last updated: Apr 12 2022 at 19:14 UTC