FHIR Chat · IG Publisher Canonical URL · implementers

Stream: implementers

Topic: IG Publisher Canonical URL


view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:35):

http://wiki.hl7.org/index.php?title=IG_Publisher_Documentation#Canonical_URL states:

The Canonical URL should point to the current version of the specification e.g. if someone enters the canonical URL into their browser, they will get the specification home page (or, if a FHIR client uses the URL as it's server URL, a GET of [base]/[Type]/[id] will return the correct resource.

The way I'm reading this is that the specification URL is tied to a FHIR endpoint... is this correct? The HL7 spec itself doesn't do that

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:40):

well, it does... almost. it's work in progress, but my intent is that http://hl7.org/fhir is actually a valid fhir endpoint

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:42):

Ah ok, thanks

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:43):

however that part of the doco is incorrect now. the tools presently insist that the IG canonical url is [base]/ImplementationGuide/[id] which is a redirect to [base]

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:45):

Sorry, that confused me. So if I have example.com/fhirstuff/ImplementationGuide/MyPatientProfile.html as my published canonical URL, who's getting redirected to example.com/fhirstuff ?

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:49):

the canonical URL must be a folder, and everything has to be published under it

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:49):

hm

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:49):

maybe we've overused terms here

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:49):

Ok, so http://example.com/fhirstuff/ImplementationGuide/MyPatientProfile/index.html is my homepage. I don't get the part about a redirect though

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:50):

the canonical url in the config file, the one canonical url for the implementation guide, that has to be a folder under which everything is posted

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:50):

yep

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:50):

so your canonical url would be http://example.com/fhirstuff/mypatientprofile

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:50):

that's what goes in the config file.

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:51):

the ImplementationGuide.url is http://example.com/fhirstuff/mypatientprofile/ImplementationGuide/[id]

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:51):

where [id] is probably mypatientprofile

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:53):

okay - and what's the redirect to [base] about?

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:54):

if you enter http://example.com/fhirstuff/mypatientprofile/ImplementationGuide/[id] into your browser, the server will redirect you to the implementation fuide

view this post on Zulip Vadim Peretokin (Oct 25 2016 at 21:55):

Aha. Thanks for explaining

view this post on Zulip Grahame Grieve (Oct 25 2016 at 21:55):

this happens for all resources - if you enter the canonical url for a code system value set etc , you get redirected to the logical place in the spec for that content

view this post on Zulip Eric Haas (Oct 25 2016 at 22:38):

However for type = Reference(Patient){http://hl7.org/fhir/us/daf/StructureDefinition/daf-core-patient} am not getting the redirect to within the ig. see http://ig.fhir.me/Healthedata1/Argo-DSTU2/StructureDefinition-argo-allergyintolerance.html when you click on the patient reference it doesn't do the redirect. just a 404 :-(

view this post on Zulip Grahame Grieve (Oct 25 2016 at 22:59):

well, it's not done yet... :-(

view this post on Zulip Eric Haas (Oct 26 2016 at 02:16):

OK good. I thought I was doing something wrong. Thanks


Last updated: Apr 12 2022 at 19:14 UTC