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

$export does not work #364

Open
kiwisky opened this issue May 9, 2022 · 7 comments
Open

$export does not work #364

kiwisky opened this issue May 9, 2022 · 7 comments

Comments

@kiwisky
Copy link

kiwisky commented May 9, 2022

I am deploying hapi-fhir-jpaserver-starter to an application server with Apache Tomcat.
If following setting are set:
bulk_export_enabled: true

the jpaserver can not be started.
I disable bulk_export_enabled, the jpaserver is OK to start but I got following error from [base]/$export or Patient/$export.
ponse Body
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "

](http:https://www.w3.org/1999/xhtml%5C%22%3E)

Operation Outcome

ERROR[] Invalid request: The FHIR endpoint on this server does not know how to handle GET operation[$export] with parameters [[]] \n\t\t\t\n\t\t\n\t" }, "issue": [ { "severity": "error", "code": "not-supported", "diagnostics": "Invalid request: The FHIR endpoint on this server does not know how to handle GET operation[$export] with parameters [[]]" } ] }
@kiwisky
Copy link
Author

kiwisky commented May 16, 2022

The reason is that the configuration "bulk_export_enabled" in application.yaml must be aligned.

@brianraila
Copy link

@kiwisky this doesn't seem to sort the issue.
I have an application.yaml im using but still getting the issue.
https://github.com/brianraila/hapifhir-docker/blob/main/application.yaml on line 112.
Kindly assist

@billkuojhgf
Copy link

@brianraila The $export request is working successfully on my hapi.
FYI, this is my configs.
https://github.com/billkuojhgf/Model-on-fhir/blob/develop/Configs/another.application.yaml

@brianraila
Copy link

Thanks 👍🏿

@brianraila
Copy link

@billkuojhgf Still unable to do that.
Getting this

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http:https://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Invalid request: The FHIR endpoint on this server does not know how to handle GET operation[$export] with parameters [[]]</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
  },
  "issue": [ {
    "severity": "error",
    "code": "not-supported",
    "diagnostics": "Invalid request: The FHIR endpoint on this server does not know how to handle GET operation[$export] with parameters [[]]"
  } ]
}

@billkuojhgf
Copy link

Hmmm... interesting.
I deploy hapi server with Docker and Jetty with this application.yaml, and both of them works fine on it.
Have you tried out deploying your project with Docker or Jetty? If these two deploy methods all works fine with this configuration, then maybe the problem is because of the Tomcat.
BTW, I just looked at your hapi server, and I found out that your HAPI is running at version 5.7.0, can that be the reason why the server doesn't know how to handle this operation? I'm using hapi server with version 6.0.1, and I don't remember whether the previous version supports FHIR Bulk export operaions yet.

@brianraila
Copy link

Thanks alot for the assistance. Really appreciated.
I finally managed to get it working.

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