fix bug in R5 code for introduction of PrimitiveType

This commit is contained in:
Grahame Grieve 2019-12-10 11:45:42 +11:00
parent 89592da490
commit f113f9b9ed
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class TypeDetails {
if (tail != null && typesContains(sd.getUrl()+"#"+sd.getType()+tail))
return true;
if (sd.hasBaseDefinition()) {
if (sd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Element") && !sd.getType().equals("string") && sd.getType().equals("uri"))
if (sd.getType().equals("uri"))
sd = context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/string");
else
sd = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());