summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2025-12-16 01:02:13 +0100
committerPaul-Christian Volkmer2025-12-16 01:03:47 +0100
commit6cfb84770832a3e6cfb209c783a9fda52c5c9141 (patch)
treee3d375b34360a990ad4f516cf56914960c01de9f /src/main
parenta7384733dddd5fb822c53c1d31517d4a342f5dc6 (diff)
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'.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/services/ConsentProcessor.kt6
1 files changed, 3 insertions, 3 deletions
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<String?, Any?>? =
- objectMapper.readValue<HashMap<String?, Any?>?>(
+ val mapOfJson: MvhMetadata.ResearchConsent? =
+ objectMapper.readValue<MvhMetadata.ResearchConsent?>(
asJsonString,
- object : TypeReference<HashMap<String?, Any?>?>() {},
+ object : TypeReference<MvhMetadata.ResearchConsent?>() {},
)
mtbFile.metadata.researchConsents.add(mapOfJson)
} catch (e: JsonProcessingException) {