Go to your nearest health center, with passport copy with RP page, 2 photographs. They will give you a form, which you have to fill and submit in Hamad hospital. The counter is near to ladies' entrance. They issued a temporary card and asked to collect the smart card after 3 months..but nowadays they are issuing on the spot.
The counter in Hamad closes at 12 or 12.30.