Пример #1
0
        public PanelSetArupNgct()
        {
            this.m_PanelSetId               = 38;
            this.m_PanelSetName             = "ARUP: CGMATF";
            this.m_CaseType                 = YellowstonePathology.Business.CaseType.Molecular;
            this.m_HasTechnicalComponent    = true;
            this.m_HasProfessionalComponent = false;
            this.m_ResultDocumentSource     = ResultDocumentSourceEnum.RetiredTestDocument;
            this.m_ReportNoLetter           = new YellowstonePathology.Business.ReportNoLetterR();
            this.m_Active = false;
            this.m_WordDocumentClassName = typeof(YellowstonePathology.Business.Document.DoNotPublishReport).AssemblyQualifiedName;


            this.m_AllowMultiplePerAccession = true;

            string taskDescription = "Gather materials and send to ARUP.";

            YellowstonePathology.Business.Facility.Model.Facility neogenomicsIrvine = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("NEOGNMCIRVN");
            this.m_TaskCollection.Add(new YellowstonePathology.Business.Task.Model.TaskFedexShipment(YellowstonePathology.Business.Task.Model.TaskAssignment.Molecular, taskDescription, neogenomicsIrvine));

            this.m_TechnicalComponentFacility    = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("ARUPSPD");
            this.m_ProfessionalComponentFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("ARUPSPD");

            this.m_TechnicalComponentBillingFacility    = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("ARUPSPD");
            this.m_ProfessionalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("ARUPSPD");

            this.m_UniversalServiceIdCollection.Add(new YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceCTGC());

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
            this.OrderTargetTypeCollectionRestrictions.Add(thinPrepFluid);
        }
Пример #2
0
 public override void Visit(YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder)
 {
     YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
     if (this.m_SpecimenOrder.SpecimenId != thinPrepFluid.SpecimenId)
     {
         if (surgicalTestOrder.SurgicalSpecimenCollection.SpecimenOrderExists(this.m_SpecimenOrder.SpecimenOrderId) == false)
         {
             YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen = surgicalTestOrder.SurgicalSpecimenCollection.Add(surgicalTestOrder.ReportNo);
             surgicalSpecimen.FromSpecimenOrder(this.m_SpecimenOrder);
         }
     }
 }
Пример #3
0
        public SpecimenOrderCollection GetNonPAPSpecimen()
        {
            SpecimenOrderCollection result = new SpecimenOrderCollection();

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
            foreach (SpecimenOrder specimenOrder in this)
            {
                if (specimenOrder.SpecimenId != thinPrepFluid.SpecimenId)
                {
                    result.Add(specimenOrder);
                }
            }
            return(result);
        }
 private void TextBoxInComboBox_LostFocus(object sender, RoutedEventArgs e)
 {
     if (this.ComboBoxSpecimenId.SelectedItem != null && this.ComboBoxSpecimenId.SelectedItem.GetType() != typeof(YellowstonePathology.Business.Specimen.Model.SpecimenDefinition.NullSpecimen))
     {
         YellowstonePathology.Business.Specimen.Model.Specimen specimen = (YellowstonePathology.Business.Specimen.Model.Specimen) this.ComboBoxSpecimenId.SelectedItem;
         if (string.IsNullOrEmpty(this.m_ClientOrderDetail.DescriptionToAccessionBinding) == true)
         {
             this.m_ClientOrderDetail.DescriptionToAccessionBinding = specimen.Description;
         }
         this.m_ClientOrderDetail.LabFixationBinding       = specimen.LabFixation;
         this.m_ClientOrderDetail.ClientFixationBinding    = specimen.ClientFixation;
         this.m_ClientOrderDetail.RequiresGrossExamination = specimen.RequiresGrossExamination;
         this.NotifyPropertyChanged("");
     }
 }
 private void ButtonPrintMolecularLabels_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.MolecularLabelFormat) == false)
     {
         YellowstonePathology.Business.Label.Model.LabelFormatEnum       labelFormat           = (YellowstonePathology.Business.Label.Model.LabelFormatEnum)Enum.Parse(typeof(YellowstonePathology.Business.Label.Model.LabelFormatEnum), YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.MolecularLabelFormat);
         YellowstonePathology.Business.Specimen.Model.Specimen           thinPrepFluid         = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
         YellowstonePathology.Business.Label.Model.MolecularLabelPrinter molecularLabelPrinter = new Business.Label.Model.MolecularLabelPrinter();
         YellowstonePathology.Business.Label.Model.Label label = YellowstonePathology.Business.Label.Model.LabelFactory.GetMolecularLabel(labelFormat, this.m_AccessionOrder.MasterAccessionNo, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, thinPrepFluid.Description, null, false);
         molecularLabelPrinter.Queue.Enqueue(label);
         molecularLabelPrinter.Print();
     }
     else
     {
         MessageBox.Show("The label format must first be selected in User Preferences.");
     }
 }
