Fix bug processing extension with explicit type slicing

This commit is contained in:
Grahame Grieve 2024-05-19 22:45:17 -05:00
parent bf4b029b4b
commit 0cc46e5a44
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ public class ProfilePathProcessor {
}
}
if (!allowedTypes.isEmpty()) {
if (currentBasePath.contains("xtension.value")) {
if (currentBasePath.contains("xtension.value") && shortCut) {
for (Iterator<ElementDefinition.TypeRefComponent> iter = elementDefinition.getType().iterator(); iter.hasNext(); ) {
ElementDefinition.TypeRefComponent tr = iter.next();
if (allowedTypes.contains(tr.getCode())) {