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