fix bug showing extension binding twice
This commit is contained in:
parent
dfcd5ed161
commit
e2be137e5d
|
@ -1335,12 +1335,12 @@ public class StructureDefinitionComparer extends CanonicalResourceComparer imple
|
||||||
nc = sdrRight.genElementNameCell(gen, combined.getRight().getDef(), "??", true, corePath, prefix, root, false, false, combined.getRight().getSrc(), typesRow, row, false, ext, used , ref, sName, null);
|
nc = sdrRight.genElementNameCell(gen, combined.getRight().getDef(), "??", true, corePath, prefix, root, false, false, combined.getRight().getSrc(), typesRow, row, false, ext, used , ref, sName, null);
|
||||||
}
|
}
|
||||||
if (combined.hasLeft()) {
|
if (combined.hasLeft()) {
|
||||||
frame(sdrLeft.genElementCells(gen, combined.getLeft().getDef(), "??", true, corePath, prefix, root, false, false, combined.getLeft().getSrc(), typesRow, row, true, ext, used , ref, sName, nc, false, false, null), leftColor);
|
frame(sdrLeft.genElementCells(gen, combined.getLeft().getDef(), "??", true, corePath, prefix, root, false, false, combined.getLeft().getSrc(), typesRow, row, true, ext, used , ref, sName, nc, false, false, null, children.size() > 0), leftColor);
|
||||||
} else {
|
} else {
|
||||||
frame(spacers(row, 4, gen), leftColor);
|
frame(spacers(row, 4, gen), leftColor);
|
||||||
}
|
}
|
||||||
if (combined.hasRight()) {
|
if (combined.hasRight()) {
|
||||||
frame(sdrRight.genElementCells(gen, combined.getRight().getDef(), "??", true, corePath, prefix, root, false, false, combined.getRight().getSrc(), typesRow, row, true, ext, used, ref, sName, nc, false, false, null), rightColor);
|
frame(sdrRight.genElementCells(gen, combined.getRight().getDef(), "??", true, corePath, prefix, root, false, false, combined.getRight().getSrc(), typesRow, row, true, ext, used, ref, sName, nc, false, false, null, children.size() > 0), rightColor);
|
||||||
} else {
|
} else {
|
||||||
frame(spacers(row, 4, gen), rightColor);
|
frame(spacers(row, 4, gen), rightColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -813,7 +813,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
|
||||||
genElementObligations(gen, element, columns, row, corePath, profile);
|
genElementObligations(gen, element, columns, row, corePath, profile);
|
||||||
break;
|
break;
|
||||||
case SUMMARY:
|
case SUMMARY:
|
||||||
genElementCells(gen, element, profileBaseFileName, snapshot, corePath, imagePath, root, logicalModel, allInvariants, profile, typesRow, row, hasDef, ext, used, ref, sName, nc, mustSupport, true, rc);
|
genElementCells(gen, element, profileBaseFileName, snapshot, corePath, imagePath, root, logicalModel, allInvariants, profile, typesRow, row, hasDef, ext, used, ref, sName, nc, mustSupport, true, rc, children.size() > 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (element.hasSlicing()) {
|
if (element.hasSlicing()) {
|
||||||
|
@ -1026,7 +1026,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
|
||||||
|
|
||||||
public List<Cell> genElementCells(HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath,
|
public List<Cell> genElementCells(HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath,
|
||||||
String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, Row typesRow, Row row, boolean hasDef,
|
String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, Row typesRow, Row row, boolean hasDef,
|
||||||
boolean ext, UnusedTracker used, String ref, String sName, Cell nameCell, boolean mustSupport, boolean allowSubRows, RenderingContext rc) throws IOException {
|
boolean ext, UnusedTracker used, String ref, String sName, Cell nameCell, boolean mustSupport, boolean allowSubRows, RenderingContext rc, boolean walksIntoThis) throws IOException {
|
||||||
List<Cell> res = new ArrayList<>();
|
List<Cell> res = new ArrayList<>();
|
||||||
Cell gc = gen.new Cell();
|
Cell gc = gen.new Cell();
|
||||||
row.getCells().add(gc);
|
row.getCells().add(gc);
|
||||||
|
@ -1076,7 +1076,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
|
||||||
// left.getPieces().get(0).setReference((String) extDefn.getExtensionStructure().getTag("filename"));
|
// left.getPieces().get(0).setReference((String) extDefn.getExtensionStructure().getTag("filename"));
|
||||||
nameCell.getPieces().get(0).setHint((/*!#*/"Extension URL")+" = "+extDefn.getUrl());
|
nameCell.getPieces().get(0).setHint((/*!#*/"Extension URL")+" = "+extDefn.getUrl());
|
||||||
res.add(genCardinality(gen, element, row, hasDef, used, extDefn.getElement()));
|
res.add(genCardinality(gen, element, row, hasDef, used, extDefn.getElement()));
|
||||||
ElementDefinition valueDefn = extDefn.getExtensionValueDefinition();
|
ElementDefinition valueDefn = walksIntoThis ? null : extDefn.getExtensionValueDefinition();
|
||||||
if (valueDefn != null && !"0".equals(valueDefn.getMax()))
|
if (valueDefn != null && !"0".equals(valueDefn.getMax()))
|
||||||
res.add(genTypes(gen, row, valueDefn, profileBaseFileName, profile, corePath, imagePath, root, mustSupport));
|
res.add(genTypes(gen, row, valueDefn, profileBaseFileName, profile, corePath, imagePath, root, mustSupport));
|
||||||
else // if it's complex, we just call it nothing
|
else // if it's complex, we just call it nothing
|
||||||
|
|
Loading…
Reference in New Issue