Exemplo n.º 1
0
        public WCFPPSInformation[] QueryMPPS(MPPSQuery query)
        {
            List <WCFPPSInformation> mpps = new List <WCFPPSInformation>();
            ImagingServiceRequest    sr   = new ImagingServiceRequest()
            {
                AccessionNumber = query.AccessionNumber
            };
            WCFRequestedProcedure rp = new WCFRequestedProcedure()
            {
                RequestedProcedureID = query.RequestedProcedureId
            };
            WCFScheduledProcedureStep sp = new WCFScheduledProcedureStep()
            {
                ScheduledProcedureStepID = query.ScheduledProcedureId
            };

            using (MPPSDataset ds = DB.DataAccess.FindMPPS(query.PPSInfo, query.Patient, sr, rp, sp))
            {
                if (ds.PPSInformation.Rows.Count > 0)
                {
                    ds.ToPPSInformation(mpps);
                }
            }

            return(mpps.ToArray());
        }
Exemplo n.º 2
0
        public WCFPPSInformation FindMPPS(string mppsSOPInstanceUID)
        {
            WCFPPSInformation mpps = new WCFPPSInformation()
            {
                MPPSSOPInstanceUID = mppsSOPInstanceUID
            };

            Guard.ArgumentNotNullOrEmpty(mppsSOPInstanceUID, "mppsSOPInstanceUID");
            using (MPPSDataset ds = DB.DataAccess.FindMPPS(mpps))
            {
                if (ds?.PPSInformation.Rows.Count > 0)
                {
                    return(ds.ToPPSInformation());
                }
            }

            return(null);
        }