Esempio n. 1
0
 public List <MicStep> StepsByTestingMethodAndAgent(SpeciesTestingMethod testingMethod, AntifungalAgent agent)
 {
     return(new List <MicStep>()
     {
         new MicStep {
             Title = "≤4", Value = 4, LowerBoundary = true
         },
         new MicStep {
             Title = "8", Value = 8
         },
         new MicStep {
             Title = "≥16", Value = 16, UpperBoundary = true
         }
     });
 }
Esempio n. 2
0
        public List <MicStep> StepsByTestingMethodAndAgent(SpeciesTestingMethod testingMethod, AntifungalAgent agent)
        {
            List <MicStep> agentSteps = null;

            _micSteps.TryGetValue(testingMethod, out var testingMethodSteps);
            testingMethodSteps?.TryGetValue(agent, out agentSteps);

            if (agentSteps == null)
            {
                _logger.LogInformation("No MIC steps for {testingMethod}/{agent} found", testingMethod, agent);
                return(new List <MicStep>());
            }
            _logger.LogInformation("Found {stepCount} MIC steps for {testingMethod}/{agent} found",
                                   agentSteps.Count, testingMethod, agent);

            agentSteps.First().LowerBoundary = true;
            agentSteps.Last().UpperBoundary  = true;
            return(agentSteps);
        }
Esempio n. 3
0
 public bool IsMultiAgentSystem(SpeciesTestingMethod testingMethod)
 {
     return(true);
 }
Esempio n. 4
0
 public IEnumerable <BrothMicrodilutionStandard> Standards(SpeciesTestingMethod testingMethod)
 {
     return(EnumUtils.AllEnumValues <BrothMicrodilutionStandard>().Where(t => t != BrothMicrodilutionStandard.None));
 }
Esempio n. 5
0
 public IEnumerable <AntifungalAgent> AntifungalAgents(SpeciesTestingMethod testingMethod)
 {
     return(new List <AntifungalAgent> {
         AntifungalAgent.AmphotericinB
     });
 }
Esempio n. 6
0
 public bool IsMultiAgentSystem(SpeciesTestingMethod testingMethod)
 {
     return(_multiAgentSystems.Contains(testingMethod));
 }
Esempio n. 7
0
 public IEnumerable <BrothMicrodilutionStandard> Standards(SpeciesTestingMethod testingMethod)
 {
     _standards.TryGetValue(testingMethod, out var standards);
     return(standards ?? EnumUtils.AllEnumValues <BrothMicrodilutionStandard>().Where(t => t != BrothMicrodilutionStandard.None));
 }
Esempio n. 8
0
        public IEnumerable <AntifungalAgent> AntifungalAgents(SpeciesTestingMethod speciesTestingMethod)
        {
            var antifungalAgents = _micSteps[speciesTestingMethod].Keys;

            return(antifungalAgents.ToImmutableSortedSet(new AntifungalAgentComparer()));
        }