Encounter names can be edited either during an encounter or in the encounter's detail view.
Rename during an encounter
Click on
Patient name
Enter an encounter name
Rename after an encounter
Click on the pencil icon
Edit the encounter name
Click the save icon