public static ClientOrder GetClientOrder(SpecimenTypeEnum specimenType)
 {
     ClientOrder result = null;
     switch (specimenType)
     {
         case SpecimenTypeEnum.Surgical:
             result = new SurgicalClientOrder();
             break;
         case SpecimenTypeEnum.ThinPrepPap:
             result = new CytologyClientOrder();
             break;
         default:
             result = new ClientOrder();
             break;
     }
     return result;
 }
 public WestGrandFamilyOrderTest()
 {
     string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
     this.m_ClientOrder = new ClientOrder(objectId);
     this.m_ClientOrder.ClientOrderId = Guid.NewGuid().ToString();
     this.m_ClientOrder.OrderDate = DateTime.Today;
     this.m_ClientOrder.OrderTime = DateTime.Now;
     this.m_ClientOrder.ClientId = 242;
     this.m_ClientOrder.ClientName = "West Grand Family Medicine-SVPN";
     this.m_ClientOrder.ProviderName = "Brenda Kirkland";
     this.m_ClientOrder.ProviderId = "1780623181";
     this.m_ClientOrder.SystemInitiatingOrder = "EPIC";
     this.m_ClientOrder.ExternalOrderId = "123456789";
     this.m_ClientOrder.PLastName = "MOUSE";
     this.m_ClientOrder.PFirstName = "MICKEY";
     this.m_ClientOrder.PBirthdate = DateTime.Parse("8/10/1966");
     this.m_ClientOrder.OrderedBy = "BROOMHILDA";
     this.m_ClientOrder.PanelSetId = null;
     this.m_ClientOrder.OrderType = "Routine Surgical Pathology";
     this.m_ClientOrder.SvhAccountNo = "123456789";
     this.m_ClientOrder.SvhMedicalRecord = "123456789";
     this.m_ClientOrder.ClientLocationId = 1002;
 }
示例#3
0
        public WestGrandFamilyOrderTest()
        {
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            this.m_ClientOrder = new ClientOrder(objectId);
            this.m_ClientOrder.ClientOrderId         = Guid.NewGuid().ToString();
            this.m_ClientOrder.OrderDate             = DateTime.Today;
            this.m_ClientOrder.OrderTime             = DateTime.Now;
            this.m_ClientOrder.ClientId              = 242;
            this.m_ClientOrder.ClientName            = "West Grand Family Medicine-SVPN";
            this.m_ClientOrder.ProviderName          = "Brenda Kirkland";
            this.m_ClientOrder.ProviderId            = "1780623181";
            this.m_ClientOrder.SystemInitiatingOrder = "EPIC";
            this.m_ClientOrder.ExternalOrderId       = "123456789";
            this.m_ClientOrder.PLastName             = "MOUSE";
            this.m_ClientOrder.PFirstName            = "MICKEY";
            this.m_ClientOrder.PBirthdate            = DateTime.Parse("8/10/1966");
            this.m_ClientOrder.OrderedBy             = "BROOMHILDA";
            this.m_ClientOrder.PanelSetId            = null;
            this.m_ClientOrder.OrderType             = "Routine Surgical Pathology";
            this.m_ClientOrder.SvhAccountNo          = "123456789";
            this.m_ClientOrder.SvhMedicalRecord      = "123456789";
            this.m_ClientOrder.ClientLocationId      = 1002;
        }
 public static ClientOrder GetClientOrder(Nullable<int> panelSetId)
 {
     ClientOrder result = null;
     if (panelSetId.HasValue == true)
     {
         switch (panelSetId)
         {
             case 13:
                 result = new SurgicalClientOrder();
                 break;
             case 15:
                 result = new CytologyClientOrder();
                 break;
             default:
                 result = new ClientOrder();
                 break;
         }
     }
     else
     {
         result = new ClientOrder();
     }
     return result;
 }
示例#5
0
        public void Join(ClientOrder clientOrderToReadFrom)
        {
            YellowstonePathology.Business.Persistence.ObjectPropertyWriter objectPropertyWriter = new Persistence.ObjectPropertyWriter(this, clientOrderToReadFrom);
            objectPropertyWriter.WriteProperties();

            this.ClientLocation = clientOrderToReadFrom.ClientLocation;

            foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in clientOrderToReadFrom.ClientOrderDetailCollection)
            {
                this.ClientOrderDetailCollection.AddIfNotExist(clientOrderDetail);
            }
        }
示例#6
0
 public ExternalOrderIds(ClientOrder clientOrder)
 {
     this.m_PanelSetId         = clientOrder.PanelSetId.Value;
     this.m_ExternalOrderId    = clientOrder.ExternalOrderId;
     this.m_UniversalServiceId = clientOrder.UniversalServiceId;
 }