Skip to content

Commit

Permalink
Fix error in Java example for translate function
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Dec 18, 2023
1 parent 0809a30 commit a1dd577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs/libraries/terminology.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ class MyApp {
PathlingContext pc = PathlingContext.create();
Dataset<Row> csv = pc.getSpark().read().csv("conditions.csv");

val translate_result = csv.withColumn(
Dataset<Row> translateResult = csv.withColumn(
"READ_CODES",
translate(
toCoding(csv.col("CODE"), "https://snomed.info/sct"),
"http://snomed.info/sct/900000000000207008?fhir_cm=900000000000497000",
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")
Expand Down

0 comments on commit a1dd577

Please sign in to comment.