Depends on the type & sensitivity of the smoke/fire alarm.
Usually in hospitals they use the 'good' ones to keep patients safe, early detection is key to evacuating patents that may not be mobile.
Some will be set off easily by any type of particulate matter in the air, even in small quantities, some are far less sensitive.
If your not allowed to vape / it is against hospital policy, best not to test boundaries or the effectiveness of 'smoke/fire alarms'.
Just an overall bad idea to take the risk or be the cause of a false trigger.
But, like all your other threads, you already know it is a bad or unsafe idea, you're just looking for anyone to help justify your continuing to go against sound reasoning & better judgment.