Just in case there is someone on this site who isn’t a Trekkie somehow: In Star Trek the all purpose device they use for scanning and other similar things is a Tricorder. One of the applications is medical. You scan someone with this and can get most of the info you might need to diagnose and treat conditions.
I recently had to get some rather invasive tests and it just got me wondering if such a thing is hypothetically possible in the future. What are the barriers that stop us from doing something like that for now/ever? We already have some tests that use waves to image parts of the body like X-rays or MRIs. Is it just complete fantasy to imagine such tests for other parts or functions of the body?
Edited to fix a typo and to clarify that I’m mostly talking about the part where they can remotely scan someone instead of having to stick something in or take something out. The miniaturization is cool, but kind of secondary. I’d take having to go to a doctor and sitting in the equivalent of an MRI machine if it meant not having to get poked and prodded.


Am actual doctor. I think we’re both closer to and further away from a Tricorder than you think.
Point of care ultrasound has been booming for the last 1-2 decades. There are now cell-phone sized wireless probes you can easily put in your pocket and do multiple diagnostic scans on the heart, lung, belly, etc with the caveat that you have to be adept at both obtaining and interpreting ultrasound images which certainly takes a lot of process.
There are devices about as big as 2-3 cell phones (think label maker or portable speaker sized) which can reliably run a whole panel of common blood tests including electrolytes, a blood gas, and hemoglobin on a 1-2mL blood sample in <5min. We also have dedicated point of care A1C devices, PT/INR devices, and probably some more I don’t know about.
I don’t think we’ll ever have handheld xray/CT solely due to the significant radiation risk the operator would experience, even if the technology could be miniaturized.
I don’t think handheld MRI will ever happen either. The power requirement alone for the magnet strength needed is immense, not to mention the dangers of the magnetic field in some random unsecured area and the length of normal scans makes a handheld device impractical.
I don’t think we’ll ever have “bloodless” comprehensive blood testing. There’s only so much you can do with spectroscopy, and some things like electrolytes are in dramatically different concentrations between the cells and the blood so scanning through skin would likely dramatically alter readings.
TLDR we are actively miniaturizing some medical technologies. There are physics limitations in "handheld-izing " most non-ultrasound diagnostic imaging, and while we’ve certainly made great progress in point of care labs, I don’t think we’re going to get a device that can measure those things without a blood sample.
Honestly the way they used it, I always thought the tricorder was just the reading part of other diagnostic implements. Kind of an all in one CGM, implanted pacemaker, etc.