FHIR Chat · Template syntax and object documentation ? · IG creation

Stream: IG creation

Topic: Template syntax and object documentation ?


view this post on Zulip Janaka Peiris (Jun 25 2021 at 05:58):

I see some basic examples on starting to create a new template. I'd like to find more about the available objects and how .md vs .xml files work etc.

1) I've seen this syntax in some IG page content XML files ( <IG root>/input/includes/*.xml). Is there any documentation on what kind of syntax (I assume its Jekyll) and objects are supported?

    {% for sd_hash in site.data.structuredefinitions -%}
        {%- assign sd = sd_hash[1] -%}
        {%- if sd.kind  == "complex-type" and sd.type != "Extension" -%}
        <li>
            <a href="{{sd.path}}">{{sd.name}}</a>{{sd.title}}
        </li>
        {%- endif -%}
    {%- endfor -%}

2) Also noted that some pages are automatically generated from the IG template (eg: artifacts.html). Where can I find these files, and how can I override it ?

view this post on Zulip Jose Costa Teixeira (Jun 25 2021 at 06:41):

1) Yes, this is jekyll liquid syntax. To see the available variables, you can look under your IG's temp\pages\_data (after you build the IG)

view this post on Zulip Jose Costa Teixeira (Jun 25 2021 at 06:42):

  1. The artifacts index is generated by createArtifactSummary.xslt which is called by the template's ant script

view this post on Zulip Eric Haas (Jun 25 2021 at 15:59):

In summary the ig are a combination of Java generated fragments xlst generated pages and authored content all stitched together in Jekyll


Last updated: Apr 12 2022 at 19:14 UTC