From a1dd57712f3579727ec99d4540dedf03130fb5dd Mon Sep 17 00:00:00 2001 From: John Grimes Date: Mon, 18 Dec 2023 15:51:47 +1000 Subject: [PATCH] Fix error in Java example for translate function --- site/docs/libraries/terminology.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/docs/libraries/terminology.md b/site/docs/libraries/terminology.md index 3afce891c3..c51505cac0 100644 --- a/site/docs/libraries/terminology.md +++ b/site/docs/libraries/terminology.md @@ -257,7 +257,7 @@ class MyApp { PathlingContext pc = PathlingContext.create(); Dataset csv = pc.getSpark().read().csv("conditions.csv"); - val translate_result = csv.withColumn( + Dataset translateResult = csv.withColumn( "READ_CODES", translate( toCoding(csv.col("CODE"), "https://snomed.info/sct"), @@ -265,7 +265,7 @@ class MyApp { false, null ).getField("code") ); - translate_result.select( + translateResult.select( csv.col("CODE"), csv.col("DESCRIPTION"), explode_outer(translate_result.col("READ_CODES")).alias( "READ_CODE")