示例#1
0
        public static SpecimenSurgicalDiagnosisView Parse(YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            SpecimenSurgicalDiagnosisView result = new SpecimenSurgicalDiagnosisView();

            result.SpecimenOrder = specimenOrder;

            if (accessionOrder.PanelSetOrderCollection.HasSurgical() == true)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = accessionOrder.PanelSetOrderCollection.GetSurgical();
                if (panelSetOrderSurgical.SurgicalSpecimenCollection.SpecimenOrderExists(specimenOrder.SpecimenOrderId) == true)
                {
                    YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen = panelSetOrderSurgical.SurgicalSpecimenCollection.GetBySpecimenOrderId(specimenOrder.SpecimenOrderId);
                    result.SurgicalSpecimen           = surgicalSpecimen;
                    result.SurgicalDiagnosisIsOrdered = true;
                }
                else
                {
                    result.SurgicalDiagnosisIsOrdered = false;
                }
            }
            else
            {
                result.SurgicalDiagnosisIsOrdered = false;
            }

            return(result);
        }
        public static SpecimenSurgicalDiagnosisView Parse(YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            SpecimenSurgicalDiagnosisView result = new SpecimenSurgicalDiagnosisView();
            result.SpecimenOrder = specimenOrder;

            if (accessionOrder.PanelSetOrderCollection.HasSurgical() == true)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = accessionOrder.PanelSetOrderCollection.GetSurgical();
                if (panelSetOrderSurgical.SurgicalSpecimenCollection.Exists(specimenOrder.SpecimenOrderId) == true)
                {
                    YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen = panelSetOrderSurgical.SurgicalSpecimenCollection.GetBySpecimenOrderId(specimenOrder.SpecimenOrderId);
                    result.SurgicalSpecimen = surgicalSpecimen;
                    result.SurgicalDiagnosisIsOrdered = true;
                }
                else
                {
                    result.SurgicalDiagnosisIsOrdered = false;
                }
            }
            else
            {
                result.SurgicalDiagnosisIsOrdered = false;
            }

            return result;
        }