avoiding counting duplicate patients seen