calculate_mme_df function

Calculate MME for medication data in long format