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); }