Completed code for generating patient id dictionory with list or prescriptions associated with their respective id's