added auto-create of new encounter when patient arrives