$extract and $populate not working

320 views
Skip to first unread message

Johanna Häusler

unread,
Jul 18, 2023, 5:40:15 AM7/18/23
to HAPI FHIR
Hello,
I am new to HAPI FHIR and try to get the Questionnaire $populate and the QuestionnaireResponse $extract working for definition-based extraction, but it seems like these operations are not known to the server at all.

The official test system (https://hapi.fhir.org/baseR4/swagger-ui) does not list these operations for the Questionnaire/-Response. If I got it right, then the Clinical Reasoning is a separate module that has to be activated. So I tried to setup my own docker using the jpa-starter project (https://github.com/hapifhir/hapi-fhir-jpaserver-starter) and enable the cr_enabled, but it seems to have no effect at all:
The validation of my questionnaire returns the same as on the official test system: "Unknown extension http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemExtractionContext".
And when trying to call $extract on a QuestionnaireResponse, this is returned:  
"issue": [
        {
            "severity": "error",
            "code": "not-supported",
            "diagnostics": "Invalid request: The FHIR endpoint on this server does not know how to handle POST operation[QuestionnaireResponse/738953/$extract] with parameters [[]]"
        }
    ]

Could someone please help me with this? Am I doing something completely wrong?

Cheers,
Johanna

Johanna Häusler

unread,
Jul 19, 2023, 2:21:01 AM7/19/23
to HAPI FHIR

A fix for the jpa-starter project was developed (but not yet merged), the discussion can be found here: https://groups.google.com/g/hapi-fhir/c/9tcuXfDdxAI

김주영

unread,
Jul 31, 2023, 4:49:05 AM7/31/23
to HAPI FHIR
Hi,
I have the same problem as you.
I have posted the similar issue in the github: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/570.

The discussion link (https://groups.google.com/g/hapi-fhir/c/9tcuXfDdxAI) that you mentioned is not related to this problem.
The discussion of the link is about "HAPI-0389: Failed to call access method: java.lang.NullPointerException" error.
This error is quite different from yours (and my problem, too).

I have not found the answer, yet.

2023년 7월 19일 수요일 오후 3시 21분 1초 UTC+9에 Johanna Häusler님이 작성:
Reply all
Reply to author
Forward
0 new messages