Documenting a patient encounter