Exemplo n.º 1
0
        public void SetCaseHistory()
        {
            XmlNode nodeP  = m_ReportXml.SelectSingleNode("descendant::w:p[w:r/w:t='other_ypii_cases']", this.m_NameSpaceManager);
            XmlNode nodeTc = m_ReportXml.SelectSingleNode("descendant::w:tc[w:p/w:r/w:t='other_ypii_cases']", this.m_NameSpaceManager);

            YellowstonePathology.Business.Patient.Model.PatientHistoryList patientHistoryList = new Patient.Model.PatientHistoryList();
            patientHistoryList.SetFillCommandByAccessionNo(this.m_PanelSetOrder.ReportNo);
            patientHistoryList.Fill();

            bool hashistory = false;

            if (patientHistoryList.Count > 1)
            {
                string caseHistory = "";
                foreach (Business.Patient.Model.PatientHistoryListItem item in patientHistoryList)
                {
                    if (item.ReportNo != this.m_PanelSetOrder.ReportNo)
                    {
                        caseHistory += item.ReportNo + ", ";
                    }
                }
                if (caseHistory.Length > 2)
                {
                    hashistory  = true;
                    caseHistory = caseHistory.Substring(0, caseHistory.Length - 2);
                    XmlNode nodeAppend = nodeP.Clone();
                    nodeAppend.SelectSingleNode("//w:r/w:t", this.m_NameSpaceManager).InnerText = caseHistory;
                    nodeTc.AppendChild(nodeAppend);
                    nodeTc.RemoveChild(nodeP);
                }
            }

            if (!hashistory)
            {
                XmlNode nodeAppend = nodeP.Clone();
                nodeAppend.SelectSingleNode("//w:r/w:t", this.m_NameSpaceManager).InnerText = "None.";
                nodeTc.AppendChild(nodeAppend);
                nodeTc.RemoveChild(nodeP);
            }
        }
Exemplo n.º 2
0
        public void SetCaseHistory()
        {
            XmlNode nodeP = m_ReportXml.SelectSingleNode("descendant::w:p[w:r/w:t='other_ypii_cases']", this.m_NameSpaceManager);
            XmlNode nodeTc = m_ReportXml.SelectSingleNode("descendant::w:tc[w:p/w:r/w:t='other_ypii_cases']", this.m_NameSpaceManager);

            YellowstonePathology.Business.Patient.Model.PatientHistoryList patientHistoryList = new Patient.Model.PatientHistoryList();
            patientHistoryList.SetFillCommandByAccessionNo(this.m_PanelSetOrder.ReportNo);
            patientHistoryList.Fill();

            bool hashistory = false;
            if (patientHistoryList.Count > 1)
            {
                string caseHistory = "";
                foreach (Business.Patient.Model.PatientHistoryListItem item in patientHistoryList)
                {
                    if (item.ReportNo != this.m_PanelSetOrder.ReportNo)
                    {
                        caseHistory += item.ReportNo + ", ";
                    }
                }
                if (caseHistory.Length > 2)
                {
                    hashistory = true;
                    caseHistory = caseHistory.Substring(0, caseHistory.Length - 2);
                    XmlNode nodeAppend = nodeP.Clone();
                    nodeAppend.SelectSingleNode("//w:r/w:t", this.m_NameSpaceManager).InnerText = caseHistory;
                    nodeTc.AppendChild(nodeAppend);
                    nodeTc.RemoveChild(nodeP);
                }
            }

            if(!hashistory)
            {
                XmlNode nodeAppend = nodeP.Clone();
                nodeAppend.SelectSingleNode("//w:r/w:t", this.m_NameSpaceManager).InnerText = "None.";
                nodeTc.AppendChild(nodeAppend);
                nodeTc.RemoveChild(nodeP);
            }
        }