Fix bug where header is always rendered with Operation Definition
This commit is contained in:
parent
c3ab401f56
commit
fbca3fda51
|
@ -35,11 +35,12 @@ public class OperationDefinitionRenderer extends TerminologyRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean render(XhtmlNode x, OperationDefinition opd) throws IOException, FHIRException, EOperationOutcome {
|
public boolean render(XhtmlNode x, OperationDefinition opd) throws IOException, FHIRException, EOperationOutcome {
|
||||||
x.h2().addText(opd.getName());
|
if (context.isHeader()) {
|
||||||
x.para().addText(Utilities.capitalize(opd.getKind().toString())+": "+opd.getName());
|
x.h2().addText(opd.getName());
|
||||||
x.para().tx("The official URL for this operation definition is: ");
|
x.para().addText(Utilities.capitalize(opd.getKind().toString())+": "+opd.getName());
|
||||||
x.pre().tx(opd.getUrl());
|
x.para().tx("The official URL for this operation definition is: ");
|
||||||
addMarkdown(x, opd.getDescription());
|
x.pre().tx(opd.getUrl());
|
||||||
|
addMarkdown(x, opd.getDescription());}
|
||||||
|
|
||||||
if (opd.getSystem())
|
if (opd.getSystem())
|
||||||
x.para().tx("URL: [base]/$"+opd.getCode());
|
x.para().tx("URL: [base]/$"+opd.getCode());
|
||||||
|
|
Loading…
Reference in New Issue