FHIR Chat · How to ignore unresolvable references? · conformance

Stream: conformance

Topic: How to ignore unresolvable references?


view this post on Zulip Vadim Peretokin (May 31 2019 at 10:04):

Latest validator as of today (3.7.41) bombs out when a relative reference isn't resolvable:

Exception in thread "main" java.lang.Error: Not done yet - resolve Practitioner/f007 locally (2)
    at org.hl7.fhir.r5.validation.InstanceValidator$ValidatorHostServices.resolveReference(InstanceValidator.java:232)

Is there a way to make it ignore unresovable reference? The reference is not relevant for the validity of the instance

view this post on Zulip Grahame Grieve (May 31 2019 at 10:16):

can you send me an example?

view this post on Zulip Vadim Peretokin (May 31 2019 at 10:37):

PMd

view this post on Zulip Thomas Tveit Rosenlund (Oct 16 2019 at 12:10):

Latest validator as of today (3.7.41) bombs out when a relative reference isn't resolvable:

Is there a resolution for this? I encounter the same problem.
Seems like all "hl7.org" url's that do not have a valid endpoint end in this error, both the validator and publisher demonstrate this behaviour.

view this post on Zulip Thomas Tveit Rosenlund (Oct 16 2019 at 12:12):

Tried to validate this for example:
http://hl7.org/fhir/StructureDefinition/reference-targetElement

view this post on Zulip Grahame Grieve (Oct 16 2019 at 12:37):

umm I think I fixed this in the validator itself - is that what you are asking about?

view this post on Zulip Grahame Grieve (Oct 16 2019 at 12:37):

but the version suggests that this is a HAPI question?

view this post on Zulip Thomas Tveit Rosenlund (Oct 16 2019 at 14:11):

umm I think I fixed this in the validator itself - is that what you are asking about?

Yes. It's probably not the same bug, but a similar error message.

view this post on Zulip Grahame Grieve (Oct 16 2019 at 22:34):

so the java validator is ok but HAPI has a problem?

view this post on Zulip Thomas Tveit Rosenlund (Oct 21 2019 at 13:45):

so the java validator is ok but HAPI has a problem?

I typically get error messages like this if my profile contain binding to a ValueSet defined by urn:oid:xxx. I thought that was a validator error?

Exception in thread "main" java.lang.Error: org.hl7.fhir.exceptions.FHIRException: not done yet: can't fetch urn:oid:2.16.578.1.12.4.1.1.7426
    at org.hl7.fhir.r5.context.BaseWorkerContext.fetchResource(BaseWorkerContext.java:857)
    at org.hl7.fhir.r5.context.SimpleWorkerContext.fetchResource(SimpleWorkerContext.java:569)
    at org.hl7.fhir.r5.validation.InstanceValidator.resolveBindingReference(InstanceValidator.java:2566)
    at org.hl7.fhir.r5.validation.InstanceValidator.checkCodeableConcept(InstanceValidator.java:1030)
    at org.hl7.fhir.r5.validation.InstanceValidator.checkChild(InstanceValidator.java:4086)
    at org.hl7.fhir.r5.validation.InstanceValidator.validateElement(InstanceValidator.java:3971)
    at org.hl7.fhir.r5.validation.InstanceValidator.checkChild(InstanceValidator.java:4099)
    at org.hl7.fhir.r5.validation.InstanceValidator.validateElement(InstanceValidator.java:3971)
    at org.hl7.fhir.r5.validation.InstanceValidator.start(InstanceValidator.java:2984)
    at org.hl7.fhir.r5.validation.InstanceValidator.validateResource(InstanceValidator.java:4563)
    at org.hl7.fhir.r5.validation.InstanceValidator.validate(InstanceValidator.java:833)
    at org.hl7.fhir.r5.validation.InstanceValidator.validate(InstanceValidator.java:666)
    at org.hl7.fhir.r5.validation.ValidationEngine.validate(ValidationEngine.java:1089)
    at org.hl7.fhir.r5.validation.ValidationEngine.validate(ValidationEngine.java:1003)
    at org.hl7.fhir.r5.validation.Validator.main(Validator.java:559)
Caused by: org.hl7.fhir.exceptions.FHIRException: not done yet: can't fetch urn:oid:2.16.578.1.12.4.1.1.7426
    at org.hl7.fhir.r5.context.BaseWorkerContext.fetchResourceWithException(BaseWorkerContext.java:800)
    at org.hl7.fhir.r5.context.BaseWorkerContext.fetchResource(BaseWorkerContext.java:855)
    ... 14 more

view this post on Zulip Noemi Deppenwiese (Oct 29 2019 at 14:52):

I now have a similar error with URLs and the validator:

Terminology server: Check for supported code systems for http://hl7.org/fhir/sid/icd-10
Exception in thread "main" java.lang.Error: Not done yet - resolve http://hl7.org/fhir/sid/icd-10

It would be great if there was an "ignore" flag for these kinds of errors...


Last updated: Apr 12 2022 at 19:14 UTC