When a physician winds up in the emergency department, providers put quality metrics and testing before her actual needs.