Table of Contents

Class Allergen

Namespace
arolariu.Backend.Domain.Invoices.DDD.ValueObjects
Assembly
arolariu.Backend.Domain.Invoices.dll

Represents an identified or inferred allergen associated with an invoice product line.

[ExcludeFromCodeCoverage]
public sealed record Allergen : IEquatable<Allergen>
Inheritance
Allergen
Implements
Inherited Members

Remarks

Captures canonical allergen taxonomy information used for dietary risk surfacing, recipe suitability filtering and future health profile personalization.

Mutation: Instances are mutable for progressive enrichment (name normalization, description augmentation, documentation link updates).

Thread-safety: Not thread-safe. Treat each instance as aggregate-scoped.

Properties

Description

Human-readable descriptive context for the allergen.

public string Description { get; set; }

Property Value

string

Remarks

Intended for UI tooltips and accessibility narration. MAY be empty if not yet enriched.

LearnMoreAddress

Reference URI for authoritative or supplemental allergen information.

public Uri LearnMoreAddress { get; set; }

Property Value

Uri

Remarks

Defaults to project documentation site. SHOULD be replaced with domain knowledge base / medical authority link when available.

Name

Canonical allergen display name (e.g. "Peanuts", "Gluten").

public string Name { get; set; }

Property Value

string

Remarks

Empty string denotes unresolved extraction; SHOULD be populated by enrichment pipeline.