The accident occurred at the corner of Fifth Avenue and 43rd Street in Manhattan.
Police say the driver lost control of the vehicle during the medical episode, causing the cab to jump the curb and slam into the building.
The driver was rushed to Bellevue Hospital.
No other injuries were reported.
----------
* More Manhattan news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube