Made username specified inform user of the reason that username is unknown.
Added support for pulling patient ID from patient hash if one is provided.