A Scalable Method for Validated Data Extraction from Electronic Health Records with Large Language Models