FHIR Chat · Unable to resolve StructureDefinition exceptions · IG creation

Stream: IG creation

Topic: Unable to resolve StructureDefinition exceptions


view this post on Zulip Rob Hausam (Jan 25 2022 at 16:12):

I'm seeing a number of these exceptions from the IG Publisher (1.1.97) now when building the IPS IG (https://github.com/HL7/fhir-ips):

Exception rendering http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-uv-ips|1.0.0||http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-uv-ips|1.0.0: Unable to resolve StructureDefinition  resolving content reference #Observation.referenceRange
org.hl7.fhir.exceptions.FHIRException: Unable to resolve StructureDefinition  resolving content reference #Observation.referenceRange
    at org.hl7.fhir.r5.conformance.ProfileUtilities.getElementByName(ProfileUtilities.java:3724)
    at org.hl7.fhir.r5.conformance.ProfileUtilities.genTypes(ProfileUtilities.java:3493)
    at org.hl7.fhir.r5.conformance.ProfileUtilities.genElementCells(ProfileUtilities.java:4243)
    at org.hl7.fhir.r5.comparison.ProfileComparer.genElementComp(ProfileComparer.java:991)
    at org.hl7.fhir.r5.comparison.ProfileComparer.genElementComp(ProfileComparer.java:1003)
    at org.hl7.fhir.r5.comparison.ProfileComparer.genElementComp(ProfileComparer.java:1003)
    at org.hl7.fhir.r5.comparison.ProfileComparer.renderStructure(ProfileComparer.java:926)
    at org.hl7.fhir.r5.comparison.ComparisonRenderer.renderProfile(ComparisonRenderer.java:208)
    at org.hl7.fhir.r5.comparison.ComparisonRenderer.renderComparison(ComparisonRenderer.java:131)
    at org.hl7.fhir.r5.comparison.ComparisonRenderer.processList(ComparisonRenderer.java:98)
    at org.hl7.fhir.r5.comparison.ComparisonRenderer.render(ComparisonRenderer.java:74)
    at org.hl7.fhir.igtools.publisher.PreviousVersionComparator.finishChecks(PreviousVersionComparator.java:260)
    at org.hl7.fhir.igtools.publisher.Publisher.checkConformanceResources(Publisher.java:4213)
    at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:4119)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:947)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:798)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:9079)

These don't seem to have anything to do with what we've profiled in the IG (e.g., referenceRange isn't in the Observation-results-uv-ips profile), and they also don't stop the build. Thoughts? @Grahame Grieve @Lloyd McKenzie

view this post on Zulip Rob Hausam (Jan 25 2022 at 16:44):

It seems that this is coming from the PreviousVersionComparator.

view this post on Zulip Grahame Grieve (Jan 27 2022 at 03:04):

I don't worry much about those kinds of errors doing previous version comparison - sometimes the comparison ends up trying to compare things that don't exist

view this post on Zulip Rob Hausam (Jan 27 2022 at 20:11):

@Grahame Grieve That seems fair enough, and is good to know. But that's not exactly obvious from looking at the build output - and at least it looks like it could be significant. Could this be handled in a different way in the build log other than the raw exception messages?

view this post on Zulip Grahame Grieve (Jan 27 2022 at 20:21):

maybe. the problem is that the logging code doesn't know that's the context it's running in


Last updated: Apr 12 2022 at 19:14 UTC