FHIR Chat · New error around URLs not being valid · IG creation

Stream: IG creation

Topic: New error around URLs not being valid


view this post on Zulip Jean Duteau (Mar 26 2020 at 18:23):

I did just update to the latest publisher (v1.0.73-SNAPSHOT) and I'm now getting an error that I didn't see before. It is in three of my examples in the generated summary:
Composition/SampleICSRComposition: Composition.text.div error The URL {{[type]}}-{{[id]}}.html is not valid

So that URL is there but it's obviously a generated URL so it's not an error I can fix.

view this post on Zulip Lloyd McKenzie (Mar 26 2020 at 18:55):

Grahame indicated that that's a template issue, but I don't really understand because it wasn't a problem before. Haven't had time to dig further to understand

view this post on Zulip Grahame Grieve (Mar 26 2020 at 19:03):

well, it was worth making that change. It's not a valid URL and there's something wrong, I'll out it on my list to investigate

view this post on Zulip Jean Duteau (Mar 26 2020 at 20:04):

If you need some pointers to investigate: The examples that have that error in the generated summary have references. So the publisher isn't generating the link to the referenced resource properly. Instead of <a href="Composition-SampleICSRComposition.html"> it is generating the <a href="{{[type]}}-{{[id]}}.html">.

view this post on Zulip Grahame Grieve (Mar 26 2020 at 22:18):

how can I reproduce this?

view this post on Zulip Jean Duteau (Mar 26 2020 at 22:19):

Just have an example that has a reference.

view this post on Zulip Jean Duteau (Mar 26 2020 at 22:20):

it is the reference html that is messed up. i tried walking the code to see where it might be going wrong, but I couldn't help without debugging it and I didn't want to go that far.

view this post on Zulip Grahame Grieve (Mar 26 2020 at 22:31):

the {{[type]}} syntax should never appear in an instance. It's a template thing

view this post on Zulip Lloyd McKenzie (Mar 26 2020 at 22:44):

It wasn't a template thing...

view this post on Zulip Lloyd McKenzie (Mar 26 2020 at 22:45):

Templates don't fill those in

view this post on Zulip Lloyd McKenzie (Mar 26 2020 at 22:45):

i.e. those aren't Jekyll variables

view this post on Zulip Grahame Grieve (Mar 26 2020 at 22:50):

it's a pre-processing syntax commonly used in the page templates. it shouldn't be in the resources

view this post on Zulip Jean Duteau (Mar 27 2020 at 00:08):

Are you sure that it's a template thing? It's the publisher code that is auto-generating the narrative and I don't think it's using a template to do that.

view this post on Zulip Grahame Grieve (Mar 27 2020 at 02:19):

I've run several IGs for other reasons today and I've not seen the error. So tell me where i can reproduce it...

view this post on Zulip Oliver Egger (Mar 27 2020 at 08:58):

This IG shows the error with the url on th ci-build http://build.fhir.org/ig/hl7ch/covid-19-prom/branches/master/qa.html, but not on my old local igpublisher version 1.0.72-SNAPSHOT, the templates did not change in the mean time. Source of the ig is here https://github.com/hl7ch/covid-19-prom

view this post on Zulip Grahame Grieve (Mar 27 2020 at 10:30):

fixed next release


Last updated: Apr 12 2022 at 19:14 UTC