medicapi::logic::prescription_logic

Function get_complete_by_date_and_org

pub fn get_complete_by_date_and_org(
    conn: &PgConnection,
    org_id: Uuid,
    from: NaiveDateTime,
    to: NaiveDateTime,
) -> Result<Vec<Prescription>, StatusMessage>
Expand description

This is a cached function that uses the GET_COMPLETE_BY_DATE_AND_ORG cached static.