Skip to content

Instantly share code, notes, and snippets.

View progressiverocker's full-sized avatar

progressiverocker

View GitHub Profile
@progressiverocker
progressiverocker / Premeds Calculator
Created September 16, 2013 10:32
Premeds for Dog, Cat, and Rabbit
"""The Premedicant Dose for animal type is the weight of animal multipled by drug dose rate, divided by drug concertration."""
# Dictionaries start here. 1. drug concerntrations. 2. drug rates 3. animal weight ranges
from __future__ import division # to fix rounding error on rate ranges eg dog ketamine
import re # need regular expressions (re) for weightQ while loop to check for a float from raw_input
drug_concerntrations = {"meloxicam" : 5.0, "amoxicillin clavulanic acid" : 32.5, "ketamine" : 100, "enrofloxacin 2.5 percent solution" : 25, "enrofloxacin 5.0 percent solution" : 50 }
rates = {
"""The Premedicant Dose for animal type is the weight of animal multipled by drug dose_rate, divided by drug concertration."""
class Premedicant_dose(object):
drug_concerntrations = {"metacam" : 5, "synulox" : 32.5, "ketamine" : 100}
rates = {
'dog' : {"metacam" : 0.2, "synulox" : 12.5, "ketamine" : 2},
'cat' : {"metacam" : 0.2, "synulox" : 12.5, "ketamine" : 5},
'rabbit' : {"metacam" : 0.6, "synulox" : "contraindicated", "ketamine" : 20}
}