What happens when the indefinite article is followed by a preposition?
For example :
Le médecin travaille dans un hôpital.
The negative sentence according to the rule is ' Le médecin ne travaille pas dans d'hôpital ' .
But d'hôpital sounds so absurd.
Is there any rule of negation when the the indefinite article is followed by a preposition?