summaryrefslogtreecommitdiff
path: root/src/main/java/dev/dnpm
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2025-10-23 09:57:55 +0200
committerGitHub2025-10-23 09:57:55 +0200
commitf284da254a71c6e028df89ab69ca77ba423cca48 (patch)
treec602a027eb232cafeb65b0ec32673117e4c8555f /src/main/java/dev/dnpm
parente3841c23fcebd7139e6d278c0d9989e75bd0d211 (diff)
fix: remove entry from consent.category (#162)
Diffstat (limited to 'src/main/java/dev/dnpm')
-rw-r--r--src/main/java/dev/dnpm/etl/processor/consent/GicsConsentService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/dev/dnpm/etl/processor/consent/GicsConsentService.java b/src/main/java/dev/dnpm/etl/processor/consent/GicsConsentService.java
index be6cbc0..a1a613e 100644
--- a/src/main/java/dev/dnpm/etl/processor/consent/GicsConsentService.java
+++ b/src/main/java/dev/dnpm/etl/processor/consent/GicsConsentService.java
@@ -318,6 +318,13 @@ public class GicsConsentService implements IConsentService {
consentAsOne.setPolicyRule(null);
+ consentAsOne
+ .getCategory()
+ .removeIf(
+ category ->
+ category.hasCoding(
+ "http://fhir.de/ConsentManagement/CodeSystem/ResultType", "policy"));
+
final var miiConsentCategory = new CodeableConcept();
miiConsentCategory.addCoding(
new Coding()