Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid request error of $extract operation #570

Open
tandara0 opened this issue Jul 24, 2023 · 3 comments
Open

Invalid request error of $extract operation #570

tandara0 opened this issue Jul 24, 2023 · 3 comments

Comments

@tandara0
Copy link

tandara0 commented Jul 24, 2023

I have tried to use the $extract operation, which commented in the https://hapifhir.io/hapi-fhir/docs/clinical_reasoning/questionnaires.html.

For this,

  1. I created docker container with image: "hapiproject/hapi:latest"
  2. I set hapi.fhir.cr_enabled=true
  3. I created Example Questionnaire in the https://hapifhir.io/hapi-fhir/docs/clinical_reasoning/questionnaires.html.

Then I tried variable ways of REST APIs for $extraction operation as below:

  1. GET http:https://{base_ip}/fhir/QuestionnaireResponse/$extract
  2. GET http:https://{base_ip}/fhir/QuestionnaireResponse/ASLPA1/$extract
  3. POST http:https://{base_ip}/fhir/QuestionnaireResponse/$extract
  4. POST http:https://{base_ip}/fhir/QuestionnaireResponse/ASLPA1/$extract

I referenced https://hl7.org/fhir/uv/sdc/OperationDefinition-QuestionnaireResponse-extract.html for the APIs.
In all trials, for the body, I use the corresponding Example QuestionnaireResponse in the https://hapifhir.io/hapi-fhir/docs/clinical_reasoning/questionnaires.html.

But all the responses of the trials, have the same "not-supported" error:
One of the example is:

{
    "resourceType": "OperationOutcome",
    "text": {
        "status": "generated",
        "div": "..."
    },
    "issue": [
        {
            "severity": "error",
            "code": "not-supported",
            "diagnostics": "Invalid request: The FHIR endpoint on this server does not know how to handle POST operation[QuestionnaireResponse/ASLPA1/$extract] with parameters [[]]"
        }
    ]
}
@tandara0
Copy link
Author

I tried the $extract operation to the https://hapi.fhir.org, too.
But I met the same problem.

I tried to all below versions:
http:https://hapi.fhir.org/baseR4
http:https://hapi.fhir.org/baseR5
http:https://hapi.fhir.org/baseDstu3

All the versions have the same error.

@timilsinabishal
Copy link

HI @tandara0 were you able to solve it? We are also facing the same issue.

@barhodes
Copy link
Contributor

barhodes commented Jun 7, 2024

This operation is only available if the Clinical Reasoning module is enabled. On the public servers this module has not been enabled so the operation is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants