Placed error handling mechanisms into the patient_lookup family of functions. In addition, consolidated patient_lookup_X to a single function which takes a query modifier and a string to search for as arguments.