Stream: implementers
Topic: creating absolute urls that don't exist
Naminder Soorma (May 09 2016 at 13:16):
Hi, I am using the Document Reference resource and in the subject am trying to create a link to a Patient that may/may not exist locally on the FHIR server. So for example: http://example.com/fhir/Patient/123 does not exist, but I want to create the Document Reference record. I would have thought it would be possible to create a Document Reference using this absolute URL. Is there any way to achieve this?
Grahame Grieve (May 09 2016 at 14:15):
well, you can just do that. Servers might not accept it.
Grahame Grieve (May 09 2016 at 14:15):
or have i misunderstood the question
Naminder Soorma (May 09 2016 at 14:31):
We thought you could just do that as well, but maybe it's our HAPI server needs some config out of the box?
James Agnew (May 09 2016 at 21:14):
If you're using HAPI's JPA server, this isn't currently supported. The JPA server requires that all references you send it can be resolved to resources on the same server.
I would be willing to accept a GitHub bug request to make that behaviour configurable if you wanted though :)
Richard Ettema (May 09 2016 at 21:24):
My server, http://wildfhir.aegis.net/fhir, will accept this; i.e. supports this behavior. Although, I like the idea of making this configurable.
Grahame Grieve (May 09 2016 at 22:07):
James, there's 2 different things you might consider
- do I allow external references?
- do I allowe internal references to resources that don't exist?
Chris Grenz (May 10 2016 at 01:28):
Might add:
- do I ensure that internal references remain valid (e.g. server won't return a broken reference)?
Naminder Soorma (May 10 2016 at 07:58):
Hi James, we would very much like it to be configurable as it has been asked as a requirement for our projects. Also agree with Grahame Grieve suggestions to further configuration options.
James Agnew (May 10 2016 at 17:35):
Hi Naminder, can you file a request on our GitHub to track this?
Naminder Soorma (May 11 2016 at 08:54):
Thanks James - that's now done
Last updated: Apr 12 2022 at 19:14 UTC