From 2dc71f33ff8e4acc68234584b560dd9df2b81a4b Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 6 Aug 2019 14:48:24 +1000 Subject: [PATCH] fix language extension --- .../src/main/java/org/hl7/fhir/r4/utils/ToolingExtensions.java | 2 +- .../src/main/java/org/hl7/fhir/r5/utils/ToolingExtensions.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ToolingExtensions.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ToolingExtensions.java index f6ccb59ea..6fd89a645 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ToolingExtensions.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ToolingExtensions.java @@ -577,7 +577,7 @@ public class ToolingExtensions { return; Extension extension = new Extension().setUrl(EXT_TRANSLATION); - extension.addExtension().setUrl("lang").setValue(new StringType(lang)); + extension.addExtension().setUrl("lang").setValue(new CodeType(lang)); extension.addExtension().setUrl("content").setValue(new StringType(value)); element.getExtension().add(extension); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ToolingExtensions.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ToolingExtensions.java index 58556ca60..5de039fde 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ToolingExtensions.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ToolingExtensions.java @@ -577,7 +577,7 @@ public class ToolingExtensions { return; Extension extension = new Extension().setUrl(EXT_TRANSLATION); - extension.addExtension().setUrl("lang").setValue(new StringType(lang)); + extension.addExtension().setUrl("lang").setValue(new CodeType(lang)); extension.addExtension().setUrl("content").setValue(new StringType(value)); element.getExtension().add(extension); }