having HIV transmitted through operation in this day and age is very low, unless you have operation done illegally! Either way - if your friend is concerned, he MUST get tested for many reasons like: 1. he needs to make sure he doesn't infect others! (he doesn't have to tell people, but has to be responsible and avoid situations where he/she could potentially affect others) 2. his infection MUST be managed
Why doesn't he/she get tested outside of Qatar if he/she is concerned that they will (and believe me - your friend would be deported) have to leave Qatar.