Module row

Module row 

Expand description

Row representation of Data for flexible parsing

§Example

use pharmsol::data::parser::DataRow;

// Create a dosing row with ADDL expansion
let row = DataRow::builder("subject_1", 0.0)
    .evid(1)
    .dose(100.0)
    .input(1)
    .addl(3)   // 3 additional doses
    .ii(12.0)  // 12 hours apart
    .build();

let events = row.into_events().unwrap();
assert_eq!(events.len(), 4); // Original + 3 additional doses

Structs§

DataRow
A format-agnostic representation of a single data row
DataRowBuilder
Builder for constructing DataRow with a fluent API

Enums§

DataError
Custom error type for the module

Functions§

build_data
Build a Data object from an iterator of DataRows