diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/profilemodel/gen/PECodeGenerator.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/profilemodel/gen/PECodeGenerator.java index 1e8487740..fbbfde5b2 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/profilemodel/gen/PECodeGenerator.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/profilemodel/gen/PECodeGenerator.java @@ -364,7 +364,7 @@ public class PECodeGenerator { type = Utilities.capitalize(field.types().get(0).getName()+"Type"); ptype = getPrimitiveType(sd); } else { - type = field.types().get(0).getName(); + type = Utilities.javaTokenize(field.types().get(0).getName(), true); } String ltype = type; if (field.isList()) {