FHIR Chat · HAPI validator error due to code system lookup · hapi

Stream: hapi

Topic: HAPI validator error due to code system lookup


view this post on Zulip Morten Ernebjerg (Feb 20 2019 at 10:10):

I am seeing an error in HAPI 3.6 (and 3.7) related to a code-system lookup. Specifically, the server gives a 500 response and at the bottom of the stack trace it says (the full error stack trace: stacktrace.txt ):

org.hl7.fhir.exceptions.TerminologyServiceException: unable to find code system urn:iso:std:iso:3166

I see this when validating against the German base Patient profile with a minimal example like the one given at the bottom e.g. through the $validateoperation. We're using a simple custom validation support along the lines of what the HAPI documentation describes (only loading the profiles, no custom handling of value sets or code systems). The error is provoked by the address field which must conform to the German Base address profile (also present on the server). The address profile, in turn, defines a preferred binding for the country field to the ValueSethttp://hl7.org/fhir/ValueSet/jurisdiction (which includes all codes from urn:iso:std:iso:3166, as well as others).

I do not see this error when using the standalone JAR validator.Is there a known issue here - or maybe rather an issue with our validation support implementation? (If more helpful, I 'd be happy to open a GForge/GitHub ticket).

Resource example: provoking error:

{
    "resourceType": "Patient",
    "meta": {
        "profile": [
            "http://fhir.de/StructureDefinition/patient-de-basis/0.2"
        ]
    },
    "address": [
            "country": "DE"
        }
    ]}

Last updated: Apr 12 2022 at 19:14 UTC