Better information, smarter prescribing and investment in domestic manufacturing could help the NHS weather the growing crisis of medicines running short.