FHIR Chat · IG Publisher doesn't properly escape Simplifier resolve url · implementers

Stream: implementers

Topic: IG Publisher doesn't properly escape Simplifier resolve url


view this post on Zulip Pieter Edelman (Jul 09 2020 at 09:26):

Hi,
I'm using IG Publisher v1.1.2 to create an IG which has a dependency on a package published on Simplifier. To do so, I include the following snippet in my ImplementationGuide resource:

 <dependsOn>
    <uri value="http://nictiz.nl/fhir/zib2017/prerelease"/>
    <packageId value="nictiz.fhir.nl.stu3.zib2017-prerelease"/>
    <version value="2.0.0-beta3"/>
 </dependsOn>

(the uri is made up).

The resulting qa.html contains a lot of errors about the generated HTML pages for profiles (so about the FHIR profiles themselves), in the form of "unable to parse character reference ...". Upon inspection, this seems to be caused by generated Simplifier links like:

<li><a href="https://simplifier.net/resolve?scope=nictiz.fhir.nl.stu3.zib2017-prerelease@2.0.0-beta3&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-patient">http://fhir.nl/fhir/StructureDefinition/nl-core-patient</a></li>

The ampersand is not properly escaped here. This is about the link that is on the "Text Summary"

view this post on Zulip Grahame Grieve (Jul 09 2020 at 10:39):

exactly where? I thought I had hunted all those locations down?

view this post on Zulip Pieter Edelman (Jul 09 2020 at 11:11):

It happens for example in this file: StructureDefinition-Bundle-MedicationOverview.html

view this post on Zulip Grahame Grieve (Jul 09 2020 at 22:04):

well, that file had 2 errors, from the same piece of code. Will be fixed next release. Did all your errors come from "this structure refers to these other structures"?

view this post on Zulip Pieter Edelman (Jul 15 2020 at 11:19):

Yes, as far as I could see, this was the only source of errors.


Last updated: Apr 12 2022 at 19:14 UTC