FHIR Chat · Layout for resource types · IG creation

Stream: IG creation

Topic: Layout for resource types


view this post on Zulip Jose Costa Teixeira (Dec 18 2019 at 11:38):

How does the IG publisher pass the structureDefinitions through the layout-profile.html, and other resource types through other layouts?

view this post on Zulip Jose Costa Teixeira (Dec 18 2019 at 11:38):

In other words, where do we have to work to add a new resource type?

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

config.json in the template

view this post on Zulip Jose Costa Teixeira (Dec 18 2019 at 19:11):

ok, interesting stuff...
in the layout-profile.html, it seems that the tab content are imported from another file
{%include StructureDefinition-{{[id]}}-diff.xhtml%}

view this post on Zulip Jose Costa Teixeira (Dec 18 2019 at 19:12):

where are these xhtml generated?

view this post on Zulip Grahame Grieve (Dec 18 2019 at 19:12):

that file is generated by the IG publisher before calling Jekyll

view this post on Zulip Eric Haas (Dec 18 2019 at 20:26):

all the stuff that ig-pub creates magically as xhtml files can be seen in the temp includes directory
~/temp/_includes so you can include any of that stuff.

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 07:22):

If I want to enable ExampleScenario rendering, with 3 tabs (tab 1= diagram, tab 2= a list, tab 3= a few tables), how could I do some work in that direction?

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 07:25):

does that work with xslts? Should I prepare the transformations that take the resource and create the xhtml for each tab?

view this post on Zulip Grahame Grieve (Dec 19 2019 at 07:31):

I am not sure how that would work at the moment

view this post on Zulip Grahame Grieve (Dec 19 2019 at 07:40):

what do the example scenario transforms consist of? pure xslt?

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 07:54):

it's in a few steps

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 07:54):

plantuml-4.png

view this post on Zulip Grahame Grieve (Dec 19 2019 at 08:15):

what's on the 3 tabs?

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 08:48):

not decided, possibly continuing this early draft
http://blog.zeora.net/mma/examplescenario-mma1-scenario.html

view this post on Zulip Grahame Grieve (Dec 19 2019 at 09:20):

it would be a lot easier to integrate and maintain if as much of it as possible is in java

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

actually.. I think it would be much better not to do this with plantUML at all. The real advantage of generating SVGs rather than PNGs is that you can have links etc. And the geometry really doesn't look that hard

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 09:35):

early prototype is png, but I have the svg version

view this post on Zulip Grahame Grieve (Dec 19 2019 at 09:44):

so you have 3 ant scripts? xslts?

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 10:08):

Depends on what is needed. first trial consists of an updated ant.xml that does this:

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 10:09):

graphviz-2.png

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 10:09):

I added the bottom part to see it working.

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 10:13):

I have still one xslt that creates the 3 tabs,
but from what I learned recently this could be 3 xslts, with the first one depending on the preparing source and parsing via plantuml

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 10:13):

this diagram above is the ig's ant.xml

view this post on Zulip Jose Costa Teixeira (Dec 19 2019 at 12:00):

Meanwhile I have 3 xslts triggered by the ant script

view this post on Zulip Jose Costa Teixeira (Dec 20 2019 at 21:08):

So my quest now is to find out how to use the results of these transformations (which I can do in ant easily) into a layout that goes into the ig.

view this post on Zulip Grahame Grieve (Dec 20 2019 at 21:19):

I'll look at it after xmas. It's all publishing deadline before that

view this post on Zulip Jose Costa Teixeira (Dec 20 2019 at 21:23):

ok, thanks

view this post on Zulip Jose Costa Teixeira (Dec 20 2019 at 21:23):

if ther is anything I can prepare for that, I will. Meanwhile I will put this in some repo


Last updated: Apr 12 2022 at 19:14 UTC