If there is a session for the patient, without documents, ask the user if he wants to close the current session before checkout.
if there is a session for the patient, with documents, ask the user to close that session by committing the documents (signing) or discard changes from the session.
After there is no existing session for the patient, let the user to create a new one.