domain capa

domain-veterinary

Veterinary domain: medical records, vaccinations, breeds, allergies

Veterinary domain: medical records, vaccinations, breeds, allergies

Tierdomain
Roleunclassified (baselined)
Pathcrates/domain/veterinary
Edition2021
Targetsdomain_veterinary
Public items38 across 0 modules
Tests25

What it is for

This crate does not document itself. No //! block on its entry point. The facts below are complete; the reason this crate exists is not written down anywhere, and belongs in src/lib.rs rather than here.

Capabilities

Allergy

_No module-level documentation is present in the source._

Item
pub struct Allergy
Allergy :: fn id(& self) -> Uuid
Allergy :: fn created_at(& self) -> DateTime <Utc>
Allergy :: fn updated_at(& self) -> DateTime <Utc>
Allergy :: fn deleted_at(& self) -> Option <DateTime <Utc>>

AllergySeverity

_No module-level documentation is present in the source._

Item
pub enum AllergySeverity

AllergyType

_No module-level documentation is present in the source._

Item
pub enum AllergyType

Breed

_No module-level documentation is present in the source._

Item
pub struct Breed
Breed :: fn id(& self) -> Uuid
Breed :: fn created_at(& self) -> DateTime <Utc>
Breed :: fn updated_at(& self) -> DateTime <Utc>
Breed :: fn deleted_at(& self) -> Option <DateTime <Utc>>

ConditionStatus

_No module-level documentation is present in the source._

Item
pub enum ConditionStatus

MedicalCondition

_No module-level documentation is present in the source._

Item
pub struct MedicalCondition
MedicalCondition :: fn id(& self) -> Uuid
MedicalCondition :: fn created_at(& self) -> DateTime <Utc>
MedicalCondition :: fn updated_at(& self) -> DateTime <Utc>
MedicalCondition :: fn deleted_at(& self) -> Option <DateTime <Utc>>

MedicalProfile

_No module-level documentation is present in the source._

Item
pub struct MedicalProfile
MedicalProfile :: fn new(animal_id : Uuid) -> Self
MedicalProfile :: fn active_conditions(& self) -> Vec <& MedicalCondition>
MedicalProfile :: fn valid_vaccinations(& self) -> Vec <& Vaccination>
MedicalProfile :: fn critical_allergies(& self) -> Vec <& Allergy>
MedicalProfile :: fn has_allergy(& self, allergen : & str) -> bool

SizeClass

_No module-level documentation is present in the source._

Item
pub enum SizeClass

Vaccination

_No module-level documentation is present in the source._

Item
pub struct Vaccination
Vaccination :: fn is_expired(& self) -> bool
Vaccination :: fn is_valid(& self) -> bool
Vaccination :: fn id(& self) -> Uuid
Vaccination :: fn created_at(& self) -> DateTime <Utc>
Vaccination :: fn updated_at(& self) -> DateTime <Utc>
Vaccination :: fn deleted_at(& self) -> Option <DateTime <Utc>>

VaccineType

_No module-level documentation is present in the source._

Item
pub enum VaccineType

WeightRecord

_No module-level documentation is present in the source._

Item
pub struct WeightRecord
WeightRecord :: fn id(& self) -> Uuid
WeightRecord :: fn created_at(& self) -> DateTime <Utc>
WeightRecord :: fn updated_at(& self) -> DateTime <Utc>
WeightRecord :: fn deleted_at(& self) -> Option <DateTime <Utc>>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub enum SizeClassSize classification for breeds.
pub enum VaccineTypeVaccine classification.
pub enum ConditionStatusStatus of a medical condition.
pub enum AllergyTypeType of allergen.
pub enum AllergySeveritySeverity of an allergic reaction.
pub struct WeightRecordWeight measurement with units and timestamp.
WeightRecord :: fn id(& self) -> Uuid
WeightRecord :: fn created_at(& self) -> DateTime <Utc>
WeightRecord :: fn updated_at(& self) -> DateTime <Utc>
WeightRecord :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct BreedBreed with species association and breed-specific traits.
Breed :: fn id(& self) -> Uuid
Breed :: fn created_at(& self) -> DateTime <Utc>
Breed :: fn updated_at(& self) -> DateTime <Utc>
Breed :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct VaccinationVaccination record for an animal.
Vaccination :: fn is_expired(& self) -> boolCheck if this vaccination has expired.
Vaccination :: fn is_valid(& self) -> boolCheck if this vaccination is currently valid.
Vaccination :: fn id(& self) -> Uuid
Vaccination :: fn created_at(& self) -> DateTime <Utc>
Vaccination :: fn updated_at(& self) -> DateTime <Utc>
Vaccination :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct MedicalConditionKnown medical condition (chronic or resolved).
MedicalCondition :: fn id(& self) -> Uuid
MedicalCondition :: fn created_at(& self) -> DateTime <Utc>
MedicalCondition :: fn updated_at(& self) -> DateTime <Utc>
MedicalCondition :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct AllergyAllergy/adverse reaction record.
Allergy :: fn id(& self) -> Uuid
Allergy :: fn created_at(& self) -> DateTime <Utc>
Allergy :: fn updated_at(& self) -> DateTime <Utc>
Allergy :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct MedicalProfileComplete medical profile for an animal (aggregate view).
MedicalProfile :: fn new(animal_id : Uuid) -> SelfCreate an empty medical profile for an animal.
MedicalProfile :: fn active_conditions(& self) -> Vec <& MedicalCondition>Get all active medical conditions.
MedicalProfile :: fn valid_vaccinations(& self) -> Vec <& Vaccination>Get all valid (non-expired) vaccinations.
MedicalProfile :: fn critical_allergies(& self) -> Vec <& Allergy>Get all life-threatening allergies.
MedicalProfile :: fn has_allergy(& self, allergen : & str) -> boolCheck if the animal has a specific allergy by allergen name (case-insensitive).

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation, identity.

Shares tier domain with 41 other crates: domain-agreements, domain-ai-report, domain-billing, domain-catalog, domain-classify, domain-comments, domain-competitive-intel, domain-contact, … (41 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)domain
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/domain/veterinary
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_domain["domain"] --> n_foundation["foundation"]
  n_domain["domain"] --> n_identity["identity"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-basemodels`foundationnoalways
`identity-parties`identitynoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio-test^0.4noalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_veterinary["application-veterinary"] -->|uses| SELF
  SELF["domain-veterinary"]
  SELF -->|runtime| n_foundation_basemodels["foundation-basemodels"]
  SELF -->|runtime| n_identity_parties["identity-parties"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libdomain_veterinary`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: application-veterinary.

Verification

KindCount
Unit tests25
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root1101

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc1838
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 18
    "No rustdoc detected" : 20

Metrics

MetricValue
Rust source files1
Source lines743
Code lines642
Public API items38
Public modules0
Tests25
Examples0
Cargo features0
Direct runtime dependencies7
Workspace reverse dependencies1
pie showData
    title Public API by kind
    "enum" : 5
    "method" : 27
    "struct" : 6
pie showData
    title Rust source composition
    "Code" : 642
    "Blank or comment" : 101

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las domain · Manual