Fixed misnomer (oldname: resource_id, newname: encounter_id).