A hospital doctor says seven people were killed and 25 wounded in a car bomb near a Sunni mosque in northern Baghdad.