diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java index 84497a099..f745853b9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java @@ -652,13 +652,15 @@ public class ProfilePathProcessor { } } } - template = src.copy().setPath(currentBase.getPath()); - template.setSliceName(null); - // temporary work around - if (!"Extension".equals(diffMatches.get(0).getType().get(0).getCode())) { - template.setMin(currentBase.getMin()); - template.setMax(currentBase.getMax()); - } + if (Utilities.existsInList(currentBase.typeSummary(), "Extension", "Resource")) { + template = src.copy().setPath(currentBase.getPath()); + template.setSliceName(null); + // temporary work around + if (!"Extension".equals(diffMatches.get(0).getType().get(0).getCode())) { + template.setMin(currentBase.getMin()); + template.setMax(currentBase.getMax()); + } + } } } if (template == null)