FHIR Chat · IG publisher output · committers

Stream: committers

Topic: IG publisher output


view this post on Zulip David Hay (Mar 21 2019 at 21:25):

I note that the IG publisher seems to create links to subfolders in the output folder.

eg there's a link that looks like "StructureDefinition/nzethnicity.html"
but the actual file generated is in the output folder with the name StructureDefinition-nzethnicity.html"

is there a config item that tells the IG publisher to use subfolders rather than hyphenated names? Or is it in a template somewhere

(I';m using a hacked version of the aussie IG)...

view this post on Zulip David Hay (Mar 21 2019 at 21:33):

Oh, and most of them are form the profile page (eg a reference to an extension)...

view this post on Zulip Grahame Grieve (Mar 21 2019 at 22:05):

yes you need to tell it where to find the output. read the Json config file documentation

view this post on Zulip David Hay (Mar 25 2019 at 00:00):

Well, I did do that - a number of times. There's a config option that says where the the output folder is - but I can't see anything that indicates that the output should be in a sub-folder of that folder... All the url's in the description column of the generated snapshot point to a subfolder of the output folder, where the subfolder name is the resource type - eg StructureDefinition or ValueSet. The actual generated file is in main output folder...

view this post on Zulip David Hay (Mar 25 2019 at 01:07):

eg url= file:///Users/davidhay/nzIG/output/StructureDefinition/nzethnicity.html
actual file is StructureDefinition-nzethnicity.html in the output folder...

view this post on Zulip Grahame Grieve (Mar 25 2019 at 02:18):

the igpublisher doesn't know where anything goes. You tell it where things do. Somehow, you're telling it it different things in different places.

view this post on Zulip Grahame Grieve (Mar 25 2019 at 02:18):

where's the IG?

view this post on Zulip David Hay (Mar 25 2019 at 02:25):

ig.xml in the resource folder? - here's a sample entry

<resource>
<example value="false"/>
<sourceReference>
<reference value="StructureDefinition/nzethnicity"/>
</sourceReference>
</resource>

view this post on Zulip Grahame Grieve (Mar 25 2019 at 02:27):

the whole thing - is it in github somewhere?

view this post on Zulip David Hay (Mar 25 2019 at 02:27):

The issue seems to be that when the snapshot generator generates the links (eg a link from a profile to an extension) - that's where it's making a subfolder...

view this post on Zulip David Hay (Mar 25 2019 at 02:27):

I'ts not that big - will pm it to you...

view this post on Zulip Grahame Grieve (Mar 25 2019 at 02:28):

it's just doing what you've told it to do

view this post on Zulip Lloyd McKenzie (Mar 25 2019 at 02:57):

As a rule, you want to start with a framework, you don't want to build an IG from scratch with the IGPublisher. (You can, but it's a lot of work...)

view this post on Zulip Grahame Grieve (Mar 25 2019 at 02:58):

David did, but he broke something somewhere

view this post on Zulip David Hay (Mar 25 2019 at 04:24):

I prefer to say that I introduced unexpected side effects...

view this post on Zulip David Hay (Mar 25 2019 at 04:25):

And it wasn't so much a framework as an existing IG (the Aussie one) and I took out all the stuff that seemed specific to that Use case. It appears I may have pruned a little too hard...

view this post on Zulip David Hay (Mar 25 2019 at 05:12):

If there's another framework to use, happy to try that...

view this post on Zulip Rob Hausam (Mar 25 2019 at 05:41):

@Grahame Grieve You didn't mention IPS in either IG list. I've fixed all of the previously remaining errors, and we now have 4 warnings from the terminology service that are on your list to fix. Plus we have a bunch of info messages for the example bundle, but of only three types:

  • This element does not match any known slice for the profile,
  • Could not verify slice for profile
  • The element id is not marked as 'mustSupport' in the profile
    The "mustSupport" items are by far the majority, and most of those, I believe, are that way intentionally. Maybe we will want to change them, or maybe we won't? - but we should discuss. We would like to get all of these issues either resolved or approved to stay that way so we can go ahead and publish.

view this post on Zulip Rob Hausam (Mar 25 2019 at 05:49):

Plus I need to fix the publication checks.

view this post on Zulip Grahame Grieve (Mar 25 2019 at 07:33):

I'll look at IPS after I am sure the others are sorted

view this post on Zulip Rob Hausam (Mar 25 2019 at 07:52):

all right - I'll be patient :)

view this post on Zulip David Hay (Mar 25 2019 at 17:09):

stand in line rob!


Last updated: Apr 12 2022 at 19:14 UTC