");
+ html.append("" + fieldNames[i-1] + " | ");
+ html.append("" + fields.get(i-1).toString() + " | "); //valor do campo
+ html.append("
\n");
+
+ }
+ }
+
+ return html;
+ }
+
+ /**
+ * Creates html table with some rows of message HL7 fields associated with patient
+ * @param html
+ * @param name of the segment
+ * @param HL7 message version
+ * @param Structure (segment)
+ * @return html StringBuilder
+ * @throws HL7Exception
+ */
+ private StringBuilder patientTable(StringBuilder html, String segName, String version, Structure subItem) throws HL7Exception {
+
+ AbstractSegment seg = (AbstractSegment) subItem;
+ List