From c04ea0837f8830bb4c8cb5f0a58964e0190de9b0 Mon Sep 17 00:00:00 2001 From: Thomas Papke Date: Fri, 29 Mar 2024 20:09:09 +0100 Subject: [PATCH] #2 Add support for Remove Metadata (ITI-62) * Some documentation improvement * Some validation fixes --- .../xdstofhir/registry/remove/RemoveDocumentsProcessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/openehealth/app/xdstofhir/registry/remove/RemoveDocumentsProcessor.java b/src/main/java/org/openehealth/app/xdstofhir/registry/remove/RemoveDocumentsProcessor.java index 2dc941c..cee8ed4 100644 --- a/src/main/java/org/openehealth/app/xdstofhir/registry/remove/RemoveDocumentsProcessor.java +++ b/src/main/java/org/openehealth/app/xdstofhir/registry/remove/RemoveDocumentsProcessor.java @@ -48,7 +48,9 @@ public Response remove(RemoveMetadata metadataToRemove) { var docBundleResult = client.search().forResource(DocumentReference.class) .withProfile(MappingSupport.MHD_COMPREHENSIVE_PROFILE) - .revInclude(DocumentReference.INCLUDE_RELATESTO) + .include(DocumentReference.INCLUDE_RELATESTO) + .revInclude(ListResource.INCLUDE_ITEM) + .revInclude(DocumentReference.INCLUDE_RELATED) .where(DocumentReference.IDENTIFIER.exactly().systemAndValues(URI_URN,uuidsToDelete)) .returnBundle(Bundle.class) .execute();