ER doctor reveals how real-life police and hospital stories helped inspire his book