Fix issue with type evaluation in R3 checking FHIRPath types

This commit is contained in:
Grahame Grieve 2023-07-21 21:16:48 +10:00
parent 8cf086b203
commit e324047735
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ public class TypeDetails {
return true;
if (tail != null && typesContains(sd.getUrl()+"#"+sd.getType()+tail))
return true;
if ("http://hl7.org/fhir/StructureDefinition/string".equals(sd.getUrl()) && typesContains(FP_String)) {
return true; // this is work around for R3
}
if (sd.hasBaseDefinition()) {
if (sd.getType().equals("uri"))
sd = context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/string");