check to make sure hospital and service ids are valid