mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 14:24:44 +00:00
Do not use metadata from data type profiles on elements when generating snapshots
This commit is contained in:
parent
3adbd00209
commit
caf5003215
@ -2450,7 +2450,10 @@ public class ProfileUtilities {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Before applying changes, apply them to what's in the profile
|
// Before applying changes, apply them to what's in the profile
|
||||||
|
// but only if it's an extension or a resource
|
||||||
|
|
||||||
StructureDefinition profile = null;
|
StructureDefinition profile = null;
|
||||||
boolean msg = true;
|
boolean msg = true;
|
||||||
if (base.hasSliceName()) {
|
if (base.hasSliceName()) {
|
||||||
@ -2482,7 +2485,7 @@ public class ProfileUtilities {
|
|||||||
msg = false;
|
msg = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (profile != null) {
|
if (profile != null && (profile.getKind() == StructureDefinitionKind.RESOURCE || "Extension".equals(profile.getType()))) {
|
||||||
if (profile.getSnapshot().getElement().isEmpty()) {
|
if (profile.getSnapshot().getElement().isEmpty()) {
|
||||||
throw new DefinitionException(context.formatMessage(I18nConstants.SNAPSHOT_IS_EMPTY, profile.getVersionedUrl()));
|
throw new DefinitionException(context.formatMessage(I18nConstants.SNAPSHOT_IS_EMPTY, profile.getVersionedUrl()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user