Skip to content

Commit

Permalink
Just fix the placeholders within strings returning integer. Now they …
Browse files Browse the repository at this point in the history
…are replaced with integer not with double string serialization
  • Loading branch information
Tuncay Namli committed Sep 3, 2024
1 parent d5760a2 commit 8c64000
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 8c64000

Please sign in to comment.