FHIR Chat · IG Publisher Error with some Profiles · IG creation

Stream: IG creation

Topic: IG Publisher Error with some Profiles


view this post on Zulip Noemi Deppenwiese (Apr 03 2020 at 06:26):

Today I noticed some new Errors in my IG QA. I have some profiles who have the same name as the resource they are constraining, e.g. a Patient profile based on Patient. All these profiles now have a StructureDefinition/Patient: StructureDefinition.differential.element[0] error Duplicate id value 'Patient' (or eqivalent) error. I noticed the publisher seems to add a new element in each differential with id: ResourceName. Could this be the source of the error?

view this post on Zulip Grahame Grieve (Apr 03 2020 at 06:32):

That's a check I just added in this version. It should not be giving that error - can I reproduce this?

view this post on Zulip Noemi Deppenwiese (Apr 03 2020 at 06:35):

Here is my IG input: https://github.com/samply/bbmri-fhir-ig/tree/feature/fullBuild

view this post on Zulip Grahame Grieve (Apr 03 2020 at 07:11):

see https://chat.fhir.org/#narrow/stream/179177-conformance/topic/Element.20ID

view this post on Zulip Catherine Hosage Norman (Apr 03 2020 at 14:00):

I am getting the same Duplicate id value error. https://github.com/HL7/FHIR-pq-cmc. I thought it was because of code list because all of them were on codes.

view this post on Zulip Grahame Grieve (Apr 03 2020 at 19:11):

well, it'll be because of the ids one way or another. Do you have duplicate ids?

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 11:09):

I'm experiencing the same error with 'my' logical models, where I'm using as as id of the model the type of the model.
I can easily fix this error renaming the id, but I don't understand why I should do this and in this case the rendering of the model is "less attractive"...

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 11:13):

image.png
instead of
image.png

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 11:14):

[Q] is this issue related to https://chat.fhir.org/#narrow/stream/179177-conformance/topic/Element.20ID or are two separate topics ?

view this post on Zulip Grahame Grieve (Apr 04 2020 at 11:53):

I can't see any link. The id shouldn't make any difference here

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 12:18):

with this

<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="AziendaSanitaria"/>
    <url value="http://hl7.it/fhir/StructureDefinition/AziendaSanitaria"/>
......
        <name value="AziendaSanitaria"/>
......
        <kind value="logical"/>
    <abstract value="true"/>
    <type value="AziendaSanitaria"/>
......
      <differential>
        <element id="AziendaSanitaria">
            <path value="AziendaSanitaria"/>

I have this error
StructureDefinition.differential.element[0] error Duplicate id value 'AziendaSanitaria'

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 12:21):

if I make this change

<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="AziendaSanitaria-lm"/>
    <url value="http://hl7.it/fhir/StructureDefinition/AziendaSanitaria-lm"/>

the error disappear.

view this post on Zulip Giorgio Cangioli (Apr 04 2020 at 12:22):

but it is not clear to me why I should do that...

view this post on Zulip Grahame Grieve (Apr 04 2020 at 20:04):

the id question is the one discussed on your conformance link, about the scope of uniqueness. I don't see what it has to do with the presentation

view this post on Zulip Giorgio Cangioli (Apr 05 2020 at 12:16):

me either ... just reporting what I'm seeing :-)

if I use the same string for the id and the type (i.e the name of the model) in the column type is displayed the model name (in the example "AziendaSanitaria");
if I change the id (in the example change to "AziendaSanitaria-lm") - I've no more errors - but in the type column is shown the full URL (http://hl7.it/fhir/StaructureDefinition/AziendaSanitaria-lm).

Any suggestion ?

view this post on Zulip Grahame Grieve (Apr 05 2020 at 12:16):

well, based on the discussion in the conformance stream, I'll be removing that check in the validator

view this post on Zulip Lloyd McKenzie (Apr 05 2020 at 14:52):

Removing the check completely, or allowing overlap between resource.id and snapshot and differential ids? I think that, in general, the rule should stand... Certainly within a canonical or differential ids must be unique

view this post on Zulip Grahame Grieve (Apr 05 2020 at 20:32):

the overlap bit


Last updated: Apr 12 2022 at 19:14 UTC