Stream: IG creation
Topic: structure definition mappings from ig publisher
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...
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.
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" }
Sean McIlvenna (Aug 07 2019 at 16:17):
Is that what you mean??
Lloyd McKenzie (Aug 07 2019 at 16:19):
Also the extra-templates declaration
Sean McIlvenna (Aug 07 2019 at 16:23):
Oh? ok
Sean McIlvenna (Aug 07 2019 at 16:23):
will try that
Sean McIlvenna (Aug 07 2019 at 16:28):
Unfortunately, that didn't do the trick..
Sean McIlvenna (Aug 07 2019 at 16:29):
I also added:
"extraTemplates": ["mapping"],
Sean McIlvenna (Aug 07 2019 at 16:29):
or... does it need to be "mappings"?
Sean McIlvenna (Aug 07 2019 at 16:29):
@Lloyd McKenzie
Sean McIlvenna (Aug 07 2019 at 16:35):
oh wait... I think it did work
Lloyd McKenzie (Aug 07 2019 at 16:44):
yay :)
Sean McIlvenna (Aug 07 2019 at 17:01):
yup! worked! thx!
Last updated: Apr 12 2022 at 19:14 UTC