My Terraria NPC will not settle down in a house

Solution 1:

Wait until night and make sure the nurse and her house are out of view. After you've done that, she should teleport into her room. If, after that, you find her outside of her house, she has found a way out and you can simply repeat and she will be back.