Updates for Capability Statement rendering

This commit is contained in:
Vassil Peytchev 2023-10-27 15:03:19 -05:00
parent b60d9e4f81
commit c173df9f5b
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");
}