FHIR Chat · Type-Level Expunge $expunge · hapi

Stream: hapi

Topic: Type-Level Expunge $expunge


view this post on Zulip Jon Paulo Ojon (Oct 04 2021 at 07:12):

Hello Everyone,

Asking for your help regarding expunge operation. I have installed a local HAPI FHIR via docker in my desktop. And I am trying to test out the expunge operation Type-Level Expunge. However, it does not seem to work for me or I may not know how to use it. I am using postman by the way and this is my POST request below. I also do not know how to enable expunge. Please help. Thank for your assistance.

Steps to reproduce:

  1. Create a few patients.
  2. perform the Type-Level Expunge on patients only.

Expected Results:
No error. Patients are all gone.

Actual Results:
No error. Patients are all still present.

POST http://localhost:8080/fhir/Patient/$expunge

Headers
Content-Type: application/fhir+json

Body
{
"resourceType": "Parameters",
"parameter": [
{
"name": "limit",
"valueInteger": 1000
},
{
"name": "expungeDeletedResources",
"valueBoolean": true
},
{
"name": "expungePreviousVersions",
"valueBoolean": true
},
{
"name": "expungeEverything",
"valueBoolean": true
}
]
}

Reference Sites:
https://smilecdr.com/docs/fhir_repository/deleting_data.html#expunge
https://github.com/hapifhir/fhir-tutorial/blob/master/CRUD%20operations/lesson.md

view this post on Zulip Lloyd McKenzie (Oct 04 2021 at 14:20):

You might want to ask this on #hapi

view this post on Zulip Notification Bot (Oct 04 2021 at 16:06):

Josh Mandel has marked this topic as resolved.

view this post on Zulip Notification Bot (Oct 04 2021 at 16:06):

Josh Mandel has marked this topic as unresolved.

view this post on Zulip Notification Bot (Oct 04 2021 at 16:06):

This topic was moved here from #implementers > Type-Level Expunge $expunge by Josh Mandel

view this post on Zulip Alex Bennett (Mar 08 2022 at 19:15):

Was there any solution to this? I am seeing the same issue using the HAPI FHIR JPA starter server.


Last updated: Apr 12 2022 at 19:14 UTC