Stream: committers
Topic: Active Tables
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:
click on the icon, get:
Grahame Grieve (Dec 15 2019 at 21:34):
Your actions are remembered during a session.
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>
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)
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
Grahame Grieve (Dec 15 2019 at 21:40):
see it at work here: http://build.fhir.org/patient.html
Lloyd McKenzie (Dec 15 2019 at 22:05):
Will do. (And thank you for the Christmas present :))
Sarah Gaunt (Dec 15 2019 at 22:51):
Exciting! Trying it now!! :tada:
Sarah Gaunt (Dec 15 2019 at 23:21):
It works! It works! Very cool @Grahame Grieve ...
Richard Townley-O'Neill (Dec 16 2019 at 04:47):
:+1: :tada:
Jose Costa Teixeira (Dec 16 2019 at 11:10):
Nice! For the IG, does this go into config.json?
Grahame Grieve (Dec 16 2019 at 11:16):
yes unless you are not using config.json
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.
Grahame Grieve (Dec 24 2019 at 19:17):
it should not be a selection, I think.
Sean McIlvenna (Dec 28 2019 at 17:31):
once this is available in the new template we can add it
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 :) )
Grahame Grieve (Dec 28 2019 at 20:05):
Lloyd is offline for nearly a week
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 :)
Jose Costa Teixeira (Jan 03 2020 at 17:28):
I've added it to my derived template for now.
Lloyd McKenzie (Jan 03 2020 at 17:37):
Want to make a pull request against the base template?
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?
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).
Jose Costa Teixeira (Jan 03 2020 at 18:17):
ok will do in onLoad.xslt
Jose Costa Teixeira (Jan 03 2020 at 19:14):
PR created
@Lloyd McKenzie
Last updated: Apr 12 2022 at 19:14 UTC