Veterinary domain: medical records, vaccinations, breeds, allergies
| Tier | domain |
| Role | unclassified (baselined) |
| Path | crates/domain/veterinary |
| Edition | 2021 |
| Targets | domain_veterinary |
| Public items | 38 across 0 modules |
| Tests | 25 |
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`
| Item | What it is |
|---|---|
pub enum SizeClass | Size classification for breeds. |
pub enum VaccineType | Vaccine classification. |
pub enum ConditionStatus | Status of a medical condition. |
pub enum AllergyType | Type of allergen. |
pub enum AllergySeverity | Severity of an allergic reaction. |
pub struct WeightRecord | Weight 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 Breed | Breed 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 Vaccination | Vaccination record for an animal. |
Vaccination :: fn is_expired(& self) -> bool | Check if this vaccination has expired. |
Vaccination :: fn is_valid(& self) -> bool | Check 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 MedicalCondition | Known 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 Allergy | Allergy/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 MedicalProfile | Complete medical profile for an animal (aggregate view). |
MedicalProfile :: fn new(animal_id : Uuid) -> Self | Create 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) -> bool | Check 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) |
| Location | crates/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.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `foundation-basemodels` | foundation | no | always |
| `identity-parties` | identity | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
thiserror | ^2 | — | no | always |
uuid | ^1 | v4, v7, serde, js | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tokio-test | ^0.4 | — | no | always |
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
| Kind | Name | Source |
|---|---|---|
| lib | domain_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
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none 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.
Related capabilities
1 workspace crate depends on this one: application-veterinary.
Verification
| Kind | Count |
|---|---|
| Unit tests | 25 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 11 | 0 | 1 |
What the tests establish, by name:
test_active_conditions_filters_correctly—src/lib.rstest_allergy_creation—src/lib.rstest_allergy_serialization—src/lib.rstest_allergy_severity_serialization—src/lib.rstest_allergy_type_serialization—src/lib.rstest_breed_creation—src/lib.rstest_breed_serialization—src/lib.rstest_condition_creation—src/lib.rstest_condition_serialization—src/lib.rstest_condition_status_serialization—src/lib.rstest_critical_allergies—src/lib.rstest_empty_medical_profile—src/lib.rstest_has_allergy_case_insensitive—src/lib.rstest_medical_profile_serialization—src/lib.rstest_size_class_serialization—src/lib.rstest_vaccination_deleted_is_not_valid—src/lib.rstest_vaccination_expired_when_past—src/lib.rstest_vaccination_not_expired_when_future—src/lib.rstest_vaccination_serialization—src/lib.rstest_vaccination_without_expiry_is_not_expired—src/lib.rstest_vaccine_type_variants—src/lib.rstest_valid_vaccinations_excludes_expired—src/lib.rstest_weight_record_has_id—src/lib.rstest_weight_record_serialization—src/lib.rstest_weight_record_timestamps—src/lib.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 18 | 38 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 18
"No rustdoc detected" : 20
Metrics
| Metric | Value |
|---|---|
| Rust source files | 1 |
| Source lines | 743 |
| Code lines | 642 |
| Public API items | 38 |
| Public modules | 0 |
| Tests | 25 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 7 |
| Workspace reverse dependencies | 1 |
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.