dorset-ics / healthcare-data-exchange

A FHIR based integration and interoperability platform to support a regional healthcare network.
https://dorset-ics.github.io/healthcare-data-exchange/
MIT License
6 stars 6 forks source link

fix: use Fhir Http client to hard delete patients #11

Closed liammoat closed 3 months ago

liammoat commented 3 months ago

PdsServiceTests has a method which deletes Patient resources from the Fhir Service. By default, this operation is a soft delete.

The remaining "soft" copy of the resource prevents subsequent tests from running successfully - due to the 410 GONE Http result.

This PR updates the CleanFhirStore to "hard" delete the resource, using the hardDelete query parameters:

Patient/9000000025?hardDelete=true

Subsequent requests for "9000000025" will now result in a 404:

image

NOTE: This only affects the Integration.Tests project.

liammoat commented 3 months ago

@johncollinson2001, might be worth capturing a PBI to update the CleanFhirStore method to use the $bulk-delete operation. This PR is to get subsequent tests working, but the operation is still slow running.