Yes, the response "You can't smoke here. It's a hospital" is a correct model. It conveys the message clearly and appropriately in response to the situation described. It states a rule or regulation (no smoking) and provides a reason (it's a hospital) to support the prohibition. Additionally, the tone is polite but firm, which is suitable for addressing such situations.