pub struct ClinicalReport {
pub id: String,
pub title: String,
pub report_type: ClinicalReportType,
pub author_label: Option<String>,
pub observed_at_unix: u32,
pub observed_at_instant: Option<InstantBridge>,
pub body: String,
pub attachment_blob_hash: Option<String>,
pub claim_status: ClaimStatus,
}Expand description
A manually-entered clinical document (pathology / imaging / discharge / referral).
body is exactly what the author typed. attachment_blob_hash optionally links to a
content-addressed blob (the original PDF/image) whose metadata lives in
AttachmentMeta; the bytes are never stored in this struct.
Fields§
§id: String§title: String§report_type: ClinicalReportTypeFree-text label for the author (e.g. “Dr Smith, Pathology”) — NOT a verified DID.
observed_at_unix: u32When the clinical event / observation occurred (unix seconds).
observed_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over observed_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
body: StringThe document body as typed by the author. No parsing is performed on it.
attachment_blob_hash: Option<String>Optional content hash of the attached source document blob.
claim_status: ClaimStatusImplementations§
Source§impl ClinicalReport
impl ClinicalReport
Sourcepub fn new(
title: impl Into<String>,
report_type: ClinicalReportType,
observed_at_unix: u32,
body: impl Into<String>,
) -> Self
pub fn new( title: impl Into<String>, report_type: ClinicalReportType, observed_at_unix: u32, body: impl Into<String>, ) -> Self
Creates a new instance.
Sourcepub fn observed_at(&self) -> InstantBridge
pub fn observed_at(&self) -> InstantBridge
Resolve the observed-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).