FHIR Chat · Adding Logical Models · IG creation

Stream: IG creation

Topic: Adding Logical Models


view this post on Zulip Richard Kavanagh (Sep 19 2019 at 18:00):

I am trying to get my head around the IG Publisher. I started by taking a copy of US core and managed to generate the content for that.

I have now addedd a new Logical Model (StructureDefinition) and added it to the ig.json & ig.xml files. Created the *.md files.

The generation now reports an error along the lines of:
Jekyll has failed. Complete output from running Jekyll:  Liquid Exception: Could not locate the included file 'StructureDefinition--maps.xhtml'

What have I missed?

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:07):

does your logical model have an id?

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:07):

does the id match the filename? (not sure this is still needed)

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:09):

and "structuredefinition--maps" seems strange - two times the '-'?

view this post on Zulip Richard Kavanagh (Sep 19 2019 at 18:25):

Yes, it has an id of "CommunityMedication" - looking in the temp directory I can see the following have been generated.

pasted image

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:39):

here is a file with the conditions to work:

filename: structuredefinition-be-communication.xml

<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="be-communication" />
  <name value="BECommunicationLogicalModel" />
  <status value="draft" />
  <kind value="logical" />
...

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:39):

note that the filename is structuredefinition-be-communication, and the id is be-communication.

view this post on Zulip Jose Costa Teixeira (Sep 19 2019 at 18:39):

This is not always needed, I think, but it is a safe naming.

view this post on Zulip John Moehrke (Sep 19 2019 at 20:44):

@David Pyke has put logical models into eLTSS IG


Last updated: Apr 12 2022 at 19:14 UTC