It's certainly possible.
We have received a complaint some time ago from an individual. This had nothing to do with electronic devices, but somebody was refused admission to the U.S. based on the fact that they had called 911 in Canada during an event of trauma. The person was considering suicide, and that was the reason she was refused admission to the United States. It's a bit similar to your example about a health condition that can lead to the refusal of admission to the United States based on such information.