The Qualcomm Foundation-sponsored Tricorder X Prize competition is down to two finalists: a company from Pennsylvania and a company from Taiwan.

The San Diego-based Qualcomm Foundation has put up $10 million in prize money for a device that mimics the multipurpose diagnostic device that originated on the 1960s science fiction TV series “Star Trek.” The nonprofit X Prize organization launched the Tricorder competition in 2012.

The Tricorder-like devices must weigh less than 5 pounds, diagnose and interpret a set of 13 health conditions and continuously monitor five vital health metrics.

Consumer testing — the last stage in the contest — will continue through early 2017 and will take place at the Altman Clinical Translational Research Institute at the University of California, San Diego. A clinical coordinator will train consumers to use the devices, and then the consumers will work independently to come up with a diagnosis within minutes.

The finalist companies are Dynamical Biomarkers Group of Zhongli City, Taiwan and Final Frontier Medical Devices of Paoli, Pa. The winner will receive $6 million and the runner-up $2 million.

The Qualcomm Foundation is the charitable arm of semiconductor and wireless communication specialist Qualcomm Inc. (Nasdaq: QCOM).