Quote (carteblanche @ Mar 31 2013 04:01pm)
You're gonna have to explain all of this.
Storing the acuity value where? to a file, database, web service, etc?
where are you getting the room numbers from? file, database, web service, etc?
how do you assign them to a "nurse"? file, database, web service, email notification, etc?
How do you know which nurse? Where are you getting that info from?
What is "even distribution"? FIFO?
is this a homework assignment or actually something for work? deadline?
Ok I'll do my best to explain this, sorry I've just begun to learn python, it is my first language. This is just a problem my girlfriend was encountering at work (she is a nurse) I'm attempting to learn python, and figured maybe I could help her solve her problem.
As far as "storing" the acuity value it can be temporarily while the program is being run (it only needs to be run once). There are generally 6-7 nurses on the floor. The current script I have will spit out a value 5-20 as an acuity rating. I think each nurse could just be a variable as there are a maximum of 7 on the floor at one time. I would like for the above script to run 30 times or so (number of rooms on the floor) and once it has an acuity value for each assign them to a nurse with something like n1 < 120 (total acuity value). I cannot for the life of me figure out a way to do this. Sorry, I appreciate you attempting to help, I know I'm not explaining things very succinctly.