Пример #6
0
        public NGCTTest()
        {
            this.m_PanelSetId               = 3;
            this.m_PanelSetName             = "NG-CT";
            this.m_Abbreviation             = "NGCT";
            this.m_CaseType                 = YellowstonePathology.Business.CaseType.Molecular;
            this.m_HasTechnicalComponent    = true;
            this.m_HasProfessionalComponent = false;
            this.m_ResultDocumentSource     = YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase;
            this.m_ReportNoLetter           = new YellowstonePathology.Business.ReportNoLetterM();
            this.m_Active = true;
            this.m_AttemptOrderTargetLookup  = true;
            this.m_PanelSetOrderClassName    = typeof(YellowstonePathology.Business.Test.NGCT.NGCTTestOrder).AssemblyQualifiedName;
            this.m_WordDocumentClassName     = typeof(YellowstonePathology.Business.Test.NGCT.NGCTWordDocument).AssemblyQualifiedName;
            this.m_AllowMultiplePerAccession = true;
            this.m_ExpectedDuration          = new TimeSpan(4, 0, 0, 0);

            this.m_AddAliquotOnOrder   = true;
            this.m_AliquotToAddOnOrder = new YellowstonePathology.Business.Specimen.Model.PantherAliquot();
            this.m_SendOrderToPanther  = true;

            string taskDescription = "Gather materials and perform NGCT.";

            this.m_TaskCollection.Add(new YellowstonePathology.Business.Task.Model.Task(YellowstonePathology.Business.Task.Model.TaskAssignment.Molecular, taskDescription));

            this.m_TechnicalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");
            this.m_TechnicalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_HasSplitCPTCode = false;
            //this.m_RequiresAssignment = true;

            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WORD);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.EPIC);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WPH);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.CMMC);

            YellowstonePathology.Business.Billing.Model.PanelSetCptCode panelSetCptCode1 = new YellowstonePathology.Business.Billing.Model.PanelSetCptCode(Store.AppDataStore.Instance.CPTCodeCollection.GetClone("87491", null), 1);
            YellowstonePathology.Business.Billing.Model.PanelSetCptCode panelSetCptCode2 = new YellowstonePathology.Business.Billing.Model.PanelSetCptCode(Store.AppDataStore.Instance.CPTCodeCollection.GetClone("87591", null), 1);
            this.m_PanelSetCptCodeCollection.Add(panelSetCptCode1);
            this.m_PanelSetCptCodeCollection.Add(panelSetCptCode2);

            this.m_UniversalServiceIdCollection.Add(new YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceCTGC());

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
            this.OrderTargetTypeCollectionRestrictions.Add(thinPrepFluid);
        }
Пример #7
0
        private void ComboBoxSpecimenId_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (this.ComboBoxSpecimenId.SelectedItem != null && this.ComboBoxSpecimenId.SelectedItem.GetType() != typeof(YellowstonePathology.Business.Specimen.Model.SpecimenDefinition.NullSpecimen))
            {
                if (string.IsNullOrEmpty(this.m_SpecimenOrder.Description) == true)
                {
                    YellowstonePathology.Business.Specimen.Model.Specimen specimen = (YellowstonePathology.Business.Specimen.Model.Specimen) this.ComboBoxSpecimenId.SelectedItem;
                    this.m_SpecimenOrder.Description              = specimen.Description;
                    this.m_SpecimenOrder.LabFixation              = specimen.LabFixation;
                    this.m_SpecimenOrder.ClientFixation           = specimen.ClientFixation;
                    this.m_SpecimenOrder.RequiresGrossExamination = specimen.RequiresGrossExamination;

                    this.HandleTemplatedSpecimen();
                    this.NotifyPropertyChanged("");
                }
            }
        }
