コード例 #1
0
        public AccessionOrderDataSheetDataV2(Test.AccessionOrder accessionOrder, ClientOrder.Model.ClientOrderCollection clientOrderCollection, Domain.OrderCommentLogCollection orderCommentLogCollection)
        {
            this.m_AccessionOrderDataSheetDataAccessionOrder = new AccessionOrderDataSheetDataAccessionOrder(accessionOrder, clientOrderCollection);
            this.m_AccessionOrderDataSheetDataClientOrders   = new List <AccessionOrderDataSheetDataClientOrder>();
            this.m_AccessionOrderDataSheetDataSpecimenOrders = new List <AccessionOrderDataSheetDataSpecimenOrder>();
            this.m_AccessionOrderDataSheetDataCommentLogs    = new List <AccessionOrderDataSheetDataCommentLog>();

            foreach (Business.ClientOrder.Model.ClientOrder clientOrder in clientOrderCollection)
            {
                AccessionOrderDataSheetDataClientOrder accessionOrderDataSheetDataClientOrder = new AccessionOrderDataSheetDataClientOrder(clientOrder);
                this.m_AccessionOrderDataSheetDataClientOrders.Add(accessionOrderDataSheetDataClientOrder);
            }

            foreach (Specimen.Model.SpecimenOrder specimenOrder in accessionOrder.SpecimenOrderCollection)
            {
                AccessionOrderDataSheetDataSpecimenOrder accessionOrderDataSheetDataSpecimenOrder = new AccessionOrderDataSheetDataSpecimenOrder(specimenOrder, clientOrderCollection);
                this.m_AccessionOrderDataSheetDataSpecimenOrders.Add(accessionOrderDataSheetDataSpecimenOrder);
            }

            foreach (Domain.OrderCommentLog orderCommentLog in orderCommentLogCollection)
            {
                AccessionOrderDataSheetDataCommentLog accessionOrderDataSheetDataCommentLog = new AccessionOrderDataSheetDataCommentLog(orderCommentLog);
                this.m_AccessionOrderDataSheetDataCommentLogs.Add(accessionOrderDataSheetDataCommentLog);
            }
        }
コード例 #2
0
 public static Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataV2 GetAccessionOrderDataSheetData(string masterAccessionNo)
 {
     Test.AccessionOrder accessionOrder = GetAccessionOrder(masterAccessionNo);
     ClientOrder.Model.ClientOrderCollection clientOrderCollection     = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(masterAccessionNo);
     Domain.OrderCommentLogCollection        orderCommentLogCollection = Gateway.OrderCommentGateway.GetOrderCommentLogCollectionByMasterAccessionNo(masterAccessionNo);
     Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataV2 accessionOrderDataSheetData = new Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataV2(accessionOrder, clientOrderCollection, orderCommentLogCollection);
     return(accessionOrderDataSheetData);
 }
コード例 #3
0
        private void SetClientOrderData(ClientOrder.Model.ClientOrderCollection clientOrderCollection)
        {
            string clinicalHistory       = string.Empty;
            string preOpDiagnosis        = string.Empty;
            string coSpecialInstructions = string.Empty;

            foreach (Business.ClientOrder.Model.ClientOrder clientOrder in clientOrderCollection)
            {
                string clientClinicalHistory = clientOrder.ClinicalHistory;

                string clientPreOpDiagnosis = string.Empty;
                if (clientOrder.PanelSetId == 13)
                {
                    ClientOrder.Model.SurgicalClientOrder surgicalClientOrder = (ClientOrder.Model.SurgicalClientOrder)clientOrder;
                    if (string.IsNullOrEmpty(surgicalClientOrder.PreOpDiagnosis) == false)
                    {
                        clientPreOpDiagnosis = surgicalClientOrder.PreOpDiagnosis;
                    }
                }

                if (string.IsNullOrEmpty(clinicalHistory) == true)
                {
                    if (string.IsNullOrEmpty(clientClinicalHistory) == false)
                    {
                        clinicalHistory = clientClinicalHistory;
                    }
                }

                if (string.IsNullOrEmpty(preOpDiagnosis) == true)
                {
                    if (string.IsNullOrEmpty(clientPreOpDiagnosis) == false)
                    {
                        preOpDiagnosis = clientPreOpDiagnosis;
                    }
                }

                if (string.IsNullOrEmpty(clientOrder.SpecialInstructions) == false)
                {
                    coSpecialInstructions += clientOrder.SpecialInstructions;
                }
            }

            this.m_ClinicalHistory     = clinicalHistory;
            this.m_PreOpDiagnosis      = preOpDiagnosis;
            this.m_SpecialInstructions = coSpecialInstructions;
        }
コード例 #4
0
        public AccessionOrderDataSheetDataAccessionOrder(Test.AccessionOrder accessionOrder, ClientOrder.Model.ClientOrderCollection clientOrderCollection)
        {
            this.m_PatientDisplayName = string.Empty;
            this.m_SSN                 = string.Empty;
            this.m_ClientName          = string.Empty;
            this.m_PhysicianName       = string.Empty;
            this.m_MasterAccessionNo   = string.Empty;
            this.m_AccessionTime       = string.Empty;
            this.m_SvhMedicalRecord    = string.Empty;
            this.m_SvhAccount          = string.Empty;
            this.m_ClinicalHistory     = string.Empty;
            this.m_PreOpDiagnosis      = string.Empty;
            this.m_SpecialInstructions = string.Empty;

            this.SetPatientDisplayName(accessionOrder);
            this.SetAccessionData(accessionOrder);
            this.SetClientOrderData(clientOrderCollection);
        }
