cda narrative support tfoot

This commit is contained in:
Oliver Egger 2019-11-13 23:37:49 +01:00
parent d42ccece12
commit 4a05ed8e48
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) { 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) { private void processFootNodeRef(Element e, XhtmlNode xn) {
@ -221,7 +223,9 @@ public class CDANarrativeFormat {
} }
private void processTFoot(Element e, XhtmlNode xn) { 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 { private void processTh(Element e, XhtmlNode xn) throws FHIRException {
@ -450,8 +454,11 @@ public class CDANarrativeFormat {
xml.exit("td"); xml.exit("td");
} }
private void processTFoot(IXMLWriter xml, XhtmlNode n) { private void processTFoot(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {
throw new Error("element "+n.getName()+" not handled yet"); 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 { private void processTh(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {