R package and APIs for Scaled Personalized Medicine