Design and validation of a FHIR-based EHR-driven phenotyping toolbox