FHIR Chat · Indicate the ballot in the header · IG creation

Stream: IG creation

Topic: Indicate the ballot in the header


view this post on Zulip Sarah Gaunt (Jul 30 2019 at 22:20):

So Lynn has asked me to fix one thing in our IG which is to "indicate the ballot in the header". Currently it says "CI Build" (because it's the CI build!). I looked at one of the DaVinci IGs (last commit @Eric Haas ) and noticed that even though that IG is also the CI build it has "Release 0.1.0 STU1 Ballot". @Eric Haas I looked at your code in the header and you have:

        {% if {{site.build}} == "ci" %}
        CI Build
        {% elsif {{site.build}} == "ballot" %}
        (Release {{ site.data.fhir.ig.version }} {{site.ballot}} Ballot)
        {% elsif {{site.build}} == "commentballot" %}
        (Release {{ site.data.fhir.ig.version }} {{site.ballot}} Ballot for Comment)
        {% else %}
        (Release {{ site.data.fhir.ig.version }} )
        {% endif %}

1. Where does site.build get set? I can see "status" in package-list.json, but site.build looks slightly different.
2. Shouldn't what is output in the header be variable depending on where the IG is published? Like it should not output Ballot when it is still the CI build?
The code I have in my header is (probably an old version of your framework @Eric Haas ):

      {% if {{site.data.fhir.ig.status}} == 'draft' %}
      <strong>{{site.data.fhir.ig.title}} Implementation Guide CI Build</strong>
      {% else %}
      <strong>{{site.data.fhir.ig.title}} Implementation Guide Release {{site.data.fhir.ig.version}}</strong>
      {% endif %}

Which seems like it might be using the status from package-list.json (though maybe should be "ci-build" instead of "draft)? And should change depending on where it is publsihed?

view this post on Zulip Grahame Grieve (Jul 30 2019 at 22:25):

my contention generally is that the CI build is prepared explicitly for a particular publication. the fact that it's CI build or whatever is in the gold publication status box that the infrastructure maintains. The header should state the intent clearly - I don't want it to say "CI Build" when in fact that document is "Acme Implementation Guide, Ballot #1"

view this post on Zulip Sarah Gaunt (Jul 30 2019 at 22:27):

Ah ok, got it thanks!

view this post on Zulip Eric Haas (Jul 30 2019 at 22:27):

all the site variables are in the .config.yml file. ( Everything you need
that ig-publisher forgot.) if you go to my template repo:
https://github.com/Healthedata1/IG-Template2
in the /framework directory you will see the config.yml file. The DaVinci
Alerts repo has is too and can see what values I have there.

Eric

Eric M Haas, DVM, MS
Health eData Inc
1183 Mountain View Circle, Napa, CA 94558

view this post on Zulip Sarah Gaunt (Jul 30 2019 at 22:28):

Thanks @Eric Haas !


Last updated: Apr 12 2022 at 19:14 UTC