public void CreateTableBody1(string colSpan, Factory hl7factory, IStrucDocTable tble, IStrucDocTbody tbody, IStrucDocTr tr) { tr = hl7factory.CreateStrucDocTr(); td = hl7factory.CreateStrucDocTd(); td.Colspan = colSpan; td.Align = StrucDocTdAlign.center; td.Items.Add("N/A"); tr.Items.Add(td); tbody.Tr.Add(tr); }
public void CreateTableBody(ArrayList Data, Factory hl7factory, IStrucDocTable tble, IStrucDocTbody tbody, IStrucDocTr tr) { //tbody = tble.Tbody.Append(); tr = hl7factory.CreateStrucDocTr(); for (int n = 0; n <= Data.Count - 1; n++) { td = hl7factory.CreateStrucDocTd(); td.Items.Add(Data[n]); tr.Items.Add(td); } tbody.Tr.Add(tr); }
private void FillVitalSignsContent(PatientClinicalInformation patientinfo, Factory hl7Factory) { if (patientinfo.ptVitalSigns.Count > 0) { managetable = new GenerateTableBodyStructure(); DataArr = new ArrayList(); DataArr.Add("Date / Time:"); var arrVitalSign = patientinfo.ptVitalSigns; foreach (var vitalSign in arrVitalSign) { DataArr.Add(Convert.ToString(vitalSign.Entrydate)); } tble = hl7Factory.CreateStrucDocTable(); thead = tble.Thead; tbody = tble.Tbody.Append(); tr = thead.Tr.Append(); managetable.CreateTableHeader(DataArr, hl7Factory, tble, thead, tr); IStrucDocTr tr2 = hl7Factory.CreateStrucDocTr(); IStrucDocTr tr3 = hl7Factory.CreateStrucDocTr(); tr = hl7Factory.CreateStrucDocTr(); th = hl7Factory.CreateStrucDocTh(); th.Items.Add("Height"); tr.Items.Add(th); th = hl7Factory.CreateStrucDocTh(); th.Items.Add("Weight"); tr2.Items.Add(th); th = hl7Factory.CreateStrucDocTh(); th.Items.Add("Blood Pressure"); tr3.Items.Add(th); // Dim content int i = 1; foreach (var vitalSign in arrVitalSign) { td = hl7Factory.CreateStrucDocTd(); content = hl7Factory.CreateStrucDocContent(); content.XmlId = "vit" + (i); content.Items.Add(Convert.ToString(vitalSign.Height) + " inch"); td.Items.Add(content); tr.Items.Add(td); i = i + 1; td = hl7Factory.CreateStrucDocTd(); content = hl7Factory.CreateStrucDocContent(); content.XmlId = "vit" + (i); content.Items.Add(Convert.ToString(vitalSign.WEIGHT) + " Kg"); td.Items.Add(content); tr2.Items.Add(td); i = i + 1; td = hl7Factory.CreateStrucDocTd(); content = hl7Factory.CreateStrucDocContent(); content.XmlId = "vit" + (i); content.Items.Add(Convert.ToString(vitalSign.BloodPressure) + " mmHg"); td.Items.Add(content); tr3.Items.Add(td); i = i + 1; } tbody.Tr.Add(tr); tbody.Tr.Add(tr2); tbody.Tr.Add(tr3); if (arrVitalSign.Count > 0) { functionalStatus.Section.Text.Items.Add(tble); } else { IStrucDocParagraph paragraph = hl7Factory.CreateStrucDocParagraph(); paragraph.Items.Add("N/A"); functionalStatus.Section.Text.Items.Add(paragraph); } } }