Updated Encounter query (provider_id as NULL)