Clean up extension loading issue
This commit is contained in:
parent
fd346cc67b
commit
fe7cd1f39a
|
@ -123,16 +123,20 @@ public class R5ExtensionsLoader {
|
|||
if (Utilities.existsInList(lsd.info.getId(), types)) {
|
||||
StructureDefinition sd = lsd.getResource();
|
||||
count++;
|
||||
List<ElementDefinition> rl = new ArrayList<>();
|
||||
for (ElementDefinition ed : sd.getDifferential().getElement()) {
|
||||
if (!stripTypes(ed, sd, types)) {
|
||||
System.out.println("A problem...");
|
||||
rl.add(ed);
|
||||
}
|
||||
}
|
||||
sd.getDifferential().getElement().removeAll(rl);
|
||||
rl.clear();
|
||||
for (ElementDefinition ed : sd.getSnapshot().getElement()) {
|
||||
if (!stripTypes(ed, sd, types)) {
|
||||
System.out.println("A problem...");
|
||||
rl.add(ed);
|
||||
}
|
||||
}
|
||||
sd.getSnapshot().getElement().removeAll(rl);
|
||||
sd.setWebPath(Utilities.pathURL(lsd.source.getWebLocation(), sd.getId().toLowerCase()+".html"));
|
||||
registerTerminologies(sd);
|
||||
context.cacheResourceFromPackage(sd, new PackageInformation(lsd.source));
|
||||
|
|
Loading…
Reference in New Issue