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 } }); }
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); }
public bool IsMultiAgentSystem(SpeciesTestingMethod testingMethod) { return(true); }
public IEnumerable <BrothMicrodilutionStandard> Standards(SpeciesTestingMethod testingMethod) { return(EnumUtils.AllEnumValues <BrothMicrodilutionStandard>().Where(t => t != BrothMicrodilutionStandard.None)); }
public IEnumerable <AntifungalAgent> AntifungalAgents(SpeciesTestingMethod testingMethod) { return(new List <AntifungalAgent> { AntifungalAgent.AmphotericinB }); }
public bool IsMultiAgentSystem(SpeciesTestingMethod testingMethod) { return(_multiAgentSystems.Contains(testingMethod)); }
public IEnumerable <BrothMicrodilutionStandard> Standards(SpeciesTestingMethod testingMethod) { _standards.TryGetValue(testingMethod, out var standards); return(standards ?? EnumUtils.AllEnumValues <BrothMicrodilutionStandard>().Where(t => t != BrothMicrodilutionStandard.None)); }
public IEnumerable <AntifungalAgent> AntifungalAgents(SpeciesTestingMethod speciesTestingMethod) { var antifungalAgents = _micSteps[speciesTestingMethod].Keys; return(antifungalAgents.ToImmutableSortedSet(new AntifungalAgentComparer())); }