fix FHIRPath type resolution for logical models

This commit is contained in:
Grahame Grieve 2023-09-30 22:29:42 +10:00
parent 1ba4d276c0
commit 589d566c0a
1 changed files with 4 additions and 1 deletions

View File

@ -5794,7 +5794,10 @@ public class FHIRPathEngine {
url = type;
}
String tail = "";
StructureDefinition sd = worker.fetchResource(StructureDefinition.class, url);
StructureDefinition sd = worker.fetchTypeDefinition(url);
if (sd == null) {
sd = worker.fetchResource(StructureDefinition.class, url);
}
if (sd == null) {
if (url.startsWith(TypeDetails.FP_NS)) {
return;