private void FillImmunizationContent(PatientClinicalInformation patientinfo, Factory hl7factory, III hl7III) { if (patientinfo.ptPlanOfCare.Count > 0) { managetable = new GenerateTableBodyStructure(); DataArr.Add("Planned Activity"); DataArr.Add("Planned Date"); tble = hl7factory.CreateStrucDocTable(); thead = tble.Thead; tbody = tble.Tbody.Append(); tr = thead.Tr.Append(); managetable.CreateTableHeader(DataArr, hl7factory, tble, thead, tr); //ArrayList alleries = new ArrayList(patientinfo.ptAllergies.ptAllergies); string isExistTbody = "false"; int i = 0; foreach (var item in patientinfo.ptPlanOfCare) { DataArr = new ArrayList(); DataArr.Add("Goal: " + item.Goal + ", Instructions: " + item.Instructions); DataArr.Add(Convert.ToString(item.PlannedDate)); //CreateTableTd(DataArr); isExistTbody = "true"; managetable.CreateTableBody(DataArr, hl7factory, tble, tbody, tr); var entry = functionalStatus.Section.Entry.Append(); entry.TypeCode = x_ActRelationshipEntry.DRIV; entry.AsAct.ClassCode = 0; entry.AsAct.MoodCode = 0; hl7III = entry.AsAct.TemplateId.Append(); hl7III.Init("2.16.840.1.113883.10.20.22.4.20"); hl7III = entry.AsAct.Id.Append(); hl7III.Init(Guid.NewGuid().ToString()); entry.AsAct.Code.Code = "409073007"; entry.AsAct.Code.DisplayName = "instruction"; entry.AsAct.Code.CodeSystem = "2.16.840.1.113883.6.96"; entry.AsAct.Text.Text = "Goal: " + item.Goal + ", Instructions: " + item.Instructions; entry.AsAct.StatusCode.Code = "completed"; i++; } functionalStatus.Section.Text.Items.Add(tble); //managetable.CreateTableBody(alleries, hl7factory); } else { managetable.CreateTableBody1("2", hl7factory, tble, tbody, tr); //Empty Body Entry } }
private void FillAppointmentContent(PatientClinicalInformation patientinfo, Factory hl7factory, III hl7III) { if (patientinfo.ptAppointment.Count > 0) { managetable = new GenerateTableBodyStructure(); paragraph = hl7factory.CreateStrucDocParagraph(); paragraph.Items.Add("Future Appointment"); functionalStatus.Section.Text.Items.Add(paragraph); DataArr = new ArrayList(); DataArr.Add("Date"); DataArr.Add("Provider Name"); tble = hl7factory.CreateStrucDocTable(); thead = tble.Thead; tbody = tble.Tbody.Append(); tr = thead.Tr.Append(); managetable.CreateTableHeader(DataArr, hl7factory, tble, thead, tr); //ArrayList alleries = new ArrayList(patientinfo.ptAllergies.ptAllergies); string isExistTbody = "false"; int i = 0; foreach (var item in patientinfo.ptAppointment) { DataArr = new ArrayList(); DataArr.Add(Convert.ToString(item.AppointmentDate)); DataArr.Add(item.DoctorName); managetable.CreateTableBody(DataArr, hl7factory, tble, tbody, tr); isExistTbody = "true"; i++; } if (isExistTbody == "false") { managetable.CreateTableBody1("2", hl7factory, tble, tbody, tr); //Empty Body Entry } functionalStatus.Section.Text.Items.Add(tble); //managetable.CreateTableBody(alleries, hl7factory); } else { paragraph = hl7factory.CreateStrucDocParagraph(); paragraph.Items.Add("N/A"); functionalStatus.Section.Text.Items.Add(paragraph); } }