Merge pull request #108 from ahdis/oliveregger_cda_narrative_tfoot

cda narrative support tfoot
This commit is contained in:
Grahame Grieve 2019-11-19 08:38:33 +13:00 committed by GitHub
commit d1b95a60cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 4 deletions

View File

@ -152,7 +152,9 @@ public class CDANarrativeFormat {
}
private void processFootNote(Element e, XhtmlNode xn) {
throw new Error("element "+e.getNodeName()+" not handled yet");
XhtmlNode xc = xn.addTag("tfoot");
processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign");
processChildren(e, xc);
}
private void processFootNodeRef(Element e, XhtmlNode xn) {
@ -221,7 +223,9 @@ public class CDANarrativeFormat {
}
private void processTFoot(Element e, XhtmlNode xn) {
throw new Error("element "+e.getNodeName()+" not handled yet");
XhtmlNode xc = xn.addTag("tfoot");
processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign");
processChildren(e, xc);
}
private void processTh(Element e, XhtmlNode xn) throws FHIRException {
@ -450,8 +454,11 @@ public class CDANarrativeFormat {
xml.exit("td");
}
private void processTFoot(IXMLWriter xml, XhtmlNode n) {
throw new Error("element "+n.getName()+" not handled yet");
private void processTFoot(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {
processAttributes(n, xml, "id", "language", "styleCode", "align", "char", "charoff", "valign");
xml.enter("tfoot");
processChildren(xml, n);
xml.exit("tfoot");
}
private void processTh(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {