Armed police cordoned off the car park of New Cross Hospital in Wolverhampton after a man was shot on nearby Valley Road.
The victim was driven to the hospital shortly after 9pm and is said to be in a critical condition.
The cordon was set up around a blue Peugeot with what appeared to be a bullet hole in a side window frame.
The hospital has since reopened and the cordon was taken down around 10:15pm.
Police have launched an information and anyone with information is asked to call Crimestoppers on 0800 555 111.