AIPatient: Simulating Patients with EHRs and LLM Powered Agentic Workflow