Skip to main content

SkeletalDensityProfile

Struct SkeletalDensityProfile 

Source
pub struct SkeletalDensityProfile {
Show 23 fields pub compartment_label: String, pub cortical_apparent_density_g_cm3: f64, pub cortical_thickness_mm: f64, pub cortical_porosity_ratio: f64, pub trabecular_apparent_density_g_cm3: f64, pub trabecular_bv_tv: f64, pub trabecular_thickness_um: f64, pub trabecular_separation_um: f64, pub trabecular_number_per_mm: f64, pub trabecular_smi: f64, pub fabric_eigenvalues: [f64; 3], pub mineralization_degree_mu: f64, pub ash_fraction: f64, pub qct_volumetric_bmd_mg_ha_cm3: Option<f64>, pub dexa_areal_bmd_g_cm2: Option<f64>, pub dexa_t_score: Option<f64>, pub dexa_z_score: Option<f64>, pub trabecular_bone_score_tbs: Option<f64>, pub has_fragility_fracture: bool, pub physeal_fusion: PhysealFusionStatus, pub fracture_callus: FractureCallusState, pub has_orthopedic_implant: bool, pub epistemic_status: EpistemicStatus,
}
Expand description

Multi-scale cortical and trabecular skeletal densitometry profile (Spec §5.1–5.3).

Fields§

§compartment_label: String§cortical_apparent_density_g_cm3: f64

Cortical apparent wet density rho_app in g/cm^3.

§cortical_thickness_mm: f64

Cortical shell thickness t_cort in mm.

§cortical_porosity_ratio: f64

Intracortical Haversian porosity phi_cort in [0.0, 1.0].

§trabecular_apparent_density_g_cm3: f64

Trabecular apparent density rho_app in g/cm^3.

§trabecular_bv_tv: f64

Trabecular Bone Volume Fraction BV/TV in [0.0, 1.0].

§trabecular_thickness_um: f64

Trabecular thickness Tb.Th in micrometers.

§trabecular_separation_um: f64

Trabecular separation Tb.Sp in micrometers.

§trabecular_number_per_mm: f64

Trabecular number Tb.N in mm^-1.

§trabecular_smi: f64

Structure Model Index SMI (0 = plate-like, 3 = rod-like).

§fabric_eigenvalues: [f64; 3]

Principal eigenvalues [m1, m2, m3] of the trabecular fabric tensor (tr(M) = 3.0).

§mineralization_degree_mu: f64

Matrix mineralization degree mu_min (1.0 = healthy mineralized human bone; < 0.75 = osteomalacic/rachitic hypomineralization).

§ash_fraction: f64

Mineral ash fraction alpha_ash in [0.0, 1.0].

§qct_volumetric_bmd_mg_ha_cm3: Option<f64>

QCT / HR-pQCT volumetric BMD in mg HA/cm^3, if observed.

§dexa_areal_bmd_g_cm2: Option<f64>

DEXA areal BMD in g/cm^2, if observed.

§dexa_t_score: Option<f64>

DEXA T-score (SD vs young-adult peak), if observed/computed.

§dexa_z_score: Option<f64>

DEXA Z-score (SD vs age/sex/cohort reference), if observed/computed.

§trabecular_bone_score_tbs: Option<f64>

Trabecular Bone Score (TBS), if available.

§has_fragility_fracture: bool§physeal_fusion: PhysealFusionStatus§fracture_callus: FractureCallusState§has_orthopedic_implant: bool§epistemic_status: EpistemicStatus

Implementations§

Source§

impl SkeletalDensityProfile

Source

pub fn from_preset(preset: SpeciesDensitometryPreset) -> Self

Construct a profile from one of the curated human clinical or comparative species presets.

Source

pub fn validate(&self) -> Result<(), String>

Fail-closed validation of physical bounds and finite numbers.

Source

pub fn who_category(&self) -> Option<WhoDensityCategory>

WHO (1994) classification from dexa_t_score + has_fragility_fracture. Returns None if no T-score was measured/provided (never fabricates a score).

Source

pub fn effective_cortical_modulus_gpa( &self, strain_rate_per_s: f64, ) -> Result<f64, String>

Carter & Hayes (1977) / Zysset (2003) effective cortical elastic modulus in GPa, attenuated by fracture-callus stage when fracture_callus.stage > 0.

Source

pub fn effective_trabecular_yield_mpa(&self) -> Result<f64, String>

Gibson & Ashby (1997) effective trabecular yield strength in MPa, scaled by mineralization mu_min and fracture-callus strength recovery ratio.

Trait Implementations§

Source§

impl Clone for SkeletalDensityProfile

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SkeletalDensityProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SkeletalDensityProfile

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SkeletalDensityProfile

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SkeletalDensityProfile

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SkeletalDensityProfile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.