summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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()