Stream: hapi
Topic: Configure HAPI to accept a specified identifier
Angie Romano (Aug 10 2018 at 17:59):
Hello,
I feel like this is a simple question, but I've searched and searched and I can't figure out how to configure our server to allow us to specify the identifier when creating a new resource (i.e. new patient, new organization, etc...)
Most of the public servers function this way where if the JSON includes an identifier, the server uses that identifier as the record identifier. On our server, the JSON is not rejected, but the server will just add the new record and generate it's own identifier.
How do I get our server to allow us to specify the identifier?
Thank you!
Grahame Grieve (Aug 11 2018 at 04:17):
you need to do a put to the location you want to go to
David Hay (Aug 11 2018 at 19:22):
Do you mean the resource id? (Identifier is an element in the resource). If so, then use a PUT - see http://hl7.org/fhir/http.html#update
Angie Romano (Aug 24 2018 at 18:30):
Thank you @David Hay ! I knew there was an easy answer to my question. That was what I was looking for.
Last updated: Apr 12 2022 at 19:14 UTC