Exemplo n.º 1
0
        public List <PatientMovementModel> Process(PatientListParameter parameter)
        {
            List <PatientStayModel> patientStayList = _restData.AQLQuery <PatientStayModel>(AQLCatalog.PatientStay(parameter));

            if (patientStayList is null)
            {
                return(new List <PatientMovementModel>());
            }

            return(ReturValueConstrutor(patientStayList));
        }
Exemplo n.º 2
0
        public List <StationaryDataModel> Process(string patientId, string fallkennung, DateTime datum)
        {
            List <StationaryDataReceiveModel> stationaryDataReceives = _restData.AQLQuery <StationaryDataReceiveModel>(AQLCatalog.Stationary(patientId, fallkennung, datum));

            if (stationaryDataReceives is null)
            {
                return(new List <StationaryDataModel>());
            }

            return(StationaryConstructor(stationaryDataReceives));
        }
Exemplo n.º 3
0
        private void FindWardsQuery()
        {
            ContactParameter        parameter       = patientStack.Pop();
            List <PatientWardModel> patientWardList = _restData.AQLQuery <PatientWardModel>(AQLCatalog.ContactPatientWards(parameter));

            if (patientWardList is null)
            {
                _logger.LogDebug("ContactNetworkFactory.FindWardsQuery(): Found No Wards - ResultSet: NULL");
                return;
            }

            FindContactPatients(patientWardList, parameter);
        }
Exemplo n.º 4
0
        private void CreateDailyEntries(DateTime date, EpiCurveParameter parameter)
        {
            _logger.LogDebug("Flag - Query Paramters: Datum: {Date} \r PathogenList: {pathogens}", date.ToString(), parameter.PathogenCodesToAqlMatchString());
            List <FlagTimeModel> flagTimes = _restData.AQLQuery <FlagTimeModel>(AQLCatalog.LaborEpiCurve(date, parameter));

            if (flagTimes == null)
            {
                AddToEpiCurveToSortedDict(date);
                return;
            }

            PopulateDailyEpicCurve(flagTimes, date);

            AddToEpiCurveToSortedDict(date);
        }
Exemplo n.º 5
0
        public List <MibiLabDataModel> Process(PatientListParameter parameter)
        {
            mibiLabDatas = new List <MibiLabDataModel>();

            List <MetaDataReceiveModel> metaDatas = _restData.AQLQuery <MetaDataReceiveModel>(AQLCatalog.CasesWithResults(parameter));

            if (metaDatas != null)
            {
                getSampleData(metaDatas);
            }
            else
            {
                System.Diagnostics.Debug.WriteLine("metaDatas is null");
            }

            return(mibiLabDatas);
        }
Exemplo n.º 6
0
        public List <CountDataModel> Process(string nachweis)
        {
            List <CountDataReceiveModel> countDataReceiveModels = _restData.AQLQuery <CountDataReceiveModel>(AQLCatalog.CovidPat(nachweis));

            if (countDataReceiveModels is null)
            {
                return(new List <CountDataModel>());
            }
            return(CountConstructor(countDataReceiveModels));
        }
Exemplo n.º 7
0
        public List <CaseDataModel> Process(DateTime date)
        {
            List <CaseDataReceiveModel> caseDataReceiveModels = _restData.AQLQuery <CaseDataReceiveModel>(AQLCatalog.Case(date));

            if (caseDataReceiveModels is null)
            {
                return(new List <CaseDataModel>());
            }
            return(CaseConstructor(caseDataReceiveModels));
        }
Exemplo n.º 8
0
        public List <WeekCaseDataModel> Process(DateTime startDate, DateTime endDate)
        {
            List <WeekCaseReceiveModel> weekCaseReceiveModels = _restData.AQLQuery <WeekCaseReceiveModel>(AQLCatalog.WeekCase(startDate, endDate));

            if (weekCaseReceiveModels is  null)
            {
                return(new List <WeekCaseDataModel>());
            }

            return(WeekCaseConstructor(weekCaseReceiveModels));
        }
Exemplo n.º 9
0
        public List <LabDataModel> Process(PatientListParameter parameter)
        {
            List <LabDataReceiveModel> receiveLabDataList = _restData.AQLQuery <LabDataReceiveModel>(AQLCatalog.PatientLaborData(parameter));

            if (receiveLabDataList is null)
            {
                return(new List <LabDataModel>());
            }

            return(LabDataConstructor(receiveLabDataList));
        }
Exemplo n.º 10
0
        public List <SymptomModel> Process(PatientListParameter parameter)
        {
            List <SymptomModel> symptomList = new List <SymptomModel>();

            List <SymptomModel> symptomList_VS = _restData.AQLQuery <SymptomModel>(AQLCatalog.PatientSymptom_VS(parameter));

            if (symptomList_VS != null)
            {
                symptomList = symptomList_VS;
            }

            List <SymptomModel> symptomList_AS = _restData.AQLQuery <SymptomModel>(AQLCatalog.PatientSymptom_AS(parameter));

            if (symptomList_AS != null)
            {
                symptomList = symptomList.Concat(symptomList_AS).ToList();
            }

            List <SymptomModel> symptomList_US = _restData.AQLQuery <SymptomModel>(AQLCatalog.PatientSymptom_US(parameter));

            if (symptomList_US != null)
            {
                symptomList = symptomList.Concat(symptomList_US).ToList();
            }

            return(symptomList);
        }
Exemplo n.º 11
0
        public NECCombinedDataModel Process(DateTime date)
        {
            List <PatientModel> currentPatients = _restData.AQLQuery <PatientModel>(AQLCatalog.GetAllPatients(date));

            PatientListParameter patientParameter = PatientModelListToPatientListParameter(currentPatients);

            List <LabDataModel>         patLabs      = _labFac.Process(patientParameter);
            List <PatientMovementModel> patMovemenst = _movFac.Process(patientParameter);


            NECCombinedDataModel data = new NECCombinedDataModel()
            {
                labdat       = reduceToNECData(patLabs),
                movementData = reduceToNECData(patMovemenst)
            };

            return(data);
        }