Independent exam seems to blur roles

If an insurance company hires you to evaluate disability claims, are you functioning as its agent or as the patient's clinician?