require id/active flag for all generated tables
This commit is contained in:
parent
6993f763d8
commit
097ce2cfcd
|
@ -1155,7 +1155,7 @@ public class ProfileUtilities {
|
||||||
|
|
||||||
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId());
|
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId(), false);
|
||||||
|
|
||||||
boolean deep = false;
|
boolean deep = false;
|
||||||
boolean vdeep = false;
|
boolean vdeep = false;
|
||||||
|
@ -1419,7 +1419,7 @@ public class ProfileUtilities {
|
||||||
public XhtmlNode generateTable(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateTable(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
assert(diff != snapshot);// check it's ok to get rid of one of these
|
assert(diff != snapshot);// check it's ok to get rid of one of these
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"));
|
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"), false);
|
||||||
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
||||||
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
||||||
profiles.add(profile);
|
profiles.add(profile);
|
||||||
|
|
|
@ -1156,7 +1156,7 @@ public class ProfileUtilities {
|
||||||
|
|
||||||
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId());
|
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId(), false);
|
||||||
|
|
||||||
boolean deep = false;
|
boolean deep = false;
|
||||||
boolean vdeep = false;
|
boolean vdeep = false;
|
||||||
|
@ -1418,7 +1418,7 @@ public class ProfileUtilities {
|
||||||
public XhtmlNode generateTable(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, boolean logicalModel, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateTable(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, boolean logicalModel, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
assert(diff != snapshot);// check it's ok to get rid of one of these
|
assert(diff != snapshot);// check it's ok to get rid of one of these
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"));
|
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"), false);
|
||||||
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
||||||
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
||||||
profiles.add(profile);
|
profiles.add(profile);
|
||||||
|
|
|
@ -1593,7 +1593,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
gen.setTranslator(getTranslator());
|
gen.setTranslator(getTranslator());
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId());
|
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId(), false);
|
||||||
|
|
||||||
boolean deep = false;
|
boolean deep = false;
|
||||||
String m = "";
|
String m = "";
|
||||||
|
@ -1962,7 +1962,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
assert(diff != snapshot);// check it's ok to get rid of one of these
|
assert(diff != snapshot);// check it's ok to get rid of one of these
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics);
|
||||||
gen.setTranslator(getTranslator());
|
gen.setTranslator(getTranslator());
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"));
|
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"), false);
|
||||||
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
||||||
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
||||||
profiles.add(profile);
|
profiles.add(profile);
|
||||||
|
@ -3608,7 +3608,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
|
|
||||||
|
|
||||||
public TableModel initSpanningTable(HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id) {
|
public TableModel initSpanningTable(HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id) {
|
||||||
TableModel model = gen.new TableModel(id);
|
TableModel model = gen.new TableModel(id, false);
|
||||||
|
|
||||||
model.setDocoImg(prefix+"help16.png");
|
model.setDocoImg(prefix+"help16.png");
|
||||||
model.setDocoRef(prefix+"formats.html#table"); // todo: change to graph definition
|
model.setDocoRef(prefix+"formats.html#table"); // todo: change to graph definition
|
||||||
|
|
|
@ -2120,7 +2120,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker) throws IOException, FHIRException {
|
public XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker) throws IOException, FHIRException {
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics, true);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics, true);
|
||||||
gen.setTranslator(getTranslator());
|
gen.setTranslator(getTranslator());
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId());
|
TableModel model = gen.initNormalTable(corePath, false, true, ed.getId(), false);
|
||||||
|
|
||||||
boolean deep = false;
|
boolean deep = false;
|
||||||
String m = "";
|
String m = "";
|
||||||
|
@ -2490,7 +2490,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
assert(diff != snapshot);// check it's ok to get rid of one of these
|
assert(diff != snapshot);// check it's ok to get rid of one of these
|
||||||
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics, true);
|
HierarchicalTableGenerator gen = new HierarchicalTableGenerator(imageFolder, inlineGraphics, true);
|
||||||
gen.setTranslator(getTranslator());
|
gen.setTranslator(getTranslator());
|
||||||
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"));
|
TableModel model = gen.initNormalTable(corePath, false, true, profile.getId()+(diff ? "d" : "s"), false);
|
||||||
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
List<ElementDefinition> list = diff ? profile.getDifferential().getElement() : profile.getSnapshot().getElement();
|
||||||
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
List<StructureDefinition> profiles = new ArrayList<StructureDefinition>();
|
||||||
profiles.add(profile);
|
profiles.add(profile);
|
||||||
|
@ -4595,7 +4595,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
|
|
||||||
|
|
||||||
public TableModel initSpanningTable(HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id) {
|
public TableModel initSpanningTable(HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id) {
|
||||||
TableModel model = gen.new TableModel(id);
|
TableModel model = gen.new TableModel(id, false);
|
||||||
|
|
||||||
model.setDocoImg(prefix+"help16.png");
|
model.setDocoImg(prefix+"help16.png");
|
||||||
model.setDocoRef(prefix+"formats.html#table"); // todo: change to graph definition
|
model.setDocoRef(prefix+"formats.html#table"); // todo: change to graph definition
|
||||||
|
|
|
@ -1515,7 +1515,7 @@ public class ProfileComparer implements ProfileKnowledgeProvider {
|
||||||
private String genCompModel(StructureDefinition sd, String name, String base, String prefix, String dest) throws FHIRException, IOException {
|
private String genCompModel(StructureDefinition sd, String name, String base, String prefix, String dest) throws FHIRException, IOException {
|
||||||
if (sd == null)
|
if (sd == null)
|
||||||
return "<p style=\"color: maroon\">No "+name+" could be generated</p>\r\n";
|
return "<p style=\"color: maroon\">No "+name+" could be generated</p>\r\n";
|
||||||
return new XhtmlComposer(XhtmlComposer.HTML).compose(new ProfileUtilities(context, null, this).generateTable("??", sd, false, dest, false, base, true, prefix, prefix, false, false, null));
|
return new XhtmlComposer(XhtmlComposer.HTML).compose(new ProfileUtilities(context, null, this).generateTable("??", sd, false, dest, false, base, true, prefix, prefix, false, false, null, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4207,7 +4207,7 @@ public class NarrativeGenerator implements INarrativeGenerator {
|
||||||
public boolean generate(ResourceContext rcontext, StructureDefinition sd, Set<String> outputTracker) throws EOperationOutcome, FHIRException, IOException {
|
public boolean generate(ResourceContext rcontext, StructureDefinition sd, Set<String> outputTracker) throws EOperationOutcome, FHIRException, IOException {
|
||||||
ProfileUtilities pu = new ProfileUtilities(context, null, pkp);
|
ProfileUtilities pu = new ProfileUtilities(context, null, pkp);
|
||||||
XhtmlNode x = new XhtmlNode(NodeType.Element, "div");
|
XhtmlNode x = new XhtmlNode(NodeType.Element, "div");
|
||||||
x.getChildNodes().add(pu.generateTable(definitionsTarget, sd, true, destDir, false, sd.getId(), false, corePath, "", false, false, outputTracker));
|
x.getChildNodes().add(pu.generateTable(definitionsTarget, sd, true, destDir, false, sd.getId(), false, corePath, "", false, false, outputTracker, false));
|
||||||
inject(sd, x, NarrativeStatus.GENERATED);
|
inject(sd, x, NarrativeStatus.GENERATED);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue