Add warning to user when referencing an extension that doesn't exist.

This commit is contained in:
Grahame Grieve 2024-01-05 12:39:00 +11:00
parent 2f8c2ea5eb
commit 4cdfb0fcd6
1 changed files with 3 additions and 1 deletions

View File

@ -3482,7 +3482,9 @@ public class FHIRPathEngine {
StructureDefinition sd = worker.fetchResource(StructureDefinition.class, url);
if (sd != null) {
return new TypeDetails(CollectionStatus.ORDERED, new ProfiledType(url));
}
} else {
typeWarnings.add(new IssueMessage(worker.formatMessage(I18nConstants.FHIRPATH_UNKNOWN_EXTENSION, url), I18nConstants.FHIRPATH_UNKNOWN_EXTENSION));
}
return new TypeDetails(CollectionStatus.SINGLETON, "Extension");
}
}