FHIR Chat · structure definition mappings from ig publisher · IG creation

Stream: IG creation

Topic: structure definition mappings from ig publisher


view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:11):

I have mappings in StructureDefinition.mapping and StructureDefinition.differential.element.mapping...
How do I get the IG publisher to produce StructureDefinition-XXXX-maps.xhtml?? The IG Publisher doesn't seem to be creating the -maps.xhtml fragment, but I'm not sure why not...

view this post on Zulip Lloyd McKenzie (Aug 07 2019 at 16:13):

You have to define templates and tell the IGPublisher that they exist. Look at the SDC IG for an example of how.

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:16):

@Lloyd McKenzie I created a template and referenced it via "Defaults" like so:

"StructureDefinition": {
   ...
   "template-mappings": "sd-mappings.html",
   ...
   "mappings": {{[id]}}-mappings.html"
}

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:17):

Is that what you mean??

view this post on Zulip Lloyd McKenzie (Aug 07 2019 at 16:19):

Also the extra-templates declaration

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:23):

Oh? ok

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:23):

will try that

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:28):

Unfortunately, that didn't do the trick..

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:29):

I also added:

"extraTemplates": ["mapping"],

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:29):

or... does it need to be "mappings"?

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:29):

@Lloyd McKenzie

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 16:35):

oh wait... I think it did work

view this post on Zulip Lloyd McKenzie (Aug 07 2019 at 16:44):

yay :)

view this post on Zulip Sean McIlvenna (Aug 07 2019 at 17:01):

yup! worked! thx!


Last updated: Apr 12 2022 at 19:14 UTC