FHIR Chat · canonical references · implementers

Stream: implementers

Topic: canonical references


view this post on Zulip Ben Spencer (Oct 28 2017 at 07:14):

Vonk seems to canonicalise relative references in incoming resources by prepending the server base url. Is this behaviour specified anywhere or just at the discretion of the implementer? (similar to the behaviour for relative urls here, but applies to non-bundled resources: http://hl7.org/fhir/bundle.html#references)

view this post on Zulip Grahame Grieve (Oct 28 2017 at 09:10):

not specified anywhere as far as I remember

view this post on Zulip Christiaan Knaap (Oct 30 2017 at 08:49):

To be precise: we prepend the server base url at request time, on the way out to the client. This way:
- you can directly follow the links, because they are absolute
- it works for different clients addressing Vonk through different urls (e.g. through vonk.intranet.hospital.org from within the firewall and through vonk.hospital.org from outside).

view this post on Zulip Ewout Kramer (Oct 30 2017 at 13:20):

We did it like that all the way back from Spark I think....

view this post on Zulip Christiaan Knaap (Oct 30 2017 at 13:22):

Not exactly:
- returning absolute links: yes, Spark did that already
- adjust to the viewpoint of the client: Spark had a serverwide setting for it's FHIR endpoint, it could not be adjusted per-request.

view this post on Zulip Brian Postlethwaite (Nov 10 2017 at 08:21):

I did a port of that in Spark, and I do what you've described in our current server @Christiaan Knaap , however I think this approach has issues if you have a reverse proxy in place.
So where I can, I use relative references (which avoid the problem)


Last updated: Apr 12 2022 at 19:14 UTC