In creating the ANSI file, the service location needs to be sent without the NPI. And the rendering provider should only be in the service line loop, not the patient loop.