Пример #8
0
        public SpecimenEditDialog(YellowstonePathology.Business.Specimen.Model.Specimen specimen)
        {
            if (specimen == null)
            {
                this.m_Specimen = new Business.Specimen.Model.Specimen();
            }
            else
            {
                this.m_Specimen = specimen;
            }

            this.m_SpecimenString      = this.m_Specimen.ToJSON();
            this.m_HoldToCompareString = this.m_Specimen.ToJSON();
            InitializeComponent();

            DataContext = this;
        }
Пример #9
0
        public WomensHealthProfileTest()
        {
            this.m_PanelSetId               = 116;
            this.m_PanelSetName             = "Womens Health Profile";
            this.m_CaseType                 = YellowstonePathology.Business.CaseType.ALLCaseTypes;
            this.m_HasTechnicalComponent    = true;
            this.m_HasProfessionalComponent = true;
            this.m_ResultDocumentSource     = YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase;
            this.m_ReportNoLetter           = new YellowstonePathology.Business.ReportNoLetterY();
            this.m_Active = true;
            this.m_ReflexTestingComment         = string.Empty;
            this.m_EnforceOrderTarget           = false;
            this.m_AttemptOrderTargetLookup     = true;
            this.m_RequiresPathologistSignature = true;
            this.m_AcceptOnFinal             = true;
            this.m_IsReflexPanel             = true;
            this.m_AllowMultiplePerAccession = false;
            this.m_IsBillable            = false;
            this.m_NeverDistribute       = true;
            this.m_ShowResultPageOnOrder = true;
            this.m_ExpectedDuration      = new TimeSpan(7, 0, 0, 0);
            this.m_MonitorPriority       = PanelSet.Model.PanelSet.MonitorPriorityNormal;

            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WORD);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.EPIC);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WPH);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.CMMC);

            this.m_PanelSetOrderClassName = typeof(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder).AssemblyQualifiedName;
            this.m_WordDocumentClassName  = typeof(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileWordDocument).AssemblyQualifiedName;

            this.m_TechnicalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");
            this.m_TechnicalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_ProfessionalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPBLGS");
            this.m_ProfessionalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_UniversalServiceIdCollection.Add(new YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServicePathSummary());

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
            this.OrderTargetTypeCollectionRestrictions.Add(thinPrepFluid);
        }
Пример #10
0
        public ThinPrepPapTest()
        {
            this.m_PanelSetId               = 15;
            this.m_PanelSetName             = "Thin Prep Pap";
            this.m_Abbreviation             = "PAP";
            this.m_CaseType                 = YellowstonePathology.Business.CaseType.Cytology;
            this.m_HasTechnicalComponent    = true;
            this.m_HasProfessionalComponent = false;
            this.m_ResultDocumentSource     = YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase;
            this.m_ReportNoLetter           = new YellowstonePathology.Business.ReportNoLetterP();
            this.m_Active = true;

            this.m_PanelSetOrderClassName    = typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology).AssemblyQualifiedName;
            this.m_WordDocumentClassName     = typeof(YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument).AssemblyQualifiedName;
            this.m_AllowMultiplePerAccession = false;
            this.m_ExpectedDuration          = new TimeSpan(24, 0, 0);
            this.m_AcceptOnFinal             = true;
            this.m_AttemptOrderTargetLookup  = true;
            this.m_RequiresAssignment        = false;

            this.m_MonitorPriority = PanelSet.Model.PanelSet.MonitorPriorityNormal;

            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WORD);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.EPIC);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WPH);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.CMMC);

            this.m_AddAliquotOnOrder   = true;
            this.m_AliquotToAddOnOrder = new YellowstonePathology.Business.Specimen.Model.ThinPrepSlide();

            this.m_TechnicalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");
            this.m_TechnicalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_UniversalServiceIdCollection.Add(new YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceTHINPREP());

            YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel thinPrepPapScreeningPanel = new Test.ThinPrepPap.ThinPrepPapScreeningPanel();
            this.m_PanelCollection.Add(thinPrepPapScreeningPanel);

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepFluid = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD"); // Definition.ThinPrepFluid();
            this.OrderTargetTypeCollectionRestrictions.Add(thinPrepFluid);
        }
