Пример #1
0
 /// <summary>constructor with report number and XML data block
 /// </summary>
 /// <param name="reportNo">report number</param>
 /// <param name="inDocument">XML element with input data</param>
 public YpReportDataBase(string reportNo, XElement xmlDataDocument, string rootName)
     : base(rootName)
 {
     Add(PageHeader = new ReportHeaderData(reportNo, xmlDataDocument));
     AddAmendmentsData(xmlDataDocument);
     AddCustomData(reportNo, xmlDataDocument);
     AddOtherReportsData(xmlDataDocument);
     AddReportDistributionsData(xmlDataDocument);
 }
Пример #2
0
        /// <summary>constructor
        /// </summary>
        /// <param name="data">report XML data</param>
        public MirthXmlBase(string reportName, ReportHeaderData pageHeaderData)
        {
            m_PageHeaderData = pageHeaderData;
            m_Root = new XElement(m_RootName);
            AddMshSegment();
            AddPidSegment(pageHeaderData);
            AddOrcSegment();
            AddObrSegment();
            AddHeaderObxSegments(reportName);

            Add(m_Root);
        }
Пример #3
0
 public YpReportBase(string reportName, ReportHeaderData pageHeader, bool usePathologistSignatureInMainBox = true)
 {
     m_PageHeaderData = pageHeader;
     m_UsePathologistSignatureInMainBox = usePathologistSignatureInMainBox;
     SetupReport(reportName);
 }
Пример #4
0
        public MirthXmlBase(string reportName, YpReportDataBase reportData)
        {
            m_PageHeaderData = reportData.PageHeader;
            m_Root = new XElement(m_RootName);
            AddMshSegment();
            AddPidSegment(m_PageHeaderData);
            AddOrcSegment();
            AddObrSegment();
            AddHeaderObxSegments(reportName);
            AddNteSegments(reportData);

            Add(m_Root);
        }
Пример #5
0
 /// <summary>method add PID segment data block to document's root element
 /// </summary>
 private void AddPidSegment(ReportHeaderData headerData)
 {
     //ReportHeaderData headerData = m_Data.PageHeader;
     XElement pid = new XElement("PID");
     XElement pid5 = pid.AddChildElement("PID.5");
     pid5.AddChildHl7Element("PID.5.1", headerData.GetStringValue("PLastName"));
     pid5.AddChildHl7Element("PID.5.2", headerData.GetStringValue("PFirstName"));
     pid.AddChildElement("PID.7").AddChildHl7Element("PID.7.1", headerData.GetDateTime(ReportHeaderData.PatientBirthdate, "yyyyMMdd"));
     pid.AddChildElement("PID.8").AddChildHl7Element("PID.8.1", headerData.GetStringValue("PSex"));
     pid.AddChildElement("PID.19").AddChildHl7Element("PID.19.1", headerData.GetStringValue("PSSN"));
     m_Root.Add(pid);
 }
 /// <summary>default constructor
 /// </summary>
 /// <param name="reportName">report name</param>
 /// <param name="data">block of report first page header data</param>
 public ReportFirstPageHeader(string reportName, ReportHeaderData data)
 {
     m_ReportName = reportName;
     m_Data = data;
 }
Пример #7
0
 /// <summary>constructor with report number and XML data block
 /// </summary>
 /// <param name="reportNo">report number</param>
 /// <param name="inDocument">XML element with input data</param>
 public YpReportDataBase(string reportNo, XElement xmlDataDocument, string rootName)
     : base(rootName)
 {
     Add(PageHeader = new ReportHeaderData(reportNo, xmlDataDocument));
     AddAmendmentsData(xmlDataDocument);
     AddCustomData(reportNo, xmlDataDocument);
     AddOtherReportsData(xmlDataDocument);
     AddReportDistributionsData(xmlDataDocument);
 }
Пример #8
0
 /// <summary>default constructor
 /// </summary>
 /// <param name="reportName">report name</param>
 /// <param name="data">block of report first page header data</param>
 public ReportNextPageHeader(ReportHeaderData data)
 {
     m_Data = data;
     m_FontSize = base.m_FontSize + 3;
 }