template of medicine api