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:
- Create a few patients.
- 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: