FHIR Chat · ig publisher with logical models · implementers

Stream: implementers

Topic: ig publisher with logical models


view this post on Zulip Michael van der Zel (Apr 09 2020 at 09:26):

I am trying to create an IG with logical models and logical model examples. For the examples of the logical models I get:
```java.lang.Exception: Bad Resource Identity - should have the format [Type]/[id] where Type is a valid resource type:<my logical-type>/<id>
at org.hl7.fhir.igtools.publisher.SimpleFetcher.fetch(SimpleFetcher.java:179)
at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2815)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:806)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:671)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7091)
When I replace <my logical type> with e.g. "Resource" it works, but then I miss all the elements from my lm. Is there a check that only excepts FHIR Defined Resourcetypes?

view this post on Zulip Grahame Grieve (Apr 09 2020 at 09:27):

I'm not sure. can I reproduce this?

view this post on Zulip Michael van der Zel (Apr 09 2020 at 09:31):

The error happens as soon as I add a <resource> in the IG.
<resource>
<reference>
<reference value="MyLogicalModel/AS"/>
</reference>
<name value="AS"/>
<exampleBoolean value="true"/>
</resource>
I use the sample-ig and the input/resources folder is empty, so just the entry in the myig.xml causes this.
-- FHIR IG Publisher Version 1.0.78-SNAPSHOT (Git# c68bcbd05038). Built 2020-04-06T10:55:08.771+10:00 (3 days old)

view this post on Zulip Michael van der Zel (Apr 09 2020 at 09:48):

And when I just remove the resource lines and let the IG figure this out, I get:
This does not appear to be a FHIR resource (unknown name "MyLogicalModel") at line -1 col -1 loading /home/michael/eclipse-workspace/sample-ig/input/examples/MyLogicalModel-AS.json

view this post on Zulip Giorgio Cangioli (Apr 09 2020 at 10:00):

Michael van der Zel said:

I am trying to create an IG with logical models and logical model examples.

MMhhh this has been always a doubt that I had : can Logical models be instantiated ? I mean can I create examples based on the logical models ?

view this post on Zulip Giorgio Cangioli (Apr 09 2020 at 10:02):

for the time being I'm using the example attribute to explain what you can find for a specific element .. but if I could create examples it would be much easier and complete...

view this post on Zulip Jose Costa Teixeira (Apr 09 2020 at 10:08):

Giorgio Cangioli said:

MMhhh this has been always a doubt that I had : can Logical models be instantiated ? I mean can I create examples based on the logical models ?

Thank you. Same question here. They are not meant to be implemented, but can they be instanciated? It would help explain the model

view this post on Zulip Grahame Grieve (Apr 09 2020 at 10:29):

sure they can be.

view this post on Zulip Giorgio Cangioli (Apr 09 2020 at 10:59):

Grahame Grieve said:

sure they can be.

Good !
How they should be declared in the guide? as the 'other' examples using <exampleCanonical> for referring the model ?

view this post on Zulip Grahame Grieve (Apr 09 2020 at 11:06):

hmmm. now you're asking. I don't remember...

view this post on Zulip Grahame Grieve (Apr 09 2020 at 21:03):

turns out that they can't be - follow up at https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Logical.20Model.20instances


Last updated: Apr 12 2022 at 19:14 UTC