added medicationHistory api