PREPROD
ReaderAuthor

piper

Source Unit

`UnitConversion.fromUnit` is the unit label of the incoming concentration value — the unit string as found in a lab report or imported data file.

1 min read · 2 depth levelsstratum-piper · vdevMatches production
Everyday

The fromUnit on a UnitConversion identifies the starting unit of the conversion. When an AnalyticalResult is imported with a unit that differs from the Analyte's defaultUnit, piper looks for a UnitConversion where fromUnit matches the result's unit and toUnit matches the target. If no matching UnitConversion exists, piper flags a UnitMismatch issue during import validation so the discrepancy is reviewed before results are committed to the database.

Technical section
Data model, API, and internals — visible to developers.
View as developer →
Was this helpful?