From 8c640001c7dd7498486b78313ae65dfea3e118cc Mon Sep 17 00:00:00 2001 From: Tuncay Namli Date: Tue, 3 Sep 2024 13:33:15 +0300 Subject: [PATCH] Just fix the placeholders within strings returning integer. Now they are replaced with integer not with double string serialization --- .../scala/io/onfhir/template/FhirTemplateExpressionHandler.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/io/onfhir/template/FhirTemplateExpressionHandler.scala b/src/main/scala/io/onfhir/template/FhirTemplateExpressionHandler.scala index 00e1594..8f6a0cb 100644 --- a/src/main/scala/io/onfhir/template/FhirTemplateExpressionHandler.scala +++ b/src/main/scala/io/onfhir/template/FhirTemplateExpressionHandler.scala @@ -262,6 +262,7 @@ class FhirTemplateExpressionHandler( case FhirPathComplex(_) | FhirPathQuantity(_, _) => throw FhirExpressionException(s"FHIR path expression returns complex JSON object although it is used within a FHIR string value!", Some(fhirPathExpression)) case FhirPathString(s) => s + case n:FhirPathNumber if n.isInteger() => n.v.toLong.toString case FhirPathNumber(n) => "" + n.toDouble.toString case FhirPathBoolean(b) => "" + b case dt:FhirPathDateTime =>