diff --git a/fhavro-export/src/main/scala/bio/ferlab/fhir/etl/task/FhavroExporter.scala b/fhavro-export/src/main/scala/bio/ferlab/fhir/etl/task/FhavroExporter.scala index 770f343c..64d93331 100644 --- a/fhavro-export/src/main/scala/bio/ferlab/fhir/etl/task/FhavroExporter.scala +++ b/fhavro-export/src/main/scala/bio/ferlab/fhir/etl/task/FhavroExporter.scala @@ -47,7 +47,7 @@ class FhavroExporter(bucketName: String, releaseId: String, studyId: String) case Some(study) => { val studyVersion = extractVersionFromRessource(study) if(studyVersion.isDefined){ - bundleWithStudy.withTag(null, s"study_version:$studyVersion") + bundleWithStudy.withTag(null, studyVersion.get) } else { bundleWithStudy }