Esempio n. 1
0
        public void SetDemographicsV2()
        {
            string reportNumber = this.m_PanelSetOrder.ReportNo;

            this.ReplaceText("report_number", reportNumber);
            this.ReplaceText("accession_no", this.m_PanelSetOrder.MasterAccessionNo.ToString());
            this.ReplaceText("patient_name", this.m_AccessionOrder.PatientDisplayName);
            this.ReplaceText("patient_age", this.m_AccessionOrder.PatientAccessionAge + ", " + this.m_AccessionOrder.PSex);

            if (string.IsNullOrEmpty(this.m_AccessionOrder.PCAN) == false)
            {
                this.ReplaceText("client_mrn_no", this.m_AccessionOrder.PCAN);
                this.ReplaceText("client_account_no", string.Empty);
            }
            else
            {
                this.ReplaceText("client_mrn_no", this.m_AccessionOrder.SvhMedicalRecord);
                this.ReplaceText("client_account_no", this.m_AccessionOrder.SvhAccount);
            }

            if (this.m_AccessionOrder.AccessionDate.HasValue == true)
            {
                this.ReplaceText("received_date", this.m_AccessionOrder.AccessionDate.Value.ToShortDateString());
                this.ReplaceText("accession_date", CaseReportV2.ReportDateTimeFormat(this.m_AccessionOrder.AccessionTime.Value));
            }
            if (this.m_PanelSetOrder.FinalDate.HasValue == true)
            {
                this.ReplaceText("report_date", this.m_PanelSetOrder.FinalDate.Value.ToShortDateString());
            }
            if (this.m_PanelSetOrder.FinalTime.HasValue == true)
            {
                this.ReplaceText("final_date", this.m_PanelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"));
                this.ReplaceText("report_time", this.m_PanelSetOrder.FinalTime.Value.ToShortTimeString());
                this.ReplaceText("final_time", this.m_PanelSetOrder.FinalTime.Value.ToShortTimeString());

                this.ReplaceText("signature_date", this.m_PanelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"));
            }
            if (this.m_AccessionOrder.CollectionDate.HasValue == true)
            {
                this.ReplaceText("collection_date", CaseReportV2.ReportDateTimeFormat(this.m_AccessionOrder.CollectionDate.Value));
            }
            if (this.m_AccessionOrder.PBirthdate.HasValue == true)
            {
                this.ReplaceText("patient_birthdate", this.m_AccessionOrder.PBirthdate.Value.ToShortDateString());
            }

            this.ReplaceText("physician_name", this.m_AccessionOrder.PhysicianName);
            this.ReplaceText("client_name", this.m_AccessionOrder.ClientName);
            this.ReplaceText("page2_header", this.m_AccessionOrder.PatientName + ", " + reportNumber);

            string locationPerformed = this.m_PanelSetOrder.GetLocationPerformedComment();

            this.SetXMLNodeParagraphData("location_performed", locationPerformed);
            this.SetClientReportNo();
        }
Esempio n. 2
0
        public void SetDemographics()
        {
            this.SetXmlNodeData("patient_name", this.m_AccessionOrder.PatientName);
            this.SetXmlNodeData("patient_birthdate", BaseData.GetShortDateString(this.m_AccessionOrder.PBirthdate));
            this.SetXmlNodeData("patient_age", this.m_AccessionOrder.PatientAccessionAge);
            this.SetXmlNodeData("physician_name", this.m_AccessionOrder.PhysicianName);
            this.SetXmlNodeData("accession_no", this.m_PanelSetOrder.ReportNo);

            this.SetXmlNodeData("collection_date", CaseReportV2.ReportDateTimeFormat(this.m_AccessionOrder.CollectionDate.Value));
            this.SetXmlNodeData("accession_date", CaseReportV2.ReportDateTimeFormat(this.m_AccessionOrder.AccessionTime.Value));

            this.SetXmlNodeData("page2_header_patient_name", this.m_AccessionOrder.PatientName);
            this.SetXmlNodeData("page2_header_accessionno", this.m_PanelSetOrder.ReportNo);
            this.SetXmlNodeData("location_performed", this.m_PanelSetOrder.GetLocationPerformedComment());
        }