コード例 #5
0
        public AccessionOrderDataSheetDataSpecimenOrder(Specimen.Model.SpecimenOrder specimenOrder, ClientOrder.Model.ClientOrderCollection clientOrderCollection)
        {
            string specimenNumber      = specimenOrder.SpecimenNumber.ToString();
            string specimenDescription = specimenOrder.Description;

            this.m_Description = specimenNumber + ". " + specimenDescription;

            this.m_CollectionTime = string.Empty;
            if (specimenOrder.CollectionDate.HasValue == true)
            {
                YellowstonePathology.Business.Helper.DateTimeJoiner dateTimeJoiner = new Business.Helper.DateTimeJoiner(specimenOrder.CollectionDate.Value, specimenOrder.CollectionTime);
                this.m_CollectionTime = dateTimeJoiner.DisplayString;
            }
            else if (specimenOrder.CollectionTime.HasValue == true)
            {
                YellowstonePathology.Business.Helper.DateTimeJoiner dateTimeJoiner = new Business.Helper.DateTimeJoiner(specimenOrder.CollectionTime.Value, specimenOrder.CollectionTime);
                this.m_CollectionTime = dateTimeJoiner.DisplayString;
            }

            this.m_ReceivedIn    = string.IsNullOrEmpty(specimenOrder.ClientFixation) == false ? specimenOrder.ClientFixation : string.Empty;
            this.m_ProcessedIn   = string.IsNullOrEmpty(specimenOrder.LabFixation) == false ? specimenOrder.LabFixation : string.Empty;
            this.m_AccessionTime = specimenOrder.AccessionTime.HasValue ? specimenOrder.AccessionTime.Value.ToShortDateString() + " " + specimenOrder.AccessionTime.Value.ToShortTimeString() : string.Empty;
            this.m_Verified      = specimenOrder.Verified.ToString();
            this.m_VerifiedById  = specimenOrder.VerifiedById.ToString();
            this.m_VerifiedDate  = specimenOrder.VerifiedDate.HasValue ? specimenOrder.VerifiedDate.Value.ToShortDateString() + " " + specimenOrder.VerifiedDate.Value.ToShortTimeString() : string.Empty;

            List <ClientOrder.Model.ClientOrderDetail> clientOrderDetails = (from co in clientOrderCollection
                                                                             from cod in co.ClientOrderDetailCollection
                                                                             where cod.ContainerId == specimenOrder.ContainerId
                                                                             select cod).ToList <ClientOrder.Model.ClientOrderDetail>();

            if (clientOrderDetails.Count > 0)
            {
                ClientOrder.Model.ClientOrderDetail clientOrderDetail = clientOrderDetails[0];
                string clientSpecimenNumber = clientOrderDetail.SpecimenNumber.ToString();
                string clientDescription    = clientOrderDetail.Description;
                this.m_ClientDescription = clientSpecimenNumber + ". " + clientDescription;

                this.m_AccessionedAsDescription         = clientOrderDetail.DescriptionToAccession;
                this.m_AccessionedAsNumberedDescription = clientSpecimenNumber + ". " + this.m_AccessionedAsDescription;
                this.m_SpecialInstructions = string.IsNullOrEmpty(clientOrderDetail.SpecialInstructions) == false ? clientOrderDetail.SpecialInstructions : string.Empty;

                //this.m_SpecialInstructions = clientOrderDetail.OrderType;
                this.m_OrderType      = string.IsNullOrEmpty(clientOrderDetail.OrderType) == false ? clientOrderDetail.OrderType : string.Empty;
                this.m_CallbackNumber = string.IsNullOrEmpty(clientOrderDetail.CallbackNumber) == false ? clientOrderDetail.CallbackNumber : string.Empty;

                if (clientOrderDetail.CollectionDate.HasValue)
                {
                    this.m_CollectionDate = clientOrderDetail.CollectionDate.HasValue ? clientOrderDetail.CollectionDate.Value.ToShortDateString() + " " + clientOrderDetail.CollectionDate.Value.ToShortTimeString() : string.Empty;
                }

                this.m_SpecimenNumberMatchStatus      = string.IsNullOrEmpty(clientOrderDetail.SpecimenNumberMatchStatus) == false ? clientOrderDetail.SpecimenNumberMatchStatus : string.Empty;
                this.m_SpecimenDescriptionMatchStatus = string.IsNullOrEmpty(clientOrderDetail.SpecimenDescriptionMatchStatus) == false ? clientOrderDetail.SpecimenDescriptionMatchStatus : string.Empty;
                this.m_OrderedBy   = clientOrderDetail.OrderedBy;
                this.m_OrderTime   = clientOrderDetail.OrderTime.HasValue ? clientOrderDetail.OrderTime.Value.ToShortDateString() + " " + clientOrderDetail.OrderTime.Value.ToShortTimeString() : string.Empty;
                this.m_Accessioned = clientOrderDetail.Accessioned.ToString();
            }
            else
            {
                this.m_Description = "None";
                this.m_AccessionedAsDescription         = string.Empty;
                this.m_AccessionedAsNumberedDescription = string.Empty;
                this.m_SpecialInstructions            = string.Empty;
                this.m_OrderType                      = string.Empty;
                this.m_CallbackNumber                 = string.Empty;
                this.m_CollectionDate                 = string.Empty;
                this.m_SpecimenNumberMatchStatus      = string.Empty;
                this.m_SpecimenDescriptionMatchStatus = string.Empty;
                this.m_OrderedBy                      = string.Empty;
                this.m_OrderTime                      = string.Empty;
                this.m_Accessioned                    = string.Empty;
            }
        }