pub struct ClinicalAnalyzer { /* private fields */ }Expand description
Clinical analyzer for medical data analysis
Implementations§
Source§impl ClinicalAnalyzer
impl ClinicalAnalyzer
Sourcepub fn initialize(&mut self) -> Result<(), MedicalError>
pub fn initialize(&mut self) -> Result<(), MedicalError>
Initialise the ClinicalAnalyzer sub-components; propagates the domain error.
Sourcepub fn analyze_data(
&mut self,
_patient: &Patient,
_data_type: ClinicalDataType,
) -> Result<ClinicalAnalysis, MedicalError>
pub fn analyze_data( &mut self, _patient: &Patient, _data_type: ClinicalDataType, ) -> Result<ClinicalAnalysis, MedicalError>
Patient-only convenience entry point. The real differential engine
(Self::analyze_differential) requires a CALLER-SUPPLIED knowledge base
(priors + per-finding likelihoods); this overload is handed no such KB, so it
fails closed with InsufficientData rather than fabricating a diagnosis or a
confidence. Supply findings + a knowledge base via analyze_differential to get
a real, ranked, honestly-labeled proposal.
Sourcepub fn analyze_differential(
&self,
observed_findings: &[String],
kb: &DiagnosticKnowledgeBase,
) -> Result<DifferentialProposal, MedicalError>
pub fn analyze_differential( &self, observed_findings: &[String], kb: &DiagnosticKnowledgeBase, ) -> Result<DifferentialProposal, MedicalError>
Real transparent Bayesian differential over a caller-supplied, non-authoritative
knowledge base. Delegates to super::analyze_differential. Returns a ranked
epistemic proposal (never a diagnosis); the honest label lives in
DifferentialProposal::epistemic_status.
Auto Trait Implementations§
impl Freeze for ClinicalAnalyzer
impl RefUnwindSafe for ClinicalAnalyzer
impl Send for ClinicalAnalyzer
impl Sync for ClinicalAnalyzer
impl Unpin for ClinicalAnalyzer
impl UnsafeUnpin for ClinicalAnalyzer
impl UnwindSafe for ClinicalAnalyzer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more