FHIR Chat · Active Tables · committers

Stream: committers

Topic: Active Tables


view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:34):

Hey all, a little xmas present for you: I have added support for making the heirarchical table displays in the specification active:

pasted image

click on the icon, get:

pasted image

view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:34):

Your actions are remembered during a session.

view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:36):

you can have this too, in your IGs, if you are building IGs. To get this in an IG, you need to do 2 things:

First, you have to add this entry in your html header:

  <script src="fhir-table-scripts.js"></script>

view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:36):

you have add this to your header (before any of the tables in the page), not the footer (which is usual practice)

view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:39):

and you have to tell the IG publisher that you've done this:

for the old ig.json approach:

  "activeTables" : true

and in the new IG approach:

   <parameter>
     <code value="active-tables"/>
     <value value="true"/>
  </parameter>

Or it's equivalent in json.

@Lloyd McKenzie can you add this to the standard template please

view this post on Zulip Grahame Grieve (Dec 15 2019 at 21:40):

see it at work here: http://build.fhir.org/patient.html

view this post on Zulip Lloyd McKenzie (Dec 15 2019 at 22:05):

Will do. (And thank you for the Christmas present :))

view this post on Zulip Sarah Gaunt (Dec 15 2019 at 22:51):

Exciting! Trying it now!! :tada:

view this post on Zulip Sarah Gaunt (Dec 15 2019 at 23:21):

It works! It works! Very cool @Grahame Grieve ...

view this post on Zulip Richard Townley-O'Neill (Dec 16 2019 at 04:47):

:+1: :tada:

view this post on Zulip Jose Costa Teixeira (Dec 16 2019 at 11:10):

Nice! For the IG, does this go into config.json?

view this post on Zulip Grahame Grieve (Dec 16 2019 at 11:16):

yes unless you are not using config.json

view this post on Zulip Rick Geimer (Dec 24 2019 at 15:53):

Very cool! @Sean McIlvenna check it out and see if we can make this a selection in Trifolia on FHIR for the publish and export features.

view this post on Zulip Grahame Grieve (Dec 24 2019 at 19:17):

it should not be a selection, I think.

view this post on Zulip Sean McIlvenna (Dec 28 2019 at 17:31):

once this is available in the new template we can add it

view this post on Zulip Jose Costa Teixeira (Dec 28 2019 at 20:03):

@Lloyd McKenzie did you add this to the template? (I'm guessing config.json and pagebegin.html, but cannot figure out how, or I'd add it for myself to try it)
(no rush, I just have this feeling like the xmas toy came without batteries and we cannot use it :) )

view this post on Zulip Grahame Grieve (Dec 28 2019 at 20:05):

Lloyd is offline for nearly a week

view this post on Zulip Lloyd McKenzie (Jan 03 2020 at 15:22):

Haven't yet, but expect to soon. Maybe this weekend or early next week. For now, play with your other toys :)

view this post on Zulip Jose Costa Teixeira (Jan 03 2020 at 17:28):

I've added it to my derived template for now.

view this post on Zulip Lloyd McKenzie (Jan 03 2020 at 17:37):

Want to make a pull request against the base template?

view this post on Zulip Jose Costa Teixeira (Jan 03 2020 at 17:48):

please confirm: Should active tables be always on (by injecting it in onLoad.xslt) or as an optional parameter that editors can add to ig.xml manually?

view this post on Zulip Lloyd McKenzie (Jan 03 2020 at 18:16):

I can't think of why we'd want variability there in the HL7 IGs (or those IGs that want to be aligned in appearance with HL7 IGs - which is what 'base' is for).

view this post on Zulip Jose Costa Teixeira (Jan 03 2020 at 18:17):

ok will do in onLoad.xslt

view this post on Zulip Jose Costa Teixeira (Jan 03 2020 at 19:14):

PR created
@Lloyd McKenzie


Last updated: Apr 12 2022 at 19:14 UTC