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();