diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java index 6d4a53022..64b0a288f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java @@ -3521,7 +3521,7 @@ public class ProfileUtilities extends TranslatingUtilities { } } for (ElementDefinitionConstraintComponent inv : definition.getConstraint()) { - if (!inv.hasSource() || allInvariants) { + if (!inv.hasSource() || inv.getSource().equals(profile.getUrl()) || allInvariants) { if (!c.getPieces().isEmpty()) c.addPiece(gen.new Piece("br")); c.getPieces().add(checkForNoChange(inv, gen.new Piece(null, inv.getKey()+": ", null).addStyle("font-weight:bold")));