pub struct ProcessedRow {
pub values: Vec<Option<Value>>,
}Expand description
A single row of processed tabular data from ViewDefinition transformation.
This struct represents one row in the output table, containing values for each column defined in the ViewDefinition. Values are stored as optional JSON values to handle nullable fields and diverse FHIR data types.
§Structure
Each ProcessedRow contains a vector of optional JSON values, where:
Some(value)represents a non-null column valueNonerepresents a null/missing column value- The order matches the column order in
ProcessedResult::columns
§Examples
use helios_sof::ProcessedRow;
use serde_json::Value;
let row = ProcessedRow {
values: vec![
Some(Value::String("patient-123".to_string())),
Some(Value::String("Doe".to_string())),
None, // Missing birth date
Some(Value::Bool(true)),
]
};Fields§
§values: Vec<Option<Value>>Column values for this row, ordered according to ProcessedResult::columns
Trait Implementations§
Source§impl Clone for ProcessedRow
impl Clone for ProcessedRow
Source§fn clone(&self) -> ProcessedRow
fn clone(&self) -> ProcessedRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessedRow
impl Debug for ProcessedRow
Source§impl<'de> Deserialize<'de> for ProcessedRow
impl<'de> Deserialize<'de> for ProcessedRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProcessedRow
impl RefUnwindSafe for ProcessedRow
impl Send for ProcessedRow
impl Sync for ProcessedRow
impl Unpin for ProcessedRow
impl UnwindSafe for ProcessedRow
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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