Remove spurious header from ConceptMap rendering

This commit is contained in:
Grahame Grieve 2023-04-21 12:21:58 +08:00
parent 9b4b1ae2cc
commit de4da1eab5

View File

@ -36,11 +36,13 @@ public class ConceptMapRenderer extends TerminologyRenderer {
} }
public boolean render(XhtmlNode x, Resource dr) throws FHIRFormatError, DefinitionException, IOException { public boolean render(XhtmlNode x, Resource dr) throws FHIRFormatError, DefinitionException, IOException {
return render(x, (ConceptMap) dr); return render(x, (ConceptMap) dr, false);
} }
public boolean render(XhtmlNode x, ConceptMap cm) throws FHIRFormatError, DefinitionException, IOException { public boolean render(XhtmlNode x, ConceptMap cm, boolean header) throws FHIRFormatError, DefinitionException, IOException {
x.h2().addText(cm.getName()+" ("+cm.getUrl()+")"); if (header) {
x.h2().addText(cm.getName()+" ("+cm.getUrl()+")");
}
XhtmlNode p = x.para(); XhtmlNode p = x.para();
p.tx("Mapping from "); p.tx("Mapping from ");