Skip to main content

apply_prescription

Function apply_prescription 

Source
fn apply_prescription(
    health: &mut Health,
    id: &str,
    edit: PrescriptionEdit,
    words: &Translator,
) -> Result<String, String>
Expand description

A prescription made (id empty) or changed in health, with its medicines as its rows give them: made, changed, taken out. Every row is read before anything changes: what does not save changes nothing. Its id, or what is wrong.