Medication management software for pharmacies and care homes