namespace adas_core.Domain.Models;
///
/// Represents a treatment route, defining the pathway or method by which a treatment is administered or delivered.
///
public class TreatmentRoute
{
public Code? Route { get; set; }
///
/// Returns a string representation of the treatment route, including the route code when available.
///
/// A formatted string identifying the treatment route, with the route code appended if Route is not null.
public override string ToString()
{
List items = [];
if (Route != null) items.Add($", code: {Route}");
return "treatmentRoute[" + string.Join(", ", items) + "]";
}
}