mediclib/jsonb/
medication_dosage.rs

1
2
3
4
5
6
7
8
9
10
11

use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct MedicationDosage {
    pub id: Uuid,
    pub medication : Uuid,
    pub dosage : Option<f32>,
}