This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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} | |
} | |