Stream: implementers
Topic: IG Publisher Canonical URL
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
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
Vadim Peretokin (Oct 25 2016 at 21:42):
Ah ok, thanks
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]
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 ?
Grahame Grieve (Oct 25 2016 at 21:49):
the canonical URL must be a folder, and everything has to be published under it
Grahame Grieve (Oct 25 2016 at 21:49):
hm
Grahame Grieve (Oct 25 2016 at 21:49):
maybe we've overused terms here
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
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
Vadim Peretokin (Oct 25 2016 at 21:50):
yep
Grahame Grieve (Oct 25 2016 at 21:50):
so your canonical url would be http://example.com/fhirstuff/mypatientprofile
Grahame Grieve (Oct 25 2016 at 21:50):
that's what goes in the config file.
Grahame Grieve (Oct 25 2016 at 21:51):
the ImplementationGuide.url is http://example.com/fhirstuff/mypatientprofile/ImplementationGuide/[id]
Grahame Grieve (Oct 25 2016 at 21:51):
where [id] is probably mypatientprofile
Vadim Peretokin (Oct 25 2016 at 21:53):
okay - and what's the redirect to [base] about?
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
Vadim Peretokin (Oct 25 2016 at 21:55):
Aha. Thanks for explaining
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
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 :-(
Grahame Grieve (Oct 25 2016 at 22:59):
well, it's not done yet... :-(
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