Пример #11
0
 private void ListBoxSpecimen_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListBoxSpecimen.SelectedItem != null)
     {
         YellowstonePathology.Business.Specimen.Model.Specimen specimen = (YellowstonePathology.Business.Specimen.Model.Specimen) this.ListBoxSpecimen.SelectedItem;
         if (string.IsNullOrEmpty(specimen.SpecimenId) == false)
         {
             SpecimenEditDialog dlg = new SpecimenEditDialog(specimen);
             bool?dialogResult      = dlg.ShowDialog();
             if (dialogResult.HasValue && dialogResult.Value == true)
             {
                 YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Refresh();
                 this.NotifyPropertyChanged("SpecimenCollection");
             }
         }
         else
         {
             MessageBox.Show("The Null Specimen may not be altered.");
         }
     }
 }
Пример #12
0
        public static bool IsMedicareProstateNeedleBiopsy(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo)
        {
            bool result = false;

            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            if (panelSetOrder.PanelSetId == 13)
            {
                if (accessionOrder.PrimaryInsurance == "Medicare")
                {
                    YellowstonePathology.Business.Specimen.Model.Specimen prostateNeedleBiopsy = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNPRSTTNDLBPSY"); // Definition.ProstateNeedleBiopsy();
                    foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in accessionOrder.SpecimenOrderCollection)
                    {
                        if (specimenOrder.SpecimenId == prostateNeedleBiopsy.SpecimenId)
                        {
                            result = true;
                            break;
                        }
                    }
                }
            }
            return(result);
        }
Пример #13
0
        private void ButtonOK_Click(object sender, RoutedEventArgs e)
        {
            Business.Rules.MethodResult result = this.CanSave();
            if (result.Success == true)
            {
                if (this.m_HoldToCompareString != this.m_SpecimenString)
                {
                    YellowstonePathology.Business.Specimen.Model.Specimen specimenToSave = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.FromJSON(this.m_SpecimenString);
                    specimenToSave.Save();
                    this.DialogResult = true;
                }
                else
                {
                    this.DialogResult = false;
                }

                this.Close();
            }
            else
            {
                MessageBox.Show(result.Message);
            }
        }
Пример #14
0
        public SurgicalTest()
        {
            this.m_PanelSetId               = 13;
            this.m_PanelSetName             = "Surgical Pathology";
            this.m_Abbreviation             = "SRGCL";
            this.m_CaseType                 = YellowstonePathology.Business.CaseType.Surgical;
            this.m_HasTechnicalComponent    = true;
            this.m_HasProfessionalComponent = true;
            this.m_ResultDocumentSource     = YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase;
            this.m_ReportNoLetter           = new YellowstonePathology.Business.ReportNoLetterS();
            this.m_Active = true;
            this.m_CanHaveMultipleOrderTargets = true;
            this.m_HasNoOrderTarget            = true;

            this.m_PanelSetOrderClassName    = typeof(YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder).AssemblyQualifiedName;
            this.m_WordDocumentClassName     = typeof(YellowstonePathology.Business.Test.Surgical.SurgicalWordDocument).AssemblyQualifiedName;
            this.m_AllowMultiplePerAccession = false;
            this.m_ExpectedDuration          = new TimeSpan(3, 0, 0, 0);

            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WORD);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.EPIC);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.WPH);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.CMMC);
            this.m_ImplementedResultTypes.Add(Business.Test.ResultType.ECW);

            this.m_RequiresAssignment = false;

            this.m_TechnicalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");
            this.m_TechnicalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_ProfessionalComponentFacility        = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPBLGS");
            this.m_ProfessionalComponentBillingFacility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            YellowstonePathology.Business.Specimen.Model.Specimen thinPrepSpecimen = YellowstonePathology.Business.Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNTHNPRPFLD");
            this.m_OrderTargetTypeCollectionExclusions.Add(thinPrepSpecimen);
            this.m_UniversalServiceIdCollection.Add(new YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceYPI());
        }