FHIR Chat · No Identity Found · IG creation

Stream: IG creation

Topic: No Identity Found


view this post on Zulip David deRoode (Jan 04 2020 at 01:46):

Anyone seen this error: '''Error loading CodeSystem-2.16.840.1.113883.6.259.json: Internal error in IG NHSNHealthcareAssociatedInfectionReports map: No identity found for http://hl7.org/fhir/us/hai/CodeSystem/2.16.840.1.113883.6.259 (00:14.0516)
Publishing Content Failed: Error loading CodeSystem-2.16.840.1.113883.6.259.json: Internal error in IG NHSNHealthcareAssociatedInfectionReports map: No identity found for http://hl7.org/fhir/us/hai/CodeSystem/2.16.840.1.113883.6.259 (00:14.0516)'''.

Not sure what 'no identity found' refers to.

view this post on Zulip Lloyd McKenzie (Jan 04 2020 at 03:20):

It means that when loading that code system from the package where it's defined, there's no entry in the spec.internals file that indicates what page should be the target of hyperlinks when referring to that resource in the current IG. It means that there's something wrong with the NPM package for the IG you're pointing to. If you're able to, try regenerating the referenced IG. If that's still unhappy, provide a copy of the NPM package for that IG and we can see if we can figure out what's going on.

view this post on Zulip Sarah Gaunt (Jan 07 2020 at 03:26):

@Lloyd McKenzie we can't regenerate the IG we are pointing to as it's published. The NPM Package is here: http://hl7.org/fhir/us/hai/package.tgz
It looks like the spec.internals file is correct though? (Not that I really know what it should look like!). But in "paths" it has:

"http://hl7.org/fhir/us/hai/CodeSystem/2.16.840.1.113883.6.259|2.0.0": "2.0.0/CodeSystem-2.16.840.1.113883.6.259.html",
    "http://hl7.org/fhir/us/hai/CodeSystem/2.16.840.1.113883.6.259": "CodeSystem-2.16.840.1.113883.6.259.html",

And in "targets" it has:

 "CodeSystem-2.16.840.1.113883.6.259.html",
    "CodeSystem-2.16.840.1.113883.6.259.json.html",
    "CodeSystem-2.16.840.1.113883.6.259.ttl.html",
    "CodeSystem-2.16.840.1.113883.6.259.xml.html",

view this post on Zulip Sarah Gaunt (Jan 07 2020 at 03:30):

And actually, now I'm confused. There is also this file: http://hl7.org/fhir/us/hai/STU2/package.tgz which is from the circled url in the screen shot: pasted image

Its contained spec.internals file is quite different to the one at the previous link I sent. Should they not be the same?

view this post on Zulip Sarah Gaunt (Jan 07 2020 at 04:02):

Now I'm thinking it must have had something to do with this thread (https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Dependency.20package.20missing.20other.2Fspec.2Einternals) where @Grahame Grieve fixed our earlier issue. The internals.spec in the STU2 link has the same date as when he fixed it. I think maybe someone just needs to regenerate the tgz?

view this post on Zulip Lloyd McKenzie (Jan 07 2020 at 14:08):

I don't see anything obviously wrong from the tgz. Only thing suspect is that the versions of the artifacts and the versions of the IG aren't the same. Also, the version-specific paths have a relative path of 2.0.0, which I don't think is correct - though tool would have no way of knowing that. @Grahame Grieve , thoughts?

view this post on Zulip Sarah Gaunt (Jan 07 2020 at 19:56):

I looked at US Core's file to compare and it also had those version specific paths.

view this post on Zulip Sarah Gaunt (Jan 07 2020 at 19:58):

The second spec.internals file I mentioned that is different (the one at the permanent link for stu2) does not have those version specific paths. It is missing some other stuff at the beginning of the file.

view this post on Zulip Grahame Grieve (Jan 13 2020 at 07:02):

so this is still an issue?

view this post on Zulip Sarah Gaunt (Jan 13 2020 at 07:07):

Yes it is.

view this post on Zulip Grahame Grieve (Jan 13 2020 at 07:19):

ok. so I'm not clear what the actual manifestation of it is, or how I would know if I've fixed it

view this post on Zulip Sarah Gaunt (Jan 13 2020 at 07:26):

Let me just rebuild that IG and double check that it's still an issue. I'll get back to you if it is.

view this post on Zulip Sarah Gaunt (Jan 13 2020 at 07:38):

Ok definitely still an issue. Will try to explain...
The HAI LTCF IG is failing to build with the following error message (http://build.fhir.org/ig/HL7/HAI-LTCF/branches/master/build.log):

org.hl7.fhir.exceptions.FHIRException: Error loading CodeSystem-2.16.840.1.113883.6.259.json: Internal error in IG NHSNHealthcareAssociatedInfectionReports map: No identity found for http://hl7.org/fhir/us/hai/CodeSystem/2.16.840.1.113883.6.259

The HAI LTCF IG has a dependency on the HAI IG that has already been published.

According to Lloyd, that error message means that there is no entry in the spec.internals file to show what page should be the target of hyperlinks when referring to that resource in the IG (HAI ig).

So I did a bit of digging and found two different spec.internals files here: http://hl7.org/fhir/us/hai/package.tgz and here: http://hl7.org/fhir/us/hai/STU2/package.tgz

The latter spec.internals file looks incomplete. I'm assuming the dependency lookup would be on the specific version (STU2).

Back in November we had a different issue when trying to build the HAI LTCF IG - HAI was completely missing the spec.internals file. See this thread: https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Dependency.20package.20missing.20other.2Fspec.2Einternals

You fixed this for us, I'm guessing, by generating the file?

But... and again this is just a guess based on the date on the STU2 spec.internals file (i.e. the same date that you said you'd fixed it) that is missing information that I mention up above, I think maybe something went wrong there and it is missing some stuff?? Like I said just a guess...

view this post on Zulip Ward Weistra (Oct 01 2020 at 13:12):

@Grahame Grieve @Sarah Gaunt I get the same when depending on hl7.fhir.r4.core#3.0.2:

org.hl7.fhir.exceptions.FHIRException: Error loading CapabilityStatement-base.json: Internal error in IG hl7.fhir.r3.core#3.0.2 map: No identity found for http://hl7.org/fhir/CapabilityStatement/base
        at org.hl7.fhir.igtools.publisher.Publisher.loadFromPackage(Publisher.java:2620)
        at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2574)
        at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1754)
        at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1334)
        at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:701)
        at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7756)
Caused by: java.lang.Exception: Internal error in IG hl7.fhir.r3.core#3.0.2 map: No identity found for http://hl7.org/fhir/CapabilityStatement/base
        at org.hl7.fhir.igtools.publisher.Publisher.loadResourceFromPackage(Publisher.java:2652)
        at org.hl7.fhir.igtools.publisher.Publisher.loadFromPackage(Publisher.java:2617)
        ... 5 more

Dependencies in my IG:

  "dependsOn": [
    {
      "packageId": "hl7.fhir.r3.core",
      "version": "3.0.2",
    }

I probably shouldn't have done that, it's already inferred by the validator from my FHIR version setting and runs fine when I leave out the dependsOn. But perhaps it helps debugging the above.


Last updated: Apr 12 2022 at 19:14 UTC