FHIR Chat · feature request: get RAW artifacts · IG creation

Stream: IG creation

Topic: feature request: get RAW artifacts


view this post on Zulip Patrick Werner (Sep 11 2019 at 19:50):

It would be nice to have the option to download and copy&paste resources in XML/JSON with a button click. (similar to Simplifiers Download Button)

view this post on Zulip Patrick Werner (Sep 11 2019 at 19:52):

This would be part of a template?
This is done by the IG creator and has to be part of the creator code?

view this post on Zulip Eric Haas (Sep 11 2019 at 20:12):

I have that javascript code in my templates for the profiles url. it would not be difficult to use is for copying resources

view this post on Zulip Patrick Werner (Sep 11 2019 at 20:33):

would you mind sharing your code and the way how you added it to your template?

view this post on Zulip Lloyd McKenzie (Sep 11 2019 at 20:54):

Better yet, put it in the standard template :)

view this post on Zulip Eric Haas (Sep 11 2019 at 21:08):

its in here: https://github.com/Healthedata1/IG-Template2

and yes I think should be part of the standard template and the fhir spec as well

view this post on Zulip Eric Haas (Sep 11 2019 at 21:09):

IG-Template2/framework/_includes/copy-me.html is the script that get included into a layout

view this post on Zulip Eric Haas (Sep 11 2019 at 21:10):

the hmtl is :

<p>
The official URL for this profile is:
<code>{{site.data.structuredefinitions.{{[id]}}.url}}</code><button id="copy-button" class="btn-default btn-sm" data-clipboard-text="{{site.data.structuredefinitions.{{[id]}}.url}}">Copy</button>
</p>


Last updated: Apr 12 2022 at 19:14 UTC