FHIR Chat · Template: Graphics in profile descriptions · IG creation

Stream: IG creation

Topic: Template: Graphics in profile descriptions


view this post on Zulip Sarah Gaunt (Jan 16 2020 at 04:27):

@Lloyd McKenzie in the old template we were using we could have graphics in the description of a template and they would show up both on the profile page and the artifact page. In the new template, the graphic shows up on the profile page:
pasted image

But then it does this on the artifact page:
pasted image

I'm not sure what the preferred behaviour would be - could look pretty messy if there were a bunch of graphics on the artifacts page...

Is this something you can fix? Should I raise a Jira? I guess we need to leave graphics out of profile descriptions for now...

view this post on Zulip Jose Costa Teixeira (Jan 16 2020 at 04:33):

@Sarah Gaunt can I reproduce this? It may be due to a recent/pending change

view this post on Zulip Lloyd McKenzie (Jan 16 2020 at 04:40):

I wouldn't recommend putting graphics in the description. Instead, make use of the 'intro' or 'notes' capability of the template to define the more complex content. The description isn't really meant to be more than a sentence or two.

view this post on Zulip Lloyd McKenzie (Jan 16 2020 at 04:40):

If that's something Trifolia doesn't support yet, then we should probably get that addressed.

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 04:47):

How does it work? Where in the template do you do this?

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 04:49):

Never mind, found it in the sample ig

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 05:13):

Where do the "notes" show up - I can see the "intro" material in the sample IG for the MyExtension, but I can't see the notes anywhere...

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 05:22):

Found the notes for MyPatient - but for some reason there aren't notes showing up at the bottom of the extension in the sample IG...

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 05:24):

@Jose Costa Teixeira - just change StructureDefinition.description of myObservation.xml in the sample IG to:

<description value="A profile showing the use of XML to author profiles. &#xA;&lt;center&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&quot;anImage.png&quot; style=&quot;width:100%&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/center&gt;"/>

That image already exists in input/images so that should work.

view this post on Zulip Jose Costa Teixeira (Jan 16 2020 at 06:15):

It works on my machine

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 06:20):

You can see the graphic in the artifact list? Huh... Weird.

view this post on Zulip Jose Costa Teixeira (Jan 16 2020 at 06:32):

I may have tweaked the template. This is why I wanted to see your IG to see if it has the same change

view this post on Zulip Sarah Gaunt (Jan 16 2020 at 06:38):

Ah, understood!


Last updated: Apr 12 2022 at 19:14 UTC