Exemplo n.º 1
0
 public DurationRange?GetDurationRange
     ([NotNull] SubstanceRoute route, [NotNull] SubstanceDoseLevel doseLevel)
 {
     return(!(_routes.TryGetValue(
                  route,
                  out var sri
                  ) &&
              sri.GetDurationRange(doseLevel) is DurationRange dr)
         ? default
Exemplo n.º 2
0
 /// <summary>
 /// Determines whether the <see cref="ISubstance"/> can be administered through the specified route.
 /// </summary>
 /// <param name="route">The route to check.</param>
 /// <returns><c>true</c> if the substance can be administered through the specified route; otherwise, <c>false</c>.</returns>
 public bool CanAdminister(SubstanceRoute route)
 {
     return(Routes.ContainsKey(route));
 }
Exemplo n.º 3
0
 public SubstanceRouteInfo GetRoute([NotNull] SubstanceRoute route)
 {
     return(_routes.TryGetValue(route, out var r) ? r : null);
 }