/// <summary>
        /// 处方自动上传
        /// </summary>
        /// <param name="param"></param>
        /// <param name="user"></param>
        public void PrescriptionUploadAutomatic(PrescriptionUploadAutomaticParam param, UserInfoDto user)
        {//获取所有未传费用病人
            var allPatients = _hisSqlRepository.QueryAllHospitalizationPatients(param);

            if (allPatients.Any())
            { //根据组织机构分组
                var organizationGroupBy = allPatients.Select(c => c.OrganizationCode).Distinct().ToList();
                foreach (var item in organizationGroupBy)
                {    //本院获取病人列表
                    var ratientsList = allPatients.Where(c => c.OrganizationCode == item).ToList();
                    //病人传费
                    foreach (var items in ratientsList)
                    {
                        var uploadParam = new PrescriptionUploadUiParam()
                        {
                            BusinessId = items.BusinessId
                        };
                        _residentMedicalInsuranceRepository.PrescriptionUpload(uploadParam, user);
                    }
                }
            }
        }