From 6cfb84770832a3e6cfb209c783a9fda52c5c9141 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 16 Dec 2025 01:02:13 +0100 Subject: deps!: update dto lib to version 0.2.0 (#226) This release is for use with DNPM:DIP (api-gateway) Version >= 1.2.3 and uses patients birthDay and date of death in format 'yyyy-MM' (without day) with fallback to accept old format 'yyyy-MM-dd'. --- src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/dev/dnpm/etl/processor') diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt index 8437962..6b8ae89 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt @@ -114,10 +114,10 @@ class ConsentProcessor( // we need another step to back to string, before we convert to object map val asJsonString = fhirContext.newJsonParser().encodeResourceToString(resource) try { - val mapOfJson: HashMap? = - objectMapper.readValue?>( + val mapOfJson: MvhMetadata.ResearchConsent? = + objectMapper.readValue( asJsonString, - object : TypeReference?>() {}, + object : TypeReference() {}, ) mtbFile.metadata.researchConsents.add(mapOfJson) } catch (e: JsonProcessingException) { -- cgit v1.2.3