FHIR Chat · Failure in compiling (my) logical models · IG creation

Stream: IG creation

Topic: Failure in compiling (my) logical models


view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 07:34):

This new error appears when I try to recompile an IG including logical models.

org.hl7.fhir.exceptions.FHIRException: Illegal path 'Paziente' in differential in http://hl7.it/fhir/StructureDefinition/Paziente: must start with http://hl7.it/fhir/StructureDefinition/Paziente. (o be 'http://hl7.it/fhir/StructureDefinition/Paziente')

nothing has been changed in those models since my last succesful compilation.

view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 07:41):

These models are specified by using <differential> and it seems to me that the path starts with the name of the resource

    <url value="http://hl7.it/fhir/StructureDefinition/Paziente"/>
    <name value="Paziente"/>

view this post on Zulip Grahame Grieve (Jan 30 2020 at 09:06):

where is this? can I reproduce this?

view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 09:15):

https://github.com/HL7-IT/sandbox.git

view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 09:17):

few days ago I was able to compile it (see e.g. http://www.hl7.it/fhir/build/it-base/site/StructureDefinition-Paziente.html)

view this post on Zulip Grahame Grieve (Jan 30 2020 at 09:30):

so I'm not sure what has changed so that this is now a problem, but the problem is:

view this post on Zulip Grahame Grieve (Jan 30 2020 at 09:31):

this is the type you have:

    <type value="http://hl7.it/fhir/StructureDefinition/Paziente"/>

this is what it should be:

    <type value="Paziente"/>

view this post on Zulip Grahame Grieve (Jan 30 2020 at 09:32):

that fixes the problem for me

view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 10:43):

Good.
In the past I had some problems with other logical models on using types not specified with the full url, if that type were not specified under hl7.org/fhir...
However if this fix the problem it will be an easy fix :-) .
Thanks Grahame

view this post on Zulip Giorgio Cangioli (Jan 30 2020 at 11:13):

It works also for me :-)


Last updated: Apr 12 2022 at 19:14 UTC