Ejemplo n.º 1
0
        public ClientEntry(Business.Client.Model.Client client)
        {
            this.m_Client         = client;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_PathGroupFacilities = Business.Facility.Model.FacilityCollection.GetPathGroupFacilities();
            this.m_ClientPhysicianView = Business.Gateway.PhysicianClientGateway.GetClientPhysicianViewByClientIdV2(this.m_Client.ClientId);

            this.m_PlaceOfServiceCodes = new Business.Client.Model.PlaceOfServiceCollection();

            if (this.m_ClientPhysicianView == null)
            {
                this.m_ClientPhysicianView = new Business.View.ClientPhysicianView();
            }

            this.m_InsuranceTypeCollection = new Business.Billing.Model.InsuranceTypeCollection(true);

            this.m_FacilityTypes = new List <string>();
            this.m_FacilityTypes.Add("Hospital");
            this.m_FacilityTypes.Add("Hospital Owned Clinic");
            this.m_FacilityTypes.Add("Non-Grandfathered Hospital");
            this.m_FacilityTypes.Add("Non-Hospital");

            this.m_DistributionTypeList        = new YellowstonePathology.Business.ReportDistribution.Model.DistributionTypeList();
            this.m_BillingRuleSetCollection    = YellowstonePathology.Business.Billing.Model.BillingRuleSetCollection.GetAllRuleSets();
            this.m_ClientSupplyOrderCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientSupplyOrderCollectionByClientId(this.m_Client.ClientId);

            InitializeComponent();

            this.DataContext = this;
            Closing         += ClientEntry_Closing;
        }
Ejemplo n.º 2
0
 public WYDOHORCView(string externalOrderId, Business.Client.Model.Client client, YellowstonePathology.Business.Domain.Physician orderingPhysician, string reportNo, OrderStatus orderStatus, string systemInitiatingOrder)
 {
     this.m_ExternalOrderId       = externalOrderId;
     this.m_Client                = client;
     this.m_OrderingPhysician     = orderingPhysician;
     this.m_ReportNo              = reportNo;
     this.m_OrderStatus           = orderStatus;
     this.m_SystemInitiatingOrder = systemInitiatingOrder;
 }
Ejemplo n.º 3
0
        public void Send(YellowstonePathology.Business.Rules.MethodResult result)
        {
            this.m_Document = new XElement("HL7Message");
            this.m_ObxCount = 1;

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

            WYDOHMSHView msh = new WYDOHMSHView(client, messageType);

            msh.ToXml(this.m_Document);

            WYDOHPIDView pid = new WYDOHPIDView(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate,
                                                this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN, this.m_AccessionOrder.PAddress1, this.m_AccessionOrder.PAddress2,
                                                this.m_AccessionOrder.PCity, this.m_AccessionOrder.PState, this.m_AccessionOrder.PZipCode);

            pid.ToXml(this.m_Document);


            Business.Client.Model.Client clnt = Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
            WYDOHORCView orc = new WYDOHORCView(this.m_AccessionOrder.ExternalOrderId, clnt, this.m_OrderingPhysician, this.m_PanelSetOrder.ReportNo, OrderStatusEnum.Complete, this.m_AccessionOrder.SystemInitiatingOrder);

            orc.ToXml(this.m_Document);

            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetOrder.ReportNo);
            ResultStatus resultStatus = ResultStatusEnum.Final;

            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo);
            if (amendmentCollection.Count != 0)
            {
                resultStatus = ResultStatusEnum.Correction;
            }
            WYDOHOBRView obr = new WYDOHOBRView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_OrderingPhysician);

            obr.ToXml(this.m_Document);

            WYDOHOBXView obx = new WYDOHOBXView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_ObxCount);

            obx.ToXml(this.m_Document);
            this.m_ObxCount = obx.ObxCount;

            YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            string serverFileName = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + "\\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml";

            string mirthFileName = mirthFileName = @"\\YPIIInterface1\ChannelData\Outgoing\WYCDC\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml";

            System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(serverFileName, false, new ASCIIEncoding());
            this.m_Document.Save(streamWriter);
            streamWriter.Close();
            System.IO.File.Copy(serverFileName, mirthFileName, true);

            result.Success = true;
            result.Message = "An HL7 message was created and sent to the interface.";
        }
Ejemplo n.º 4
0
        private void HyperLinkAddSendAuthorizationFaxTask_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Task.Model.TaskFax task = new Business.Task.Model.TaskFax(string.Empty, string.Empty, "PreauthorizationNotification");
            string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
            string objectId          = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            Business.Client.Model.Client client = Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
            YellowstonePathology.Business.Task.Model.TaskOrderDetailFax taskOrderDetail = new Business.Task.Model.TaskOrderDetailFax(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task, this.m_AccessionOrder.ClientId);
            taskOrderDetail.FaxNumber = client.Fax;
            this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
        }
Ejemplo n.º 5
0
        public void HandlePathGroup(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            Business.Client.Model.Client client = Business.Gateway.PhysicianClientGateway.GetClientByClientId(accessionOrder.ClientId);
            if (client.PathologyGroupId != "YPBLGS")
            {
                Business.Facility.Model.Facility pathFacility = Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId(client.PathologyGroupId);
                Business.Client.Model.Client     pathClient   = Business.Gateway.PhysicianClientGateway.GetClientByClientId(pathFacility.ClientId);

                PhysicianClientDistributionListItem physicianClientDistribution = YellowstonePathology.Business.Client.Model.PhysicianClientDistributionFactory.GetPhysicianClientDistribution(client.DistributionType);
                physicianClientDistribution.ClientId         = pathClient.ClientId;
                physicianClientDistribution.ClientName       = pathClient.ClientName;
                physicianClientDistribution.PhysicianId      = 728;
                physicianClientDistribution.PhysicianName    = "Staff Pathologist";
                physicianClientDistribution.DistributionType = pathClient.DistributionType;
                physicianClientDistribution.FaxNumber        = pathClient.Fax;
                this.Add(physicianClientDistribution);
            }
        }
Ejemplo n.º 6
0
 private YellowstonePathology.Business.Client.Model.ClientCollection BuildClientCollection(SqlCommand cmd)
 {
     YellowstonePathology.Business.Client.Model.ClientCollection clientCollection = new Business.Client.Model.ClientCollection();
     using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.Client.Model.Client client = new Business.Client.Model.Client();
                 YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(client, dr);
                 propertyWriter.WriteProperties();
             }
         }
     }
     return(clientCollection);
 }
 private YellowstonePathology.Business.Client.Model.ClientCollection BuildClientCollection(SqlCommand cmd)
 {
     YellowstonePathology.Business.Client.Model.ClientCollection clientCollection = new Business.Client.Model.ClientCollection();
     using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.Client.Model.Client client = new Business.Client.Model.Client();
                 YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(client, dr);
                 propertyWriter.WriteProperties();
             }
         }
     }
     return clientCollection;
 }