taking a screenshot adds to the final output log
slight cleanup of patient deletion code