A police officer was released from the hospital after he was shot outside Friends Hospital in Northeast Philadelphia on Thursday.