FHIR R4 Extension Constraint Blocking Migration to HAPI JPA Server

11 views
Skip to first unread message

Andrea Caloni

unread,
8:24 AM (12 hours ago) 8:24 AM
to HAPI FHIR

Hi everyone,

I am working on migrating all content from a Microsoft FHIR server to a HAPI JPA Server.

During this process, I encountered a Questionnaire that includes an extension containing both a value[x] and nested extensions.

This is an example:
{
    "extension": [
        {
            "url": "http://some.company.com/questionnaire/exceptions",
            "valueString": "There is an inconsistency in the answers given to items 1.7.1 and 1.7.2. Verify that the answers are completed correctly."
        }
    ],
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
        "name": "e171_172",
        "language": "text/fhirpath",
        "expression": "(%v171_2019 = 'A' and (%v172 = 'C' or %v172 = 'D'))"
    }
}

I am fully aware that this structure is not compliant with FHIR R4, where an Extension must not have both a value and child extensions at the same time.

However, this constraint is currently blocking the migration. 

I need to understand whether HAPI provides any mechanism (configuration, validation override, or custom interceptor) to relax or bypass this rule,  in order to ingest the existing data as-is.

Many thanks, Andrea

James Agnew

unread,
9:50 AM (10 hours ago) 9:50 AM
to Andrea Caloni, HAPI FHIR
HAPI's validator needs to be explicitly enabled in order to be detecting an issue like this, and there are a number of ways of doing this. How you disable it depends on how you enabled it in the first place.

If you provide more details about which component you are using to do the validation, it should be possible to suggest how to turn it off.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hapi-fhir/b8bd9da9-a6ff-4501-b5a9-9d7d82fe207an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages