It definitely exists in the ER, perhaps that facility was at fault. They should have private cubicles for obtaining that information. HIPAA exists in all areas of the hospital as well as many other types of places nowadays.
The place that you were at just wasn't doing what they should be doing.