mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
Only use profiled datatype information for generating snapshots for Resource and Extension
This commit is contained in:
parent
e021fb31fd
commit
fd2bd896bf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user