public bool Send(string fileName)
        {
            bool result = true;

            if (this.OkToSend() == true)
            {
                this.m_Document = new XElement("HL7Message");
                this.m_ObxCount = 1;

                BigSkyDermatology client      = new BigSkyDermatology();
                OruR01            messageType = new OruR01();

                MshView msh = new MshView(client, messageType);
                msh.ToXml(this.m_Document);

                PidView pid = new PidView(this.m_AccessionOrder.SvhMedicalRecord, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate,
                                          this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN);
                pid.ToXml(this.m_Document);

                //OrcView orc = new OrcView(this.m_AccessionOrder.ExternalOrderId, this.m_OrderingPhysician, this.m_ReportNo, this.m_OrderStatus);
                //orc.ToXml(this.m_Document);

                //ObrView obr = new ObrView(this.m_AccessionOrder, this.m_ReportNo);
                //obr.ToXml(this.m_Document);

                SurgicalObxView obx = new SurgicalObxView(this.m_AccessionOrder, this.m_ReportNo, this.m_ObxCount);
                obx.ToXml(this.m_Document);
                this.m_ObxCount = obx.ObxCount;

                System.IO.StreamWriter sw = System.IO.File.CreateText(fileName);
                this.m_Document.Save(sw);
            }
            return(result);
        }
        public bool Send(string fileName)
        {
            bool result = true;
            if (this.OkToSend() == true)
            {
                this.m_Document = new XElement("HL7Message");
                this.m_ObxCount = 1;

                BigSkyDermatology client = new BigSkyDermatology();
                OruR01 messageType = new OruR01();

                MshView msh = new MshView(client, messageType);
                msh.ToXml(this.m_Document);

                PidView pid = new PidView(this.m_AccessionOrder.SvhMedicalRecord, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate,
                    this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN);
                pid.ToXml(this.m_Document);

                //OrcView orc = new OrcView(this.m_AccessionOrder.ExternalOrderId, this.m_OrderingPhysician, this.m_ReportNo, this.m_OrderStatus);
                //orc.ToXml(this.m_Document);

                //ObrView obr = new ObrView(this.m_AccessionOrder, this.m_ReportNo);
                //obr.ToXml(this.m_Document);

                SurgicalObxView obx = new SurgicalObxView(this.m_AccessionOrder, this.m_ReportNo, this.m_ObxCount);
                obx.ToXml(this.m_Document);
                this.m_ObxCount = obx.ObxCount;

                System.IO.StreamWriter sw = System.IO.File.CreateText(fileName);
                this.m_Document.Save(sw);
            }
            return result;
        }