Generally this is the story:
As an undergrad.. you have to WORK your butt off to get an authorship. Most journals these days are encouraging people to list undergrad researchers as acknowledgments or equivalent and authorship list usually the primary worker gets first, and the chief gets last and everyone in between.
A lot of university professors know how desperate undergrads are for authorship so they'll do what they can, but it's up to the undergrad. As most people here who've done research knows that to publish something GOOD can sometimes take years or never at all while you're an undergrad.
Research is finicky at best, you can sit there all day long and collect data but then you find out that the hypothesis, through no fault of your own, was wrong then back to square one.
------------------
HOWEVER, clinical research is a bit different. It's a bit easier to get work done and published, but harder to obtain a position as an undergrad. Normally, they'd want either a small cadre of highly dedicated undergrads or fellow doctors, researchers or med students. Partly because you'll be working closely with patients and they want to ensure it is done PROFESSIONALLY.
---------------------------
Then again, you can have a kick ass boss who says, "Boy, come here. We need another name on this paper."
😎