A Raleigh police officer is accused of pretending to be a dead man to get the prescription painkiller hydrocodone.