Added get medications function