The NHS website has guidance on how to organise transport to and from hospital.
You may be able to claim for the cost of transport to hospital through the Healthcare Travel Costs Scheme (HTCS) if you're referred for specialist NHS treatment or tests.