FHIR Chat · Unable to find code system and us-core-observationresults · hapi

Stream: hapi

Topic: Unable to find code system and us-core-observationresults


view this post on Zulip Aditya (May 15 2019 at 14:15):

I am using custom validator (MyValidationSupport implements IValidationSupport) chained with DefaultValidationSupport. I am getting following error & warning while validating DiagnosticReport.

"issue": [
        {
            "severity": "warning",
            "code": "processing",
            "diagnostics": "Error unable to find code system http://loinc.org validating CodeableConcept",
            "location": [
                "DiagnosticReport.code"
            ]
        },
        {
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unable to resolve the profile reference 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults'",
            "location": [
                "DiagnosticReport.result[1]"
            ]
        }

What am i missing ?

I am able to successfully validate AllergyIntolerance which means it is able to find profile http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance

view this post on Zulip James Agnew (May 15 2019 at 14:51):

It'd probably be helpful to put a debugger or log messages in the various methods in MyValidationSupport to see what's being asked for..

view this post on Zulip Aditya (May 15 2019 at 14:55):

It'd probably be helpful to put a debugger or log messages in the various methods in MyValidationSupport to see what's being asked for..

Yea, doing the same.
Till now I have found is that in class
org.hl7.fhir.dstu3.hapi.ctx.HapiWorkerContext
in method
public <T extends Resource> T fetchResource(Class<T> theClass, String theUri)
following line is getting null retValue when input theUri = "http://loinc.org"
retVal = myValidationSupport.fetchResource(myCtx, theClass, theUri);

view this post on Zulip Aditya (May 15 2019 at 14:56):

It'd probably be helpful to put a debugger or log messages in the various methods in MyValidationSupport to see what's being asked for..

Yea, doing the same.
Till now I have found is that in class

    org.hl7.fhir.dstu3.hapi.ctx.HapiWorkerContext

in method

    public  T extends Resource T fetchResource(Class  theClass, String theUri)

following line is getting null retValue when input theUri = "http://loinc.org"

    retVal = myValidationSupport.fetchResource(myCtx, theClass, theUri);

myCtx = ca.uhn.fhir.context.FhirContext@7cb30c6f
theClass = org.hl7.fhir.dstu3.model.ValueSet
theUri = "http://loinc.org"

view this post on Zulip Aditya (May 15 2019 at 15:22):

It'd probably be helpful to put a debugger or log messages in the various methods in MyValidationSupport to see what's being asked for..

Yea, doing the same.
Till now I have found is that in class

    org.hl7.fhir.dstu3.hapi.ctx.HapiWorkerContext

in method

    public  T extends Resource T fetchResource(Class  theClass, String theUri)

following line is getting null retValue when input theUri = "http://loinc.org"

    retVal = myValidationSupport.fetchResource(myCtx, theClass, theUri);

myCtx = ca.uhn.fhir.context.FhirContext@7cb30c6f
theClass = org.hl7.fhir.dstu3.model.ValueSet
theUri = "http://loinc.org"

I am unable to see any mapping any where in US core profiles for loinc

view this post on Zulip James Agnew (May 15 2019 at 15:31):

lots of US Core SDs refer to LOINC, e.g.: http://hl7.org/fhir/us/core/stu1/StructureDefinition-us-core-smokingstatus-definitions.html#Observation:uscoresmookingstatus.code

view this post on Zulip James Agnew (May 15 2019 at 15:44):

Also, the core observation profile has a reference to it, so it's possible that if you can figure out why it isn't loading that, the loinc error will go away (assuming you're not using a profile that needs loinc)


Last updated: Apr 12 2022 at 19:14 UTC