Merge pull request #1480 from vassilpeytchev/master

Enhanced Capability Statement rendering
This commit is contained in:
Grahame Grieve 2023-11-07 11:06:11 +11:00 committed by GitHub
commit 80fe954a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1362 additions and 119 deletions

View File

@ -30,6 +30,18 @@ public abstract class XhtmlFluent {
return addTag("h"+Integer.toString(level));
}
/* Add header with an ID */
public XhtmlNode h(int level, String id) {
if (level < 1 || level > 6) {
throw new FHIRException("Illegal Header level "+level);
}
XhtmlNode res = addTag("h"+Integer.toString(level));
if (!Utilities.noString(id)) {
res.attribute("id", id);
}
return res;
}
public XhtmlNode h3() {
return addTag("h3");
}