An investigation is underway after the death of a prisoner at the Royal Lancaster Infirmary at the weekend.