don't walk into nested bundles when validating links in bundles

This commit is contained in:
Grahame Grieve 2024-03-08 22:32:13 +11:00
parent a94b41add8
commit a51c3f96ad
1 changed files with 4 additions and 1 deletions

View File

@ -851,9 +851,12 @@ public class BundleValidator extends BaseValidator {
if (ref != null && !ref.startsWith("#") && !hasReference(ref, references)) if (ref != null && !ref.startsWith("#") && !hasReference(ref, references))
references.add(new StringWithSource(ref, child, true, isNLLink(start))); references.add(new StringWithSource(ref, child, true, isNLLink(start)));
} }
// don't walk into a sub-bundle
if (!"Bundle".equals(child.fhirType())) {
findReferences(child, references); findReferences(child, references);
} }
} }
}
private boolean isNLLink(Element parent) { private boolean isNLLink(Element parent) {