Fixed bug in previous commit where saving existing encounter gives 404 error