Fix bug where header is always rendered with Operation Definition

This commit is contained in:
Grahame Grieve 2022-09-07 08:11:44 +10:00
parent c3ab401f56
commit fbca3fda51
1 changed files with 6 additions and 5 deletions

View File

@ -35,11 +35,12 @@ public class OperationDefinitionRenderer extends TerminologyRenderer {
}
public boolean render(XhtmlNode x, OperationDefinition opd) throws IOException, FHIRException, EOperationOutcome {
x.h2().addText(opd.getName());
x.para().addText(Utilities.capitalize(opd.getKind().toString())+": "+opd.getName());
x.para().tx("The official URL for this operation definition is: ");
x.pre().tx(opd.getUrl());
addMarkdown(x, opd.getDescription());
if (context.isHeader()) {
x.h2().addText(opd.getName());
x.para().addText(Utilities.capitalize(opd.getKind().toString())+": "+opd.getName());
x.para().tx("The official URL for this operation definition is: ");
x.pre().tx(opd.getUrl());
addMarkdown(x, opd.getDescription());}
if (opd.getSystem())
x.para().tx("URL: [base]/$"+opd.getCode());