コード例 #1
0
        public ReferrerCollection FindReferrer(DataTypes.ReferrerSearchCriteria criteria)
        {
            if (criteria == null)
            {
                throw new ArgumentNullException("criteria");
            }

            BMS.ReferrerSearchCriteria businessCriteria = DirectoryTranslator.TranslateSearchCriteria(criteria);

            List <BMS.Referrer> businessReferrers = new List <BMS.Referrer>(Helper.GetApplication().Find(businessCriteria));

            return(new ReferrerCollection(businessReferrers.ConvertAll <DataTypes.Referrer>(
                                              new Converter <BMS.Referrer, DataTypes.Referrer>(DirectoryTranslator.TranslateBusinessToService)
                                              )));
        }
コード例 #2
0
        public PatientCollection FindPatient(DataTypes.PatientSearchCriteria criteria)
        {
            if (criteria == null)
            {
                throw new ArgumentNullException("criteria");
            }

            BMS.PatientSearchCriteria businessCriteria = DirectoryTranslator.TranslateSearchCriteria(criteria);

            List <BMS.Patient> businessPatients = new List <BMS.Patient>(Helper.GetApplication().Find(businessCriteria));

            return(new PatientCollection(businessPatients.ConvertAll <DataTypes.Patient>(
                                             new Converter <BMS.Patient, DataTypes.Patient>(DirectoryTranslator.TranslateBusinessToService)
                                             )));
        }